s² = Σ(xᵢ − x̄)² / (n − 1)
The same sum of squares as in the variance, but divided by n − 1 instead of n. It is
used when the values are a sample and you want to say something about the spread in the larger group
they come from. The formula is a definition.
The reason for n − 1 is that the mean x̄ is worked out from the same sample. The values therefore lie
closer, on average, to their own mean than to the population’s, and dividing by n would underestimate
the spread on average. Dividing by a smaller number corrects for that.
Worked examples
Eight values. 2, 4, 4, 4, 5, 5, 7, 9 has a mean of 5 and a sum of squares of 32. The sample variance
is 32 / 7 ≈ 4.571. The population variance of the same list is 32 / 8 = 4.
How large the difference is. The ratio between the two is n / (n − 1). For eight values it is
8/7 ≈ 1.14, so 14% larger. For a hundred values it is 100/99 ≈ 1.01. The difference matters mostly when
the sample is small.
Common mistakes
- Using n − 1 on a whole population. If the question is about the spread in this class, and every
pupil in the class is included, n is the one to use.
- Computing the mean with n − 1 too. The mean is always divided by n. Only the variance is divided by
n − 1.
- Assuming the difference is negligible for small samples. With five values the sample variance is
25% larger than the population variance.
Common questions
Why n − 1?
Because the mean has already been worked out from the same values. The sum of squares is smallest
around the sample’s own mean, so it is never larger than the sum of squares around the population’s
true mean, and usually smaller. Dividing by n − 1 makes up for that. The usual explanation is that one
degree of freedom has been spent on the mean.
Which one do I use in the exam?
The one the question describes. If it says sample, or the answer should say something about a larger
group, use n − 1. If the values are the whole group, use n. If the question does not say, ask which one
the course means.
What does the calculator’s s button give?
This one, with n − 1. The button marked σ or σₙ gives the population version. In a spreadsheet, VAR.S
gives the sample variance and VAR.P the population variance.