Euler Hall — free maths guides

Flag an outlier with the 1.5-IQR rule

Compute the lower and upper fences from the quartiles. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.

Fences measured from the quartiles

The 1.5-IQR rule builds two fences and flags any value outside them:

Why the quartiles rather than the mean? Because the mean and the standard deviation are pulled towards the extreme value being tested, so a fence built from them would stretch to accommodate it. The quartiles are positions, so they barely move — the fence stays where the bulk of the data put it.

And a flag is not a verdict. It says the value is far from the rest, which is a reason to check the record, not a reason to delete it.

Why 1.5, and why fences at all

The 1.5 is a convention chosen so that, for roughly bell-shaped data, about 1 in 130 observations is flagged — rare enough to be worth checking and common enough to matter. It is not a theorem; a different multiple would flag more or fewer.

The fences exist because a box plot needs them: a whisker ends at the last value inside the fence, and anything beyond is drawn as a point. The rule and the plot are one decision, which is why they are taught together.

Worked example: fences and a flag

A sample hasQ1=10Q_1 = 10,Q3=18Q_3 = 18.

IQR.18−10=818 - 10 = 8.

Fences.10−12=−210 - 12 = -2 and18+12=3018 + 12 = 30.

Flags. Any value below−2-2 (impossible for a positive measurement, so no low flags) or above 30.

So 31 is flagged and 29 is not. The two differ by 2, and the rule is a line, not a slope — which is worth remembering when a reader argues that 29 is "almost an outlier".

By the end you can
  • Compute the lower and upper fences from the quartiles
  • Flag a value outside the fences
  • Say what the rule is and is not claiming
Check yourself
  1. 1. Q1 = 8, Q3 = 20. What are the two fences?
  2. 2. Is a value of 40 flagged?
  3. 3. Is a value of 2 flagged?
Answers
  1. 1.8−18=−108 - 18 = -10 and20+18=3820 + 18 = 38.
  2. 2. Yes, 40 > 38.
  3. 3. No, 2 > -10.
Work out where to start — free, no accountAnswer six real questions — free, no account