Prob and StatsDescribing DataS-ID.A.3

Five-Number Summary and Outliers

Use the 1.5 × IQR rule to flag outliers.

Not started Jump to practice

A box plot is drawn from the five-number summary: minimum, $Q_1$, median, $Q_3$, maximum. Because it is built from medians, it is resistant like the median. Here we add a rule that decides which values are far enough out to call outliers.

Key idea

$Q_1$ is the median of the lower half of the sorted data and $Q_3$ the median of the upper half (leave out the middle value when $n$ is odd). $\text{IQR} = Q_3 - Q_1$. A value is an outlier if it is below $Q_1 - 1.5 \cdot \text{IQR}$ or above $Q_3 + 1.5 \cdot \text{IQR}$. These two cutoffs are called fences.

Why it works

The IQR measures the width of the middle half of the data, so it is a resistant yardstick for spread. A value more than one and a half yardsticks beyond the box is unusually far from the bulk of the data. The 1.5 is a convention (from the statistician John Tukey), chosen so that in bell-shaped data only about 0.7% of values get flagged: most flags are worth a second look.

Worked example: Odd number of values

Find the five-number summary and any outliers: $3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 31$.
  1. The 11 values are sorted. The median is the 6th: $11$.
  2. Lower half (without the 11): $3, 7, 8, 9, 10$, so $Q_1 = 8$. Upper half: $12, 13, 14, 15, 31$, so $Q_3 = 14$.
  3. $\text{IQR} = 14 - 8 = 6$, and $1.5 \times 6 = 9$.
  4. Fences: $8 - 9 = -1$ and $14 + 9 = 23$.
  5. Only $31$ is outside the fences.

Answer: Min 3, $Q_1 = 8$, median 11, $Q_3 = 14$, max 31; the outlier is 31.

Worked example: Even number of values

Find the fences for $22, 25, 27, 28, 30, 31, 33, 34, 36, 60$.
  1. Median: average of the 5th and 6th values, $(30 + 31)/2 = 30.5$.
  2. Lower half $22, 25, 27, 28, 30$: $Q_1 = 27$. Upper half $31, 33, 34, 36, 60$: $Q_3 = 34$.
  3. $\text{IQR} = 7$ and $1.5 \times 7 = 10.5$.
  4. Fences: $27 - 10.5 = 16.5$ and $34 + 10.5 = 44.5$. The value $60$ is an outlier.

Answer: Fences 16.5 and 44.5; 60 is an outlier.

With fences on, the whisker stops at the last value inside the fence and the outlier gets its own mark. Drag the 31 inward and watch it stop being an outlier.

Common mistake

Two slips to avoid. Using the range instead of the IQR to build the fences (the range includes the outlier itself). And forgetting the lower fence: outliers can be unusually small too. Check: list both fences and compare the smallest and largest values with them.
An outlier is a flag, not a verdict. It may be a typing error, a measurement problem, or the most interesting value in the data. Never delete one without a reason.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax, Introductory Statistics 2e, section 2.3 Measures of the Location of the Data
  • OpenStax, Introductory Statistics 2e, section 2.4 Box Plots
  • Common Core State Standards for Mathematics, S-ID.A.3 (Interpret differences in shape, center, and spread)
@teddyrookbook GitHub