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 propertyMeanMedian
What it countsThe size of every valueThe position of every value
Effect of an extreme valueLargeAlmost none
In a symmetric distributionThey agreeThey agree
In a right skewLarger than the medianSmaller than the mean

Two worked examples

Example 1 — the balance point moves

  1. Five values: 4, 5, 6, 7, 8. \bar{x} = 6,\ \text{median} = 6
  2. Replace the 8 with 108. 4, 5, 6, 7, 108
  3. The median still counts to the middle. \text{median} = 6
  4. The mean must rebalance. \bar{x} = 26

Example 2 — choosing by intent

  1. "How much housing wealth exists in this town?"
  2. That is a total, so the mean is right.
  3. "Can a teacher afford a house here?"
  4. That is about a typical case, so the median is right.
A calculator: 4, 5, 6, 7 — and the fifth value — sliders for The fifth (largest) value, with results that update at once on a graph.