Standard Deviation and Variance Explained Step by Step
On this page
Standard deviation measures how spread out data is around the mean. To calculate it, find the mean, square each value's distance from the mean, average those squares (that is the variance), then take the square root. For a sample you divide by instead of .
The idea
Two classes both average 70% on a test. In one, everyone scored 68–72%. In the other, scores ranged from 40% to 100%. Same mean, very different spread. Standard deviation puts a number on that spread.
Step by step (population)
Data: ().
1. Find the mean.
2. Find each deviation and square it.
| 2 | −3 | 9 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
3. Add the squares: .
4. Divide by to get the variance:
5. Take the square root:
Why square the deviations?
The plain deviations always add to zero, because values above and below the mean cancel. Squaring makes them all positive. Taking the square root at the end brings the answer back to the original units.
Population vs sample
| Divide by | Symbol | |
|---|---|---|
| Population (all the data) | ||
| Sample (part of a population) |
Dividing by (Bessel's correction) makes up for the fact that a sample tends to be less spread out than the full population.
Sample example: has mean and sum of squared deviations :
Interpreting it
For roughly bell-shaped data, about 68% of values lie within one standard deviation of the mean, and about 95% within two. A value more than 2 or 3 standard deviations away is unusual.
Common mistakes
- Forgetting to square root the variance.
- Using for a sample or for a population.
- Squaring the values instead of the deviations.
Practice questions
- Find the population standard deviation of .
- Find the variance of .
- Which is more spread out: data with or ?
Answers: 1) 2) 3)
The standard deviation calculator shows the full deviations table and checks the answer with a second method. For averages see mean, median and mode, and for what comes next read about the normal distribution and z-scores.
Frequently asked questions
Can standard deviation be negative?
No. It is a square root of an average of squares, so it is always 0 or more.
What does a standard deviation of 0 mean?
Every value is the same, so there is no spread at all.
What is the difference between variance and standard deviation?
Variance is the average squared deviation. Standard deviation is its square root, in the same units as the data.
#statistics#data#standard deviation
