skip to content

Given two unbiased estimators of the same parameter, how do you choose between them?

level: middleimportance: should knowfreq 45%

answer

  1. unbiased ties, so compare spread
  2. efficiency is a ratio of variances
  3. read it as a sample-size exchange rate
  4. the ranking flips under heavy tails
  5. under skew they target different quantities

basics

~20 s

Prefer the one with smaller variance — that is efficiency. Relative efficiency is the ratio of their variances at a given sample size. Which one wins depends on the population shape, so state the assumption you are making about the data.

solid answer

~50 s

Once both are unbiased, the tiebreaker is spread: the more **efficient** estimator has the smaller variance, and relative efficiency is the ratio of those variances at a fixed sample size. The classic pair is the sample mean and the sample median as estimators of the centre of a symmetric population. For normal data the mean's variance is `sigma^2 / n` while the median's is about `1.57 * sigma^2 / n` in large samples, so the median is only around 64% as efficient. Under heavy tails the ranking flips: a few extreme observations blow up the mean's variance while barely moving the median, and for a Cauchy population the sample mean is not even consistent. So efficiency is a property of an estimator *under an assumed distribution* — name the assumption, and ask how robust the choice needs to be if it is wrong.

go deeper

for a junior

Be ready to say that once both estimators are unbiased you prefer the one with smaller variance, and that this comparison is called efficiency.

for a middle

Expect to quote the normal-data comparison — the sample mean's variance sigma squared over n against roughly 1.57 times that for the median — and to explain why heavy tails reverse the ranking.

for a senior

Show that you check robustness, not just variance under a convenient assumption, and that you raise the skew caveat: mean and median stop being rival estimators of one quantity once the population is asymmetric.

for a principal

Own the standard-setting angle: which summary statistic the organisation reports for which decision, and how that choice is documented so two teams do not quote incompatible numbers for the same metric.

## Efficiency is the tiebreaker Unbiasedness fixes where an estimator is centred and says nothing about how far it typically strays. When two estimators are both centred on the same parameter, the comparison collapses to variance, and the smaller-variance one is called **more efficient**. The **relative efficiency** of estimator B with respect to estimator A is ``` RE = Var(A) / Var(B) ``` at a given sample size — greater than 1 means B is tighter. Because for unbiased estimators mean squared error equals variance, ranking by variance is the same as ranking by mean squared error here. An equivalent and more intuitive reading is in units of data: if B has relative efficiency 0.64 against A, then B needs roughly 1 / 0.64 = 1.57 times as many observations to match A's precision. Efficiency is a sample-size exchange rate. ## The canonical comparison: mean versus median For a **symmetric** population, both the sample mean and the sample median are centred on the same point, so they are genuinely competing estimators of the same parameter and the comparison is fair. - **Normal population.** The sample mean has variance `sigma^2 / n` exactly. The sample median has variance approximately `(pi / 2) * sigma^2 / n`, about `1.57 * sigma^2 / n`, in large samples. So the median's efficiency relative to the mean is about `2 / pi`, roughly 0.64. Under normality the mean wins decisively, and no estimator of the centre does better. - **Heavy-tailed population.** The picture reverses. Occasional very large observations contribute enormously to the mean's variance while shifting the median by at most one rank position. For a double-exponential population the median is the more efficient of the two. For a Cauchy population the situation is extreme: the sample mean of n Cauchy observations has the same distribution as a single observation, so it is not even consistent, while the sample median converges normally. The headline is therefore: **efficiency is conditional on the distribution**. "Is the mean or the median better?" has no answer until you say what the data looks like. ## The robustness dimension Beyond variance under a clean assumed distribution, there is the question of what happens when the assumption is slightly wrong — a small proportion of contaminated or mis-recorded values. The mean is maximally sensitive: one arbitrarily large value drags it arbitrarily far. The median tolerates almost half the sample being corrupted before it can be dragged to an arbitrary value. That is why practitioners often accept the mean's roughly 36% efficiency advantage being given up: they are buying insurance against contamination they cannot rule out. A middle path exists. A trimmed mean — discarding a fixed fraction from each end and averaging the rest — sits between the two, keeping most of the mean's efficiency under normality while bounding the damage from a few extreme values. ## Careful: are they estimating the same thing? The entire comparison assumed symmetry. For a **skewed** population the mean and the median are different quantities: the mean of a right-skewed income distribution exceeds its median, and neither is "wrong". Comparing their variances as if they were rival estimators of one parameter is then a category error. The first question in any mean-versus-median discussion is not "which is more efficient" but "which quantity does the decision actually need" — total budget requires a mean, a typical customer's experience is usually better served by a median. ## The practical checklist When an interviewer hands you two unbiased estimators, work through: 1. **Do they target the same quantity?** If the population is skewed, the mean and median do not. 2. **Which has smaller variance under the distribution you believe?** That is efficiency, and it can be quoted as a sample-size exchange rate. 3. **How badly does the winner degrade if that belief is wrong?** Efficiency computed under an assumption you cannot defend is a fragile argument. 4. **What does the downstream use need?** Computational cost, streamability, interpretability and auditability all enter. A median over a very large stream is harder to maintain than a running mean. 5. **Would relaxing unbiasedness beat both?** Sometimes the right answer is neither of the two offered estimators. ## Saying it in an interview Name efficiency as the tiebreaker and define relative efficiency as a variance ratio. Give the normal-data numbers for the mean and median — variance `sigma^2 / n` against about `1.57 * sigma^2 / n`, an efficiency of roughly 0.64 — then flip to heavy tails and say the ranking reverses. Finish with the caveat that under skew the two are not estimating the same parameter at all. That last point is what separates a memorised answer from an understood one.

  • Roughly how much extra data would the sample median need to match the sample mean on normal data?
    About 57% more. The median's large-sample variance is around 1.57 times the mean's on normal data, so its relative efficiency is close to 0.64, and matching precision costs roughly 1 / 0.64 = 1.57 times the observations. Many practitioners pay that premium anyway, because the median barely moves when a handful of values are contaminated or mis-recorded.
  • Is a trimmed mean a reasonable compromise between the two?
    Yes. Discarding a fixed fraction from each tail and averaging the rest keeps most of the sample mean's efficiency under near-normal data while bounding the influence of a few extreme values. The cost is a tuning choice — how much to trim — and the fact that for a skewed population the trimmed mean targets yet another quantity, so you have to say what you are estimating before you defend it.
  • Your population is strongly right-skewed. Does the efficiency comparison still make sense?
    Not as stated. Under skew the population mean and median are different numbers, so the two statistics are estimating different parameters and comparing their variances is a category error. The prior question is which quantity the decision needs: total cost and capacity planning need the mean, while a typical-experience or typical-price claim is usually better served by the median.

saying these in an interview costs you the question

  • Says the median is always more robust so always better
  • Claims the sample mean is always the most efficient estimator
  • Compares mean and median variances on skewed data
  • Treats efficiency as fixed rather than distribution-dependent
  • Ignores that the mean is not consistent for Cauchy data
  • Chooses on gut feel without naming a variance comparison

context