One student lives a long way away
Fifteen students in a rural Ontario class recorded their one-way commute times in minutes:
5, 8, 10, 12, 12, 14, 15, 17, 18, 20, 22, 25, 28, 35, 62
One student takes 62 minutes; maybe they live on a farm at the far end of the bus route. Is that value a mistake? Should it be removed? How much does it change the summary statistics? A box plot shows the problem at a glance, and the 1.5 × IQR rule gives a consistent way to flag it.
Remember from Grade 9: a box plot draws the five-number summary; each whisker and each half of the box holds about 25% of the data; a modified box plot shows outliers as separate dots.
How much does one outlier matter?
Compare the statistics with and without the 62-minute commute:
- Mean: 20.2 min with it, about 17.2 min without. It moved by 3 minutes.
- Median: 17 with it, 16 without. It moved by 1 minute.
- Sample standard deviation: about 14.0 min with it, about 8.2 min without. It almost doubled!
- IQR: 13 with it, 10 without (Q1 = 12, Q3 = 22). A moderate change, mostly because removing a value shifts the halves.
The mean and especially the standard deviation are sensitive to outliers. The median and IQR are resistant. This is why skewed data or data with outliers is usually summarized with the median and IQR.
Comparing two data sets: side-by-side box plots
Draw two box plots on the same scale and compare:
- Centre: which median is higher?
- Spread: which box (IQR) and which range is wider?
- Shape: where is each median inside its box, and which whiskers are long?
- Outliers: any unusual values?
- Overlap: a useful rough rule: if one box is entirely above the other's median, the groups really do differ in a typical value.
Finish with a conclusion in context, not just numbers.
Worked exampleExample 3: Writing a comparison
Using the two classes' test marks from lesson 3 (five-number summaries A: 52, 66, 74.5, 82, 96 and B: 45, 61, 70, 81, 98), write a comparison.
- Centre: median A = 74.5, median B = 70. A typical student in Class A scored about 4.5 marks higher.
- Spread: IQR A = 16, IQR B = 20; range A = 44, range B = 53. Class B's marks are more spread out.
- Shape: both medians sit near the middle of their boxes and the whiskers are similar in length: both distributions are roughly symmetric.
- Outliers: fences for A: 66 − 24 = 42 and 82 + 24 = 106; for B: 61 − 30 = 31 and 81 + 30 = 111. No outliers in either class.
- Overlap: Class A's box (66 to 82) contains Class B's median (70), so the boxes overlap a lot: the difference is real in these data but modest.
"Class A generally did better (median 74.5 vs 70) and was more consistent (IQR 16 vs 20). Both distributions are roughly symmetric with no outliers. Class B had both the lowest (45) and the highest (98) individual marks."
What a box plot hides
A box plot shows only five numbers (plus outliers). It cannot show gaps, clusters or two peaks: a bimodal data set can have a perfectly ordinary-looking box plot. It also hides the sample size. For a full picture, look at a histogram or dot plot as well.
Hands-on activityBox plots from the kitchen: popcorn timing
You need: a timer, a package of microwave popcorn or a pot for stovetop popcorn (a grown-up should handle the hot pot and steam), a bowl, paper and a pencil. Alternative without cooking: time 20 tries at stacking 10 coins into a tower.
- While the popcorn pops, listen and record the time (in seconds) between each pop and the next for 25 consecutive pops, using the stopwatch's lap button. (For the coin version, record the time of each of 20 tries.)
- Find the five-number summary, the IQR and the fences.
- Draw a modified box plot.
- Describe the shape and any outliers. Can you explain any outliers (a long gap at the very start or end)?
- Find the mean and median with and without the outliers.
What to look for: gaps between pops are usually short in the middle of popping and long at the start and end, so the data is often skewed right with high outliers. Removing the outliers should change the mean much more than the median.