Statistics · Exploring one-variable data
Spread — the standard deviation
The typical distance from the mean.
A sum that is always zero
Measure how far each value sits from the mean, add up those distances, and you get zero — every time, for every data set. The obvious way to measure spread simply does not work. What has to be done to the distances before they tell you anything?
Spread can be measured crudely by the range — largest minus smallest — but the range uses only two numbers and throws the rest away. The standard deviation uses all of them. It answers a single question: how far, typically, does an observation sit from the mean.
s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n-1}}
| Measure of spread | How much data it uses | Resistant to extremes |
|---|---|---|
| Range | Two values | No |
| Interquartile range | The middle half | Yes |
| Standard deviation | Every value | No |
Two worked examples
Example 1 — why the deviations must be squared
- Take 2, 4, 6, 8, 10.
\bar{x} = 6 - The deviations are −4, −2, 0, 2, 4.
\sum (x_i - \bar{x}) = 0 - Zero every time — this is a property of the mean, not an accident.
- Squared, they survive: 16, 4, 0, 4, 16.
\sum = 40
Example 2 — finishing the calculation
- Divide by n-1 = 4.
s^2 = \frac{40}{4} = 10 - That is the variance, in squared units.
- Take the root to return to the original units.
s = \sqrt{10} \approx 3.16 - A typical value sits about 3.2 away from 6.
- Adding the deviations without squaring — The sum is always zero That is a property of the mean as a balance point, and no accident.
- Reporting the variance instead of the standard deviation — The variance is in squared units Pounds squared cannot be interpreted; the root returns to pounds.