Home / IGCSE Mathematics 0580 / Cumulative frequency diagrams
Cambridge IGCSE Mathematics 0580 · Statistics

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.

E9.6Extended onlyFree lesson
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 10<t⩽20. 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 t⩽20 counts every value in the classes 0<t⩽10 and 10<t⩽20, 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:

  1. Write each class as "less than or equal to its upper bound": t⩽10, t⩽20, and so on.
  2. The first cumulative frequency is the first frequency.
  3. Each later cumulative frequency is the one before plus the frequency of the new class.
  4. 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, t minutes, that 60 commuters took to travel to work are shown in the table. Complete a cumulative frequency table.

Commuting times of 60 people
Time (t minutes)Frequency
0<t⩽104
10<t⩽2011
20<t⩽3019
30<t⩽4015
40<t⩽508
50<t⩽603
  1. The upper bounds are 10, 20, 30, 40, 50 and 60, so the table has rows t⩽10, t⩽20, up to t⩽60.

  2. t⩽10: 4.

  3. t⩽20: 4+11=15.

  4. t⩽30: 15+19=34.

  5. t⩽40: 34+15=49.

  6. t⩽50: 49+8=57.

  7. t⩽60: 57+3=60. 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: 990<m⩽995: 7 bags, 995<m⩽1000: 18 bags, 1000<m⩽1005: 16 bags, 1005<m⩽1010: 9 bags. Find the cumulative frequency for m⩽1005.

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, (10,4), (20,15), (30,34) 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 (0,0).

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.

Time (t minutes)Cumulative frequency1020304050601020304050600

The cumulative frequency curve for the 60 commuters. Each cross is at the upper bound of a class, the curve starts at (0,0), and the crosses are joined with a smooth curve that levels off at 60.

Median, quartiles and percentiles from the curve Extended

If the n 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 n data items:

  • median: read at cumulative frequency 12n;
  • lower quartile (LQ): read at 14n;
  • upper quartile (UQ): read at 34n;
  • the pth percentile: read at p% of n. The 90th percentile, for example, is read at 0.9n: 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 n+12th value. On a cumulative frequency curve the data is grouped, every reading is an estimate, and the curve is continuous, so use 12n, 14n and 34n. 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.

Time (t minutes)Cumulative frequency1020304050601020304050600
  1. (a) 12×60=30. Read across from 30 on the cumulative frequency axis to the curve, then down: the median is about 27.8 minutes.

  2. (b) Lower quartile: 14×60=15. Across from 15 and down: about 20 minutes.

  3. Upper quartile: 34×60=45. Across from 45 and down: about 36.8 minutes.

  4. Interquartile range =36.8−20=16.8 minutes.

  5. (c) 90% of 60 is 0.9×60=54. 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

interquartile range=upper quartile−lower quartile

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:

  1. An average: compare the medians. The higher median means the values are generally higher.
  2. 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.

  1. Average: the cyclists' median (22 minutes) is lower than 27.8 minutes, so the cyclists generally took less time to get to work.

  2. 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.

Time (t minutes)Cumulative frequency1020304050601020304050600
  1. Go up from 45 on the time axis to the curve, then across: about 54 commuters took 45 minutes or less.

  2. More than 45 minutes: 60−54=6 commuters.

  3. As a percentage: 660×100≈10%.

Answer: about 6 commuters, about 10%

Check yourself Extended

Use the commuters' cumulative frequency table (4, 15, 34, 49, 57, 60 at t⩽10,20,30,40,50,60) 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 12n, lower quartile at 14n, upper quartile at 34n, pth percentile at p% of n: 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 n+12 instead of n2, 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

All 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.