Measuring spread
Two data sets can share a mean and look nothing alike. This lesson gives you one number for how spread out values are, and has you compute it by hand once.
By the end of this lesson you can
- Explain why the range is a weak measure of spread
- Compute a sample standard deviation by hand for five values
- Choose between n and n − 1 from the wording of a question
Two sections of the same class both average 72 on the midterm. In one, nearly every score sits between 68 and 76. In the other, scores run from 44 to 98. The mean can't tell them apart. This lesson gives you the number that can.
Why the range isn't enough
The quickest measure of spread is the range: the largest value minus the smallest. For the second section that's 98 − 44 = 54 points. Quick, but it listens to only two values. Add one student who scored 12 and the range jumps to 86, even though the other 29 scores didn't move.
We want a measure that listens to every value. The idea is simple: measure how far each value sits from the mean, then take a kind of average of those distances.
Standard deviation, step by step
Most of the time a spreadsheet function computes it for you. Doing it once by hand shows you what the function does, which makes its answer easier to trust.
- s
- the sample standard deviation
- xi
- each value in the sample
- x
- the sample mean
- n
- how many values there are
Notice step 3. Without squaring, the distances above and below the mean cancel out and always add up to zero. Squaring makes every distance positive; the square root in step 5 undoes it, so the answer is back in points, not points squared.
Extreme values pull the standard deviation up with them. In lesson 1.5 you'll meet the The distance between the first and third quartiles: the spread of the middle half of the data., which ignores the extremes.
Sample or population?
The formula divides by n − 1, not n. You almost always work with a sample, and a sample's values sit a little closer to their own mean than to the true mean of everyone. Dividing by a slightly smaller number nudges the answer up to make up for it.
If you really have every value you care about (every order this year, every employee), divide by n. Spreadsheets make the choice explicit: STDEV.S for a sample, STDEV.P for a population.
Reading a standard deviation
A standard deviation on its own is just a number. It becomes useful next to the mean. For data with one hump and no strong skew, about two thirds of values fall within one standard deviation of the mean, and about 95% fall within two.
So if deliveries average 30 minutes with a standard deviation of 4, most take 26 to 34 minutes, and a 42-minute delivery is unusual: it's three standard deviations out.
Review the terms
Turn each card over only after you've said the meaning out loud. Getting it wrong first is part of how it sticks.