Paste your data to get both the sample and population variance, with the sum of squares worked out by the definition and by the shortcut formula so you can check your own working.
s² = Σ(x − x̄)² ÷ (n − 1) · σ² = Σ(x − μ)² ÷ N
Separate with commas, spaces or new lines.
Variance is the average of the squared distances from the mean. It's 0 when every value is the same and grows as the data spreads out. Its square root is the standard deviation.
Because it's built from squares, variance is in squared units (cm², £², seconds²), which makes it hard to picture. Most people report the standard deviation instead. Variance earns its place in the maths: the variances of independent quantities add together, which is the foundation of ANOVA, regression, error propagation and portfolio risk.
Use the sample variance (divide by n − 1) when your data is a sample from a larger group, and the population variance (divide by N) only when you have every member of the group.
Formulas as given in the NIST/SEMATECH e-Handbook of Statistical Methods. See Sources.
Handy by hand because you never need the individual distances. On a computer, the definition is safer: with large values close together, the shortcut subtracts two nearly equal numbers and can lose precision.
The population standard deviation is exactly √4 = 2.
The classic set after some simple changes. Adding a constant moves the data without spreading it; multiplying by k multiplies the variance by k². This is why converting units (cm to mm, say) multiplies the variance by 100, not 10.
| Change | Mean | σ² | σ |
|---|---|---|---|
| None | 5 | 4 | 2 |
| Add 10 to every value | 15 | 4 | 2 |
| Multiply every value by 2 | 10 | 16 | 4 |
| Multiply every value by 10 | 50 | 400 | 20 |
| Multiply every value by −1 | -5 | 4 | 2 |
Standard deviation is the square root of variance. They carry the same information; the standard deviation is in the data’s own units, which makes it easier to interpret.
A sample’s values sit closer to their own mean than to the true population mean, so dividing by n would underestimate the spread on average. Dividing by n − 1 corrects that bias.
No. It’s an average of squares, so it’s zero or positive. A negative result from the shortcut formula means a rounding or typing error.
Yes. They’re in different units, so there’s no rule linking their sizes. For counts, a variance much bigger than the mean is called overdispersion.
VAR.S for a sample and VAR.P for a whole population. Older versions use VAR and VARP.
Every value is identical. There is no spread at all.
Because variances of independent sources add up. That lets the total variation in a dataset be split into parts, such as the part explained by groups or by a trend line and the part left over.
Count each value as many times as its frequency, or use the population variance calculator’s frequency mode, which does this for you.