Descriptive Statistics interview question

StatisticsDescriptive StatisticsOutliersbasic

Which measure of central tendency is more robust to outliers, the mean or the median, and why?

  1. AThe mean, because averaging over every observation dilutes the effect of any single extreme value.
  2. BThe median, because it depends only on the middle of the sorted data, not on how extreme the tails are.
  3. CThe median, because it is calculated after automatically removing the top and bottom 5% of the sorted values.
  4. DThe mean, because it uses the actual magnitudes, while the median jumps a lot when one value changes.
Show the answer and explanation

Correct answer: B, The median, because it depends only on the middle of the sorted data, not on how extreme the tails are.

Explanation Descriptive Statistics

The median is the middle value of the sorted data (the average of the two middle values when n is even). Only the order of the values matters, so making the largest value much larger does not move it. The mean uses every value's magnitude, so a single extreme value can pull it arbitrarily far.

Worked example: 3, 4, 5, 6, 7 has mean 5 and median 5. Replace 7 with 70 and the mean becomes 17.6 while the median stays 5.

Why the other ideas fail: averaging only divides an extreme value by n; it still enters the sum at full size, so its pull on the mean grows without limit as the value grows. The median does not drop the top and bottom 5%; that describes a trimmed mean. And changing one tail value leaves the median unchanged, so it is the mean, not the median, that jumps.

Interview tip: "For skewed data such as incomes or latencies, I report the median, because one extreme value can move the mean but not the median."

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Statistics questions

  1. Which statement about the normal distribution is correct?
  2. What does the central limit theorem (CLT) state?
  3. What is the correct definition of a p-value?
  4. When is a one-sample t-test the appropriate test?
  5. What is the correct interpretation of a 95% confidence interval for a population mean?