double
Variance(
double
[]
values
)
The variance of the values.
σ
2
=
(
x
i
−
x
)
2
n
i
n
Example
=
Block
{
ShowVariance
([2, 3, 3, 4]);
ShowVariance
([2, 5, 6, 12]);
};
The variance of 2, 3, 3 and 4 is 0.5
The variance of 2, 5, 6 and 12 is 13.1875