Standard deviation meaning
Standard deviation (SD, σ or s) measures the typical distance between the values in a data set and their mean. It is the square root of the variance, which puts the spread back into the same units as the data. If the heights in a class have a mean of 160 cm and an SD of 8 cm, most students are within about 8 cm of 160.
Two data sets can share a mean and look nothing alike. 50, 50, 50 and 0, 50, 100 both average 50, but the first has an SD of 0 and the second about 40.8. The mean tells you the centre; the standard deviation tells you how much to trust it as a description of individual values.
Standard deviation formulas
The left formula is the population standard deviation, used when the data covers the whole population. The right is the sample standard deviation, used when the data is a sample. The n − 1 (Bessel's correction) makes the sample variance an unbiased estimate of the population variance.
Worked example
Data: 2, 4, 4, 4, 5, 5, 7, 9.
| Step | Result |
|---|---|
| Mean | 40 ÷ 8 = 5 |
| Squared deviations | 9, 1, 1, 1, 0, 0, 4, 16 |
| Sum of squares | 32 |
| Population variance | 32 ÷ 8 = 4 |
| Population SD | √4 = 2 |
| Sample variance | 32 ÷ 7 ≈ 4.571 |
| Sample SD | ≈ 2.138 |
A second example: test scores 72, 75, 78, 80 and 85 have a mean of 78 and a sample SD of about 4.95 points.
Interpreting standard deviation
Low SD: values are consistent. A machine filling 500 ml bottles with an SD of 1 ml is precise.
High SD: values vary widely. Daily temperatures in a desert have a high SD; on a tropical island they have a low one.
The empirical rule. If data is roughly bell-shaped (normal):
| Range | Share of data |
|---|---|
| Mean ± 1 SD | about 68% |
| Mean ± 2 SD | about 95% |
| Mean ± 3 SD | about 99.7% |
So with a mean of 160 cm and an SD of 8 cm, about 95% of heights fall between 144 and 176 cm. Values beyond 3 SD are rare and are often flagged as possible outliers. Measuring a value's distance from the mean in SD units gives its z-score.
Standard deviation vs related measures
| Measure | What it is |
|---|---|
| Variance | SD squared; squared units |
| Range | Max − min; uses only two values |
| Interquartile range | Spread of the middle 50%; resists outliers |
| Standard error | SD ÷ √n; uncertainty of a sample mean |
| Coefficient of variation | SD ÷ mean; spread relative to size |
Standard deviation and standard error are often confused. SD describes how individuals vary; standard error describes how precisely the sample mean estimates the true mean, and it shrinks as the sample grows.
Properties
- SD is never negative, and it is 0 only when all values are equal.
- Adding a constant to every value leaves SD unchanged.
- Multiplying every value by k multiplies SD by |k|.
- SD is sensitive to outliers because deviations are squared.
Standard deviation in Excel and Google Sheets
Use STDEV.S for a sample and STDEV.P for a population. The older STDEV function is the sample version. Calculators label the two as sx (or σₙ₋₁) and σx (or σₙ).
Real-world uses
- Finance: volatility of returns is the standard deviation, a key measure of risk.
- Manufacturing: Six Sigma aims for defects only beyond six standard deviations from target.
- Education: standardised test scores are reported in SD units.
- Weather: forecasters describe how unusual a temperature is in SDs from the long-term average.
Standard deviation from a frequency table
When values repeat, multiply by the frequencies instead of listing every value. Suppose 10 families have 1 child (2 families), 2 children (5) or 3 children (3). The mean is (2 + 10 + 9) ÷ 10 = 2.1. The sum of f·x² is 2 + 20 + 27 = 49, so the population variance is 49 ÷ 10 − 2.1² = 0.49, and the standard deviation is 0.7 children. For grouped classes, use each class midpoint as x.
Common mistakes
- Forgetting the square root and reporting variance.
- Mixing up sample and population formulas.
- Applying the 68-95-99.7 rule to strongly skewed data.
- Comparing SDs of data on different scales without the coefficient of variation.
Calculate both versions with steps in the standard deviation calculator, and read standard deviation explained and sample vs population standard deviation.