Median Quartiles and IQR
The median and the interquartile range (IQR) measure different things about a data set. The median is the single middle value when the data is placed in order, while the IQR measures how spread out the middle 50% of the data is, calculated as the upper quartile minus the lower quartile. Unlike the range, the IQR is not distorted by extreme outliers.
Method
- Put all the data values in order from smallest to largest.
- Find the median: for n values it is at position (n+1)/2; if this falls between two values, take their mean.
- Find the lower quartile (Q1): the median of the lower half of the data, the values below the overall median.
- Find the upper quartile (Q3): the median of the upper half of the data, the values above the overall median.
- Calculate the interquartile range: IQR = Q3 - Q1.
- Use the IQR to compare the spread of two data sets, since it ignores outliers that would distort the range.
Common mistakes
MistakeFor an odd number of values, including the overall median itself inside the lower or upper half before finding Q1 or Q3, instead of splitting the data either side of it.
InsteadLeave the median out of both halves: for 3, 5, 6, 8, 10, 12, 14, 16, 18 (median 10), the lower half is 3, 5, 6, 8 and Q1 is the mean of 5 and 6, which is 5.5, not 6, the value you get by wrongly including 10 in that half.
MistakeWhen the median position (n+1)/2 comes out as a half value such as 4.5, reading off only one of the two middle values instead of averaging both of them.
InsteadA position like 4.5 means the median is the mean of the 4th and 5th values, not one of them alone: for 4, 7, 9, 11, 13, 15, 17, 20, positions 4 and 5 are 11 and 13, so the median is (11+13)/2 = 12, not 11 or 13.
MistakeFinding Q1 using a different quartile method from another textbook, such as the (n+1)/4-th value with interpolation, instead of the method this course uses of taking the median of the lower half.
InsteadUse the median-of-the-halves method throughout: for 2, 5, 9, 12, 16, 19, 23, 28 the lower half is 2, 5, 9, 12 and Q1 is the mean of 5 and 9, which is 7, not the 6 that a different, interpolation-based quartile method would give for the same data.
Worked examples
Example 1
Find the median, quartiles and interquartile range of this ordered set of 11 test scores: 12, 15, 18, 19, 21, 23, 25, 27, 29, 31, 34.
- The data is already in order and there are n = 11 values.
- The median is the (11+1)/2 = 6th value = 23.
- The lower half is 12, 15, 18, 19, 21 (5 values); its median, the 3rd value, is Q1 = 18.
- The upper half is 25, 27, 29, 31, 34 (5 values); its median, the 3rd value, is Q3 = 29.
- IQR = Q3 - Q1 = 29 - 18 = 11.
Example 2
The number of text messages sent in a day by 17 students, in order, is: 8, 11, 13, 14, 16, 18, 19, 21, 23, 25, 27, 29, 31, 34, 37, 40, 45. (a) Find the median and the interquartile range of this data. (b) One student sent 45 messages, noticeably more than everyone else. Explain why the interquartile range is a more suitable measure of spread here than the range.
- n = 17 (odd), so the median is the (17+1)/2 = 9th value = 23 messages.
- The lower half, positions 1 to 8, is 8, 11, 13, 14, 16, 18, 19, 21; Q1 is the mean of the 4th and 5th of these, (14+16)/2 = 15.
- The upper half, positions 10 to 17, is 25, 27, 29, 31, 34, 37, 40, 45; Q3 is the mean of the 4th and 5th of these, (31+34)/2 = 32.5.
- IQR = Q3 - Q1 = 32.5 - 15 = 17.5 messages.
- The range is 45 - 8 = 37, more than double the IQR, because it uses the unusually high value of 45; the IQR only uses the middle 50% of the data, so it is not affected by that one high value.
- Final answer: median = 23 messages, IQR = 17.5 messages, and the IQR is the more suitable measure of spread because it is not distorted by the one student who sent far more messages than the rest.
Example 3
A fictional set of seven lap times, in seconds, is 3, 5, 7, 9, 11, 13, 15. The time of 3 seconds is removed because it was entered in error. Find the new interquartile range.
- After removing 3, the remaining ordered data is 5, 7, 9, 11, 13, 15. Recount the values: there are now 6.
- Split the even-sized set into two halves: 5, 7, 9 and 11, 13, 15. The median of the lower half is Q1 = 7, and the median of the upper half is Q3 = 13.
- Calculate the new IQR using the recomputed quartiles: IQR = Q3 - Q1 = 13 - 7 = 6 seconds.
- The removed value is not subtracted from the old IQR. Removing it changed the quartile positions, so the quartiles had to be found again. Final answer: the new interquartile range is 6 seconds.
Practice questions
Q1[1 mark]Find the median of: 4, 7, 9, 12, 15.Show answer
Answer: 9
Q2[1 mark]Find the median of: 3, 5, 8, 10.Show answer
Answer: 6.5 (mean of the two middle values, 5 and 8)
Q3[2 marks]For the ordered data 2, 4, 5, 7, 8, 9, 11, 13, 14, find the lower quartile (Q1) and upper quartile (Q3).Show answer
Answer: Q1 = 4.5, Q3 = 12
Q4[1 mark]For the ordered data 6, 9, 11, 14, 16, 18, 20, 23, 25, 28, find the interquartile range.Show answer
Answer: IQR = 12 (Q1 = 11, Q3 = 23)
Q5[2 marks]A data set has Q1 = 22 and Q3 = 35. State the interquartile range and explain what it measures.Show answer
Answer: IQR = 13; it measures the spread of the middle 50% of the data, ignoring outliers.
Q6[2 marks]Two classes have the same median test score. Class A has IQR = 6 and Class B has IQR = 15. Which class's scores are more consistent, and why?Show answer
Answer: Class A; a smaller IQR means the middle 50% of its scores are more closely clustered around the median.
Exam-style questions
Written in the style of a GCSE Statistics exam paper, with a full mark scheme.
Exam tips
- Write out the lower half and upper half of the data as separate lists before finding Q1 and Q3, so the split is clear even if the final IQR is wrong.
- For an odd number of values, state clearly that the overall median is left out of both halves, so it is not counted twice by accident.
- An 'explain' or 'comment on' question about the IQR wants the number linked to context, for example 'an IQR of 4 kg means the middle 50% of the sample's weights are closely clustered around the median', not a repeated definition.
Q1[2 marks]A data set of 8 values has lower quartile 12 and upper quartile 27. Calculate the interquartile range and state what a large IQR tells you about the spread of the data.Show mark scheme
Tick each line you got.
Nothing ticked yet - 2 available
Q2[4 marks]The ordered ages, in years, of 13 people at a club are: 14, 16, 17, 19, 20, 22, 24, 25, 27, 29, 31, 33, 36. Find the median and the interquartile range.Show mark scheme
Tick each line you got.
Nothing ticked yet - 4 available
Q3[5 marks]The ordered heights, in cm, of 15 plants are: 20, 22, 23, 25, 26, 28, 29, 30, 32, 34, 35, 37, 39, 41, 44. (a) Find the median height. (b) Find the interquartile range. (c) A gardener claims 'more than half the plants are taller than 30 cm'. Use your median to comment on this claim.Show mark scheme
Tick each line you got.
Nothing ticked yet - 5 available
See real GCSE Statistics past-paper questions, with official mark schemes
This topic in real past papers
We have tagged some boards' past papers question by question (not every board or year yet). This topic comes up in:
- AQA GCSE Statistics past papers: 5 questions across 5 papers, latest tagged June 2023
- Edexcel GCSE Statistics past papers: 1 question across 1 paper, latest tagged November 2021
Free printable worksheet
Want more practice on paper? Download the Median Quartiles and IQR worksheet pack - 36 pages of exam-style questions with a full mark scheme. Free to download, no card or account. Print it for personal and classroom use.
This topic is chapter 8 of GCSE Statistics Foundation Essentials 2 and chapter 10 of GCSE Statistics Higher Essentials 2, the whole course as one free printable PDF. Its worksheet is also chapter 8 of GCSE Statistics Foundation Topic Workbook 4 and chapter 2 of GCSE Statistics Higher Topic Workbook 6, free printable practice books.
Other versions of this worksheet: