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.
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.
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.
A sample has,.
IQR..
Fences. and.
Flags. Any value below (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".
- Compute the lower and upper fences from the quartiles
- Flag a value outside the fences
- Say what the rule is and is not claiming
- 1. Q1 = 8, Q3 = 20. What are the two fences?
- 2. Is a value of 40 flagged?
- 3. Is a value of 2 flagged?
Answers
- 1. and.
- 2. Yes, 40 > 38.
- 3. No, 2 > -10.