---
title: "Comparing with boxplots"
subtitle: "Year 10 Statistics · Boxplots · Lesson 6"
---

# Comparing with boxplots

**Name:** {{field-24}} **Date:** {{field-15}} **Class:** {{field-15}}

> **Key question:** Two buses get you to school. Which one would you trust?


:::teacher-note

**In one sentence:** Students compare two data sets drawn as boxplots on one scale by centre, spread, shape and outliers, and learn that a lower median doesn't make a route more reliable (AC9M10ST02, node 3).

**Students should be able to say:** I can compare two boxplots by centre and spread. I can say what an outlier does and doesn't change. I can say which of two data sets is steadier and why.

**Width:** the unmarked parts are the floor every student does (predict, run, investigate and make). Typical adds the modify practice; wider adds the real-world contexts. They add contexts, not difficulty. Students work in the online tutorial alongside this sheet.

:::


## Predict


:::keep-together

**Route 1's median is 4 minutes late and Route 2's is 5. The boxplots are above. Which route is more reliable, meaning its lateness is about the same each day?**

☐ They are equally reliable

☐ Route 2: its box and whiskers are shorter

☐ Route 1: its median is lower

My prediction, and why:

{{lines-3}}

:::


:::teacher-note

**What happens:** Route 2. Its box (IQR 2) is half as long as Route 1's (IQR 4), its whiskers are shorter, and it has no outlier. Route 1 is usually a minute earlier, but one day it was 15 minutes late.

:::


## Run

Try it on the board in the tutorial. Was your prediction right? What was different?

{{lines-2}}

## Centre, spread, shape and outliers


:::keep-together

### Comparing two journeys

1. $\text{medians: } 4 \text{ and } 5$ — Route 1 is typically a minute earlier. This compares the centres.
2. $\text{IQR: } 6 - 2 = 4 \text{ and } 6 - 4 = 2$ — Route 1's middle half is twice as spread out. This compares the spreads.
3. $\text{whiskers: } 0 \text{ to } 8 \text{ and } 3 \text{ to } 7$ — Route 1's days range further.
4. $\text{outlier: } 15$ — Route 1 has one very late day, and Route 2 has none.
5. $\text{So Route 2 is steadier.}$ — Say what it means: you can plan around Route 2 more easily.

Now try one on paper: two ways to get to school with the five numbers walk 14, 16, 18, 21, 25 and bus 10, 15, 19, 24, 38 minutes. Find how many minutes wider the bus's middle half is than the walk's.

**Two ways to get to school have these five numbers for the journey in minutes (made up). Walk: 14, 16, 18, 21, 25. Bus: 10, 15, 19, 24, 38. How many minutes wider is the bus's middle half than the walk's?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** walk: $21 - 16 = 5$ (the interquartile range of the walk); bus: $24 - 15 = 9$ (the interquartile range of the bus); $9 - 5 = 4$ (how much wider the bus's middle half is)

Walk IQR 21 − 16 = 5; bus IQR 24 − 15 = 9; the bus's middle half is 9 − 5 = 4 minutes wider. The walk is the steadier trip, though the bus's median (19) is only 1 minute above the walk's (18).

:::


:::keep-together

### Both medians and spreads

**Route 1 has a median of 4 minutes and an IQR of 4; Route 2 has a median of 5 and an IQR of 2. Which statement does the boxplot support best?**

☐ Route 1 is usually a bit earlier, but its lateness varies more, so Route 2 is steadier

☐ The routes are the same, because the medians are close

☐ Route 1 is better in every way, because its median is lower

☐ Route 2 is better in every way, because its median is higher

:::


:::teacher-note

**Answer:** Route 1 is usually a bit earlier, but its lateness varies more, so Route 2 is steadier

Compare both: the medians differ by 1 minute, but Route 1's middle half is twice as spread out and it has a very late day.

:::


:::keep-together

### Find the mistake

**Sam compares the two routes. Click the line where the reasoning goes wrong.**

```
 1  Route 1's median is 4 minutes late and Route 2's median is 5.
 2  Route 1's box is from 2 to 6 and Route 2's box is from 4 to 6.
 3  Route 1 has the lower median, so it is the more reliable route.
 4  So Sam takes Route 1.
```

Line: {{field-15}}

Why is it wrong?

{{lines-2}}

:::


:::teacher-note

**Answer:** line 3

Line 3: the medians compare the typical day on each route, not how much each route varies from day to day. The boxes and whiskers show the spread, and Route 1's is twice as long.

:::


:::keep-together

### An outlier's effect

**Route 1 has one very late day, 15 minutes, drawn as a cross. Which part of Route 1's boxplot does that day change least?**

☐ The range

☐ The box and the median bar

☐ The highest value

☐ The upper whisker

:::


:::teacher-note

**Answer:** The box and the median bar

The box and the median bar depend on the middle values. One very late day changes the highest value and the range, and shows up as a cross, but the quartiles and median stay the same.

:::


:::typical

## Change a route


**A smaller late day.** 

**Equal middle, different whiskers.** 

**Overlap.** 

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}

:::


## Comparing spreads


:::keep-together

### Box lengths

**Set A has quartiles 9 and 17. Set B has quartiles 12 and 16. How many times as long is A's box as B's?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 2

A's IQR is 17 − 9 = 8 and B's is 16 − 12 = 4, so A's box is 8 ÷ 4 = 2 times as long.

:::


:::keep-together

### Which class varies more

**Class X's test scores have quartiles 5 and 15. Class Y's have quartiles 8 and 14. By how many marks is X's interquartile range bigger than Y's?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 4

X: 15 − 5 = 10. Y: 14 − 8 = 6. The difference is 10 − 6 = 4 marks.

:::


:::keep-together

### Review

**Review: a boxplot's five numbers are 6, 12, 15, 22 and 30. What is the interquartile range?**

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 10

The quartiles are 12 and 22, so the IQR is 22 − 12 = 10.

:::


## Make: which bus would you trust?


**The spread difference.** Work this out on paper first, then type your answer.

**Telling a friend.** The routes and their days are made up for the task. Your class could time two real routes for a few weeks and compare them the same way.

**Also used in**

- **Test marks.** Two classes' marks compared side by side show which class varies more.
- **Sport and health.** Times for two training plans can be compared by median and spread.
- **Next.** Scatterplots: two measurements of each person, drawn as dots.

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}

## Exit ticket

:::keep-together

**Class A has a median of 62 and an interquartile range of 8. Class B has a median of 65 and an interquartile range of 20. Which class has marks that are more alike, and which has the higher typical mark?**

{{lines-3}}

:::


:::teacher-note

**Answer:** Class A's marks are more alike (IQR 8); Class B has the higher typical mark (median 65).

:::

