Measures of Spread
Two data sets can have the same mean and still look nothing alike, so you also need to know how spread out they are. The standard deviation is roughly the typical distance from the mean, and a z-score uses it as a ruler: how many standard deviations away is this value?
What the symbols mean
- Sample standard deviation
Roughly the typical distance of a value from the mean.
- Deviation
How far one value sits above or below the mean.
- Degrees of freedom
Dividing by n − 1 corrects for the sample mean being fit to the same data.
What the symbols mean
- z-score
How many standard deviations x is from the mean; negative means below.
Explanation
The standard deviation is simply a measure of how far values typically sit from their average: small means tightly bunched, large means widely scattered. The formula looks like a lot, but read it from the inside out: (how far one value is from the mean), squared (so values below the mean don't cancel those above), added up with , divided by (roughly an average), and finally a square root (to get back to the original units). It's an average distance from the mean with a couple of small adjustments, so bear with it.
Why square, and why the square root? You might wonder why we don't just average the distances . Try it: the deviations always sum to , because the mean sits exactly where the values above and below balance. Squaring makes every deviation count as positive. But squaring also changes the units (dollars become dollars squared), so at the end we take the square root to get back to dollars.
Computing :
- Find each deviation . (They always sum to 0.)
- Square them and add.
- Divide by to get the variance .
- Take the square root.
For a whole population, divide by instead and call it . Why for a sample? The sample mean is computed from the same data, so it sits closer to the data than the true mean does, and the squared deviations come out a little too small. Dividing by instead of makes up for that.
The empirical rule. For bell-shaped data, about 68% of values lie within 1 standard deviation of the mean, 95% within 2, and 99.7% within 3.
z-scores put different scales on equal footing: a score with is unusual whatever the test. Values with are commonly called unusual. Notice how this ties back to the empirical rule: only about 5% of bell-shaped data are more than 2 standard deviations out.
A common mistake. It's tempting to compare raw scores across different tests, so an 88 beats an 82. But an 88 on an easy test with a wide spread can be less impressive than an 82 on a hard one. z-scores take the mean and the spread into account, so they're the fair comparison.
See it
Worked examples
Find the sample standard deviation of .
- 1
The mean is . The squared deviations from it are , summing to .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find the range of .
Find the sample standard deviation of .
Test scores have mean 70 and standard deviation 8. Find the z-score of 86.
For bell-shaped data, about what percent lies within 2 standard deviations of the mean?
Which value is more unusual?
Two machines fill cereal boxes with mean 500 g: machine A with standard deviation 2 g, machine B with 6 g. A box under 490 g is rejected. Find the z-score of 490 g for machine B.
Ana scored 82 on a test with mean 74 and standard deviation 6. Ben scored 88 on a test with mean 80 and standard deviation 10. Who did better relative to their class?
The hardest one here. Get it, and you've got this lesson.
Find the sample standard deviation of .
Where it's used
Manufacturers track the standard deviation of part sizes to control quality; investors call the standard deviation of returns "volatility"; growth charts for children are z-scores.