SECTION 1
Historical Context & Motivation
Humans have been summarizing data for centuries. Ancient civilizations recorded harvests and trade goods, but the idea of calculating a single number to represent an entire collection of values is surprisingly modern. The concept of the arithmetic mean (what most people call the "average") became a formal mathematical tool during the Scientific Revolution, while the median gained recognition later as statisticians realized that extreme values could warp averages in misleading ways.
1669 • Christiaan Huygens and Expected Value
1774 • Laplace and the Median
1887 • Francis Galton Popularizes Median
1960s • Robust Statistics Emerges
The central question this lesson addresses is straightforward yet powerful: when your data set contains one or more extreme values—called outliers—which measure of center, the mean or the median, gives a more accurate picture of the 'typical' value? Understanding this distinction is essential for interpreting reports about income, test scores, housing prices, and nearly any real-world data set.
SECTION 2
Core Principles & Definitions
Before we can explore how outliers pull or push summary statistics, we need clear definitions of the key terms involved. Each concept below builds on ideas you already know from Algebra 1 and basic data handling.
Mean
Median
Outlier
Resistant Measure
Skewness
KEY TAKEAWAY
SECTION 3
Visual Explanation — Dot Plots With and Without Outliers
The diagram below shows two dot plots using the same core data set: {2, 3, 4, 5, 6}. In the top plot, no outlier is present and the mean and median coincide at 4. In the bottom plot, the value 6 has been replaced with 20—an outlier. Notice how the mean jumps from 4 to 6.8 while the median stays at 4.
The visual makes a critical idea concrete: because the mean uses every value in its calculation, any extremely large or small number has a direct arithmetic impact. The median ignores how far away extreme values are—it only cares about which value sits in the middle position once the data are sorted.
SECTION 4
Mathematical Framework
Let's formalize how the mean and median are calculated so you can see exactly why one is sensitive to outliers and the other is not.
ARITHMETIC MEAN
Where x̄ is the mean, x₁, x₂, …, xₙ are the individual data values, and n is the total number of values. Every value enters the numerator, so one huge value inflates the sum—and therefore the mean.
MEDIAN (ODD n)
When n is odd, the median is the single middle value after sorting. The actual magnitudes of the smallest and largest values do not matter—only their positions do.
MEDIAN (EVEN n)
When n is even, the median is the average of the two middle values. Again, outliers at the extremes have no influence unless they change which values occupy the center positions.
IQR OUTLIER TEST
Where Q₁ is the first quartile, Q₃ is the third quartile, and IQR = Q₃ − Q₁. This is the most common method taught in introductory statistics for formally identifying an outlier.
The key insight is algebraic: in the mean formula, changing any single value directly changes the numerator by the same amount, which then propagates through the division. In the median formula, changing an extreme value has zero effect on the sorted position of the middle value. This is why statisticians call the median a resistant measure of center.
SECTION 5
Outliers, Skewness, and Choosing the Right Measure
Outliers don't just move the mean—they can change the overall shape of a distribution. When a data set has one or more extreme high values, we say the distribution is skewed right (the tail stretches to the right). With extreme low values, it is skewed left. When data are roughly symmetric, the mean and median are close together and either works well. The diagram below contrasts three distribution shapes.
| Distribution Shape | Mean vs. Median | Better Measure of Center |
|---|---|---|
| Symmetric (no outliers) | Mean ≈ Median | Either (mean is common) |
| Right-skewed (high outliers) | Mean > Median | Median |
| Left-skewed (low outliers) | Mean < Median | Median |
Guidelines for selecting mean or median based on distribution shape.
SECTION 6
Worked Example — Test Scores
A class of nine students takes a quiz. The scores are: 72, 75, 78, 80, 82, 84, 85, 88, 150. The score of 150 looks suspiciously high (perhaps the teacher entered the wrong grade). Let's compute the mean and median, then decide which one better represents the typical student score.
Quiz Score Analysis
- 1
Step 1 — Sort the Data
The data are already sorted from least to greatest: 72, 75, 78, 80, 82, 84, 85, 88, 150. - 2
Step 2 — Find the Median
There are n = 9 values (odd), so the median is the value in position (9 + 1) / 2 = 5th position. Counting: 72, 75, 78, 80, 82, 84, 85, 88, 150.Median = 82 - 3
Step 3 — Calculate the Mean
Sum = 72 + 75 + 78 + 80 + 82 + 84 + 85 + 88 + 150 = 794. Mean = 794 / 9 ≈ 88.2.Mean ≈ 88.2 - 4
Step 4 — Identify the Outlier
The value 150 is far above the other scores. We can verify using the IQR method. Q₁ = 76.5, Q₃ = 86.5, so IQR = 10. Upper fence = 86.5 + 1.5 × 10 = 101.5. Since 150 > 101.5, the value 150 is a confirmed outlier. - 5
Step 5 — Compare and Justify
The mean of 88.2 is higher than 8 out of 9 actual scores—it does not represent a typical student. The median of 82 sits right in the middle of the non-outlier scores. Because the data contain an outlier that skews the distribution to the right, the median is the better measure of center for this data set.Best measure: Median = 82
SECTION 7
Strengths & Limitations — Mean vs. Median
| Feature | Mean | Median |
|---|---|---|
| Sensitivity to outliers | High — one extreme value changes it significantly | Low — remains stable even with extreme values (resistant) |
| Uses all data values | Yes — every value contributes to the sum | No — only the middle value(s) matter |
| Best for symmetric data | Excellent — equals the median and is easy to compute | Also good, but provides the same answer as the mean |
| Best for skewed data | Misleading — pulled toward the tail | Preferred — stays near the bulk of the data |
| Common real-world use | GPA, batting average, temperature averages | Household income, home prices, hospital wait times |
Comparison of the mean and median as measures of center.
REAL-WORLD EXAMPLE
SECTION 8
Connection to Advanced Statistics
The ideas you've learned here extend into more advanced courses in surprising ways. Understanding how outliers affect the center prepares you for topics like robust regression, trimmed means, and non-parametric statistics—all of which deal with data that don't follow neat, symmetric patterns.
| Concept in This Lesson | Advanced Extension |
|---|---|
| Mean is sensitive to outliers | Trimmed mean (drop top/bottom 5–10% of data) combines resistance with the mean's mathematical usefulness |
| Median is resistant | Median Absolute Deviation (MAD) extends resistance to measures of spread |
| IQR rule for outliers | Z-score method (|z| > 2 or 3) is used in AP Statistics and beyond for more formal outlier detection |
| Choosing mean vs. median | In inference, non-parametric tests like the Wilcoxon rank-sum test use medians instead of means when assumptions are violated |
How today's concepts connect to future coursework.
For now, the most important skill is being able to justify your choice of measure. On tests and projects, stating 'the median is better because outliers pull the mean away from the center of the data' earns full credit. In more advanced courses, you'll learn formal ways to quantify how much influence an outlier has.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
An outlier is a data value that is far removed from the rest of the data. Because the mean uses every value in its calculation (sum ÷ count), a single extreme number can pull the mean significantly toward itself. The median, defined as the middle value of sorted data, depends only on position and is therefore a resistant measure of center that remains stable despite outliers.
When a distribution is skewed by outliers, the median is usually the better measure of center because it more accurately represents the typical value. In symmetric distributions without outliers, the mean and median are approximately equal and either may be used. To justify your choice on an assessment, state whether outliers are present, describe how they affect the mean, and explain why the median is or is not a better representation of the data's center.