Outliers in Data - Complete Interactive Lesson
Part 1: What Is an Outlier?
🎯 Outliers in Data
Part 1 of 5 — What Is an Outlier?
Topics in This Part
| Section |
|---|
| The Idea of an Outlier |
| Spotting Outliers by Eye |
| Why a Single Value Can Mislead |
🔑 Key Concept: An outlier is a data value that lies unusually far from the rest of the data. One stray value can quietly distort an average, stretch a graph, and lead to wrong conclusions — so learning to spot and handle outliers is a core data skill.
The Idea of an Outlier
Imagine seven students report how many minutes it took them to get to school:
Six of the values huddle between and minutes. Then there's a — more than double the next-largest value. That lonely is an outlier: a value that doesn't fit the pattern of the rest.
Outliers can be:
- Real and important — maybe that student walked from across town, or a sensor caught a genuine spike.
- Mistakes — a typo ( instead of ), a broken instrument, or the wrong units.
💡 An outlier is not automatically "bad data." It is simply a value worth a second look. The job of statistics is to flag it; the job of a thoughtful person is to investigate why it's there.
Concept Check 🎯
Why a Single Value Can Mislead
Return to the commute times. Their mean (average) is:
But look — six of the seven students got to school in under minutes! The "average" of is larger than almost every actual value, all because of one .
If we set the outlier aside, the other six average:
That is a far more honest summary of a typical commute.
⚠️ The mean is pulled toward outliers. A single extreme value can drag the average up or down until it no longer represents the group. We will study this "tug-of-war" carefully in Part 4.
See the Pull 🧮
A small shop records the ages of customers:
1) Mean of all five ages (it divides evenly) 2) Mean of just the first four ages (the outlier removed)
Spotting by Eye Is Not Enough
In the examples above, the outliers were obvious. But what about a value that is somewhat large — is an outlier in a data set that runs to ? Eyeballing it is risky and subjective.
We need an objective rule that any two people would apply the same way. There are two standard ones:
| Rule | Idea |
|---|---|
| rule | flag values too far outside the middle half (Part 2) |
| Standard-deviation rule | flag values more than (or ) standard deviations from the mean (Part 3) |
🔑 Both rules turn the fuzzy phrase "unusually far" into a precise calculation. Part 2 tackles the most common one — the rule.
First Ideas 🔽
Lock in the vocabulary from Part 1.
Part 2: The 1.5 × IQR Rule
🎯 Outliers in Data
Part 2 of 5 — The Rule
🔑 The Idea: Measure the spread of the middle half of the data with the IQR, then build two fences. Any value beyond a fence is officially an outlier.
Step 1 — Find the Quartiles and the IQR
The interquartile range (IQR) is the spread of the middle of the data:
where (the first quartile) is the median of the lower half of the sorted data and (the third quartile) is the median of the upper half.
Quick refresher
For sorted data ():
- The median is the average of the and values: .
- Lower half → (the middle one).
- Upper half → .
💡 The IQR ignores the extremes on purpose, so it is a stable measure of spread — exactly what we want when hunting the extremes.
Step 2 — Build the Fences
Multiply the IQR by and step that far outside each quartile:
🔑 The rule: A value below the lower fence or above the upper fence is an outlier. Everything between the fences is ordinary.
Finishing our example
With , , and :
Now scan the data . Is anything below or above ? Only the clears the upper fence — is an outlier. ✓
⚠️ A value exactly on a fence is not beyond it, so it is not flagged. Only values strictly past a fence count.
Concept Check 🎯
Build the Fences 🧮
Monthly rainfall (cm), sorted, with the five-number summary min , , median , , max .
1) 2) Upper fence 3) Lower fence
Putting the Fences to Work
Once you have both fences, classifying every value is a simple scan: walk through the data and ask, for each one, "Is it below the lower fence or above the upper fence?"
Remember the boundary detail from the worked example:
⚠️ Strictly beyond. A value has to be past a fence to count. A value sitting exactly on a fence is inside the gate, so it is not an outlier.
The drill below gives you the fences directly — your only job is the verdict.
Outlier or Not? 🔽
A data set has and , so . The fences are lower and upper . For each value, decide.
Part 3: The Standard-Deviation Rule
🎯 Outliers in Data
Part 3 of 5 — The Standard-Deviation Rule
🔑 A second test: Instead of quartiles, measure how many standard deviations a value sits from the mean. If it is more than about away, it is unusually far out.
Measuring Distance in Standard Deviations
The standard deviation measures the typical distance of values from the mean . We can rewrite any value as a number of standard deviations away from the mean — called its -score:
- means the value sits exactly at the mean.
- means it is one standard deviation above the mean.
- means it is two standard deviations below the mean.
🔑 The rule: A common cutoff flags a value as an outlier when its -score satisfies (some textbooks use the stricter ). The farther is from , the more unusual the value.
Worked Example: Test Scores
A class has a mean score of with a standard deviation of . Using the rule, check three scores.
A score of : Since , the is an outlier (unusually high). ✓
A score of : Since , the is not an outlier — just a good score.
A score of : Since , the is an outlier (unusually low). ✓
💡 The -score is a "universal ruler." A score of might be ordinary in one class and extraordinary in another — the -score accounts for how spread out each class actually is.
Concept Check 🎯
Compute the -score 🧮
A factory fills bottles with a mean of mL and a standard deviation of mL.
1) A bottle holds mL. Its -score is 2) A bottle holds mL. Its -score is 3) Using , how many of these two bottles are outliers?
Two Rules, Side by Side
You now own two outlier tests. They usually agree, but they are built from different ingredients:
| rule | Standard-deviation rule | |
|---|---|---|
| Center used | median | mean |
| Spread used | IQR () | standard deviation |
| Outlier when | beyond a fence | $ |
| Best when | data may be skewed | data is roughly symmetric |
💡 Because the IQR rule leans on the median and quartiles, it is itself resistant to outliers — which is why it's the go-to for messy, skewed data. The next check makes sure you can tell the two rules apart.
Two Rules, One Goal 🔽
Match each phrase to the rule it describes.
Part 4: How Outliers Affect Statistics
🎯 Outliers in Data
Part 4 of 5 — How Outliers Affect Statistics
🔑 Big Idea: Some statistics get yanked around by outliers and some shrug them off. Knowing which is which tells you the right numbers to report when an outlier is present.
Resistant vs. Non-Resistant
A statistic is resistant (or robust) if a single outlier barely changes it. It is non-resistant if an outlier can move it a lot.
| Statistic | Measures | Resistant to outliers? |
|---|---|---|
| Mean | center | ❌ No — gets pulled toward the outlier |
| Median | center | ✅ Yes — only the middle position matters |
| Range | spread | ❌ No — uses the very extremes |
| IQR | spread | ✅ Yes — uses only the middle half |
| Standard deviation | spread | ❌ No — squares the distance to the mean |
🔑 Rule of thumb: When a data set contains an outlier, report the median for center and the IQR for spread. They describe the typical value honestly.
Worked Example: Adding One Outlier
Start with five values:
- Mean
- Median (the middle value)
Now toss in a single outlier, :
- Mean
- Median (average of the two middle values)
| Before | After | Change | |
|---|---|---|---|
| Mean | 😱 | ||
| Median |
⚠️ The mean leaped by , while the median barely budged. This is exactly why a report that hides an outlier behind "the average" can be so misleading.
Concept Check 🎯
Measure the Damage 🧮
A study group's quiz scores:
1) Mean 2) Median
Now a sixth member scores an , giving .
3) New mean (it divides evenly) 4) New median
Why Some Statistics Resist and Others Don't
The pattern in that drill is no accident. It comes down to what each statistic actually uses:
- The mean sums every value, so an extreme number changes the total — and the average shifts.
- The range is built from the very smallest and largest values, so an outlier is one of its inputs.
- The median depends only on the middle position, so a far-off value just sits at the end without moving it.
- The IQR uses the quartiles — the edges of the middle half — and ignores the extremes entirely.
🔑 Memory hook: statistics built from positions in the middle (median, IQR) resist outliers; statistics built from every value or the extremes (mean, range, standard deviation) do not.
Use the next check to sort each statistic into the right bucket.
Resistant or Not? 🔽
For each statistic, choose whether a single outlier changes it a lot or barely at all.
Part 5: Causes, Decisions & Mastery Check
🎯 Outliers in Data
Part 5 of 5 — Causes, Decisions & Mastery Check
You can now (1) recognize an outlier, (2) flag one with the rule, (3) flag one with the -score rule, and (4) describe how outliers warp the mean, range, and standard deviation. The last skill is judgment: what to do once you've found one.
Where Outliers Come From — and What to Do
| Cause | Example | Sensible action |
|---|---|---|
| Data-entry error | typed for | Fix it if you can, or remove it |
| Measurement error | a broken scale reads | Discard the faulty reading |
| Wrong units | height in cm mixed with m | Convert to consistent units |
| A genuine rare event | a record-breaking flood | Keep it — it is real and meaningful |
⚠️ Never delete an outlier just because it is inconvenient. Removing real data to make a chart look tidy is a form of dishonesty. Investigate the cause first; only remove a value if you have good reason to believe it is an error.
💡 A good report often shows the analysis both ways — with and without the outlier — and explains the difference, so the reader can judge for themselves.
Concept Check 🎯
Full Analysis 🧮
Ages of people at a small workshop, sorted, with :
The five-number summary is min , , median , , max .
1) 2) Upper fence (decimal is fine) 3) How many values are outliers?
Your Outlier Toolkit
Before the final practice, here is everything in one place:
| Goal | Key move |
|---|---|
| Spot by the IQR rule | flag values beyond or |
| Spot by the -score rule | flag values with $ |
| Report center with an outlier | use the median (resistant) |
| Report spread with an outlier | use the IQR (resistant) |
| Decide what to do | find the cause first; keep genuine data, fix or remove true errors |
⚠️ A value exactly on a fence (or with exactly ) is not an outlier — it has to be strictly beyond the cutoff.
Mixed Practice 🎯
One Last Word
Finding an outlier is the beginning of the story, not the end. A flagged value is an invitation to ask "why?" — a typo, a broken sensor, or a genuinely remarkable event. The math points at the unusual value; you decide what it means.
Three questions ahead to lock it all in.
Exit Quiz ✅
Answer all three to finish the lesson.