Emzini weCodeUmhlahlandlelaMathematics 16.7 · Statistics and Probability NoticesAll books

Chapter 16/16.7Accelerateabout 3 min

Quartiles and box plots

Try this first

Two classes have the same median mark. How might the two sets of marks still be very different?

The median splits ordered data into two halves. The quartiles split it into quarters. The lower quartile Q1 is the median of the lower half and the upper quartile Q3 is the median of the upper half. (With an odd number of values we leave the median out of both halves.)

Definition

interquartile range The interquartile range is Q3 − Q1, the spread of the middle half of the data. Unlike the range, it is not affected by extreme values.

Worked example 16.5

Eleven marks in a test, in order: 34, 41, 45, 52, 55, 58, 62, 66, 70, 78, 91. Find the median, quartiles and interquartile range, and draw a box plot.

The median is the 6th value: 58.
Lower half 34, 41, 45, 52, 55:
Q1 = 45
Upper half 62, 66, 70, 78, 91:
Q3 = 70
Interquartile range = 70 − 45 = 25.
Range = 91 − 34 = 57.
A box plot draws a box from Q1 to Q3 with a line at the median, and whiskers out to the smallest and largest values.

Now try one yourself

Box plots of two classes' marksA box plot is drawn from five values: smallest, quartiles, median and largest.0102030405060708090100mark in %smallest valuelargestvaluelower quartile Q1medianupper quartile Q3Class AClass B11 marksClass B: illustrative data
Figure 16.5 Class A is from Worked example 16.5. Class B has a similar median but a much wider spread.

The second class in the figure has a slightly higher median but a much wider box, so its marks are far more spread out. Box plots make such comparisons quick.

Check your understanding 16.7

  1. Find the median, quartiles and interquartile range of 3, 5, 6, 8, 9, 12, 15.
    Show answerHide answer
    Median 8, Q1 = 5, Q3 = 12, interquartile range 7.
  2. In the figure, which class has the larger interquartile range? What does that tell you?
    Show answerHide answer
    Class B. Its marks are much more spread out: the middle half of the class covers a wider range of marks.