Variance and standard deviation, explained
5 min read
Short answer
Variance measures spread by averaging each value's squared gap to the mean: . The standard deviation is its square root, in the same units as the data, and tells you a typical distance from the mean.
Why square the deviations
Deviations cancel out (they always sum to zero), so you cannot just average them. Squaring makes every term positive and punishes big deviations more. Taking the square root at the end brings the units back to those of the data.
Population vs sample
If you have the whole population, divide the sum of squared deviations by . If you have only a sample and want to estimate the population variance, divide by (Bessel's correction), because deviations from the sample mean are slightly too small on average.
Worked example
Find the variance and standard deviation of the data (treat it as a whole population).
Mean . Squared deviations: , summing to . If this were a sample, and .
For a fair die, and , so .
Try it yourself
Find the population and the sample variance of .
Show the answer
Mean 3; squared deviations sum to 8. Population variance ; sample variance .
Keep going with practice
Variance and standard deviation are covered in Vidi's Linear Algebra & Probability course with graded practice.