Websink Prep UKGCSE MathsTextbook contentsMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
GCSE Maths · EdexcelChapter 24 · Statistics
GCSE Maths · Statistics · Higher · Lesson 24.12

GCSE Maths: Quartiles and the interquartile range (Higher)

Part of the GCSE Maths statistics chapter (Higher). Chapter overview · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
24.12

Quartiles and the interquartile range

Edexcel 1MA1: S4
Grade 5-7

The median splits ordered data into two halves. The quartiles go further and split it into four equal parts. The lower quartile (Q1) has a quarter of the data below it. The median is Q2, with half the data below it. The upper quartile (Q3) has three quarters of the data below it. These three numbers cut the ordered data into four groups with the same number of values in each.

From a list. (1) Put the data in order. (2) Find the median. (3) Split the data into a lower half and an upper half (if there is an odd number of values, leave out the median). (4) Q1 is the median of the lower half and Q3 is the median of the upper half. With an odd number of values this gives the same answer as the rule “Q1 is the (n + 1) ÷ 4th value and Q3 is the 3(n + 1) ÷ 4th value”.

The interquartile range (IQR) is Q3 − Q1. It is the spread of the middle half of the data. Unlike the range, it is not affected by extreme values, so it is a more reliable measure of spread when there are outliers. A small IQR means the middle half of the data is close together (consistent).

From a frequency table. Add a running total (cumulative frequency) column. Work out the positions (n + 1) ÷ 4, (n + 1) ÷ 2 and 3(n + 1) ÷ 4. The quartile is the value in that position, found from the running total, exactly as for the median.

51015202530Q1 = 6.5median = 15Q3 = 23
The nine values 3, 5, 8, 12, 15, 18, 21, 25, 30 in order. The median (15) splits them into two halves; Q1 = 6.5 and Q3 = 23 are the medians of the halves.

Key ideas

  • Q1 = lower quartile (a quarter of the data is below it). Q2 = median. Q3 = upper quartile (three quarters below it).
  • For a list: order the data, find the median, then the median of each half (leave out the median when n is odd).
  • IQR = Q3 − Q1: the spread of the middle 50% of the data.
  • The IQR is not affected by outliers, but the range is.
  • For a frequency table, use positions (n + 1) ÷ 4 and 3(n + 1) ÷ 4 with a running total.
Worked example 24.12.1
Find the lower quartile, the upper quartile and the interquartile range of 3, 5, 8, 12, 15, 18, 21, 25, 30.

Key words. The quartiles split ordered data into four equal parts. Q1 is the lower quartile, Q2 is the median and Q3 is the upper quartile. The interquartile range (IQR) is Q3 minus Q1: the spread of the middle half.

Method. Quartiles split ordered data into four equal parts. Q1 is the median of the lower half, Q3 is the median of the upper half, and IQR = Q3 − Q1.

  1. Write the values in order. Quartiles are found from ordered data.
    3, 5, 8, 12, 15, 18, 21, 25, 30
  2. Find the median (Q2). The median splits the data into a lower half and an upper half.
    n = 9, median = 15 (the middle value)
  3. Split into two halves, leaving out the median. With an odd number of values the median belongs to neither half.
    Lower half: 3, 5, 8, 12
    Upper half: 18, 21, 25, 30
  4. Q1 is the median of the lower half. It is the value a quarter of the way through the data.
    Q1 = 6.5
  5. Q3 is the median of the upper half. It is the value three quarters of the way through the data.
    Q3 = 23
  6. Subtract to find the interquartile range. IQR = Q3 − Q1: the spread of the middle half of the data.
    23 − 6.5 = 16.5

Check. About a quarter of the values are below Q1 and a quarter are above Q3. Here 2 are below 6.5 and 2 are above 23. ✓

Watch out. Do not forget to put the data in order first, and leave out the median when you split an odd number of values.

Worked example 24.12.2
Find the median, the lower quartile and the interquartile range of 14, 9, 21, 17, 12, 25, 8, 19, 16, 11.

Key words. The quartiles split ordered data into four equal parts. Q1 is the lower quartile, Q2 is the median and Q3 is the upper quartile. The interquartile range (IQR) is Q3 minus Q1: the spread of the middle half.

Method. Quartiles split ordered data into four equal parts. Q1 is the median of the lower half, Q3 is the median of the upper half, and IQR = Q3 − Q1.

  1. Write the values in order. Quartiles are found from ordered data.
    8, 9, 11, 12, 14, 16, 17, 19, 21, 25
  2. Find the median (Q2). The median splits the data into a lower half and an upper half.
    n = 10, median = 15 (halfway between the two middle values)
  3. Split into two equal halves. With an even number of values, the lower half is the first half of the list.
    Lower half: 8, 9, 11, 12, 14
    Upper half: 16, 17, 19, 21, 25
  4. Q1 is the median of the lower half. It is the value a quarter of the way through the data.
    Q1 = 11
  5. Q3 is the median of the upper half. It is the value three quarters of the way through the data.
    Q3 = 19
  6. Subtract to find the interquartile range. IQR = Q3 − Q1: the spread of the middle half of the data.
    19 − 11 = 8

Check. Half of the 10 values lie between Q1 and Q3. ✓

Watch out. Do not forget to put the data in order first, and leave out the median when you split an odd number of values.

