SECTION 1
Historical Context & Motivation
Humans have always needed ways to summarize large collections of numbers into something manageable. Whether ancient merchants were tracking the typical weight of grain sacks or astronomers were averaging observations of a star's position, the idea of finding a single number to represent an entire data set is surprisingly old. The formal tools we call measures of center — specifically the mean and the median — grew out of centuries of practical problem-solving, evolving from rough estimations into the precise calculations we use today.
~3000 BCE • Ancient Record Keeping
1570s • Tycho Brahe & Repeated Observations
1670s • The "Arithmetic Mean" Is Formalized
1800s • Francis Galton & the Median
Today • Everyday Statistics
The central question these tools answer is simple yet powerful: What single value best represents a whole collection of data? As you'll see in this lesson, the mean and median approach that question from different angles, and choosing the right one depends on the shape and context of your data.
SECTION 2
Core Principles & Definitions
Before diving into calculations, it helps to understand the key ideas that make measures of center useful. These foundational principles will guide you whenever you need to summarize a data set or choose between the mean and the median.
Mean (Arithmetic Average)
Median (Middle Value)
Outliers
Symmetric vs. Skewed Data
Context Matters
KEY TAKEAWAY
SECTION 3
Visual Explanation
The diagram below shows a dot plot of nine quiz scores. Each dot represents one student's score. The mean is marked with a blue triangle and the median with a violet line. Notice how both measures land near the center of the data, but the mean is pulled slightly toward the higher scores.
In the diagram, you can see that the two measures are close but not identical. The single low score of 5 tugs the mean to the left — that's the 'balance point' effect in action. If that score were even lower, say 1 instead of 5, the mean would drop further, but the median would stay right at 8. This visual makes the core difference between mean and median easy to feel intuitively.
SECTION 4
Mathematical Framework
Now that you have the conceptual picture, let's define each measure with precise formulas and see how the variables work together.
ARITHMETIC MEAN
Where x̄ (read "x-bar") is the mean, x₁, x₂, …, xₙ are the individual data values, and n is the total number of data values.
In plain language: add up every value in the data set, then divide by how many values there are. The mean uses every data point in its calculation, which is both a strength (it captures all the information) and a weakness (extreme values can distort it).
MEDIAN (ODD n)
Sort the data from least to greatest. If n is odd, the median is the value at position (n + 1) / 2.
MEDIAN (EVEN n)
If n is even, the median is the average of the two middle values — the values at positions n/2 and n/2 + 1 in the sorted list.
Quick Tip
SECTION 5
How Outliers Affect Mean vs. Median
One of the most important skills in statistics is recognizing when the mean or the median gives a misleading picture. The diagram below compares two data sets that are identical except for one extreme value. Watch how dramatically the mean shifts while the median barely moves.
This is exactly why news reports on household income almost always use the median. A few billionaires can inflate the mean income far above what a typical household earns, while the median stays closer to the experience of the average person. Whenever you encounter a data set that might contain extreme values, check both the mean and the median — if they differ a lot, outliers or skewness are at work.
SECTION 6
Worked Example
A teacher records the following test scores for 10 students: 72, 85, 90, 65, 88, 95, 78, 82, 91, 74. Let's find the mean and the median, then interpret what they tell us.
Finding the Mean and Median of Test Scores
- 1
Step 1 — List and Sort the Data
Write out the data in order from least to greatest:65, 72, 74, 78, 82, 85, 88, 90, 91, 95. There are n = 10 values. - 2
Step 2 — Compute the Sum
Add all ten scores: 65 + 72 + 74 + 78 + 82 + 85 + 88 + 90 + 91 + 95 = 820.Sum = 820 - 3
Step 3 — Divide to Find the Mean
x̄ = 820 / 10 = 82. The mean test score is 82.Mean = 82 - 4
Step 4 — Find the Median Position
Since n = 10 (even), the median is the average of the values in positions n/2 = 5 and n/2 + 1 = 6. From our sorted list, the 5th value is 82 and the 6th value is 85. - 5
Step 5 — Compute the Median
Median = (82 + 85) / 2 = 167 / 2 = 83.5.Median = 83.5 - 6
Step 6 — Interpret in Context
The mean (82) and median (83.5) are close, which suggests the data is fairly symmetric with no strong outliers. The teacher can report that the 'typical' student scored around 82–84 on the test.
SECTION 7
When to Use Mean vs. Median
Choosing between the mean and the median isn't just a math decision — it's a judgment call that depends on the real-world situation. The table below highlights the key differences and the best context for each measure.
| Feature | Mean | Median |
|---|---|---|
| Calculation | Sum of all values ÷ number of values | Middle value of ordered data |
| Uses every data point? | Yes | No — only the middle value(s) |
| Sensitive to outliers? | Yes — can be pulled by extremes | No — resistant to extremes |
| Best for symmetric data? | Excellent — matches the center | Also good; agrees with mean |
| Best for skewed data? | Can be misleading | Preferred — better represents typical value |
| Real-world examples | GPA, batting average, test scores (symmetric) | Home prices, salaries, response times (skewed) |
Key differences between the mean and the median
CHOOSING THE RIGHT MEASURE
SECTION 8
Connection to Advanced Topics
Mean and median are just the beginning of a rich toolkit for describing data. As you move through more advanced math and statistics courses, you'll encounter additional measures of center and related concepts that build directly on what you've learned here.
| Concept You Know Now | Where It Leads |
|---|---|
| Arithmetic mean | Weighted mean (e.g., GPA with different credit hours), expected value in probability |
| Median | Percentiles and quartiles (Q1, Q3), box-and-whisker plots |
| Sensitivity to outliers | Trimmed mean, robust statistics, interquartile range (IQR) |
| Measures of center in general | Measures of spread (standard deviation, variance), the normal distribution |
How today's concepts connect to future topics
In AP Statistics and college-level courses, you'll learn that knowing the center alone isn't enough — you also need to know how spread out the data is. The standard deviation measures the average distance of each value from the mean, and together the mean and standard deviation can describe the shape of an entire normal distribution. For now, mastering the mean and median gives you the essential foundation on which all of those ideas are built.
SECTION 9
Practice Problems
Test your understanding with these five problems. They increase in difficulty from conceptual recall to critical thinking. Try each one before checking the answer.
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
The mean is computed by dividing the sum of all values by the number of values (x̄ = Σx / n). It acts as the balance point of the data and uses every data point, which makes it sensitive to outliers. The median is the middle value of a sorted data set; for an even number of values, average the two middle entries. The median is resistant to extreme values, making it the preferred measure when data is skewed.
When a distribution is roughly symmetric, the mean and median are approximately equal and either can represent the center. When the distribution is skewed or contains outliers, the mean is pulled toward the tail while the median stays near the bulk of the data. Always interpret in context — stating a number without explaining what it means for the real-world situation is only half the job. These two measures form the foundation for more advanced topics like standard deviation, percentiles, and the normal distribution.