The steps
- Find the mean.
- Subtract the mean from each number and square the result.
- Add up the squares.
- Divide by n for a population, or by n − 1 for a sample. That’s the variance.
- Take the square root. That’s the standard deviation.
Example: 2, 4, 4, 4, 5, 5, 7, 9
- Mean: 40 ÷ 8 = 5.
- Squared distances from 5: 9, 1, 1, 1, 0, 0, 4, 16.
- Their sum: 32.
- Population: 32 ÷ 8 = 4, and √4 = 2.
- Sample: 32 ÷ 7 ≈ 4.571, and √4.571 ≈ 2.138.
σ = 2 (population) or s ≈ 2.14 (sample)
Sample or population?
Use the population formula (÷ n) when you have every member of the group. Use the sample formula (÷ n − 1) when your numbers are a sample of a bigger group, which is the usual case in class and in surveys.
Reading the result
A small standard deviation means the numbers cluster close to the mean; a large one means they’re spread out. For bell-shaped data, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three.