Imagine surveying every person in a town for their height. That is thousands of numbers — far too many to list. So instead you keep a tally in bands: "150–160 cm: 8 people, 160–170 cm: 15 people…". The table is neat and small. But notice what you have thrown away: the exact heights. You know eight people land in the 150–160 band, but not whether they are 151 cm or 159 cm.
So when the data come in groups, you can no longer find the mean exactly. The best you can do is estimate it — and the clever trick is to let each class's midpoint stand in for everyone inside it.
Sometimes data arrive already sorted into classes — ranges of values — rather
than as a list of exact numbers. A survey might record that
This grouped data hides the exact values, so we cannot find the mean precisely. Instead we estimate it: we treat every value in a class as if it sat at the class midpoint, the value halfway between the lower and upper boundary. The midpoint is our best single stand-in for the whole class.
Then the estimated mean is the familiar
Here is a worked example for heights, in centimetres, grouped into four classes:
| Class (cm) | Midpoint |
Frequency |
|
|---|---|---|---|
| 150–160 | 155 | 7 | 1085 |
| 160–170 | 165 | 12 | 1980 |
| 170–180 | 175 | 9 | 1575 |
| 180–190 | 185 | 2 | 370 |
| Total | 30 | 5010 |
The midpoint columns total
It is an estimate because nobody in the
The midpoint of a class is simply the average of its two boundaries:
For the class
The same table can answer two more questions. Here are the times (in minutes) taken by 40 runners to finish a race:
| Time (min) | Frequency |
|---|---|
| 20–25 | 6 |
| 25–30 | 17 |
| 30–35 | 11 |
| 35–40 | 6 |
Modal class: the class with the highest frequency. Here that is
Median class: the class containing the middle value. With
Let's take the runners' table and estimate their mean finishing time from start to finish. First
add the two working columns: the midpoint
| Time (min) | Midpoint |
Frequency |
|
|---|---|---|---|
| 20–25 | 22.5 | 6 | 135 |
| 25–30 | 27.5 | 17 | 467.5 |
| 30–35 | 32.5 | 11 | 357.5 |
| 35–40 | 37.5 | 6 | 225 |
| Total | 40 | 1185 |
Now sum the last column and divide by the total frequency:
So the runners took, on average, roughly
Three traps that catch people out with grouped data:
This is not a classroom-only trick — it is how the world's biggest data sets are handled. A national census almost never publishes exact incomes; it reports bands ("£20,000–£30,000: 4.1 million households") for both privacy and convenience. Ages come in brackets, survey answers come in ranges. So when an economist quotes "the average household income", they have very often done exactly what you just did: taken the midpoint of each band and computed a weighted average.
In fact it is the same weighted-average idea as an ordinary