What grouping does to the data
Continuous data — heights, times, masses — is almost always presented in classes written with inequalities, like 150 ≤ h < 160. Grouping makes a big data set readable, but it comes at a price: once a height is filed under 150 ≤ h < 160, nobody knows whether it was 150.2 or 159.8. The individual values are gone.
This page works with the heights of 40 students:
| Height h (cm) | Frequency f |
|---|---|
| 130 ≤ h < 140 | 5 |
| 140 ≤ h < 150 | 12 |
| 150 ≤ h < 160 | 18 |
| 160 ≤ h < 170 | 5 |
| Total | 40 |
Each class stands in for its midpoint
The estimated mean
The method is exactly 12.2’s Σfx ÷ Σf with one extra first step: since the true values are unknown, use each class’s midpoint as the stand-in value x. The midpoint is the mean of the two boundaries.
Example 1Calculate an estimate of the mean height of the 40 students in the table above.
(150 + 160) ÷ 2 = 155 (160 + 170) ÷ 2 = 165
145 × 12 = 1740
155 × 18 = 2790
165 × 5 = 825
Σ(mp × f) = 675 + 1740 + 2790 + 825 = 6030
Grouped-mean calculator
Set where the classes start, their common width and the four frequencies — the midpoint column, totals, estimated mean, modal class and median class all update live.
The modal class and the median class
Modal class
The class with the largest frequency. In the heights table that is 150 ≤ h < 160 (frequency 18). You cannot name a single modal value — the exact heights are gone — so the answer is the whole class.
Class containing the median
Find the median’s position, then count through the running totals exactly as in 12.2. You can say which class holds the median, but not its exact value.
Example 2For the heights table, write down the modal class and find the class containing the median.
Working backwards
Example 3Times are grouped as 0 ≤ t < 10, 10 ≤ t < 20, 20 ≤ t < 30 with frequencies 6, x and 4. An estimate of the mean is 14 minutes. Find x.
Σf = 6 + x + 4 = 10 + x
130 + 15x = 14(10 + x) = 140 + 14x
check: (130 + 150) ÷ 20 = 280 ÷ 20 = 14 ✓
Example 4Two groups of 20 runners each record their 5 km times. Group A: estimated mean 26.5 min, times spread from 18 to 41 min. Group B: estimated mean 26.5 min, times spread from 24 to 30 min. Compare the two groups.
More worked examples
Example 5Waiting times: 0 ≤ t < 5 (f = 4), 5 ≤ t < 15 (f = 10), 15 ≤ t < 30 (f = 6). The classes have different widths. Estimate the mean waiting time.
Σ = 245, Σf = 20
Example 6For the waiting-times data of Example 5, find the class containing the median, and explain why the exact median cannot be found.
Your turn
Practice set
- Write down the midpoints of the classes 20 ≤ m < 30, 30 ≤ m < 40 and 40 ≤ m < 50.
- Masses 0 ≤ m < 10, 10 ≤ m < 20, 20 ≤ m < 30 have frequencies 3, 5, 2. Calculate an estimate of the mean mass.
- For the table in question 2, write down the modal class.
- For the table in question 2, find the class containing the median.
- A student says: “My answer to question 2 is the mean.” What one word is missing, and why does it matter?
- 25, 35 and 45 — each is (lower + upper) ÷ 2.
- Midpoints 5, 15, 25. Σ(mp × f) = 15 + 75 + 50 = 140, Σf = 10 → 140 ÷ 10 = 14 (an estimate).
- Largest frequency is 5 → modal class 10 ≤ m < 20.
- n = 10: median is the mean of the 5th and 6th values. Running totals 3, 8 — both positions fall in 10 ≤ m < 20.
- The word “estimate”. The true values were lost when the data was grouped, so midpoints stand in for them — the answer cannot claim to be exact.
Key points to remember
- Grouping loses the raw values, so every answer is an estimate — and the word earns a mark.
- Midpoint = (lower + upper) ÷ 2; the estimated mean is Σ(midpoint × f) ÷ Σf.
- Write the midpoints into the table first — one midpoint slip wrecks the whole column.
- Answer with the modal class and the class containing the median, each written in full inequality notation — never a single number.
- Unequal class widths change nothing for the mean; they matter when drawing (frequency density, 20.1).
- Comparing two data sets = one sentence about the average + one about the spread, in context.
Where next?
🎥 Take the interactive module
Averages & Spread — the full teaching module for this topic, with real past-paper questions and mark schemes.
✏️ Practise exam questions
Statistics — 25 exam-style questions worth 99 marks, with full answers and the mark scheme.
Progress is saved on this device only and appears on the notes home page.