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)
Brisbane27.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
Longreach33.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.

Interactive

Brisbane and Longreach in January

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

  1. Summarise each group

    Find the five-number summary of each group separately, and test each group for outliers with its own fences.

  2. 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.

  3. 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: Q1=29.4Q_1 = 29.4, median =30.4= 30.4, Q3=31.4Q_3 = 31.4, so IQR=2.0\text{IQR} = 2.0. The fences are 29.4−3=26.429.4 - 3 = 26.4 and 31.4+3=34.431.4 + 3 = 34.4, so 35.2 °C is a possible outlier and the upper whisker stops at 32.6.
  • Longreach: Q1=35.8Q_1 = 35.8, median =37.6= 37.6, Q3=39.4Q_3 = 39.4, so IQR=3.6\text{IQR} = 3.6. The fences are 30.430.4 and 44.844.8, 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.
Comparing the January maximum temperatures.
FeatureBrisbaneLongreachComparison
Median30.4 °C37.6 °CLongreach 7.2 °C higher
IQR2.0 °C3.6 °CLongreach 1.6 °C larger
Range7.4 °C9.2 °CLongreach 1.8 °C larger
Outliers35.2 °CNoneOne unusually hot day in Brisbane
OverlapBox 29.4 to 31.4Box 35.8 to 39.4Boxes 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 Q1=29.4Q_1 = 29.4 °C and Q3=31.4Q_3 = 31.4 °C. Longreach's have Q1=35.8Q_1 = 35.8 °C and Q3=39.4Q_3 = 39.4 °C. How much larger is the IQR for Longreach?

in circC

Worked example

Compare sleep of Year 11 and Year 12 students

  • Complex familiar
  • Technology free

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.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Read each five-number summary.

  2. Centre — compare medians, with the difference.

  3. Spread — compare IQRs (and ranges).

  4. 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?

Choose one answer

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.

Lesson 4 of 60% read

Save your progress with a free account