Outliers and boxplots

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Statistics (AP-aligned) › Exploring one-variable data

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Outliers and boxplots

Exploring one-variable data.

Warm-up

Three quick questions from earlier lessons.

  1. Find the interquartile range (IQR) of the 8 values 3, 9, 14, 17, 24, 27, 33, 46.
  2. Find the (sample) standard deviation of 29, 31, 33.
  3. Two classes both have mean score 78. In class A the scores range from 76 to 80; in class B from 63 to 93. Which has the larger standard deviation?
    1. Class B: its scores are more spread out
    2. Class A
    3. The same, because the means are equal

Discover

Q1=20Q_1 = 20, Q3=30Q_3 = 30, so IQR =10= 10. Is a value of 48 unusually large?

  1. Yes, it is above 30+1.5×10=4530 + 1.5 \times 10 = 45
  2. No: only values above twice Q3Q_3, 60, are outliers

Key idea

A rule of thumb for outliers, and a picture of the five-number summary.

1.5 × IQR rule: a value is an outlier if it is below Q1−1.5 IQRQ_1 - 1.5\,\text{IQR} or above Q3+1.5 IQRQ_3 + 1.5\,\text{IQR}. A boxplot draws the box from Q1Q_1 to Q3Q_3, a line at the median, whiskers to the most extreme non-outliers, and outliers as separate points.

Worked example

Q1=14Q_1 = 14, Q3=26Q_3 = 26. The fences.

IQR =12= 12
26 − 14.
Fences 14−18=−414 - 18 = -4 and 26+18=4426 + 18 = 44
1.5 × 12 = 18.
Outliers: below −4-4 or above 4444
Any value beyond them.

Your turn, guided

Your turn: Q1=40Q_1 = 40, Q3=50Q_3 = 50. The lower fence.

2525
40 − 15.

Practice ★

  1. A data set has Q1=22Q_1 = 22 and Q3=28Q_3 = 28. Above which value is a data point an outlier by the 1.5×IQR1.5 \times \text{IQR} rule?
  2. A data set has Q1=315Q_1 = 315 and Q3=513Q_3 = 513. Above which value is a data point an outlier by the 1.5×IQR1.5 \times \text{IQR} rule?
  3. A data set has Q1=36Q_1 = 36 and Q3=40Q_3 = 40. Above which value is a data point an outlier by the 1.5×IQR1.5 \times \text{IQR} rule?

Watch out!

Practice ★★

  1. Q1=58Q_1 = 58 and Q3=62Q_3 = 62. Below which value is a data point an outlier?
  2. Q1=194Q_1 = 194 and Q3=228Q_3 = 228. Below which value is a data point an outlier?
  1. A boxplot of 81 values shows which summary?
    1. The five-number summary (min, Q1, median, Q3, max), with outliers plotted separately
    2. The mean and the standard deviation
    3. How many values fall in each interval

Exit ticket

Three questions to check you have got it.

  1. A data set has Q1=22Q_1 = 22 and Q3=28Q_3 = 28. Above which value is a data point an outlier by the 1.5×IQR1.5 \times \text{IQR} rule?
  2. A data set has Q1=315Q_1 = 315 and Q3=513Q_3 = 513. Above which value is a data point an outlier by the 1.5×IQR1.5 \times \text{IQR} rule?
  3. A data set has Q1=36Q_1 = 36 and Q3=40Q_3 = 40. Above which value is a data point an outlier by the 1.5×IQR1.5 \times \text{IQR} rule?

Summary card

Outliers and boxplots

  • Fences: Q1−1.5 IQRQ_1 - 1.5\,\text{IQR} and Q3+1.5 IQRQ_3 + 1.5\,\text{IQR}.
  • Boxplot: five-number summary plus outliers.

Watch out: 1.5 × IQR, not 1 × IQR.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. A data set has Q1=17Q_1 = 17, Q3=33Q_3 = 33 and maximum 65. By how much does the maximum exceed the upper outlier fence?
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits