Mean vs Median Lab

Compare the mean and median on a discrete set with a movable outlier, or explore how the proportion of individuals below the mean grows with skewness in a log-normal distribution.

Loading interactive simulation...

Most people earn below average, and there is a formula for how many 🖖

The mean is a balance point: one large number can drag it out of reach of almost everyone. The median is a count: half the population sits above it and half below, no matter how large the top number becomes. In a log-normal population with shape σ, the share of people below the mean is exactly Φ(σ/2).

An outlier moves the mean forever, and the median not at all 🖖

Dragging a single data point increases the mean by 1/n per unit without limit. Once a point passes the middle of the dataset, moving it further does not alter the median by a single cent, because the median cares only about order, not distance.

Which summary is right depends on the question asked 🖖

If you want to know the total shared out — for a budget, tax revenue, or fuel consumption — use the mean. If you want to know what a typical individual actually gets, use the median. Neither is dishonest; they answer different questions.

Problems solved in full

  1. How many earn below average, from the mean and the median and nothing else 6 steps

    Incomes follow a log-normal distribution with σ = 1.5. Work out what fraction of people earn less than the mean. Then show that you never needed σ — a published mean and median are enough.

    1. Log-normal means the logarithm is normal: ln X is N(μ, σ²). Everything below is a statement about ln X translated back, and that is the only trick in the problem.

    2. The median is easy. Half of ln X lies below μ, and the logarithm preserves order, so half of X lies below e^μ. The median is e^μ.

    3. The mean is not e^μ, and that gap is the whole subject. For a log-normal it is e^(μ + σ²/2) — the mean sits above the median by a factor of e^(σ²/2), which at σ = 1.5 is e^1.125 = 3.0802.

    4. Now the share. Asking what fraction earn below the mean is asking P(X < e^(μ + σ²/2)), and taking logs of both sides turns it into P(ln X < μ + σ²/2), which is a normal question with a normal answer.

    5. Standardise it: subtract μ and divide by σ, and the μ cancels. The answer is Φ(σ/2), and at σ = 1.5 that is Φ(0.75) = 0.7734. 77.34% earn below the mean.

    6. μ vanished, so scale is irrelevant: a population with a median of 1, or 148, or 22,026 gives the same 77.3% the panel prints. And run the argument backwards — σ = √(2 ln(mean/median)) — so the ratio alone gives σ, and σ gives the share.

    Answer

    77.34% at σ = 1.5, and you can get that number from a mean and a median without ever seeing σ or a single individual income. A country publishing mean earnings of 1.5 times the median is publishing σ = √(2 ln 1.5) = 0.9005, and therefore that 67.37% of its earners are below average — no microdata, no survey access, two numbers off a government page. The formula also settles the pub argument permanently: Φ(σ/2) is greater than 0.5 for every σ > 0, so in ANY log-normal population more than half earn below the mean, and the more unequal it gets the closer the figure creeps to everybody. There is no distribution of this family where "most people are above average" is true. What the mean is doing, and the median is not, is answering a question about the total: multiply the mean by the population and you have the wage bill, which is exactly why it is the number an economy is measured by and exactly why it describes almost nobody in it.

  2. Five households, one of the five wrong, and what can still be reported 6 steps

    A village of five reports incomes of 10, 20, 30, 40 and 5,000. Work out both averages, then suppose one of the five figures is a typing error and decide what you can still say.

    1. The mean is the total shared out: 5,100 across five households is 1,020. Notice what that does before going further. The average is larger than four of the five numbers it was built from.

    2. The median is a position rather than a total. Sort the five and take the third, which is 30. Four households sit below the mean and two sit below the median, on the same data.

    3. The Mean / Median ratio card reads 34.00. On symmetric data it sits at 1, so a reading of 34 is the page saying the two summaries have stopped describing the same village.

    4. Drag the fifth value and watch the mean. It moves by a fifth of every unit added, with nothing to stop it: from one end of the slider to the other the mean runs 22 to 1,020.

    5. The median over that same drag takes two values, 20 and 30, and the sorting is the reason. Anything below 20 leaves 20 in third place, anything above 30 leaves 30 there, and in between the fifth value is the median itself. Whether the household earns 5,000 or five million, the median is trapped in a window ten wide.

    6. Now the harder version of the question. You know one of the five figures is wrong but not which one. Work through all five cases and the corrected median has to land between 20 and 40, whatever the true value was. The corrected mean could be anything at all.

    Answer

    Mean 1,020, median 30. With one unknown figure wrong, the median is still known to lie in [20, 40] and the mean is not known at all.

    That window is what robustness amounts to once it is made numerical, and it goes further than one bad figure. Two of these five numbers can be arbitrary and the median will still land between the smallest and largest of the three that are sound; three cannot, because two survivors leave the middle position free. The fraction a summary can survive is its breakdown point: one over n for the mean, which dwindles to nothing as the sample grows, and a half for the median. The cost is the same fact read the other way round. This village has a median of 30 whether the fifth household earns 5,000 or 50, so the median cannot tell you that anybody here is rich. Neither number will say both things, which is why the pair is quoted together.

Learning path

One number for many: summary statistics

Leads to Spread and deviation a centre that one wild value cannot move, and no measure at all of how far the data spread away from it.

References (2)

Example problems

  • One outlier (5,000) - Four values at 10, 20, 30, 40 and one outlier at 5,000. The mean is dragged up to 1,020.00 while the median stands still at 30.00.
  • Symmetric set (50) - Five values evenly spread (10, 20, 30, 40, 50). The mean (30.00) and median (30.00) coincide exactly.
  • Mild skew (σ = 0.5) - In a moderately skewed population (σ = 0.50), the mean is 1.13 times the median, and 59.9% of the population sits below the mean.
  • Strong skew (σ = 1.5) - In a strongly skewed population (σ = 1.50), the mean is 3.08 times the median, and 77.3% of the population sits below the mean.