---
marp: true
theme: default
html: true
---

# Comparing with boxplots

Year 10 Statistics · Boxplots

<!-- Speaker note: 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). About 45 minutes (Predict and Run 9 min · Investigate 14 min · Modify 10 min · Practise and Make 12 min). -->

---

## Today

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

<!-- Speaker note: Before class: Students need to read a boxplot (previous lesson) and the interquartile range. The one idea: compare the centres, then the spreads, then the shapes and outliers, and say what it means for the situation. In the Run students edit Route 1 only (the second set isn't editable on the board) so they see what steadier looks like in the data. The routes and their lateness are made up for the task. Here "reliable" is defined as about the same lateness each day, so the comparison has a clear answer; real people would also weigh how often a bus is very late, or how early it is, so the choice isn't forced. The library entry (bus-lateness) suggests the class times two real routes for a few weeks and checks the comparison holds. The shape part of the node (symmetric or skewed) is touched through the median's position in the box and the outlier; a fuller treatment with histograms and other displays is left to class. Teacher: Paper: the walk and bus try-one and the Make are worked on paper first. -->

---

## Why it matters

> Two buses get you to school. Which one would you trust?

<!-- Speaker note: Two routes, Route 1 and Route 2, both get you to school. Each was timed over the same 11 school days, and here is how many minutes late each bus was (made up for the task). Route 1: 0, 1, 2, 2, 3, 4, 4, 5, 6, 8, 15. Route 2: 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7. Here, a reliable bus is one whose lateness is about the same each day, so you can plan around it. Have a guess which route is more reliable, and we'll check. <figure class="situation" role="img" aria-label="Two boxplots on one number line from 0 to 16 minutes late. Route 1 has a box from 2 to 6, a median bar at 4, a whisker from 0 to 8 and a cross at 15. Route 2 has a box from 4 to 6, a median bar at 5 and a whisker from 3 to 7. A question mark asks which route is more reliable."><svg viewBox="0 0 420 200" width="420" style="max-width:100%;height:auto" fill="none" stroke="currentColor" font-family="inherit" font-size="12"><line x1="30" y1="160" x2="390" y2="160" stroke-width="1.5"/><g stroke-width="1.2"><line x1="40" y1="156" x2="40" y2="164"/><line x1="106" y1="156" x2="106" y2="164"/><line x1="172" y1="156" x2="172" y2="164"/><line x1="238" y1="156" x2="238" y2="164"/><line x1="304" y1="156" x2="304" y2="164"/><line x1="370" y1="156" x2="370" y2="164"/></g><g fill="currentColor" stroke="none" text-anchor="middle"><text x="40" y="180">0</text><text x="106" y="180">3</text><text x="172" y="180">6</text><text x="238" y="180">9</text><text x="304" y="180">12</text><text x="370" y="180">15</text><text x="210" y="196" font-size="11" opacity="0.8">minutes late</text></g><g stroke="#2f6fb3" stroke-width="2.4"><line x1="40" y1="120" x2="84" y2="120"/><line x1="172" y1="120" x2="216" y2="120"/><line x1="40" y1="110" x2="40" y2="130"/><line x1="216" y1="110" x2="216" y2="130"/><rect x="84" y="104" width="88" height="32" fill="#2f6fb3" fill-opacity="0.18"/><line x1="128" y1="104" x2="128" y2="136" stroke="currentColor" stroke-width="4"/><line x1="365" y1="115" x2="375" y2="125"/><line x1="375" y1="115" x2="365" y2="125"/></g><g stroke="#c2570a" stroke-width="2.4"><line x1="106" y1="60" x2="128" y2="60"/><line x1="172" y1="60" x2="194" y2="60"/><line x1="106" y1="50" x2="106" y2="70"/><line x1="194" y1="50" x2="194" y2="70"/><rect x="128" y="44" width="44" height="32" fill="#c2570a" fill-opacity="0.18"/><line x1="150" y1="44" x2="150" y2="76" stroke="currentColor" stroke-width="4"/></g><g fill="currentColor" stroke="none"><text x="40" y="98">Route 1</text><text x="40" y="38">Route 2</text><text x="300" y="82" font-size="26">?</text></g></svg></figure> -->

---

<span style="background:#dbeafe; color:#1a1a1a; border:1.5px solid #3b82f6; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">💬 Discussion</span>

## Predict

**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

<!-- Speaker 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. Take two or three predictions before anyone runs it. -->

<!-- Speaker note: Teacher: show of hands before the check. Expect Route 1 for its lower median; don't comment. -->

---

<span style="background:#fef3c7; color:#1a1a1a; border:1.5px solid #f59e0b; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✍️ Activity</span>

## Try it

{{embed: https://tutorials.learningwaypoints.com/_playground-board/index.html?id=deck%2Fmaths%2Fstatistics-10%2Fcomparing-with-boxplots%2Fstep-2&code=widget%3A+data%0Avalues%3A+0%2C+1%2C+2%2C+2%2C+3%2C+4%2C+4%2C+5%2C+6%2C+8%2C+15%0Asecond%3A+3%2C+3%2C+4%2C+4%2C+4%2C+5%2C+5%2C+5%2C+6%2C+6%2C+7%0Anames%3A+Route+1%2C+Route+2%0Arange%3A+0%2C+20%0Astep%3A+1%0Aedit%3A+on%0Aview%3A+box%0Aoutliers%3A+on%0Alabel%3A+Minutes+late%0A&fresh=1}}

[Open this step in the tutorial](https://tutorials.learningwaypoints.com/maths/statistics-10/comparing-with-boxplots/?full=step-2#step-2)

<!-- Speaker note: Route 1 is the lower box on the board, and Route 2 is the upper one. Under them you can read the five numbers of each. -->

<!-- Speaker note: Teacher: ask what they will change in Route 1 before they edit anything. The very late days must move in. -->

<style scoped>pre, marp-pre { font-size: 0.5em; line-height: 1.25; } section { font-size: 25px; }</style>

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## What happened?

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

<!-- Speaker note: Reveal after running. Ask who predicted it, and what made them think so. -->

---

<span style="background:#dbeafe; color:#1a1a1a; border:1.5px solid #3b82f6; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">💬 Discussion</span>

## Comparing two journeys

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.

$$\text{medians: } 4 \text{ and } 5$$

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

<!-- Speaker note: Model this live on the board before revealing anything: write each line and say why, pausing to ask the class what comes next. Then click to reveal the lines and compare. Script. Start: write medians: 4 and 5 and say "Route 1 is typically a minute earlier. This compares the centres." Line 1: write IQR: 6 - 2 = 4 and 6 - 4 = 2 and say "Route 1's middle half is twice as spread out. This compares the spreads." Line 2: write whiskers: 0 to 8 and 3 to 7 and say "Route 1's days range further." Line 3: write outlier: 15 and say "Route 1 has one very late day, and Route 2 has none." Line 4: write So Route 2 is steadier. and say "Say what it means: you can plan around Route 2 more easily." -->

<style scoped>pre, marp-pre { font-size: 0.5em; line-height: 1.25; } section { font-size: 19px; }</style>

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## Comparing two journeys

**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: 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)

<!-- Speaker note: 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). -->

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## 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

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

<!-- Speaker note: 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. -->

<style scoped>pre, marp-pre { font-size: 0.5em; line-height: 1.25; } section { font-size: 24px; }</style>

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## 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.
```

* Answer: line 3

<!-- Speaker note: 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. -->

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## 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

* Answer: The box and the median bar

<!-- Speaker note: 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. -->

---

<span style="background:#fef3c7; color:#1a1a1a; border:1.5px solid #f59e0b; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✍️ Activity</span>

## Change a route



- **A smaller late day:** 
- **Equal middle, different whiskers:** 
- **Overlap:** 

[Open this step](https://tutorials.learningwaypoints.com/maths/statistics-10/comparing-with-boxplots/?full=step-4#step-4)

<!-- Speaker note: What this step is for: Changing Route 1's days shows which features of the comparison move and which stay put. Hints, in order: Change the 15 to 7 in the Values box, then read the new box. / The upper half is 4, 5, 6, 7, 8. For students who need more support: Cut-out cards for the five numbers of each set. Line them up on a number line and compare centre, then spread. For early finishers: Time two real routes or journeys for ten days and draw their boxplots. Do they agree with your guess? The hard part, on purpose: Stopping at the medians. Ask: what would your week be like on each route? When students get stuck: A student says Route 1 is better because its median is lower. Ask: Would you rather know how late a bus is on most days, or save a minute on a typical day? Fix: The median is the typical day, but the spread and the outlier say how much you can rely on it. / A student compares the highest and lowest values and ignores the quartiles. Ask: Which values are the middle half of the days? Fix: The box. The whiskers show how far the rest reach. / A student says the outlier makes the box longer. Ask: Which numbers is the box made from? Fix: The quartiles. One very late day changes the highest value and the range, not the quartiles. -->

<!-- Speaker note: Teacher: overlapping boxes is the edge case. Ask what a box can and can't tell you about single days. -->

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## 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: 2

<!-- Speaker note: 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. -->

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## 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: 4

<!-- Speaker note: X: 15 − 5 = 10. Y: 14 − 8 = 6. The difference is 10 − 6 = 4 marks. -->

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## Review

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

* Answer: 10

<!-- Speaker note: The quartiles are 12 and 22, so the IQR is 22 − 12 = 10. -->

---

<span style="background:#fef3c7; color:#1a1a1a; border:1.5px solid #f59e0b; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✍️ Activity</span>

## 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** - **Te

<!-- Speaker note: What this step is for: Back to the two buses: work out how much steadier Route 2 is, then say which you'd trust and why. Hints, in order: Each route's interquartile range from its quartiles. / 6 − 2 and 6 − 4. -->

---

<span style="background:#dcfce7; color:#1a1a1a; border:1.5px solid #22c55e; padding:6px 18px; border-radius:8px; font-size:1em; font-weight:500;">✅ Check</span>

## Exit ticket

**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?**

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

<!-- Speaker note: Students answer on paper or a mini whiteboard before the reveal. Anyone who cannot answer needs the main idea again next lesson. Where this leads: Completes AC9M10ST02 (node 3). Where it leads: scatterplots (Year 10 statistics), where each person gives two measurements. -->
