Track 2 · Describing Data · Lesson 6 of 11
Five-number summary and outliers
Give a five-number summary, read and build a box plot, flag outliers with the 1.5 × IQR rule, and decide sensibly what to do with them.
An operations analyst finds 14 employees whose commutes are flagged as “outliers”. Should they be deleted before the report? Usually not — but some unusual values are errors. Knowing how outliers are flagged, and what the flag does and does not mean, prevents both mistakes.
The five-number summary describes a distribution with five resistant landmarks: minimum, , median, , maximum. Together they show the centre (median), the spread of the middle half (IQR ), the full extent (range), and — by comparing the gaps — the skew.
As in the previous lesson, quartiles here use the type 7 method; another convention could move and slightly for small samples.
- the interquartile range,
- Tukey's conventional multiplier. Values beyond from the quartiles (the outer fences) are often called extreme outliers.
Worked example
Nine call durations
Nine support calls lasted (minutes, sorted): 18, 22, 25, 27, 31, 34, 38, 41, 96. Give the five-number summary and check for outliers.
Five numbers. With , sits at position (value 25), the median at position 5 (31) and at position 7 (38). Summary: 18, 25, 31, 38, 96.
IQR , so .
Fences: lower , upper . Only 96 lies outside. It is even beyond the outer fence : an extreme outlier.
Box plot. The box runs from 25 to 38 with a line at 31; the lower whisker reaches 18; the upper whisker stops at 41, the largest value inside the fences; 96 is drawn as a separate point.
Five-number summary 18, 25, 31, 38, 96; one (extreme) outlier at 96 minutes — worth checking, but not automatically wrong.
For all 240 commutes in the (synthetic) commute dataset, the five-number summary is 4, 23, 31.5, 46, 148 minutes. IQR , so the fences are and minutes. No commute is below the lower fence (none can be negative anyway), and 14 are above 80.5 minutes.
Show the data as a table
| Group | n | Lower whisker | Q1 | Median | Q3 | Upper whisker | Outliers | Mean |
|---|---|---|---|---|---|---|---|---|
| Amber Air | 832 | -17 | -3 | -1 | 18.25 | 50 | 101 | 16.6659 |
| Cobalt Wings | 667 | -16 | -2.5 | 4 | 49 | 125 | 46 | 33.2009 |
| Jade Skyways | 570 | -14 | -4 | -2 | 11 | 32 | 71 | 10.0193 |
| Sienna Jet | 431 | -14 | -3 | 4 | 34 | 84 | 43 | 25.9443 |
When a value is flagged
- Check it. Is it possible? Was it recorded in the right units? Is it a code for “missing”?
- If it is an error, correct it from the source if you can; otherwise set it to missing and say so.
- If it is genuine, keep it. Prefer resistant summaries (median, IQR) when extreme values dominate, and report how many values were flagged.
- If it changes the conclusion, report the analysis both with and without it — never quietly drop data.
Quick check
In a box plot, how far does the upper whisker reach?
Exercises
The lesson is complete when every exercise is answered correctly. Hints are free; viewing a worked solution before solving means the exercise won't count towards mastery.
0 of 8 exercises correct (not saved — sign in to keep your progress)
Exercise 1 · Guided, difficulty 1 of 3
Five-number summary
Nine patients waited the following number of minutes in an emergency department triage queue:
24, 57, 13, 11, 38, 19, 54, 28, 36
Give the five-number summary (quartiles by the type 7 method).
Exercise 2 · Practice, difficulty 1 of 3
Compute the fences
Monthly electricity bills of households in a district have SAR and SAR. Using the 1.5 × IQR rule, find the lower and upper fences.
Exercise 3 · Practice, difficulty 2 of 3
How many outliers?
A quality engineer measured the tensile strength (MPa above specification) of 16 welded joints:
47, 45, 50, 39, 47, 53, 52, 22, 83, 53, 62, 40, 51, 43, 53, 37
Using type 7 quartiles and the 1.5 × IQR rule, how many of the 16 values are flagged as outliers?
Exercise 4 · Application, difficulty 2 of 3
Flagged commutes
Using commute_min in the commute dataset, find the upper fence (1.5 × IQR rule, type 7 quartiles), the number of employees above it, and how many of those are also above the outer fence .
Data: commute · Open in the lab to explore and calculate.
Exercise 5 · Application, difficulty 2 of 3
Flagged flight delays
Apply the 1.5 × IQR rule to delay_min in the flight_delays dataset (2 500 departures). How many departures are flagged, and what percentage of all departures is that (1 decimal place)?
Data: flight_delays · Open in the lab to explore and calculate.
Exercise 6 · Practice, difficulty 2 of 3
What should happen to this value?
Each value below was flagged as an outlier. Decide what should happen to it.
Exercise 7 · Interpretation, difficulty 2 of 3
What a box plot cannot show
A manager compares box plots of delivery times for two depots. Which of these questions can the box plots not answer?
Exercise 8 · Practice, difficulty 1 of 3
Building a box plot
Put the steps for drawing a box plot by hand in order.
What you can now do
- Give a five-number summary and read it for centre, spread and skew
- Build and read a box plot, including where the whiskers stop
- Flag potential outliers with the 1.5 × IQR fences (and extreme ones with 3 × IQR)
- Decide whether a flagged value is an error, a genuine value, or needs checking