Vocabularymath.statisticsInputs and outputs| seq | a sequence |
| x | a non-negative real number |
Word descriptionComputes the variance of
seq. It's a measurement of the spread of values in a sequence. The larger the variance, the larger the distance of values from the mean.
NotesIf the number of elements in
seq is 1 or less, it outputs 0.
ExamplesUSING: math.statistics prettyprint ;
{ 1 } var .
0
USING: math.statistics prettyprint ;
{ 1 2 3 } var .
1
USING: math.statistics prettyprint ;
{ 1 2 3 4 } var .
1+2/3
See alsopopulation-var,
sample-varDefinition