Sub topic 8
Standard Deviation Step by Step
This chapter assumes you can calculate a mean, square numbers, and find square roots. You should also be comfortable working with negative numbers and fractions.
What standard deviation measures
Standard deviation measures how far the values in a data set typically lie from the mean. A small standard deviation means the values are clustered near the mean. A large standard deviation means they are more spread out.
The calculation uses every value, so an unusually large or small value can affect the result strongly.
For a population data set, use this process:
- Find the mean.
- Subtract the mean from each value.
- Square each difference.
- Find the average of the squared differences. This average is the variance.
- Take the square root of the variance.
The population standard deviation formula is:
standard deviation = square root of [sum of (value − mean)² divided by number of values]
A complete example
Consider the data set:
2, 4, 4, 4, 5, 5, 7, 9
The mean is:
(2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 40 / 8 = 5
Now calculate each deviation from the mean and square it.
| Value | Deviation from 5 | Squared deviation |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
The sum of the squared deviations is:
9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32
Divide by the number of values:
32 / 8 = 4
The variance is 4. Therefore:
standard deviation = square root of 4 = 2
import math
data = [2, 4, 4, 4, 5, 5, 7, 9]
mean = sum(data) / len(data)
deviations = [x - mean for x in data]
squared = [d ** 2 for d in deviations]
variance = sum(squared) / len(data)
standard_deviation = math.sqrt(variance)
print(deviations)
print(squared)
print(variance)
print(standard_deviation)A useful interpretation
A standard deviation of 2 does not mean every value is exactly 2 away from the mean. It summarizes the overall spread. In the example, the mean is 5, and the standard deviation is 2, even though some values are 4 units away.
The signs of the deviations do not matter after squaring. Negative deviations show values below the mean, while positive deviations show values above it. Squaring prevents these differences from canceling each other.
Common GRE errors
- Dividing by the wrong number. The population calculation divides by the number of values, including repeated values.
- Forgetting to square negative deviations.
- Taking the square root before averaging the squared deviations.
- Confusing variance with standard deviation. Variance is the average squared deviation; standard deviation is the square root of variance.
- Assuming that standard deviation is the same as the largest distance from the mean.
Exercise
A data set has mean 10, and its squared deviations from the mean are 4, 0, 4, 16, and 1. What is its population standard deviation?
Show answer
The sum of the squared deviations is 25. Divide by 5 to get a variance of 5, so the standard deviation is square root of 5.