KatInterview

A/B Testing Auction Revenue with Heavy Tails and Zeros

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsab-testingbootstrapwinsorization

Last updated

Design a defensible inference plan for comparing mean revenue between two arms when data is zero-heavy, extremely skewed and contaminated by spikes, including outlier handling and multiple-testing control.

Context

A marketplace is testing a new auction bid-pricing algorithm (the treatment) against the current one (the control). The key metric is revenue per user. Its distribution has three unpleasant features:

  • A large mass of exact zeros (users who never transact).
  • A long right tail created by a small number of very high-value "whale" users.
  • Occasional extreme values caused by infrastructure latency glitches.

You have two samples, control and treatment, with n = 10,000 users each. You need to decide whether the difference in mean revenue per user between arms is statistically significant.

Constraints

  • The big values are not always data errors. Many are real, rare, high-value auction wins, and the business wants them reflected in the answer.
  • This experiment is one of many metrics and comparisons in a larger suite, so the false discovery rate (FDR) has to be controlled.

What to answer

  1. Explain why a plain two-sample t-test is a poor choice here. Discuss both false-positive rate and statistical power.
  2. Propose a robust estimator of the difference in means and describe how to build a 95% confidence interval for it.
  3. Decide how to treat the whale values: trim, winsorize, or transform. Explain how each option changes what you are estimating and how sensitive the test is.
  4. If you use a transformation such as log or Box-Cox, explain the bias you get when mapping results back to the original scale and how to correct it.
  5. Say how you would control FDR across the full set of tests.

Hints

Hint 1

Check whether n = 10,000 is really enough for the central limit theorem when skewness is in the tens. Think about which tail of the t-statistic misbehaves and what a single huge value does to the variance estimate.

Hint 2

Every robust method silently redefines the quantity you are estimating. Decide the estimand first (for example, mean of capped revenue), fix the cap before unblinding, and keep an uncapped analysis as a guardrail.

Hint 3

For back-transformation, think of Jensen's inequality: the exponential of the mean of logs is a geometric mean, not an arithmetic mean. Look at a distribution-free correction (smearing) computed per group, and at bootstrap intervals that are skew-aware such as BCa.