How do heavy-tailed metrics and whale users hurt A/B test sensitivity, and what reduces the variance?
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Other
How do heavy-tailed metrics or outlier "whale" users affect the sensitivity of an A/B test, and what techniques can address this for variance reduction, along with their trade-offs?
Think of a metric such as revenue per user, where a small fraction of users spend orders of magnitude more than everyone else.
```hint Follow the standard deviation
Write down how the minimum detectable effect depends on the metric's standard deviation, then estimate what a handful of extreme users does to that standard deviation.
```
```hint Check the estimand
For each fix you propose, ask whether the number you end up estimating is still the difference in mean revenue per user, and whether it is biased.
```
### What a Strong Answer Covers
- The mechanism by which a few extreme users inflate the standard error, and what that does to power and required sample size
- Several techniques for handling the tail, each with its cost (bias, interpretability, lost information, a changed hypothesis)
- Which methods keep the original estimand unbiased, and what data they require
- How to choose and report: fixing any cap in advance and stating the effect on the business scale
### Follow-up Questions
- How do you choose a cap threshold, and why must it be fixed before anyone looks at the results?
- Regression adjustment needs pre-period data. What do you do for new users with no history?
- A log-transformed metric shows a significant gain while the raw mean revenue difference is negative. How can that happen, and which result do you report?
- Would stratified randomization on pre-period spend help, and how does it relate to regression adjustment?
Overview: Asks how heavy-tailed metrics and a few extreme high-value users reduce the power of an A/B test, and which variance reduction techniques help. Tests reasoning about standard errors and sample size, and the bias, interpretability and estimand trade-offs of the common fixes.