01 / 21

Outlier Effects
on Center

Discover how extreme values pull the mean away from the middle while the median holds steady: and learn to justify which measure best represents a data set.

Math 1

What Is an Outlier?

An outlier is a data value that is significantly higher or lower than most other values in a data set. It stands apart from the general pattern of the data.

Reviewing Mean and Median

Mean
Add all values and divide by how many there are: \(\bar{x} = \frac{\sum x_i}{n}\). Uses every data point in its calculation.
Median
The middle value when data are sorted from least to greatest. Only cares about position, not size of extreme values.

A Data Set Without an Outlier

Consider the data set: \({2, 3, 4, 5, 6}\). All five values are close together.

0
1
2
3
4
5
6
7
\( \text{Mean} = 4 \)
\( \text{Median} = 4 \)

Now Add an Outlier

Replace the \(6\) with \(50\). New data set: \({2, 3, 4, 5, \textcolor{#f87171}{50}}\).

0
5
10
20
30
40
50
2
3
4
5
50
\( \text{Mean} = 12.8 \)
\( \text{Median} = 4 \)

The Core Rule

Mean: Not Resistant
The mean is sensitive to outliers because it factors every value into its sum. One extreme number can shift it dramatically.
Median: Resistant
The median is resistant (robust) to outliers because it depends only on position, not magnitude. Outliers barely move it.

Why Does the Mean Shift?

The mean formula \(\bar{x} = \frac{\sum x_i}{n}\) adds every value. A single huge value inflates the sum while \(n\) barely changes.

Without Outlier
\( \text{Sum} = 2+3+4+5+6 = 20 \)
\( n = 5 \)
\( \text{Mean} = \frac{20}{5} = 4 \)
With Outlier
\( \text{Sum} = 2+3+4+5+50 = 64 \)
\( n = 5 \)
\( \text{Mean} = \frac{64}{5} = 12.8 \)
+8.8 shift
\( \text{Median}: 4 \rightarrow 4 \) (no change)

Outliers and Skew Direction

High Outlier
Pulls the mean to the right (higher). Creates a right-skewed distribution where \( \text{mean} > \text{median} \).
Low Outlier
Pulls the mean to the left (lower). Creates a left-skewed distribution where \( \text{mean} < \text{median} \).
No Outliers
Mean and median are close together. The distribution is approximately symmetric.

Resistant vs. Non-Resistant

Resistant Measures Non-Resistant Measures
Definition Not affected much by outliers Heavily influenced by outliers
Examples Median, IQR Mean, Range, Std. Dev.
Best When Data has outliers or skew Data is symmetric, no outliers
Depends On Position of values Magnitude of all values

How to Decide Which Measure to Use

1
Sort the data from least to greatest and scan for values that are far from the cluster.
2
Calculate both the mean \(\bar{x}\) and the median. Compare them.
3
Check for large differences. If the mean and median are far apart, outliers or skew are present.
4
Choose the median when outliers exist. Choose the mean when the data is roughly symmetric.
5
Justify your choice by explaining why the measure better represents a typical value.

Example 1: Test Scores

Five students scored: \({78, 82, 85, 88, 91}\) on an exam. Find the mean and median.

75
80
85
90
95
78
82
85
88
91
\( \text{Mean} = 84.8 \)
\( \text{Median} = 85 \)

Example 2: Home Prices

Six homes sold for (in thousands): \({150, 160, 170, 180, 190, \textcolor{#f87171}{950}}\).

100
200
300
500
700
900
950
\( \text{Mean} = 300 \)
\( \text{Median} = 175 \)

Example 3: Salary Data

A small company's salaries (in thousands): \({35, 38, 40, 42, 45, 48, \textcolor{#f87171}{350}}\). The CEO earns $350K.

Mean
\(\bar{x} = \frac{35+38+40+42+45+48+350}{7} = \frac{598}{7} \approx 85.4\)
Median
Sorted: \(35, 38, 40, \mathbf{42}, 45, 48, 350\). \( \text{Middle value} = \mathbf{42} \).

Quantifying the Pull

You can measure exactly how much an outlier shifts the mean by comparing the mean with and without the outlier.

1
Salary example without CEO: \(\bar{x} = \frac{248}{6} \approx 41.3\)
2
With CEO: \(\bar{x} = \frac{598}{7} \approx 85.4\)
3
Shift: \( 85.4 - 41.3 = 44.1 \). The CEO's salary shifted the mean by $44.1K.

Common Mistakes

✕ Always Choosing the Mean
Students default to the mean without checking for outliers. Always scan the data for extreme values first.
✕ Confusing Resistant with Unaffected
The median can change slightly with outliers: it just does not change dramatically. Resistant does not mean frozen.
✕ Forgetting to Justify
Saying "use the median" is not enough. You must explain why: the outlier inflates/deflates the mean, making it unrepresentative.

Summary Comparison

Mean Median
Formula \(\frac{\sum x_i}{n}\) Middle value when sorted
Uses Every Value? Yes No: only position matters
Resistant? No Yes
Outlier Effect Pulled toward the outlier Barely changes
Best For Symmetric data, no outliers Skewed data or outliers

Question 1 of 5

A data set is: \({10, 12, 14, 15, 100}\). Which measure of center is most affected by the outlier \(100\)?

Question 2 of 5

The data set \({5, 7, 8, 9, 10}\) has a mean of \(7.8\) and a median of \(8\). If the value \(10\) is replaced with \(50\), what happens?

Question 3 of 5

A real-estate agent wants to describe the "typical" home price in a neighborhood where most homes sell for around $200K but one mansion sold for $2.5 million. Which measure should the agent use and why?

Question 4 of 5

For the data set \({20, 22, 24, 26, 28}\), the mean is \(24\) and the median is \(24\). What does this tell you about the data?

Question 5 of 5

A data set has \( \text{mean} = \mathbf{45} \) and \( \text{median} = \mathbf{30} \). What can you conclude?