Track 2 · Describing Data · Lesson 10 of 11
Grouped data
Estimate the mean, standard deviation and median from a grouped frequency table, and explain why these are approximations.
A government report gives only a table: how many households fall in each income band, how many patients in each age group. The raw values are gone. You can still estimate a mean, a spread and a median — as long as you know what you are assuming and say that the results are approximate.
A grouped frequency table records how many observations fall in each class interval (for example “20 to under 30 minutes”), not the values themselves. Grouping makes large datasets readable and protects privacy, but it throws information away: within a class, we no longer know where the values were.
To calculate anything, we must make an assumption about the values inside each class. The standard one: treat every value as if it sat at the class midpoint, . For the median we assume instead that values are spread evenly across their class.
- the frequency (count) of class
- the midpoint of class
- the total count,
- the lower boundary of the median class — the first class whose cumulative frequency reaches
- the cumulative frequency of all classes before the median class
- the frequency of the median class
- the width of the median class
Worked example
Waiting times at a pharmacy
Waiting times of 40 customers: 0 to under 10 minutes: 4; 10–20: 11; 20–30: 15; 30–40: 7; 40–60: 3. Estimate the mean and the median.
Midpoints: 5, 15, 25, 35 and 50 (the last class is twice as wide, so its midpoint is 50).
Mean: , so minutes.
Median class: . Cumulative frequencies are 4, 15, 30, … — the 20th value lies in the 20–30 class, with customers before it.
Interpolate: median minutes.
Spread: , so minutes.
Estimated mean ≈ 23.9 minutes, median ≈ 23.3 minutes, SD ≈ 11.6 minutes — all approximations.
How big is the error? The (synthetic) commute dataset has the exact values, so we can check. Grouped into 20-minute classes (0–20, 20–40, …, 140–160), the 240 commutes give an estimated mean of 37.8 minutes, against an exact mean of 37.3; an estimated median of 33.7 minutes against an exact 31.5; and an estimated SD of 24.7 against 23.8. Close — but not the same.
Quick check
From a grouped table of 200 employees' ages, which of these can be found exactly?
Exercises
The lesson is complete when every exercise is answered correctly. Hints are free; viewing a worked solution before solving means the exercise won't count towards mastery.
0 of 7 exercises correct (not saved — sign in to keep your progress)
Exercise 1 · Guided, difficulty 1 of 3
Estimate a mean from a grouped table
A health screening recorded the ages of its participants:
| Age (years) | Frequency |
|---|---|
| 20 to under 30 | 8 |
| 30 to under 40 | 11 |
| 40 to under 50 | 14 |
| 50 to under 60 | 14 |
| 60 to under 70 | 9 |
| 70 to under 80 | 3 |
| Total | 59 |
Estimate the mean age, to 2 decimal places.
Exercise 2 · Practice, difficulty 2 of 3
Estimate a standard deviation
An IT service desk grouped the time to resolve 50 tickets:
| Resolution time (hours) | Frequency |
|---|---|
| 0 to under 4 | 6 |
| 4 to under 8 | 7 |
| 8 to under 12 | 12 |
| 12 to under 16 | 13 |
| 16 to under 20 | 9 |
| 20 to under 24 | 3 |
| Total | 50 |
Estimate the sample standard deviation of the resolution time, to 2 decimal places.
Exercise 3 · Practice, difficulty 2 of 3
Grouped median
A courier company grouped the distances (km) of its same-day deliveries in one district:
| Distance (km) | Frequency |
|---|---|
| 0 to under 2 | 6 |
| 2 to under 4 | 14 |
| 4 to under 6 | 23 |
| 6 to under 8 | 17 |
| 8 to under 10 | 17 |
| 10 to under 12 | 3 |
| Total | 80 |
Estimate the median distance by interpolation, to 2 decimal places.
Exercise 4 · Application, difficulty 2 of 3
How good is the grouped estimate?
Group commute_min from the commute dataset into the classes 0 to under 20, 20 to under 40, …, 140 to under 160 minutes. Estimate the mean from the grouped table, then calculate the exact mean from the raw values. Give both to 2 decimal places.
Data: commute · Open in the lab to explore and calculate.
Exercise 5 · Practice, difficulty 1 of 3
Exact or estimated?
A grouped table gives the number of households in each monthly income band (with closed bands only). Sort each quantity by what the table allows.
Exercise 6 · Interpretation, difficulty 2 of 3
An open-ended top class
An income table ends with the band “50 000 SAR or more”, which contains 4% of households. An analyst needs a typical income. What is the best approach?
Exercise 7 · Practice, difficulty 1 of 3
Steps for a grouped median
Put the steps for estimating a median from a grouped frequency table in order.
What you can now do
- Estimate the mean and standard deviation from a grouped table using class midpoints
- Estimate the median by interpolating within the median class
- State which results are exact, estimated or impossible from grouped data
- Explain why grouped estimates can be biased for skewed data and open-ended classes