Quartiles, box plots and outliers
Find quartiles and the interquartile range from ordered data, construct five-number summaries, identify outliers using fences, and interpret parallel box plots.
Worked examples
Finding quartiles and IQR
Straightforward
Problem
The number of hours of screen time recorded for 7 students, listed in order, are: . Find , , and the IQR.
1
Count the values and locate the median ().
There are 7 values. The median is the middle (4th) value.
2
Identify the lower half (values below ) and find .
Lower half:
is the middle value of the lower half:
is the middle value of the lower half:
3
Identify the upper half (values above ) and find .
Upper half:
is the middle value of the upper half:
is the middle value of the upper half:
4
Calculate the interquartile range.
Answer
, , , IQR
Five-number summary and outlier test
Moderate
Problem
A dataset of 8 values, listed in order, is: . Construct the five-number summary and determine whether 60 is an outlier.
1
Find the median (). With 8 values, it is the average of the 4th and 5th values.
2
Find as the median of the lower half: .
3
Find as the median of the upper half: .
4
State the five-number summary.
5
Calculate the IQR and find the upper fence.
6
Compare the maximum value to the upper fence.
, so the value 60 lies beyond the upper fence. It is an outlier.
Answer
Five-number summary: . The value 60 is an outlier (upper fence ).
Interpreting parallel box plots and the effect of removing an outlier
Challenging
Problem
Two datasets are displayed as parallel box plots with the following five-number summaries.
Dataset A: min , , , , max
Dataset B: min , , , , max
(a) Compare the centre, spread and shape of the two distributions.
(b) Dataset B consists of 6 values with a mean of 62. The value 85 is removed as an outlier. Find the mean of the remaining 5 values.
Dataset A: min , , , , max
Dataset B: min , , , , max
(a) Compare the centre, spread and shape of the two distributions.
(b) Dataset B consists of 6 values with a mean of 62. The value 85 is removed as an outlier. Find the mean of the remaining 5 values.
1
Compare the medians (centre).
for Dataset A ; for Dataset B .
Dataset B has a higher centre — a typical value in Dataset B is about 20 units higher than in Dataset A.
Dataset B has a higher centre — a typical value in Dataset B is about 20 units higher than in Dataset A.
2
Dataset A has a greater IQR, so its middle 50% of values are more spread out.
Compare the IQRs (spread of the middle 50%).
Dataset A has a greater IQR, so its middle 50% of values are more spread out.
3
Assess the shape of Dataset A.
Distance from to :
Distance from to :
The median is closer to , indicating a longer upper section. Dataset A is positively skewed.
Distance from to :
The median is closer to , indicating a longer upper section. Dataset A is positively skewed.
4
Assess the shape of Dataset B.
Distance from to :
Distance from to :
The median is closer to , indicating a longer lower section. Dataset B is negatively skewed.
Distance from to :
The median is closer to , indicating a longer lower section. Dataset B is negatively skewed.
5
Find the total sum for Dataset B before removing the outlier.
6
Removing the outlier of 85 reduces the mean from 62 to 57.4.
Remove the outlier and find the new mean.
Removing the outlier of 85 reduces the mean from 62 to 57.4.
Answer
Dataset B has a higher median; Dataset A has a greater IQR. Dataset A is positively skewed; Dataset B is negatively skewed. After removing 85, the mean of Dataset B is .
Practise
Q1·Straightforward
The data values below are listed in order.
Find the median ().
Find the median ().
Explanation
There are 7 values. The median is the middle (4th) value: .
Q2·Straightforward
The data values below are listed in order.
Find the lower quartile ().
Find the lower quartile ().
Explanation
There are 7 values. The median is the 4th value: . The lower half (values below the median) is . The median of the lower half is the middle value: .
Q3·Straightforward
The data values below are listed in order.
Find the interquartile range (IQR).
Find the interquartile range (IQR).
Explanation
There are 6 values. Split into lower half and upper half . (middle of lower half) and (middle of upper half). .
Q4·Straightforward
The data values below are listed in order.
Find the upper quartile ().
Find the upper quartile ().
Explanation
There are 8 values. Lower half: gives . Upper half: gives .
Q5·Moderate
The data values below are listed in order.
Find the interquartile range (IQR).
Find the interquartile range (IQR).
Explanation
There are 7 values. (4th value). Lower half: gives . Upper half: gives . .
Q6·Moderate
A dataset has lower quartile and upper quartile . Calculate the upper fence for identifying outliers using .
Explanation
. Upper fence . Any value above 44 is an outlier.
Q7·Moderate
A dataset has and . A student claims that the value 42 is an outlier. Is the student correct?
Explanation
. Upper fence . Since , the value 42 is an outlier. The student is correct.
Q8·Moderate
A dataset has lower quartile and upper quartile . Calculate the lower fence for identifying outliers using .
Explanation
. Lower fence . Any value below 5 is an outlier.
Q9·Challenging
Two classes sit a mathematics test. Their results are summarised below.
Class A: , ,
Class B: , ,
Which class has the higher median score?
Class A: , ,
Class B: , ,
Which class has the higher median score?
Explanation
Class A has and Class B has . Since , Class B has the higher median score.
Q10·Challenging
Two datasets are summarised using five-number summaries.
Dataset P: min , , , , max
Dataset Q: min , , , , max
Which dataset has the greater interquartile range?
Dataset P: min , , , , max
Dataset Q: min , , , , max
Which dataset has the greater interquartile range?
Explanation
. . Since , Dataset P has the greater interquartile range, meaning the middle 50% of its values are more spread out.
Q11·Challenging
A box plot has , , . What does the position of the median suggest about the shape of the distribution?
Explanation
Distance from to : . Distance from to : . The median is much closer to than to , indicating the upper part of the box is stretched. This suggests a longer upper tail — a positively skewed distribution.
Q12·Challenging
A dataset of 10 values has a mean of . The value is identified as an outlier and removed. Find the mean of the remaining 9 values.
Explanation
Total sum . After removing : new sum . New mean . Removing the large outlier substantially lowers the mean.