Glossary

Outlier

Also written: outliers · extreme value

Definition

An outlier is a value far from the rest of the data. It pulls the mean towards itself and inflates the range, while leaving the median and interquartile range almost untouched.

What it does to each measure

Compare these two sets, identical except for the last value:

DataMeanMedianRangeIQR
5,6,6,7,7,8,95, 6, 6, 7, 7, 8, 96.96.9774422
5,6,6,7,7,8,945, 6, 6, 7, 7, 8, 94191977898922

The mean nearly triples and the range grows more than twentyfold. The median and interquartile range do not move at all.

That split is the practical point. Measures built from every value — the mean and mean absolute deviation — feel an outlier strongly. Measures built from positions — the median and IQR — barely notice one.

Spotting one

A dot plot shows an outlier immediately as a lone dot away from the cluster.

Without a picture, a large gap between the range and the IQR is the signature. A set whose middle half spans 44 and whose full range is 6060 has something far out in a tail.

An outlier is not automatically an error

Sometimes it is a typo — a height recorded as 17501750 cm rather than 175175. Then it should be corrected.

Often it is real and is the most interesting value in the set. One unusually long hospital stay, one component that failed early, one exceptional result: these are genuine observations, and deleting them because they are inconvenient changes what the data says.

The honest response is to report a measure of center that is not distorted by it, and to say the outlier is there.

Lessons that use this term

Related terms