Statistics · Exploring one-variable data
Centre — mean and median
Two numbers that part company exactly when it matters.
Two honest answers about one town
Ask how much housing wealth a town holds, and ask whether a teacher can afford a house there. Both questions are about the same list of prices, yet the right number to quote is different for each. How can two different "centers" both be correct?
The mean adds every value and divides by how many there are. The median orders the values and takes the one in the middle. On a symmetric distribution the two agree, which is why they are so easily confused. They separate precisely where the data are interesting.
\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i
| The property | Mean | Median |
|---|---|---|
| What it counts | The size of every value | The position of every value |
| Effect of an extreme value | Large | Almost none |
| In a symmetric distribution | They agree | They agree |
| In a right skew | Larger than the median | Smaller than the mean |
Two worked examples
Example 1 — the balance point moves
- Five values: 4, 5, 6, 7, 8.
\bar{x} = 6,\ \text{median} = 6 - Replace the 8 with 108.
4, 5, 6, 7, 108 - The median still counts to the middle.
\text{median} = 6 - The mean must rebalance.
\bar{x} = 26
Example 2 — choosing by intent
- "How much housing wealth exists in this town?"
- That is a total, so the mean is right.
- "Can a teacher afford a house here?"
- That is about a typical case, so the median is right.
- Assuming the mean and median are close — They agree only in a symmetric distribution In a skewed distribution the gap between them can be enormous.
- Asking "which is more accurate" — Ask "which question am I answering" Both numbers are true and answer different questions.