Grouped data, cumulative frequency and box plots

IGCSE Mathematics · Statistics

Estimated mean of grouped data

Once data is grouped, the individual values are gone. Use the midpoint of each class as a stand-in:

$$\text{estimated mean}=\frac{\sum f\times \text{midpoint}}{\sum f}$$

The word estimated is not decoration. The exam asks "why is this only an estimate?" and the answer is: the exact values within each class are unknown, so every value is treated as if it sat at the midpoint.

Modal class

The class with the highest frequency — but only when all classes have the same width. With unequal widths, the modal class is the one with the highest frequency density.

Cumulative frequency

Plot the cumulative total against the upper class boundary — not the midpoint, not the lower boundary. Then read off, for $n$ values:

$$\text{median at }\tfrac{n}{2},\qquad Q_{1}\text{ at }\tfrac{n}{4},\qquad Q_{3}\text{ at }\tfrac{3n}{4}$$$$\text{interquartile range}=Q_{3}-Q_{1}$$

The IQR measures the spread of the middle half of the data, so unlike the range it is not disturbed by one extreme value.

Box-and-whisker plots

A box plot shows five numbers: minimum, $Q_{1}$, median, $Q_{3}$, maximum. Comparing two box plots means comparing a measure of centre and a measure of spread, each in a separate sentence — a comparison of only one of them will not get full marks.

20 40 60 80 Q₁ median Q₃ n = 80 → read at 20, 40 and 60 on the vertical axis Plot at the UPPER BOUNDARY of each class, not the midpoint.
Read across from the vertical axis, then drop down to the horizontal axis. With $n=80$ the three marks are $20$, $40$, $60$ — divide $n$, not $100$.

Worked example: estimated mean and modal class

A table of times (minutes) for $20$ students: $0\lt t\le 10$ has $4$ students; $10\lt t\le 20$ has $7$ students; $20\lt t\le 30$ has $9$ students. (a) Calculate the estimated mean. (b) State the modal class. (c) Explain why part (a) is only an estimate.

Solution

(a) Use the midpoint of each class. The midpoints are $5$, $15$, $25$.

$$\sum f\times\text{midpoint}=4(5)+7(15)+9(25)=20+105+225=350$$$$\text{estimated mean}=\frac{350}{20}=17.5\ \text{minutes}$$

Check: $17.5$ lies within the range $0$–$30$ ✓, and leans to the upper side because the largest class is at the end ✓.

(b) The three classes are equally wide (all $10$ minutes), so the modal class is the class with the greatest frequency:

$$20<t\le 30$$

(c) The table only tells us how many students fall into each class, not the specific value for each student. The calculation in (a) treats all $9$ students in the last class as taking exactly $25$ minutes, whereas in reality their times are spread across the interval from $20$ to $30$ minutes.

So $17.5$ is an estimate, not an exact value. The true value could be higher or lower depending on how the original data is distributed within each class.

Worked example: reading quartiles and comparing two box plots

The cumulative frequency curve of $80$ values gives $Q_{1}=32$, median $=44$ and $Q_{3}=51$. A second group has $Q_{1}=38$, median $=46$, $Q_{3}=57$. (a) Calculate the interquartile range of each group. (b) Compare the two distributions.

Solution

(a)

$$\text{IQR}_{1}=51-32=19,\qquad \text{IQR}_{2}=57-38=19$$

(b) A comparison needs two sentences: one about the center, one about the spread.

Center: the median of group two is $46$, higher than group one ($44$), so overall the values of group two are larger.

Spread: the two interquartile ranges are equal ($19$), so the spread of the middle half of the data is the same in the two groups.

Why you must write both sentences. The Cambridge mark scheme gives one mark for each aspect. An answer that only writes "group two is higher" earns half the marks, even though that sentence is entirely correct. And you must express it in the context of the question — "the median is larger" is a comment about a number, whereas "students in group two generally take longer" is a comment about the data.

One more note: two equal IQRs do not mean the two distributions are the same — they are only the same in the middle half, and the tails can be very different.

Common mistake

Plotting the cumulative frequency point at the midpoint of the class instead of at the upper boundary. In every other part of the chapter, the midpoint is exactly the number to use — the estimated mean uses midpoints, the frequency polygon is plotted at midpoints — so the hand is used to it. But cumulative frequency answers the question "how many values are less than or equal to this threshold", and that threshold is the upper boundary: only by the end of $10$ can we be sure that all $4$ students of the class $0\lt t\le 10$ have been counted. Plotting at the midpoint shifts the whole curve to the left, and every value read off afterwards — median, two quartiles, IQR — is shifted in the same direction, so they stay "consistent" with each other and nothing signals the mistake. How to block it: write the "upper boundary" column as a separate column in the table before plotting.

Key takeaway

Grouped data gives an estimate, and that word must be explainable. The modal class can only be read from frequency when the classes are equally wide. Cumulative frequency is plotted at the upper boundary, and the three marks to read are $\tfrac{n}{4}$, $\tfrac{n}{2}$, $\tfrac{3n}{4}$. Comparing two distributions always needs two sentences: one about the center, one about the spread.

← Averages and spread · All IGCSE Mathematics lessons · Practice IGCSE Mathematics questions (free, instant scoring) · Histograms and scatter diagrams →