Identifying Outliers
Learn what an outlier is, how to find it with the 1.5 × IQR rule, and how it changes the mean, median and range.
Intermediate25 min18 problems
Definition
An outlier is a data value that lies unusually far from the rest of the data. It is much smaller or much larger than the other values.
The 1.5 × IQR rule
To decide in a fair way whether a value is an outlier, we build two fences from the quartiles:
where . Any value below the lower fence or above the upper fence is an outlier. A value exactly on a fence is not an outlier.
How to find outliers
- 1.Order the data and find and (medians of the lower and upper half, as in Range and Interquartile Range)
- 2.Calculate
- 3.Multiply:
- 4.Lower fence , upper fence
- 5.Every value outside the fences is an outlier
Outliers in a box plot
In a box plot, outliers are drawn as separate dots. The whiskers stop at the smallest and largest values that are not outliers.
Why outliers matter
An outlier pulls the mean and stretches the range, but it barely moves the median or the IQR. That is why the median and IQR are called resistant measures.
Other methods exist too: with the standard deviation, a value more than 2 or 3 standard deviations from the mean is often called unusual (see Standard Deviation).
Try it now
What is an outlier?
Interactive Visual
Box Plot Builder
Min
12
Q1
12.5
Median
15
Q3
16.5
Max
18
IQR (Q3 - Q1):4
Range:6
Outliers:3
Sorted data:
3; 12; 13; 14; 15; 15; 16; 17; 18
n = 9
Click on parts of the box plot to learn what they represent.
Comparing box plots
| As recorded (2 and 52 included) | Sensor errors removed | |
|---|---|---|
| Min | 21 | 21 |
| Q1 | 23 | 23.5 |
| Median | 26 | 26 |
| Q3 | 29 | 28.5 |
| Max | 30 | 30 |
| IQR | 6 | 5 |
| Range | 9 | 9 |
| Outliers | 2; 52 | - |
All box plots share one axis, so you can compare medians, boxes (IQR) and ranges directly. Tap a box to highlight it. Circles are outliers: more than 1.5 × IQR outside the box.
Dot Plot
Bus rides without the breakdown: 12, 14, 15, 16, 18 minutes
Each dot is one value (5 values in total).
Mean = 15
Median = 15
Tap a column to count its dots.
Dot Plot
With the breakdown day: 12, 14, 15, 16, 18, 51 minutes
Each dot is one value (6 values in total).
Mean = 21
Median = 15.5
Tap a column to count its dots.
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsProblem 1 of 18
Easy
What is an outlier?
Glossary
- Outlier
- A data value that lies unusually far from the other values; by the 1.5 × IQR rule, a value below the lower fence or above the upper fence
- Lower fence
- The boundary ; values below it are outliers
- Upper fence
- The boundary ; values above it are outliers
- 1.5 × IQR rule
- A method for finding outliers: build fences 1.5 IQRs below and 1.5 IQRs above
- Resistant measure
- A statistic that changes very little when an outlier is added, such as the median and the IQR
Formula Card
Interquartile range
The spread of the middle 50% of the data
Lower fence
Values below the lower fence are outliers
Upper fence
Values above the upper fence are outliers