Statistics

Cumulative frequency graphs and box-and-whisker plots: a complete exam technique guide

By Mr Gan · O-Level E Maths · Updated July 2026 · 9 min read

A cumulative frequency curve is built by plotting the running total of frequencies against the upper boundary of each class interval, then joining the points with a smooth curve. From this curve you read off the median (at 50% of total frequency), lower quartile (25%), and upper quartile (75%) by drawing horizontal lines across and dropping vertical lines down to the x-axis. These same five values — minimum, lower quartile, median, upper quartile, maximum — form a box-and-whisker plot.

Why students lose marks here

This topic isn't conceptually hard, but it's mechanically unforgiving. Every value plotted against the wrong boundary, every reading taken from the wrong axis, and every quartile calculated with the wrong fraction cascades into a wrong final answer — even when the student understood exactly what a median or quartile represents.

The two things that separate full marks from partial marks are precision in constructing the table (upper boundaries, not midpoints) and precision in reading the graph (draw the lines, don't estimate by eye).

Step 1 — building the cumulative frequency table

The single most common error happens here, before any graph is even drawn.

The rule that trips up most students

Cumulative frequency is always plotted against the upper class boundary — never the midpoint, and never the lower boundary. If a class interval is "10 ≤ x < 20", you plot against 20, not 15.

Example — test scores of 60 students

Score (x)FrequencyUpper boundaryCumulative frequency
0 ≤ x < 104104
10 ≤ x < 2092013
20 ≤ x < 30143027
30 ≤ x < 40184045
40 ≤ x < 50115056
50 ≤ x < 6046060
1
The cumulative frequency column is a running total: each value is the previous cumulative total plus the current frequency.
2
The final cumulative frequency must always equal the total number of data values — here, 60. This is a quick self-check.
3
You will plot the points (10, 4), (20, 13), (30, 27), (40, 45), (50, 56), (60, 60) — each an (upper boundary, cumulative frequency) pair.

Step 2 — plotting and drawing the curve

Plot each (upper boundary, cumulative frequency) point, then join them with a single smooth curve — not straight lines, and not a curve that dips or wobbles. The curve should always be non-decreasing, since cumulative frequency can never go down.

Cumulative frequency curve for test scores, with median and quartile construction lines An ogive plotting cumulative frequency against upper class boundary, showing how to read off the lower quartile, median, and upper quartile using horizontal and vertical construction lines Score (upper class boundary) Cumulative frequency 0 10 20 30 40 50 60 0 15 30 45 60 LQ ≈ 24 Median ≈ 32 UQ ≈ 39 Read across from the cumulative frequency axis, then down to the x-axis

Step 3 — reading off the median and quartiles

For a data set of size n, use these positions on the cumulative frequency axis (if you have not yet covered mean, median, and mode from a frequency table, start there first):

Lower quartile (LQ)

n/4 th value

Median

n/2 th value

Upper quartile (UQ)

3n/4 th value

Interquartile range

UQ − LQ

Continuing the example — n = 60

1
Median position: 60/2 = 30. Draw a horizontal line from 30 on the y-axis to the curve, then drop down to the x-axis. Read off: median ≈ 32.
2
Lower quartile position: 60/4 = 15. Draw across from 15, down to the x-axis. Read off: LQ ≈ 24.
3
Upper quartile position: 3 × 60/4 = 45. Draw across from 45, down to the x-axis. Read off: UQ ≈ 39.
4
Interquartile range: IQR = UQ − LQ = 39 − 24 = 15.

Common mistake

Using n instead of n/2, n/4, and 3n/4 — or forgetting to actually draw the horizontal and vertical construction lines on the graph. Examiners expect to see these lines; a numerical answer alone without the lines drawn on the curve can lose marks even if correct, since the method must be shown on the graph itself.

Watch the whole method in about a minute.

Box-and-whisker plots — same five numbers, new format

A box-and-whisker plot displays five values on a single scale: minimum, lower quartile, median, upper quartile, and maximum. It's a compact visual summary of the same data your cumulative frequency curve already gave you.

Box-and-whisker plot showing the five-number summary A box plot on a numbered axis showing minimum, lower quartile, median, upper quartile, and maximum 0 10 20 30 40 50 60 Min = 3 LQ = 24 Max = 58 Med = 32 UQ = 39

Reading a box plot — the parts and what they mean

1
Left whisker — spans from the minimum value to the lower quartile.
2
Box — spans from the lower quartile to the upper quartile. Its width is the interquartile range, and it contains the middle 50% of all data values.
3
Line inside the box — marks the median. Note this is not necessarily in the centre of the box; its position shows whether the data is skewed.
4
Right whisker — spans from the upper quartile to the maximum value.

Comparing two box plots — what examiners ask for

O-Level questions frequently show two box plots side by side (e.g. Class A vs Class B test scores) and ask you to compare them, which is the same skill as comparing two data sets more generally. There are two things to comment on, and both are required for full marks:

1
Compare the medians — state which group has the higher median and what that means in context (e.g. "Class A generally scored higher than Class B").
2
Compare the spread — compare either the interquartile ranges or the overall ranges (max − min). State which group's scores were more consistent (smaller spread = more consistent).

Always comment on both — students often compare only the medians and forget the spread, which usually costs half the marks on a comparison question. A complete answer always addresses average and consistency.


Frequently asked questions

Why do we plot against the upper boundary and not the midpoint?

Cumulative frequency represents "the number of values less than or equal to this point." At the upper boundary of a class, you've accounted for every value in that class, so the cumulative total is only accurate at that boundary — not at the midpoint, which is partway through the class.

Is the cumulative frequency curve always S-shaped?

Typically yes, for data that's roughly normally distributed — this S-shape is called an ogive. It starts flat, rises steeply through the middle where most data is concentrated, then flattens again near the maximum. It should never decrease, since cumulative frequency can only increase or stay the same.

Do I use n/2 or (n+1)/2 for the median position on a cumulative frequency graph?

For a cumulative frequency curve with continuous/grouped data, always use n/2 (not (n+1)/2). The (n+1)/2 formula is used for finding the median directly from a small, ungrouped, listed data set — a different technique. Grouped/graphical cumulative frequency questions in O-Level use n/2, n/4, and 3n/4 throughout.

What's the difference between range and interquartile range?

Range = maximum − minimum, and includes all data including outliers. Interquartile range = upper quartile − lower quartile, and only reflects the spread of the middle 50% of data, making it less affected by extreme values. Examiners often ask which measure is "more appropriate" when outliers are present — the answer is IQR.

— Mr Gan Math Tuition

Still losing marks on statistics questions?

Mr. Gan works with students who want precise, mark-scheme-aligned technique — not just conceptual understanding.

Chat with Mr. Gan