Knaph

Statistics of One Variable81 of 1002 min read

Outliers and the Fence Rule

Zoe wrote down how many minutes 12 trains were late: 4,5,5,6,6,7,7,8,8,9,10,254, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 25. The 25 looks odd, but how odd is odd enough? Is there a rule, and what does that value do to the mean?

The fence rule

An outlier is a value far from the rest. The rule uses two fences. Here Q1=5.5Q_1 = 5.5, Q3=8.5Q_3 = 8.5 and IQR=3IQR = 3. Then 1.5⋅3=4.51.5 \cdot 3 = 4.5. Lower fence: Q1−4.5=1Q_1 - 4.5 = 1. Upper fence: Q3+4.5=13Q_3 + 4.5 = 13. A value outside the fences is an outlier, so 2525 is one.

Your turn: Q1=10Q_1 = 10 and Q3=18Q_3 = 18. Is 3333 an outlier? Answer: IQR=8IQR = 8, 1.5⋅8=121.5 \cdot 8 = 12, upper fence 18+12=3018 + 12 = 30, and 33>3033 > 30, so yes.

A number line from 0 to 28 with Zoe's 12 delays as dots, the fences drawn at 1 and 13, and the dot at 25 in a different color outside them.

How a box plot shows it

A box plot draws an outlier as its own dot. The whisker stops at the last value inside the fences, here 1010, not at 25.

A box plot of the delays from 4 to 10 with Q1 5.5, median 7 and Q3 8.5, and a separate dot at 25 far to the right.

What an outlier does

With the 25, the mean is 100÷12≈8.3100 \div 12 \approx 8.3 and the range is 2121. Without it, the mean is 75÷11≈6.875 \div 11 \approx 6.8 and the range is 66. The median stays 77 and the IQR stays 33. A resistant statistic hardly moves when an outlier is added. The median and IQR are resistant. The mean and range are not.

Check before you remove an outlier. A late train of 2525 minutes may be a typing mistake, or a real breakdown. Remove a mistake. Keep a real value, and say so.

A table of the delays with and without the 25: mean 8.3 and 6.8, range 21 and 6, median 7 and 7, IQR 3 and 3.

Careful

Never remove an outlier only because it is odd. It may be a real value.

Try it at home

  1. Find the fences for your own data set. Is anything outside them?
  2. Work out the mean with and without the biggest value.
  3. Ask where the odd value came from before you leave it out.

Words in this lesson

  • fence - Q1−1.5⋅IQRQ_1 - 1.5 \cdot IQR below and Q3+1.5⋅IQRQ_3 + 1.5 \cdot IQR above; values outside are outliers.
  • resistant - hardly changed by an outlier, like the median and the IQR.

Big idea

A value more than 1.5⋅IQR1.5 \cdot IQR below Q1Q_1 or above Q3Q_3 is an outlier. It pulls the mean and range, not the median and IQR, so check it before removing it.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.