📊 Data
🎲Standard Deviation
A second eye beyond the average — two datasets can share a mean while their spread differs tenfold, and standard deviation squeezes that spread into one number.
Two students average 70 over five quizzes. Are they equally good? Student A scored 68, 69, 70, 71, 72; student B scored 50, 60, 70, 80, 90. Identical means, wildly different tempers: A is steady, B rides a roller coaster. Describing that difference needs more than mean, median and mode — those report the center, not the spread. Meet the second eye: standard deviation.
Same average, different temper
Subtract the mean from every value; each difference is a deviation. A's deviations are −2, −1, 0, +1, +2, while B's are −20, −10, 0, +10, +20 — same center, ten times the swing. Unfortunately deviations always sum to zero: positives cancel negatives, and averaging them wastes the whole calculation (for A: ). To let deviation survive, square it first — the sign disappears, the size stays.
Square, then average, then take the root
The recipe has three steps:
- Square every deviation;
- Average them to get the variance;
- Take the square root to return to the standard deviation.
Apply it to both students:
- A: squares 4, 1, 0, 1, 4, summing to 10; variance ; standard deviation ;
- B: squares 400, 100, 0, 100, 400, summing to 1000; variance ; standard deviation .
The final square root restores the units: scores are measured in points, and squaring squared the units too, so the root pulls them back to points. One-sentence intuition: the standard deviation is the typical distance from the mean. A's scores stray about a point or so; B's stray by a dozen.
One full calculation
Count
7
Mean
6.14
Median
6
Mode
8
Add a few values, remove a few, and watch how wide the dot plot opens: dots huddled together mean a small standard deviation, dots flung wide mean a large one. The component computes mean, median and mode — judging "how spread out" with your own eyes is exactly what standard deviation formalizes.
From zero to σ = 2
Eight basketball scores: 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40, so the mean is . Deviations: −3, −1, −1, −1, 0, 0, 2, 4. Squares: 9, 1, 1, 1, 0, 0, 4, 16, summing to 32. Variance , and the standard deviation is . Mean 5, typical deviation 2 — one sentence captures the whole dataset.
Population, sample, and the bell
Two quick notes. First, calculators offer both and : use (dividing by ) when your data is the entire population, and (dividing by ) when it is only a sample drawn from one — samples sit artificially close together, and the adjusted divisor compensates. Details later; pick the right key for now. Second, data like heights or test scores often piles up in a bell shape: most values crowd near the mean, thinning out toward the edges. The larger the standard deviation, the shorter and wider the bell; the smaller, the taller and narrower. For bell-shaped data, about seventy percent falls within one standard deviation of the mean, and almost everything within two. So "average height 170, standard deviation 6" already lets you picture the whole crowd. You can see distribution shapes with your own eyes in Histograms; the Range measures spread using only the two extremes; and Misusing Averages shows how one extreme value drags a mean astray.
Check yourself
Quick quiz
1. A small standard deviation means the data?
2. What is the standard deviation of [2, 6]?
3. A dataset has variance 200. Its standard deviation is about?