Variance and standard deviation
Standard deviation measures how far the data typically are from the mean. A small standard deviation means the values are bunched together. A large one means they are spread out. The variance is the standard deviation squared.
Key facts
- Variance: σ² = (Σ(x − x̄)²)/n = (Σx²)/n − x̄².
- Standard deviation σ = √variance, in the same units as the data.
- From a frequency table: σ² = (Σfx²)/(Σf) − x̄².
- Adding a constant to every value moves the mean but does not change σ.
- Multiplying every value by k multiplies the mean and σ by k (and the variance by k²).
- Some courses also use the sample standard deviation, dividing by n − 1. Check which one a question asks for.
Worked examples
Example 1
Find the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9.
- Mean: 40 ÷ 8 = 5
- Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16. total = 32
- Variance, then its square root: σ² = 32 ÷ 8 = 4, σ = 2
Answer: 2
Example 2
For 10 values, Σx = 120 and Σx² = 1,530. Find the mean and standard deviation.
- Mean: x̄ = 120 ÷ 10 = 12
- Variance: σ² = 1530/10 − 12² = 153 − 144 = 9
- Take the square root. σ = √9 = 3
Answer: Mean 12, σ = 3
Example 3
Daily temperatures have mean 15 °C and standard deviation 4 °C. Find the mean and standard deviation in °F, using F = 1.8C + 32.
- The mean follows the formula. 1.8 × 15 + 32 = 59
- Only the 1.8 stretches the spread. Adding 32 moves the data without spreading it. 1.8 × 4 = 7.2
Answer: Mean 59 °F, σ = 7.2 °F
Example 4
Find the standard deviation of 1, 3 and 5, to 2 decimal places.
- Find the mean. (1 + 3 + 5) ÷ 3 = 3
- Square the distances from the mean and find their mean. (4 + 0 + 4) ÷ 3 = 8/3
- Take the square root. √(8/3) = 1.63
Answer: 1.63
Example 5
Find the variance of 2, 4, 6 and 8.
- The mean is 5. (2 + 4 + 6 + 8) ÷ 4 = 5
- Square each distance from 5. 9, 1, 1, 9
- Find their mean. 20 ÷ 4 = 5
Answer: 5
Example 6
Every value in a data set has 10 added to it. What happens to the mean and the standard deviation?
- Every value moves up by 10, so the mean moves up by 10.
- The distances from the mean do not change, so the standard deviation stays the same.
Answer: The mean goes up by 10; the standard deviation stays the same
Example 7
Which data set has the larger standard deviation: 4, 5, 6 or 1, 5, 9?
- Both sets have a mean of 5.
- The values 1 and 9 are further from 5 than 4 and 6, so 1, 5, 9 is more spread out.
Answer: 1, 5, 9
Example 8
A data set has mean 20 and standard deviation 3. Every value is doubled. Find the new mean and standard deviation.
- Doubling every value doubles the mean. 2 × 20 = 40
- The distances from the mean double too. 2 × 3 = 6
Answer: Mean 40, standard deviation 6