var
statisticsCalculates variance
Syntax
var(array|dataframe) Parameters
array|dataframe (array or dataframe) The data to calculate variance from
Returns
number The variance of the values
Examples
Calculate variance
Input:
[1, 2, 3, 4, 5] | var Output:
2.5 Variance of measurements from experiments
Input:
.measurements | var Output:
15.6 The var() function calculates the variance of numeric values, which measures how spread out the values are from their mean.
Usage
Use var() for statistical analysis of data variability and dispersion. Variance is the square of standard deviation.