KatInterview

Bootstrap vs. Analytic CIs: When and Why They Diverge

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsstatisticsconfidence intervalsbootstrap

Last updated

Diagnose when a standard analytic confidence interval breaks down and construct a bootstrap CI from first principles, explaining the assumptions and trade-offs of each approach.

Context

You are a data scientist at a streaming platform. A product team ran a 4-week A/B test on a new recommendation algorithm. The primary metric is revenue per user per week, which is highly right-skewed: most users generate $0, a small fraction generate large amounts, and a handful of "whale" users generate very large amounts.

After the experiment, an analyst on the team computes a 95% confidence interval for the difference in means (treatment minus control) using the standard formula:

CI = (x̄_T - x̄_C) ± 1.96 * sqrt(s_T²/n_T + s_C²/n_C)

The analyst reports: CI = [$0.02, $0.18], n_T = n_C = 800, and concludes the treatment is significantly better.

You are skeptical.


What You Are Expected to Do

  1. Identify at least three concrete reasons why the standard analytic CI may be unreliable here, referencing the statistical assumptions it rests on.

  2. Describe, step by step, how you would construct a percentile bootstrap CI and a bias-corrected and accelerated (BCa) bootstrap CI for the same quantity. Be precise about what you resample, what statistic you compute each iteration, and how you extract the interval.

  3. Explain what the bootstrap is actually doing — what theoretical guarantee does it invoke, and what are its own failure modes in this setting?

  4. If the bootstrap CI turns out to be [$0.04, $0.31] — wider and shifted right compared to the analytic CI — walk through the most likely statistical explanations for why this happened.

  5. Recommend a final reporting strategy, including any additional robustness checks you would run before presenting results to the product team.


There is no single numerical answer to compute — you are assessed on your reasoning, statistical depth, and practical judgment.

Hints

Hint 1

Think carefully about what the Central Limit Theorem requires in terms of sample size *relative to the skewness* of the distribution — 800 users may not be enough when variance is dominated by a few whales.

Hint 2

For the bootstrap, be precise: you resample *with replacement* from the observed sample, not from a fitted parametric distribution. The percentile method and BCa method differ in how they handle bias and skewness of the bootstrap sampling distribution of the statistic.

Hint 3

A shift in the CI (not just widening) is a signal of bias in the analytic estimator's sampling distribution — think about what BCa corrects for and how the jackknife acceleration factor is related to the influence of individual observations.