When do you need the delta method for ratio metrics in A/B tests, and how does it fix the unit mismatch?
Quick Overview
Asks when an A/B test analysis needs the delta method, focusing on ratio metrics such as click-through rate measured per page view while users are randomized. Tests whether you can explain why the unit mismatch breaks naive variance estimates and how the correction works.
When do you need the delta method for ratio metrics in A/B tests, and how does it fix the unit mismatch?
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: hard
Interview Round: Other
When do you need the delta method in A/B testing, especially for ratio metrics, and why does it address a mismatch between the analysis unit and the randomization unit?
For example, an experiment randomizes users into arms, and the metric is click-through rate measured per page view.
```hint Which observations are independent
Given how units were assigned to arms, ask which observations in the experiment are actually independent of one another, and what the naive variance formula treats as one observation.
```
```hint Two random pieces
The ratio has a random numerator and a random denominator. Think about which tool approximates the variance of a smooth function of two sample means.
```
### What a Strong Answer Covers
- When the analysis unit differs from the randomization unit, with a concrete ratio metric
- Why event-level variance formulas understate uncertainty when events cluster within users
- How the delta method linearizes the ratio, and which terms (including the covariance) enter its variance
- Why aggregating to the randomization unit restores the independence the method relies on
- Alternatives such as the bootstrap over users or cluster-robust errors, and when the approximation breaks down
### Follow-up Questions
- How does the delta method apply to the relative lift (treatment mean over control mean, minus one) even for a user-level metric?
- How would you choose between the ratio of sums and the mean of per-user ratios for click-through rate?
- If the treatment changes how many page views users generate, what goes wrong when you interpret a change in clicks per page view?
- When would you trust a bootstrap over the delta method?
Overview: Asks when an A/B test analysis needs the delta method, focusing on ratio metrics such as click-through rate measured per page view while users are randomized. Tests whether you can explain why the unit mismatch breaks naive variance estimates and how the correction works.
When do you need the delta method in A/B testing, especially for ratio metrics, and why does it address a mismatch between the analysis unit and the randomization unit?
For example, an experiment randomizes users into arms, and the metric is click-through rate measured per page view.
What a Strong Answer Covers Guidance
When the analysis unit differs from the randomization unit, with a concrete ratio metric
Why event-level variance formulas understate uncertainty when events cluster within users
How the delta method linearizes the ratio, and which terms (including the covariance) enter its variance
Why aggregating to the randomization unit restores the independence the method relies on
Alternatives such as the bootstrap over users or cluster-robust errors, and when the approximation breaks down
Follow-up Questions Guidance
How does the delta method apply to the relative lift (treatment mean over control mean, minus one) even for a user-level metric?
How would you choose between the ratio of sums and the mean of per-user ratios for click-through rate?
If the treatment changes how many page views users generate, what goes wrong when you interpret a change in clicks per page view?
When would you trust a bootstrap over the delta method?