Overview
Variance is the average squared distance from the mean, a basic measure of spread used throughout statistics.
Enter your values. You get the population variance, the sample variance and the sample standard deviation.
Worked examples
| Inputs | Result |
|---|---|
| Your numbers12, 16, 14, 21, 19 | Population variance: 10.64Sample variance: 13.3SD: 3.65 |
Show 2 more examples
| Your numbers1, 2, 3, 4, 5 | Population variance: 2Sample variance: 2.5SD: 1.58 |
| Your numbers100, 102, 98, 101, 99 | Population variance: 2Sample variance: 2.5SD: 1.58 |
How it works
Square each value's distance from the mean and add them. Divide by n for the population variance or n − 1 for the sample variance. The standard deviation is the square root of the sample variance, which puts it back into the data's units.
The formula
Practical tips
- For 12, 16, 14, 21 and 19, the sample variance is 13.3.
- In Excel, VAR.S is the sample variance and VAR.P the population variance.
- Adding a constant to every value doesn't change the variance.
Frequently asked questions
Why square the distances?
To stop positive and negative distances cancelling out, and to weight larger distances more.
Which variance should I report?
The sample variance, unless you have the entire population.
How are variance and SD related?
SD is the square root of variance.