Mental Models204 cards · 12 fields

Mental Models/Mathematics & Statistics

Median vs Mean

中位数与平均数

A few extreme values drag the mean off, but the median shows the middle one.

In July 1982 the Harvard biologist Stephen Jay Gould was diagnosed with abdominal mesothelioma. Once he could walk again after surgery, he went to the Countway Library of Medicine in Boston to look up the research. He read that the median survival was eight months, and sat by the shelves for fifteen minutes.

Then he worked it out. Eight months only meant that half of patients didn't live that long, and the other half lived longer, some of them for several years. Lay out how long patients lived from shortest to longest, and there is a long tail trailing behind. He was young, his cancer was found early, and he could get the best treatment, so he was likely to land on the tail side.

He went on to live another twenty years.

A small team of five earns, from lowest to highest, 5,000, 6,000, 7,000, 8,000 and 24,000 yuan a month. The finance office asks: how much pay goes out next month? Add the five numbers and you get 50,000 yuan; split evenly among five people, that's 10,000 each, and that is the mean. A new colleague asks: what does a typical person here earn? The third person, right in the middle, earns 7,000 yuan, and this median is the answer. Tell the newcomer "everyone averages 10,000" and they'll guess too high, because four of the five earn less than 10,000.

Of five people, four earn less than the mean
Person 15000Person 26000Person 3: median7000Person 48000Mean10000Person 524000
Person 15000Person 26000Person 3: median7000Person 48000Mean10000Person 524000

The top earner's 24,000 yuan pulls the mean up to 10,000. The third person, right in the middle, earns 7,000, and that is what people "typically earn."

The mean keeps the total; the median keeps the rank

The mean is the sum divided by the count, and everyone's money goes into it. If the person earning 24,000 gets a 50,000 raise, the sum grows by 50,000 and the mean grows by 10,000, though the other four didn't get a cent more. The median only looks at who is in the middle: however big the raise for the person on 24,000, the third person is still on 7,000. The other way round, if the third person goes from 7,000 to 9,000, they move to fourth place, the 8,000 that used to be fourth becomes the median, and the mean only goes up by 400.

Pick the one that fits the question

If you ask "how much is it all together," the mean times the count gives back the total, and the median can't: 7,000 times 5 is only 35,000, because it has thrown away how big the values at both ends are. If you ask "pick anyone at random, where are they likely to be," the median answers directly: half the people are above it and half below. If you ask "how many people are over a certain line," neither number answers; you have to count. On this team, one person earns more than 10,000 a month, one fifth of them.

When you're asking about an ordinary person's situation and the data has a few very large values, the median is the steadiest. When the data falls into two clusters far apart, neither number works. If half the rents are 1,000 and half are 9,000, the mean is 5,000; the median, the average of the two households right in the middle, is also 5,000, and not one household is anywhere near it. The common fault lies with whoever reports the number: they pick the one that looks good, for instance reporting pay as "an average of 10,000," and readers then take it to be the median.

Communicate
If a job page says "half our people earn more than X a month," applicants know which side they'll probably land on. If it only says "an average of X," they have to guess how many very high values are pulling it up.
Explore
When the two numbers are far apart, take out the largest item and work them out again, to see which items are holding the gap open.
  1. Does my question need the total, or the one in the middle?
  2. Which way was the "average" in this report worked out, what is the other number, and how far apart are the two?
  3. Is what I care about really how many are over a certain line?

Society

Two answers about household wealth

The Federal Reserve's Survey of Consumer Finances, released in 2023, showed that in 2022 the mean net worth of American households was 1,063,700 dollars and the median was 192,900 dollars. To estimate the total wealth of all households in the country, multiply the mean by the number of households and you have it; to say roughly how much an ordinary family next door has, 192,900 dollars is the answer.

Technology

One slow request

You maintain a search service, and five requests take 1, 1, 1, 1 and 16 seconds. When a user asks "how long do I usually have to wait," you answer with the median, 1 second. When the data center wants to check how many seconds in total these five requests kept the server busy, you multiply the mean, 4 seconds, by 5 and get 20 seconds, 16 of which are that one slow request.

Personal life

A year of electricity bills

Over 12 months, your household's electricity bill is 100 yuan for 9 months, and 400 yuan for the other 3, when the heating is on. If you want to know what an ordinary month costs, the answer is 100 yuan; for how much to save for the whole year, multiply the mean, 175 yuan, by 12, which is 2,100 yuan. If you save 100 yuan times 12, you'll be 900 yuan short at the end of the year.

The student union has to approve the total monthly activity budget for 8 clubs next term. Last term, the clubs' actual monthly spending (yuan) was 50, 50, 60, 60, 70, 80, 90 and 1,340; the highest was a show put on jointly by several clubs. Next term the number of clubs and their activity plans are the same as last term.

To estimate total monthly spending, which number should you use?

The 7 rented apartments in a building have monthly rents (yuan) of 2,800, 3,000, 3,200, 3,400, 3,600, 3,800 and 15,000; the most expensive is a top-floor duplex with a terrace. You want to know roughly what level of rent a tenant pays if you ask any one of them at random.

Which number should you look at?

The last 12 times you picked up medicine at the pharmacy, you queued for 5 minutes 9 times and for 25 minutes 3 times. Today your lunch break leaves only 15 minutes for queuing, and you want to know how likely it is that you won't make it.

How should you read these 12 records?