Standard Deviation

Also known as: SD, spread, variability.

How far values typically lie from their average, in the units of the data. Small means tightly clustered; large means spread out.

Synthetic dataExamples on this page use synthetic data created for illustration.

Definition

The standard deviation measures how far values typically lie from their average, in the same units as the data. A small value means the data cluster tightly around the mean; a large one means they are spread out.

In plain terms

The mean says where the data are centred; the standard deviation says how widely they scatter around it. It is computed by squaring each value’s distance from the mean, averaging those (dividing by n − 1 for a sample), and taking the square root.

For roughly bell-shaped data, about two thirds of values fall within one standard deviation of the mean and about 95% within two, but that rule is a property of the bell shape, not of standard deviations in general. It is the building block of Z-scores and Confidence Intervals.

Example

Weekly sales of two products, both averaging 100:

ProductFive weeksMeanStandard deviation
A98, 102, 100, 99, 1011001.6
B60, 140, 100, 80, 12010031.6

The averages are identical, but A is almost constant and B swings by about a third either way. A plan that works for A’s steady demand could leave B out of stock or overstocked.

Common misunderstandings

  • “The standard deviation is the error of the data.” It describes natural spread, not a mistake.
  • “68–95–99.7 always holds.” Only for roughly bell-shaped data.
  • “Dividing by n or n − 1 makes no difference.” For small samples it does; use n − 1 when estimating from a sample.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods . NIST.
  2. David S. Moore, George P. McCabe, Bruce A. Craig. Introduction to the Practice of Statistics . W. H. Freeman, 2021. ISBN 978-1319013387.