Lesson 4 of 6 · 18 min
Comparing groups with parallel box plots
Draw box plots for two or more groups on one scale, then compare their medians, IQRs, ranges, shapes and outliers and say what the differences mean in context.
What you will be able to do
- Construct parallel box plots on a common, labelled scale, including outliers.
- Compare groups by median (centre), IQR and range (spread), shape and outliers.
- Interpret and communicate the differences in the context of the data.
Brisbane and Longreach are both in Queensland, but one is on the coast and the other is 1000 km inland. Is Longreach really hotter in summer? Here are the daily maximum temperatures, in °C, for the first fifteen days of one January:
| Daily maximum temperature (°C) | |
|---|---|
| Brisbane | 27.8, 28.5, 29.1, 29.4, 29.6, 29.9, 30.2, 30.4, 30.5, 30.8, 31.1, 31.4, 31.9, 32.6, 35.2 |
| Longreach | 33.1, 34.5, 35.2, 35.8, 36.4, 36.9, 37.2, 37.6, 38.0, 38.3, 38.9, 39.4, 40.1, 41.0, 42.3 |
Comparing two lists of numbers is hard. Comparing two box plots drawn on the same scale is easy.
Both box plots share one temperature scale. Which city is typically hotter? Which has the more variable temperatures? Is anything unusual?
Constructing parallel box plots
Summarise each group
Find the five-number summary of each group separately, and test each group for outliers with its own fences.
Draw one scale
Draw a single number line that covers the smallest and largest values of all the groups, with evenly spaced ticks and a label with units.
Draw a box plot for each group
Stack the box plots above the same scale, one per group, each labelled with the group's name. End each whisker at that group's most extreme non-outlier and mark its outliers with dots.
For the temperatures:
- Brisbane: , median , , so . The fences are and , so 35.2 °C is a possible outlier and the upper whisker stops at 32.6.
- Longreach: , median , , so . The fences are and , so there are no outliers.
Key idea
What to compare
- Centre: compare the medians. The group with the higher median typically has higher values.
- Spread: compare the IQRs (and the ranges). The group with the larger IQR is more variable; the smaller IQR is more consistent.
- Shape: symmetric or skewed, for each group.
- Outliers: name them, in context.
- Overlap: how much the boxes share the same values. Little overlap means a clear-cut difference.
| Feature | Brisbane | Longreach | Comparison |
|---|---|---|---|
| Median | 30.4 °C | 37.6 °C | Longreach 7.2 °C higher |
| IQR | 2.0 °C | 3.6 °C | Longreach 1.6 °C larger |
| Range | 7.4 °C | 9.2 °C | Longreach 1.8 °C larger |
| Outliers | 35.2 °C | None | One unusually hot day in Brisbane |
| Overlap | Box 29.4 to 31.4 | Box 35.8 to 39.4 | Boxes do not overlap |
Put together, that becomes a short report:
The median daily maximum temperature at Longreach (37.6 °C) was 7.2 °C higher than at Brisbane (30.4 °C), so Longreach was typically much hotter. Longreach's temperatures were also more variable (IQR 3.6 °C compared with 2.0 °C). The boxes do not overlap: on at least three-quarters of the days, Longreach's maximum was 35.8 °C or more, hotter than any Brisbane day in the data. Brisbane had one unusually hot day, a possible outlier of 35.2 °C.
Brisbane's January maximum temperatures have °C and °C. Longreach's have °C and °C. How much larger is the IQR for Longreach?
Worked example
Compare sleep of Year 11 and Year 12 students
A school surveyed Year 11 and Year 12 students about how many hours they slept on a school night. The results are shown in the parallel box plots.
Compare the sleep of the two year levels.
Hours of sleep on a school night.
Step 1: Read both five-number summaries
Min Median Max Outliers Year 11 6.0 7.0 7.5 8.0 9.0 none Year 12 4.0 5.5 6.5 7.5 9.0 11.0 Step 2: Compare centre
The median for Year 11 (7.5 h) is 1 hour higher than for Year 12 (6.5 h), so Year 11 students typically slept longer.
Step 3: Compare spread
Year 12 sleep was more variable: IQR h compared with h, and range h compared with h.
Step 4: Compare shape and outliers
Both distributions are roughly symmetric. One Year 12 student slept 11 hours, a possible outlier.
Check: Year 12's upper fence is , so 11 is beyond it.
Step 5: Use the overlap
At least 75% of Year 11 students slept 7 hours or more (Year 11's ), while at least half of Year 12 students slept 6.5 hours or less.
Step 6: Conclude
Year 11 students typically slept about an hour longer than Year 12 students, and their sleep was more consistent.
Try it yourself first, then check the working one step at a time.
Answer
Year 11 students typically slept longer (median 7.5 h compared with 6.5 h) and more consistently (IQR 1.0 h compared with 2.0 h). Both distributions were roughly symmetric, with one Year 12 outlier of 11 hours.
Method
Read each five-number summary.
Centre — compare medians, with the difference.
Spread — compare IQRs (and ranges).
Shape and outliers, then a conclusion in context.
Watch out for
Saying "Year 11 students slept more than Year 12 students": the box plots show typical values, not every student.
Including the outlier in the box or whisker when reading the maximum. The whisker ends at 9.0; the outlier is 11.0.
On the parallel box plots, Longreach's whole box (35.8 °C to 39.4 °C) lies above the end of Brisbane's upper whisker (32.6 °C). Which conclusion is justified?
Common mistake
Comparison traps
- Different scales. Box plots on separate axes can't be compared by eye. Use one scale.
- Comparing only the extremes. The maximums and minimums depend on single values. Lead with the medians and IQRs.
- "Every" and "all". A higher median means typically higher, not higher every time. Look at the overlap before you make a stronger claim.
- Listing instead of comparing. Say which group is higher or more variable, by how much, and what it means.
Exam tip
Words that earn marks
Use comparative language with numbers and context: "typically longer", "higher median by 3 minutes", "more variable (IQR 12 minutes compared with 8 minutes)", "more consistent". One sentence for centre, one for spread, one for shape and outliers, then a conclusion that answers the question.
Summary
Parallel box plots share one labelled scale, with each group labelled and its own outliers marked.
Compare centre with medians, spread with IQRs and ranges, then shape and outliers.
The higher median means the group typically has higher values; the larger IQR means more variability.
Little overlap between the boxes means a clear difference between the groups.
Write the comparison in context: name the groups, the variable, the values and the units.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.