variance
The average squared deviation from the mean; the sample version divides by n - 1. Measured in squared units.
Variance measures spread as the average squared distance from the mean. Take each value's deviation from the mean, square it (so negative and positive deviations stop cancelling out, and big misses weigh more than small ones), then average the squares.
There are two versions, depending on what your data represents:
The left one is the population variance: you have every value and know the true mean . The right one is the sample variance, used when your data is a sample from something bigger. In product analytics that is almost always the case: last month's orders stand in for all the orders you'll ever get. Why ? The sample mean is computed from the same values, so it sits closer to them than the true mean does. The squared deviations come out slightly too small, and dividing by instead of corrects this on average. That is the number of degrees of freedom. In Sheets or Excel: VAR.S for a sample, VAR.P for a population.
The catch is the units. Squaring the deviations squares the units too, so the variance of delivery times is in hours² and that of revenue in dollars². Nobody can picture that, so for reporting take the square root and you get the standard deviation, back in normal units.
Why keep variance at all? Its maths is convenient: the variances of independent quantities simply add up, and many methods (the t-test, ANOVA, regression, sample-size calculations) are built on it. Think of variance as the engine and the standard deviation as the reading on the dashboard.
Example
A CatChow courier's last 10 delivery times, in hours, sorted: 14, 14, 18, 18, 24, 24, 30, 30, 30, 38. Their sum is 240, so the mean is hours.
The sum of squared deviations is .
- Sample variance (these 10 deliveries stand in for all future ones): hours².
- Population variance (if these 10 were all you cared about): hours².
- Standard deviation: hours, so "24 ± 8 hours" is the line for the report.
Notice how squaring amplifies big misses: the single 38-hour delivery contributes 196 of the 576, about 34% of the total, although it is only one of 10 deliveries.
Common mistakes
- Reporting the variance to stakeholders. "Variance is 64" in hours² means nothing to anyone; report the standard deviation (8 hours).
- Dividing by on a sample. It underestimates the spread, noticeably so on small samples: 57.6 instead of 64 for 10 deliveries.
- Adding standard deviations instead of variances. If picking takes a variable time with SD 3 hours and transit is independent with SD 4 hours, the total SD is hours, not 7.
- Confusing statistical variance with "variance vs plan". In finance reports "variance" often means the gap between actual and budget. That is a difference, not a spread measure.
- Forgetting that squaring magnifies outliers. One extreme value can dominate the sum of squares, so look at the data before trusting a variance.
Learn it in the course
- Spread: range, SD and quartiles · Two couriers with the same average delivery time, and why only one keeps the promise: range, variance, standard deviation, quartiles, IQR and the coefficient of variation.
- ANOVA: comparing many groups · Testing three or more variants at once without inflating false positives.
- Factor analysis: surveys and NPS drivers · Finding the few hidden themes behind many survey questions.
- The t-test · Comparing the means of two groups and deciding whether the gap is bigger than chance.
- Paired tests: before and after · Comparing the same users before and after a change.