Worked example 24.12.3
The table shows the number of calls received by a call centre in each of 31 hours.
Calls12345
Hours26986
Find the median, the lower quartile, the upper quartile and the interquartile range.

Key words. The quartiles split ordered data into four equal parts. Q1 is the lower quartile, Q2 is the median and Q3 is the upper quartile. The interquartile range (IQR) is Q3 minus Q1: the spread of the middle half.

Method. For a frequency table, find the position of each quartile, then use a running total of the frequencies to find the value in that position.

  1. Add up the frequencies. This is the number of values, n.
    2 + 6 + 9 + 8 + 6 = 31
  2. Work out the positions of the quartiles. Q1 is at (n + 1) ÷ 4, the median at (n + 1) ÷ 2, and Q3 at 3(n + 1) ÷ 4.
    (31 + 1) ÷ 4 = 8
    (31 + 1) ÷ 2 = 16
    3 × (31 + 1) ÷ 4 = 24
  3. Add a running total column. The running total shows which positions each value occupies.
    CallsFrequencyRunning total
    122
    268
    3917
    4825
    5631
  4. Find the value at each position. Look for the first row where the running total reaches the position.
    Position 8: row for 2 (positions 3 to 8), so Q1 = 2
    Position 16: row for 3, so median = 3
    Position 24: row for 4 (positions 18 to 25), so Q3 = 4
  5. Subtract to find the interquartile range. IQR = Q3 − Q1.
    4 − 2 = 2

Check. The running total before the row for Q1 is less than 8, and in the row for Q1 it is at least 8. ✓

Watch out. Use (n + 1) ÷ 4 for a frequency table of single values. Give the value, not the position.

Worked example 24.12.4
The list 12, 14, 15, 17, 18, 20, 22 has a new value, 60, added to it. Show the effect on the range and on the interquartile range.

Key words. The quartiles split ordered data into four equal parts. Q1 is the lower quartile, Q2 is the median and Q3 is the upper quartile. The interquartile range (IQR) is Q3 minus Q1: the spread of the middle half.

Method. Work out the range and IQR before and after adding the new value, then compare the changes.

  1. Before: range. Biggest minus smallest.
    22 − 12 = 10
  2. Before: IQR. The 7 values give Q1 = 14 and Q3 = 20.
    20 − 14 = 6
  3. After: range. The biggest value is now 60.
    60 − 12 = 48
  4. After: IQR. The 8 values give lower half 12, 14, 15, 17 (Q1 = 14.5) and upper half 18, 20, 22, 60 (Q3 = 21).
    21 − 14.5 = 6.5
  5. Compare. The range jumped from 10 to 48. The IQR changed from 6 to 6.5.
    The range is badly affected by the outlier. The IQR is hardly affected.

Check. The new value is far above the others, so it is at the very end of the data and only nudges the quartiles. ✓

Watch out. Use the IQR instead of the range when the data has extreme values.

Watch out

Put the data in order first. And with an odd number of values, leave out the median when you split the data into two halves.

Exercise 24L  Quartiles and the interquartile range

Non-calculator
1
FWork out the lower quartile, upper quartile and interquartile range of each set of numbers.
(a)2, 4, 7, 9, 12, 15, 20
(b)5, 8, 3, 12, 15, 7, 10, 20, 17
(c)18, 22, 15, 30, 25, 28, 12, 20, 24, 16, 26
(d)1.5, 2.1, 0.8, 3.2, 2.7, 1.9, 2.4
2
FWork out the median, lower quartile and interquartile range of each set of numbers (there are an even number of values).
(a)4, 7, 9, 12, 15, 18
(b)31, 25, 28, 40, 35, 22, 38, 30
3
FWork out the lower quartile, upper quartile and interquartile range from each frequency table.
(a)
Value12345
Frequency26986
(b)
Value10203040
Frequency4793
4
PSThe ages of 11 people on a bus are 23, 31, 19, 42, 35, 27, 38, 29, 22, 45, 33. Find the interquartile range of the ages.
5
RHannah found the interquartile range of 9, 3, 12, 6, 15, 4, 7 by working with the numbers in the order given. She said Q1 = 3 and Q3 = 15. Explain her mistake and work out the correct interquartile range.
6
FThe median of a set of data is 14, the lower quartile is 9 and the interquartile range is 12. Work out the upper quartile.
7
PSIn a data set of 80 values, how many values lie between the lower quartile and the upper quartile? Explain.
8
PSThe list 12, 14, 15, 17, 18, 20, 22 has the new value 60 added. Work out each of these for the new list of 8 values: (a) the range, (b) the interquartile range.
(a)Range
(b)Interquartile range
9
RZara says: “The interquartile range is the better measure of spread when there are outliers.” Explain why she is right.
10
RThe list 2, 5, 7, 10, 13, 16, 20 has median 10. A new value, 10, is added. Show that the median does not change but the interquartile range gets smaller.
11
PSCompare the ages of two clubs using the median and the interquartile range.
Club A: 12, 18, 20, 22, 25, 27, 30
Club B: 15, 16, 18, 19, 21, 22, 24
12
RA set of seven whole numbers has median 8, lower quartile 5 and upper quartile 12. The smallest number is 2 and the largest is 20. Write down the interquartile range and the range, and give one possible list of the seven numbers.

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings