Vocabularymath.
statisticsInputsOutputsx | a non-negative real number |
Word descriptionComputes the variance of
seq. It's a measurement of the spread of values in a sequence.
NotesIf the number of elements in
seq is 1 or less, it outputs 0.
ExamplesUSING: math.statistics prettyprint ;
{ 1 } sample-var .
0
USING: math.statistics prettyprint ;
{ 1 2 3 } sample-var .
1
USING: math.statistics prettyprint ;
{ 1 2 3 4 } sample-var .
1+2/3
See alsovar-ddof,
population-varDefinition