M4.7.4 Chapter 4
Box plots
Two groups of plants have the same median height. How can I show in one small picture that one group is much more spread out?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Draw a box plot from five key values
- Compare two groups using box plots
Amina grows 11 bean plants in the sun. After two weeks their heights in centimetres, in order, are 12, 15, 17, 18, 20, 22, 23, 25, 27, 30, 31.
Five values sum up the list: the smallest, the lower quartile Q1, the median, the upper quartile Q3 and the largest. A box plot draws these five values on one scale.
For a short list, we find them like this. This is not the n ÷ 4 reading of the last chapter. A graph reads a running total. A short list has separate values, so we count them. The median is the middle value. Split the ordered list into a lower half and an upper half. If the list has an odd number of values, leave the middle value out of both halves. Q1 is the median of the lower half. Q3 is the median of the upper half.
Worked example
Find the five key values of Amina's 11 heights: 12, 15, 17, 18, 20, 22, 23, 25, 27, 30, 31.
- There are 11 values, so the median is the (11 + 1) ÷ 2 = 6th value, which is 22.
- Leave 22 out. The lower half is 12, 15, 17, 18, 20. Its middle value is the 3rd, so Q1 = 17.
- The upper half is 23, 25, 27, 30, 31. Its middle value is the 3rd, so Q3 = 27.
- The smallest value is 12 and the largest is 31.
Answer: Smallest 12, lower quartile 17, median 22, upper quartile 27, largest 31
Draw it first
Draw the box plot
1 Draw a scale and mark the five key values: 12, 17, 22, 27 and 31.
2 Draw a line from the smallest value to the largest.
3 Draw a box from Q1 to Q3. Draw a thick line across the box at the median. The parts of the line outside the box are the whiskers.
A box plot splits the data into four parts. These are the two whiskers and the two halves of the box. About a quarter of the values lie in each part. The box holds about half of them.
Worked example
Find the five key values of 12 journey times (min): 8, 9, 11, 12, 14, 15, 17, 18, 19, 21, 24, 30.
- There are 12 values, so the median is halfway between the 6th and 7th values, 15 and 17. (15 + 17) ÷ 2 = 16.
- The lower half is the first 6 values: 8, 9, 11, 12, 14, 15. Its median is halfway between 11 and 12, which is 11.5.
- The upper half is the last 6 values: 17, 18, 19, 21, 24, 30. Its median is halfway between 19 and 21, which is 20.
- The smallest is 8 and the largest is 30.
Answer: Smallest 8, lower quartile 11.5, median 16, upper quartile 20, largest 30
Worked example
Read the box plot of journey times below. Find the median, the interquartile range and the range.
- The whiskers run from 14 to 38. The thick line in the box is at 26, so the median is 26.
- The box runs from 20 to 30.
- IQR = 30 − 20 = 10 minutes.
- Range = 38 − 14 = 24 minutes.
Answer: The median is 26 minutes, the IQR is 10 minutes and the range is 24 minutes
To compare two groups, put their box plots on the same scale. Compare the medians to compare the middle. Compare the IQRs to compare the spread. A bigger IQR means more spread. A group with a smaller spread is more consistent.
See it three ways
With things
Amina also grows 11 bean plants in the shade. Their heights in order are 8, 10, 12, 13, 15, 16, 17, 18, 19, 20, 22.
As a picture
In symbols
Sun: median 22, IQR 27 − 17 = 10. Shade: median 16, IQR 19 − 12 = 7.
Worked example
Compare the heights of the plants in the sun and in the shade, using the median and the IQR.
- The medians are 22 cm in the sun and 16 cm in the shade.
- The IQRs are 10 cm in the sun and 7 cm in the shade.
- So the plants in the sun are taller in the middle, with a median 6 cm higher.
- The sun plants are also more spread out, because their IQR is 3 cm bigger.
Answer: The sun plants have the higher median, 22 cm against 16 cm, and the larger IQR, 10 cm against 7 cm
Try it
Draw a box plot of 11 hand spans
You need: 11 people to measure, a ruler, squared paper.
- Measure each hand span, from the tip of the thumb to the tip of the little finger, with the hand spread flat.
- Write the 11 spans in order. Find the smallest, Q1, the median, Q3 and the largest.
- Draw a scale on squared paper. Draw the line, the box and the thick median line.
What you will see: The box holds about the middle half of the spans. Compare your box plot with a friend's. Which is more spread out?
A wrong idea many people have
The longer whisker holds more of the values.
Why it feels right: A longer line looks like more of something.
The test that breaks it: In Amina's sun list the lower whisker is 5 cm long and the upper whisker is 4 cm long. But each holds two values beyond the box: 12 and 15 below it, 30 and 31 above it.
What is true: Each of the four parts holds about a quarter of the values, however long it is. A long part means the values in it are more spread out.
A wrong idea many people have
The median is always in the middle of the box.
Why it feels right: The median is the middle value, and the box looks like the middle.
The test that breaks it: The shade plants have Q1 = 12 and Q3 = 19. The middle of the box is 15.5. But the median is 16.
What is true: The thick line is where the median is. It can lie anywhere inside the box. If it is nearer one end, the values are more bunched up on that side.
Key words
- box plot
- a picture of the smallest value, Q1, the median, Q3 and the largest value on one scale.
- whisker
- the line from the box to the smallest or the largest value.
- consistent
- not spread out: the values stay close together.
Back to your guess
The answer is A: Draw a box plot of each group, on the same scale.
A box plot shows the middle, the spread of the middle half, and the smallest and largest values. Two box plots on one scale can be compared at a glance. A bar chart of medians hides the spread, and a total depends on how many plants there are.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
Find the lower quartile of this list: 3, 5, 8, 9, 12, 14, 15.
See the answer
5
The median is the 4th value, 9. Leave it out. The lower half is 3, 5, 8. Its middle value is 5.
- If you chose A: You kept the middle value, 9, in the lower half, so the lower half was 3, 5, 8, 9. With 7 values the middle value is left out of both halves. Go to M4.7.4.
- If you chose B: 3 is the smallest value. The lower quartile is the median of the lower half. Go to M4.7.4.
- If you chose D: You took the 8, the value just below the median. The lower quartile is the middle of the lower half: the lower half is 3, 5, 8, so it is 5. Go to M4.7.4.
What is the median shown by this box plot?
See the answer
35 minutes
The thick line marks the median. It is at 35.
- If you chose A: 30 is where the box starts, the lower quartile. The median is the thick line. Go to M4.7.4.
- If you chose C: 40 is the middle of the box. The median is the thick line, and it need not be in the middle of the box. Go to M4.7.4.
- If you chose D: 50 is where the box ends, the upper quartile. The median is the thick line. Go to M4.7.4.
What is the interquartile range of the same box plot?
See the answer
20 minutes
The box runs from 30 to 50. IQR = Q3 − Q1 = 50 − 30 = 20.
- If you chose A: 45 is the range, from the end of one whisker to the other. The IQR is the length of the box. Go to M4.7.4.
- If you chose B: 35 is the median, a place on the scale. The IQR is a length: Q3 − Q1. Go to M4.7.4.
- If you chose C: 50 is Q3, a place on the scale. The IQR is how far Q3 is above Q1. Go to M4.7.4.
The box plots show the journey times on two bus routes. Which statement is true?
See the answer
Route B is more consistent, because its box is shorter.
The medians are both 25 minutes. Route B has the smaller IQR, so its journey times are closer together.
About what share of the values lies inside the box of a box plot?
See the answer
About half
A quarter of the values lie below Q1 and a quarter above Q3. That leaves about half between them, in the box.
The upper whisker of a box plot is much longer than the lower whisker. What does this tell us?
See the answer
The top quarter of the values is more spread out than the bottom quarter.
The same quarter of the values lies along a longer stretch of the scale, so those values are further apart.
From an earlier chapter
A cumulative frequency graph shows 120 values. At what cumulative frequency do you read the lower quartile?
See the answer
30
The lower quartile is a quarter of the way up: 120 ÷ 4 = 30.
Find the interquartile range of these 11 values: 4, 6, 7, 10, 12, 13, 15, 18, 19, 22, 25.
See the answer
12
The median is the 6th value, 13. The lower half is 4, 6, 7, 10, 12, so Q1 = 7. The upper half is 15, 18, 19, 22, 25, so Q3 = 19. IQR = 19 − 7 = 12.
Keep it
Copy this into your exercise book.
Box plot: smallest, Q1, median, Q3, largest on one scale. The box is about half the data. Compare the medians for the middle, the IQRs for the spread.
Draw: Two box plots on one scale, one above the other, with the five values marked under the first.