# covar {#covar}

## Syntax {#syntax}

`covar(X,Y)`

## Arguments {#arguments}

**X** and **Y** are vectors/matrices/tables of the same size. If *X* is a table, only the numeric and Boolean columns are calculated.

## Details {#details}

Calculate the covariance of *X* and *Y*.

## Examples {#examples}

```
x=7 4 5 8 9 3 3 5 2 6 12 1 0 -5 32
y=1.1 7 8 9 9 5 4 8.6 2 1 -9 -3 5 8 13
covar(x,y);
// output: 10.881429
```

