Cumulative frequency diagrams
How to build a cumulative frequency table from grouped data, draw the cumulative frequency curve, and use it to estimate the median, quartiles, interquartile range and percentiles, and to answer "how many" questions. Extended content only.
What the syllabus says
E9.6 (Extended)
- 1 Draw and interpret cumulative frequency tables and diagrams.
- 2 Estimate and interpret the median, percentiles, quartiles and interquartile range from cumulative frequency diagrams.
Notes and examples
- Plotted points on a cumulative frequency diagram should be clearly marked, for example as small crosses (), and be joined with a smooth curve.
Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.
What cumulative frequency means Extended
The cumulative frequency of a value is the number of data items that are less than or equal to that value. It is a running total of the frequencies.
Grouped continuous data, such as times or masses, is usually given in classes like . Once the data is grouped we no longer know the exact values, only how many fall in each class. What we do know for certain is how many values are at most 10, at most 20, at most 30, and so on: each of those is the total of the frequencies up to and including that class.
That is why a cumulative frequency is always attached to the upper bound of a class. The cumulative frequency for counts every value in the classes and , and only when we reach the top of the second class can we be sure every one of those values has been counted.
A cumulative frequency diagram turns these running totals into a curve. From the curve you can estimate how many values lie below any value you choose, and, working the other way, which value has a given number of data items below it. That second idea is what gives us the median, the quartiles and the percentiles.
Building a cumulative frequency table Extended
To turn a grouped frequency table into a cumulative frequency table:
- Write each class as "less than or equal to its upper bound": , , and so on.
- The first cumulative frequency is the first frequency.
- Each later cumulative frequency is the one before plus the frequency of the new class.
- Check: the last cumulative frequency must equal the total number of data items. If it does not, an addition has gone wrong.
Cumulative frequencies can never go down. Each one is at least as big as the one before, because you are only ever adding more data. A table whose running totals fall has a mistake in it.
Worked example 1 Extended
The times, minutes, that 60 commuters took to travel to work are shown in the table. Complete a cumulative frequency table.
| Time ( minutes) | Frequency |
|---|---|
| 4 | |
| 11 | |
| 19 | |
| 15 | |
| 8 | |
| 3 |
The upper bounds are 10, 20, 30, 40, 50 and 60, so the table has rows , , up to .
: .
: .
: .
: .
: .
: . This is the total number of commuters, so the running totals check out.
Answer: 4, 15, 34, 49, 57, 60
Check yourself Extended
The masses of 50 bags of flour are grouped as follows: : 7 bags, : 18 bags, : 16 bags, : 9 bags. Find the cumulative frequency for .
Answer it in the portal, where your answer is checked as you type →
Drawing the cumulative frequency curve Extended
Put the variable (time, mass, length) on the horizontal axis and cumulative frequency on the vertical axis, which goes from 0 up to the total.
Plot each cumulative frequency at the upper bound of its class: for the commuters, , , and so on. Not at the midpoint, and not at the lower bound. The reason is the one above: only at the top of the class do we know that all of those values have been counted.
Also plot the starting point: at the lower bound of the first class the cumulative frequency is 0, because no commuter took 0 minutes or less. So the curve starts at .
The syllabus asks for the plotted points to be clearly marked, for example as small crosses (), and joined with a smooth curve. Draw it freehand through every cross in one smooth sweep, not with a ruler from point to point. A smooth curve reflects the assumption that the values are spread out evenly within each class, rather than bunched up at the class boundaries.
Most cumulative frequency curves are a stretched S shape: shallow at first, steep in the middle where most of the data is, then levelling off at the total. A steep section means a lot of data in a narrow range of values.
The cumulative frequency curve for the 60 commuters. Each cross is at the upper bound of a class, the curve starts at , and the crosses are joined with a smooth curve that levels off at 60.
Median, quartiles and percentiles from the curve Extended
If the data items were put in order, the median would be the value halfway along, the lower quartile a quarter of the way along, and the upper quartile three quarters of the way along. On a cumulative frequency curve, "a quarter of the way along" means "where the cumulative frequency is a quarter of the total". So for data items:
- median: read at cumulative frequency ;
- lower quartile (LQ): read at ;
- upper quartile (UQ): read at ;
- the th percentile: read at of . The 90th percentile, for example, is read at : 90% of the data is at or below it.
The median is the 50th percentile, the lower quartile the 25th and the upper quartile the 75th.
To read a value: find the cumulative frequency on the vertical axis, go across to the curve, then down to the horizontal axis and read the value there. Draw these lines on the graph in the exam. They show the examiner your method, and a method mark can be awarded even if the reading is slightly out.
With a small set of ungrouped data you may have met the median as the th value. On a cumulative frequency curve the data is grouped, every reading is an estimate, and the curve is continuous, so use , and . These are what the mark schemes expect.
All of these are estimates, for two reasons: the original values were grouped, so we do not know them exactly, and the curve between the plotted points is drawn by eye.
Worked example 2 Extended
Use the cumulative frequency curve for the 60 commuters to estimate (a) the median time, (b) the interquartile range, (c) the 90th percentile.
(a) . Read across from 30 on the cumulative frequency axis to the curve, then down: the median is about 27.8 minutes.
(b) Lower quartile: . Across from 15 and down: about 20 minutes.
Upper quartile: . Across from 45 and down: about 36.8 minutes.
Interquartile range minutes.
(c) of 60 is . Across from 54 and down: about 45.3 minutes. So 90% of the commuters took about 45.3 minutes or less.
Answer: (a) about 27.8 minutes (b) about 16.8 minutes (c) about 45.3 minutes
Check yourself Extended
A cumulative frequency curve shows the heights of 240 trees. At what cumulative frequency should you read the upper quartile?
Answer it in the portal, where your answer is checked as you type →
The interquartile range Extended
The interquartile range (IQR) is the width of the middle half of the data. A quarter of the data lies below the lower quartile and a quarter above the upper quartile, so half lies between them.
The IQR measures spread, or consistency. A small IQR means the middle half of the data is tightly bunched; a large IQR means it is spread out. Unlike the range, it is not affected by a few extreme values, because it ignores the bottom quarter and the top quarter of the data entirely.
The IQR is a difference of two readings, so it is always a positive number, in the same units as the data. Do not give the two quartiles as your answer: subtract them.
Comparing two distributions Extended
To compare two sets of data from their cumulative frequency curves, make two comparisons:
- An average: compare the medians. The higher median means the values are generally higher.
- A spread: compare the interquartile ranges. The smaller IQR means the values are more consistent.
Always say what the comparison means in the context, not just which number is bigger. "The median time for Route A is 4 minutes less than for Route B, so journeys on Route A are generally quicker" earns the mark; "Route A has a lower median" alone may not.
On a single graph, the curve that is further to the right has the higher values, and the steeper curve has the data more bunched together.
Worked example 3 Extended
For the 60 commuters, the median was about 27.8 minutes and the IQR about 16.8 minutes. For 60 commuters who cycle, the median is 22 minutes and the IQR is 9 minutes. Make two comparisons.
Average: the cyclists' median (22 minutes) is lower than 27.8 minutes, so the cyclists generally took less time to get to work.
Spread: the cyclists' IQR (9 minutes) is smaller than 16.8 minutes, so the cyclists' times were more consistent.
Answer: The cyclists were generally quicker (lower median) and their times were more consistent (smaller IQR).
Reading the other way: how many values? Extended
A cumulative frequency curve also answers questions such as "how many commuters took 45 minutes or less?". This time start on the horizontal axis: go up from 45 to the curve, then across to the cumulative frequency axis and read the number.
Three kinds of question come from that one reading:
- at most a value: the reading itself;
- more than a value: the total minus the reading;
- between two values: read at both and subtract the smaller reading from the larger.
A question may ask for a percentage instead: divide the number by the total and multiply by 100.
Questions of this type are often dressed up as a claim to test, such as "at least 80% of patients are seen within 25 minutes". Find the relevant number or percentage from the curve, compare it with the claim, and say clearly whether the claim is supported.
Worked example 4 Extended
Use the commuters' curve to estimate how many commuters took more than 45 minutes, and what percentage of the commuters this is.
Go up from 45 on the time axis to the curve, then across: about 54 commuters took 45 minutes or less.
More than 45 minutes: commuters.
As a percentage: .
Answer: about 6 commuters, about 10%
Check yourself Extended
Use the commuters' cumulative frequency table (4, 15, 34, 49, 57, 60 at ) to find how many commuters took more than 30 minutes.
Answer it in the portal, where your answer is checked as you type →
Key points
Cumulative frequency is a running total: the number of values less than or equal to each upper bound. The last one equals the total.
Plot each cumulative frequency at the upper bound of its class, start at (lowest bound, 0), mark points as crosses and join them with a smooth curve.
Median at , lower quartile at , upper quartile at , th percentile at of : across to the curve, then down.
Interquartile range = upper quartile minus lower quartile: the spread of the middle half of the data.
To find how many: up from the value, across to the cumulative frequency. "More than" means the total minus the reading.
Compare distributions with a median (average) and an IQR (consistency), each explained in context.
Where marks are lost
Plotting at the midpoints or lower bounds of the classes instead of the upper bounds.
Forgetting the starting point at cumulative frequency 0, so the curve begins in mid-air.
Joining the points with straight ruled lines, or drawing a curve that misses the crosses.
Plotting the frequencies instead of the cumulative frequencies, which gives a hump, not a rising curve.
Reading the median at instead of , or reading on the wrong axis.
Giving the two quartiles instead of their difference when the interquartile range is asked for.
Answering a "more than" question with the reading itself instead of the total minus the reading.
Comparing two distributions without saying what the difference means in context.
Related IGCSE Mathematics 0580 lessons
An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.