Quartiles and cumulative frequency in IGCSE Maths
9 minute read · Updated 2026-11-05
Median, quartiles and the interquartile range
Put the data in order first. The median is the middle value. The lower quartile (Q1) is the median of the lower half, and the upper quartile (Q3) is the median of the upper half. The interquartile range (IQR) is Q3 − Q1, and it tells you how spread out the middle half of the data is. The range is the highest value minus the lowest.
Take the 11 values 3, 5, 6, 8, 9, 12, 14, 15, 17, 20, 24. The median is the 6th value, 12. The lower half is 3, 5, 6, 8, 9, whose median is 6, so Q1 = 6. The upper half is 14, 15, 17, 20, 24, whose median is 17, so Q3 = 17. The IQR is 17 − 6 = 11 and the range is 24 − 3 = 21.
With an even number of values, the median is the mean of the two middle values, and the halves split evenly.
Reading from a cumulative frequency table
Cumulative frequency is a running total. Here are the masses of 60 children, with the running total in the last column.
Mass m (kg) and frequency: 40 < m ≤ 50 has 6; 50 < m ≤ 60 has 14; 60 < m ≤ 70 has 22; 70 < m ≤ 80 has 12; 80 < m ≤ 90 has 6. The running totals are 6, 20, 42, 54 and 60.
For n = 60, the median is at the 30th value, Q1 at the 15th and Q3 at the 45th. (On a cumulative frequency graph, you read across from these heights to the curve and then down to the axis.) The 30th value lies in the class 60 < m ≤ 70, because the total reaches 20 at the end of the previous class and 42 at the end of this one. Estimating by proportion inside the class, the median is about 60 + (30 − 20)/22 × 10 = 64.5 kg.
In the same way, Q1 is in the class 50 < m ≤ 60: 50 + (15 − 6)/14 × 10 ≈ 56.4 kg. Q3 is in the class 70 < m ≤ 80: 70 + (45 − 42)/12 × 10 = 72.5 kg. So the IQR is about 72.5 − 56.4 = 16.1 kg. These are estimates, because the data is grouped.
Drawing the cumulative frequency graph
Plot each running total against the upper end of its class. For the masses above, the points are (50, 6), (60, 20), (70, 42), (80, 54) and (90, 60), and the graph starts at (40, 0). Join the points with a smooth curve, not with ruled lines between each pair. To find a value, go across from the height (30 for the median, 15 for Q1, 45 for Q3), meet the curve, and read down to the mass axis. Percentiles work the same way: the 90th percentile of 60 values is read at a height of 0.9 × 60 = 54.
Comparing two sets of data
Examiners nearly always ask for two comments, and each comment needs a number. Compare an average (the median) and a spread (the IQR or the range). For example: Class A has a median of 62 and Class B has 55, so Class A did better on average. Class A has an IQR of 10 and Class B has 18, so Class A's marks were more consistent.
Try these questions
Work each one on paper first, then open the answer to check your working.
1. Find the median, lower quartile, upper quartile and IQR of 2, 4, 4, 7, 9, 10, 13, 15.
Show the answer
Median = (7 + 9)/2 = 8. Lower half 2, 4, 4, 7 gives Q1 = (4 + 4)/2 = 4. Upper half 9, 10, 13, 15 gives Q3 = (10 + 13)/2 = 11.5. IQR = 11.5 − 4 = 7.5.
2. For 60 values, at what height on the cumulative frequency axis do you read the 90th percentile?
Show the answer
0.9 × 60 = 54, so read across from 54 to the curve and down to the axis.
3. A cumulative frequency graph is drawn for 120 values. At which cumulative frequencies do you read off the median, Q1 and Q3?
Show the answer
Median at 60, Q1 at 30 and Q3 at 90.
4. Class A has median 62 and IQR 10. Class B has median 55 and IQR 18. Write two comparisons.
Show the answer
Class A has the higher median (62 against 55), so it did better on average. Class A has the smaller IQR (10 against 18), so its results were more consistent.
Want fresh statistics questions, with a mark scheme?
Paperly-NT makes a new IGCSE Maths paper in minutes. You can start free.
Try Paperly-NT free