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 spreadHow much data it usesResistant to extremes
RangeTwo valuesNo
Interquartile rangeThe middle halfYes
Standard deviationEvery valueNo

Two worked examples

Example 1 — why the deviations must be squared

  1. Take 2, 4, 6, 8, 10. \bar{x} = 6
  2. The deviations are −4, −2, 0, 2, 4. \sum (x_i - \bar{x}) = 0
  3. Zero every time — this is a property of the mean, not an accident.
  4. Squared, they survive: 16, 4, 0, 4, 16. \sum = 40

Example 2 — finishing the calculation

  1. Divide by n-1 = 4. s^2 = \frac{40}{4} = 10
  2. That is the variance, in squared units.
  3. Take the root to return to the original units. s = \sqrt{10} \approx 3.16
  4. A typical value sits about 3.2 away from 6.
A calculator: The standard deviation, step by step — sliders for Value 1, Value 2, Value 3, Value 4, Value 5, with results that update at once.