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.
Definition
The 1.5 × IQR rule
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
Why outliers matter
Try it now
Worked Examples
Find the IQR
Multiply the IQR by 1.5
Find the lower fence
Find the upper fence
Compare each value with the fences
Answer: Only and are outliers. The values and lie inside the fences and .
Common Mistakes
Using instead of
Why it's wrong: Forgetting the factor makes the fences too close to the box, so ordinary values get marked as outliers.
Correct: Always multiply first: , then subtract it from and add it to .
Building the fences from the median, the minimum or the maximum
Why it's wrong: The rule measures distance from the box, and the box ends at and .
Correct: Lower fence , upper fence . Never start from the median or the extremes.
Drawing the whisker all the way to the outlier
Why it's wrong: Then the outlier looks like part of the normal spread, and the box plot hides it.
Correct: The whisker ends at the largest (or smallest) value that is not an outlier. Draw each outlier as a separate dot.
Deleting every outlier automatically
Why it's wrong: An outlier can be a real and important value, like a record time or a very large order.
Correct: Remove or correct a value only when it is an error (typo, broken instrument, wrong unit). Keep real outliers and report them, or use the median and IQR.
Interactive Visual
Box Plot Builder
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 problemsWhy It Matters
- Banks: a card payment far above your usual purchases is flagged as possible fraud
- Factories: a bottle filled with much less juice than the others is an outlier that quality control removes from the line
- Science: a thermometer reading of on a mild day is probably a broken sensor, not a heat wave
- Sports: a world record is a real outlier, and it is the most interesting value of all
- Salaries: one very high salary makes the mean salary look much higher than what most people earn
Real World Applications
Spotting Card Fraud
Banks compare each new card payment with the customer's usual payments. A payment above the upper fence can trigger a security check.
Example:
A customer's payments have dollars and dollars. A payment of 450 dollars is far above the upper fence, so the bank sends a text message to confirm it.
A customer's usual card payments have dollars and dollars. Suddenly a payment of 450 dollars appears.
What is the upper fence for this customer's payments (in dollars)?
Step 1: Write the mathematical expression
Calculate :
Quality Control in a Factory
Juice bottles should all hold about the same amount. Bottles below the lower fence are taken off the line and checked.
Example:
If most bottles hold between 498 mL and 502 mL, a bottle with 480 mL is clearly underfilled and the machine may need repair.
Fill volumes of juice bottles have mL and mL.
What is the lower fence (in mL)?
Step 1: Write the mathematical expression
Calculate :
Reporting a Typical Salary
News reports often give the median salary instead of the mean, because a few very high salaries pull the mean up.
Example:
In a small company, five employees earn between 30 and 38 thousand dollars a year and the owner earns 160 thousand dollars. The owner's salary is an outlier.
Yearly salaries in thousands of dollars: .
What is the mean salary (in thousands of dollars)?
Step 1: Write the mathematical expression
Add all six salaries and divide by 6:
Key Takeaways
- 1An outlier is a value unusually far from the rest of the data, either very small or very large
- 21.5 × IQR rule: lower fence , upper fence
- 3Values below the lower fence or above the upper fence are outliers; a value exactly on a fence is not
- 4In a box plot, outliers are separate dots and the whiskers stop at the last values inside the fences
- 5Outliers pull the mean and stretch the range, while the median and IQR barely change
- 6Correct or remove an outlier only if it is an error; keep real outliers and report them
Frequently Asked Questions
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