When there are many different values (marks out of 100, ages, weights), a table with one column per value would be enormous. So we group the values into classes such as 1–10, 11–20, 21–30, and count how many fall in each.
The words you need
For the class 21–30:
| Word | Meaning | For 21–30 |
|---|---|---|
| class limits | the numbers written | 21 and 30 |
| class boundaries | halfway to the next class | 20.5 and 30.5 |
| class width (size) | upper boundary − lower boundary | |
| class mark (mid-point) | the middle of the class |
The mean of grouped data
We don’t know the exact values inside a class, so we let the class mark stand for every value in it. Then it’s the same as a frequency table:
The answer is an estimate, and that’s fine: it’s what the question expects.
| class | f | class mark x | f × x |
|---|---|---|---|
| 1 – 10 | 3 | ||
| 11 – 20 | 7 | ||
| 21 – 30 | 12 | ||
| 31 – 40 | 10 | ||
| 41 – 50 | 6 | ||
| 51 – 60 | 2 | ||
| total | 40 |
Fill in the class marks and for each row. A cell turns green when it’s right. Then try the assumed mean method on the same table.
The assumed mean method
Pick a class mark near the middle, call it (the assumed mean), and work with instead of . The numbers are smaller, many ‘s are negative and cancel, and
It always gives the same answer as . Use it when the question asks for it, or when the class marks are large.
Worked example · WAEC 2023
The table shows the frequency distribution of the ages of fifty members of a family.
| Ages (years) | 1–5 | 6–10 | 11–15 | 16–20 | 21–25 | 26–30 |
|---|---|---|---|---|---|---|
| Frequency | 7 | 12 | 4 | 6 | 11 | 10 |
Calculate, correct to two decimal places, the:
mean;
Class marks
, then add the class width 5 each time: .
Think first. What is the class mark of 1–5? Of 6–10?
Choose A and find d
.
Think first. Take . What are the values of ?
Multiply by f and add
Ages 1–5 7 3 −15 −105 6–10 12 8 −10 −120 11–15 4 13 −5 −20 16–20 6 18 0 0 21–25 11 23 5 55 26–30 10 28 10 100 The mean
Directly: and , the same.
The median and mode of grouped data
Find the class first, then estimate inside it.
Median. With values, the median is the th. Keep a running total of the frequencies to find the class it’s in, then
where is the lower boundary of the median class, the running total before it, its frequency and the class width. (The cumulative frequency curve in the next topic does the same job by drawing.)
Mode. The modal class has the highest frequency. With = (its frequency − the one before) and = (its frequency − the one after):
This is exactly what the crossed lines on a histogram measure; you’ll see them in the charts lesson.
Worked example · NECO 2024
The table shows the scores of candidates.
| Marks (%) | 1–10 | 11–20 | 21–30 | 31–40 | 41–50 | 51–60 |
|---|---|---|---|---|---|---|
| Frequency | 26 | 36 | 38 | 30 | 15 | 5 |
Calculate, correct to one decimal place, the (i) mean; (ii) median; (iii) modal score.
The mean
, adding the frequencies.
, dividing by .
Think first. Class marks are 5.5, 15.5, …. What are and ?
The median class
Running totals: . The 75th is after the 62nd, so it’s in 21–30, with , , , .
Think first. The median is the 75th score. Which class is it in?
The median
The mode
and :
Think first. The modal class is 21–30. Find and .
Your turn
WAEC 2012 · Paper 2 · Q10 (a)
| Marks | 60–64 | 65–69 | 70–74 | 75–79 | 80–84 | 85–89 | 90–94 | 95–99 |
|---|---|---|---|---|---|---|---|---|
| Frequency | 2 | 3 | 6 | 11 | 8 | 7 | 2 | 1 |
The table shows the distribution of marks scored by students in an examination. Calculate, correct to 2 decimal places, the:
- (a)
mean;
Worked solution (try it first)
(a)
- Mean.
More past questions like this
- WAEC 2016 · Paper 2 · Q9The weight (in kg) of 50 contestants at a competition is as follows: 65 66 67 66 64 66 65 63 65 68 64 62 66 64 67 65 64 66 …
- WAEC 2019 · Paper 2 · Q7The data show the marks obtained by students in a Biology test. 50 56 25 56 68 73 66 64 56 48 20 39 9 50 46 54 54 40 50 96 …
- NECO 2023 · Paper 1 · Q54Find the mean of the frequency distribution, correct to one decimal place.
- NECO 2022 · Paper 1 · Q56Find the mode of the distribution below, correct to one decimal place.
- JAMB 1984 · UME · Q48The diameters in centimetres of 20 copper spheres are distributed as shown. What is the mean diameter?
- JAMB 1993 · UME · Q45Estimate the mode of the frequency distribution below.
- JAMB 1998 · UME · Q43Estimate the mode of the frequency distribution below.
- JAMB 2011 · UTME · Q45| Class interval | 0–2 | 3–5 | 6–8 | 9–11 |
- WAEC 2020 · Paper 2 · Q6Using an assumed mean of , calculate the mean of and .
- WAEC 2012 · Paper 2 · Q12The ages (in years) of men selected from a community are as follows: 44 28 58 50 93 35 34 52 57 61 40 63 90 67 64 56 51 82 …
- WAEC 2009 · Paper 2 · Q8The marks scored by 50 students in a Geography examination are as follows: