Variance
Variance measures how widely values are scattered around their mean. Deviations from the mean are squared before averaging, so large departures carry more weight.
See it move
A formula card presents the sample variance formula: s² = Σ(xᵢ − x̄)² ÷ (n − 1), where xᵢ − x̄ is each observation's deviation from the mean and n − 1 is the degrees of freedom. A worked example uses a bakery with a mean daily sales figure of €440: five squared deviations sum to 9,400, giving a variance of 9,400 ÷ 4 = 2,350 €² and a standard deviation of approximately €48. Dividing by n − 1 rather than n yields an unbiased estimate of the population variance.
The formula
Variables
- Sample variance
- Value of observation i
- Sample mean
- Number of observations in the sample (observations)
Sample variance; denominator (n − 1) rather than n corrects for bias when estimating the unknown population variance σ².
Variables
- Population variance
- Population mean
- Population size (observations)
Population variance; divides by N because all values are known and no estimation is involved.
Taking the square root of the variance returns the spread to the original unit of measurement, making it directly interpretable.
Check yourself
A sample of five daily output figures has a mean of 200 units. The sum of squared deviations from the mean is 2,000. What is the sample variance?