Mean of grouped data: direct, assumed mean and step deviation methods
A government survey grouping household monthly incomes into classes, or a hospital grouping patients by age, finds the mean from class marks in exactly this way.
For classes, use the class mark (mid-point) as x. Step deviation u = (x − a)/h gives x̄ = a + (Σfu/N) × h.
Key facts
Class mark(lower limit + upper limit)/2; each class's frequency is taken as centred here
Direct methodx̄ = Σfx/Σf with x the class marks
Assumed mean methodx̄ = a + Σfd/N, d = x − a
Step deviation methodx̄ = a + (Σfu/N) × h, u = (x − a)/h, h the class size
Example 1: three methods, one answer
Problem
Find the mean: classes 0-10, 10-20, 20-30, 30-40, 40-50 with frequencies 6, 10, 15, 12, 7.
Working
- Class marks x: 5, 15, 25, 35, 45. N = 50.
- Direct: fx = 30, 150, 375, 420, 315; Σfx = 1290; mean = 1290/50 = 25.8.
- Assumed mean a = 25: d = −20, −10, 0, 10, 20; fd = −120, −100, 0, 120, 140; Σfd = 40; mean = 25 + 40/50 = 25.8.
- Step deviation, h = 10: u = −2, −1, 0, 1, 2; fu = −12, −10, 0, 12, 14; Σfu = 4.
- Mean = 25 + (4/50) × 10 = 25 + 0.8 = 25.8.
Answer
Mean = 25.8 by every method.
Example 2: a missing frequency
Problem
The mean of the distribution is 50. Find p. Classes 0-20, 20-40, 40-60, 60-80, 80-100; frequencies 5, 8, 12, p, 5.
Working
- Class marks: 10, 30, 50, 70, 90.
- Σf = 30 + p.
- Σfx = 50 + 240 + 600 + 70p + 450 = 1340 + 70p.
- (1340 + 70p)/(30 + p) = 50, so 1340 + 70p = 1500 + 50p.
- 20p = 160, so p = 8. Check: Σf = 38, Σfx = 1900, 1900/38 = 50.
Answer
p = 8.
Which method to use
| Method | Formula | Best when |
|---|---|---|
| Direct | Σfx/Σf | Class marks and frequencies are small |
| Assumed mean | a + Σfd/N | Class marks are large |
| Step deviation | a + (Σfu/N) × h | Classes are of equal size and the numbers are large |
Mid-point first; then direct, shift by a, or shift and shrink by h. All three agree.