math variance
for math
Returns the variance of a list of numbers or of each column in a table.
Signature
> math variance --sample
Parameters
--sample
(-s)
: calculate sample variance (i.e. using N-1 as the denominator)
Input/output types:
input | output |
---|---|
list<number> | number |
Examples
Get the variance of a list of numbers
> [1 2 3 4 5] | math variance
2
Get the sample variance of a list of numbers
> [1 2 3 4 5] | math variance -s
2.5