A box plot's five values split the data into quarters
Box plots, quartiles and the interquartile range are on the Higher tier only. A box plot's five values split ordered data into four sections of about a quarter each.
Box plot
A box plot shows a data set's lowest value, lower quartile, median, upper quartile and highest value.
The box runs between the two quartiles, and the whiskers out to the lowest and highest values.
Quartiles
The lower quartile and upper quartile are the values a quarter and three quarters of the way through the ordered data.
The narrowest section, from 35 to 41 marks, holds as many students as the widest.
Drawing a box plot from five values
Fish lengths have lowest value 12, lower quartile 19, median 23, upper quartile 28 and highest value 37 cm. Draw the box plot on a scale where 10 small squares represent 5 cm.
- One small square is worth 5÷10=0.5 cm.{5 \div 10 = 0.5\ \text{cm.}}5÷10=0.5 cm.
- Mark each value with a vertical line. The median is (23−20)÷0.5=6{(23 - 20) \div 0.5 = 6}(23−20)÷0.5=6 squares past 20 cm.
- Draw a box between the quartile lines, and whiskers out to 12 cm and 37 cm.
The interquartile range (IQR) measures spread without being affected by extreme values.
Interquartile range
The interquartile range is the range of the middle half of the data.
It is in the data's units. Use it to compare how consistent two runners' lap times are.
Reading a box plot
A box plot of 36 students' marks has its box from 27 to 41 and median 35. Find the IQR, estimate how many scored between 27 and 41, and test Jay's claim that over half scored above 38.
- The box ends are the quartiles, so the IQR is 41−27=14{41 - 27 = 14}41−27=14 marks.
- The box holds about half the students, so about 12×36=18{\dfrac{1}{2} \times 36 = 18}21×36=18 students.
- At most half scored above the median, 35, so at most half scored above 38. Jay is wrong.
Find quartiles from their positions, or add on the IQR and range
Quartiles come from positions in the ordered data, not from the scale. For grouped data, use a cumulative frequency graph, as in the guide Cumulative Frequency.
The median and quartiles are masses on the horizontal axis, not cumulative frequencies.
Sort a list from smallest to largest first. For n{n}n values:
- Lower quartile is the n+14th{\frac{n + 1}{4}\text{th}}4n+1th value.
- Median is the n+12th{\frac{n + 1}{2}\text{th}}2n+1th value.
- Upper quartile is the 3(n+1)4th{\frac{3(n + 1)}{4}\text{th}}43(n+1)th value.
Quartiles of a list
Seven delivery times are 14, 9, 21, 12, 17, 25 and 15 minutes. Find the median and quartiles.
- In order, the times are 9, 12, 14, 15, 17, 21, 25.
- The median is the 7+12=4th{\dfrac{7 + 1}{2} = 4\text{th}}27+1=4th value, 15 minutes.
- The quartiles are the 7+14=2nd{\dfrac{7 + 1}{4} = 2\text{nd}}47+1=2nd and 3(7+1)4=6th{\dfrac{3(7 + 1)}{4} = 6\text{th}}43(7+1)=6th values, 12 and 21 minutes.
Quartiles from a stem and leaf diagram
Find the median and quartiles of these 9 plant heights, where 1∣4{1 \mid 4}1∣4 means 14 cm.
| Stem | Leaf |
|---|---|
| 1 | 4 8 |
| 2 | 0 3 6 7 |
| 3 | 1 5 9 |
- The leaves are in order, so the median is the 9+12=5th{\dfrac{9 + 1}{2} = 5\text{th}}29+1=5th value, 26 cm.
- The lower quartile is the 9+14=2.5th{\dfrac{9 + 1}{4} = 2.5\text{th}}49+1=2.5th value, halfway between 18 and 20, so 19 cm.
- The upper quartile is the 3(9+1)4=7.5th{\dfrac{3(9 + 1)}{4} = 7.5\text{th}}43(9+1)=7.5th value, halfway between 31 and 35, so 33 cm.
Like the IQR, the range is a difference:
range=highest value−lowest value \text{range} = \text{highest value} - \text{lowest value} range=highest value−lowest valueUsing the IQR and range
Ages at a club have lowest value 18, lower quartile 26, IQR 15 and range 49 years. Mia plots the highest value at 49. Find the upper quartile and correct her box plot.
- Add the IQR to the lower quartile, 26+15=41 years.{26 + 15 = 41\ \text{years.}}26+15=41 years.
- Add the range to the lowest value, 18+49=67 years.{18 + 49 = 67\ \text{years.}}18+49=67 years.
- Her right whisker should end at 67, not at the range, 49.
Compare box plots by median and by IQR or range, in context
Two box plots on one scale compare two distributions by their medians and IQRs or ranges.
Distribution
The distribution of a data set is the way its values are spread out.
Medians are the lines inside the boxes, and IQRs are the box widths.
Wrong. Farm A's median egg mass is 61 g and Farm B's is 57 g.
Right. Listing values is not a comparison. Farm A's eggs are generally heavier, because their median is higher.
Wrong. Farm A's masses vary more, because it has the heaviest egg.
Right. One egg does not measure spread. Farm A's smaller IQR, 6 g against 9 g, shows its masses are more consistent.
Test a claim about typical values with the median and one about spread with the IQR or range, naming the measure and its values.
Judging a comparison
Class P's marks have median 62 and IQR 20. Class Q's have median 58 and IQR 11. Jo says Class P did better and was more consistent. Is Jo right?
- Class P's median is higher, 62>58,{62 > 58\text{,}}62>58, so it generally did better.
- Class P's IQR is larger, 20>11,{20 > 11\text{,}}20>11, so its marks were less consistent.
- No, Jo is wrong about consistency.
A box plot cannot show where values lie inside a section.
- Why does a narrow section hold as many values as a wide one?
- How do you choose between the median and the IQR to test a claim?
About what percentage of the data lies above the upper quartile?
Solution
25%
Which value on two box plots shows which group generally scored higher?
Solution
The median
A box plot has upper quartile 47 and IQR 18. What is its lower quartile?
Solution
29