How would you build a confidence interval for a median or another quantile, and why can this be harder than for a mean?

Quick Overview

Asks how to build a confidence interval for a median or another quantile and why that is harder than for a mean. Tests knowledge of order statistics, the bootstrap, asymptotic quantile variance and where each method fails, especially in the tails.

How would you build a confidence interval for a median or another quantile, and why can this be harder than for a mean?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

How would you build a confidence interval for a median or another quantile, and why can this be harder than for a mean? ```hint Look at the standard error Write down the large-sample variance of a sample quantile and find the quantity in it that you never observe directly. ``` ```hint Count instead of average Whether the true median sits above a given sorted value depends only on how many observations fall below the median. Ask what distribution that count follows. ``` ### What a Strong Answer Covers - At least two concrete ways to build the interval, including one that makes no distributional assumption, and how each is computed - Why estimating a quantile's standard error is harder than estimating a mean's - How that difficulty changes between the center of the distribution and the tails - Where each method breaks down - Which method to prefer in practice and why ### Follow-up Questions - With n = 100, can you build a two-sided 95% interval for the 99th percentile from the data alone? What could you report instead? - How would you get a confidence interval for the difference in medians between the two arms of an A/B test? - Why does the percentile bootstrap behave poorly for the sample maximum? - For normal data, how wide is a median interval compared with a mean interval at the same sample size?

Overview: Asks how to build a confidence interval for a median or another quantile and why that is harder than for a mean. Tests knowledge of order statistics, the bootstrap, asymptotic quantile variance and where each method fails, especially in the tails.

Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

How would you build a confidence interval for a median or another quantile, and why can this be harder than for a mean?

What a Strong Answer Covers Guidance

  • At least two concrete ways to build the interval, including one that makes no distributional assumption, and how each is computed
  • Why estimating a quantile's standard error is harder than estimating a mean's
  • How that difficulty changes between the center of the distribution and the tails
  • Where each method breaks down
  • Which method to prefer in practice and why

Follow-up Questions Guidance

  • With n = 100, can you build a two-sided 95% interval for the 99th percentile from the data alone? What could you report instead?
  • How would you get a confidence interval for the difference in medians between the two arms of an A/B test?
  • Why does the percentile bootstrap behave poorly for the sample maximum?
  • For normal data, how wide is a median interval compared with a mean interval at the same sample size?