Mean or Median: Which to Use
What outliers do to the mean but not the median - worked through seven house prices, and why salaries and house prices are usually reported as medians.
What outliers do to the mean but not the median - worked through seven house prices, and why salaries and house prices are usually reported as medians.
Both the mean and the median claim to describe the centre of a set of data, and on ordinary data they agree closely. The difference only shows itself when a few extreme values appear — and then choosing the wrong one can give a number that describes nobody at all.
The key difference is how each reacts to an outlier — a value lying far away from the rest of the data. The mean uses every value, so an outlier pulls it. The median only cares about position, so an outlier barely touches it.
Five house prices in a neighbourhood, in riyals:
The values sit close together, so the mean lands in a sensible place. Anyone told "about 950,000" would form an accurate picture of the neighbourhood.
Now add one luxury house at 2,500,000 and one old house at 300,000. Sorted, the seven prices are:
This figure is higher than six of the seven houses. It is arithmetically correct and practically misleading — the single luxury house has pulled it upwards.
Take the same seven prices and find the median instead.
The outliers changed the mean by more than 128,000, but they did not move the median at all. Making the luxury house twice as expensive would still leave the median at 900,000 — only its position in the order matters, not its size.
If the extreme values genuinely do not belong to the group being described, they can be removed before taking the mean:
This must be done honestly. Removing values simply because they are inconvenient is not analysis — the justification has to be that they belong to a different group.
Consider salaries at a company. If one director earns far more than everyone else, the mean salary rises for all the wrong reasons, and an applicant reading it would be badly misled. The median salary answers the question they actually asked: what does a typical employee earn? This is why income and house-price figures are usually reported as medians.