# var

var(v[, region])

Compute the sample variance of a vector or array `v`

, optionally along dimensions in `region`

. The algorithm will return an estimator of the generative distribution's variance under the assumption that each entry of `v`

is an IID drawn from that generative distribution. This computation is equivalent to calculating `sumabs2(v - mean(v)) / (length(v) - 1)`

. Note: Julia does not ignore `NaN`

values in the computation. For applications requiring the handling of missing data, the `DataArray`

package is recommended.

## Examples

## See Also

## User Contributed Notes

### Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.