All guides

Outliers Explained: Errors, Discoveries and the 1.5 IQR Rule

What makes a value an outlier

An outlier is an observation far enough from the pattern of the rest to raise a question. Far enough needs a definition, and the standard one is Tukey's fence rule: values below Q1 minus 1.5 times the IQR, or above Q3 plus 1.5 times the IQR, are flagged. For roughly normal data the fences sit near 2.7 standard deviations from the mean, so only about one value in a hundred is flagged by chance. The z-score offers a second ruler, flagging values beyond about 3 standard deviations. Both rules identify candidates for investigation; neither proves anything is wrong. An outlier is a question the data asks you, not an error it confesses to.

Error, or the most important point in the set

Outliers arrive in two families. Some are mistakes: the decimal point slipped, the unit changed from kilograms to pounds mid-survey, the sensor froze. These should be corrected from source records or removed, with the removal documented. Others are real and precious: the first patient who responded to a failed drug, the transaction that exposes a fraud ring, the seismic reading that is not like the others. Fleming's contaminated petri dish was an outlier. Deleting real outliers because they inconvenience a model destroys exactly the information the data was collected to find, and quietly biases every summary toward the ordinary. The investigation, not the deletion, is the professional step.

Handling them without cheating

The honest workflow: flag with a stated rule, investigate the source, then decide and disclose. Report results with and without the outliers when the decision could change the conclusion, a practice called sensitivity analysis, and let readers see both. Prefer robust summaries, median and IQR, when outliers are real but extreme, since those measures describe the bulk of the data without pretending the extremes are absent. Never trim silently, never trim asymmetrically to help a hypothesis, and remember that in small samples the fences themselves are estimated from few values, so flags are tentative. An outlier handled openly strengthens a report; one handled quietly poisons it. Documentation is the grown-up response. When an outlier is removed, the report should say so, say why, and ideally show the result both ways; when it is kept, the same transparency applies. Preregistration, declaring the outlier rule before seeing the data, removes the temptation to shop for the rule that flatters the conclusion. None of this is bureaucratic fuss: the history of retracted papers and collapsed funds is littered with outliers handled quietly. A value that does not fit is information about your data, your instruments or your theory, and the one response that is never defensible is pretending it was never there.

Try it with your own numbers

The free calculators that go with this guide:

Find outliers with quartiles