The formulas
- Mean = sum of the values ÷ n
- Population variance = Σ(x − mean)^2 ÷ n; population SD (σ) is its square root
- Sample variance = Σ(x − mean)^2 ÷ (n − 1); sample SD (s) is its square root
Source: NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.6, Measures of Scale.
Worked example
- 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5 and the squared differences add up to 32. Population SD = √(32 ÷ 8) = 2; sample SD = √(32 ÷ 7) = 2.1381.