How do binarizing or capping a metric reduce variance in an A/B test, and what does it cost?
Quick Overview
Asks how converting a metric to 0/1 or capping a count shrinks variance in an A/B test, and what is lost by doing it. Tests reasoning about heavy-tailed metrics, power for a given relative lift, choosing a cap in advance, and which treatment effects the transformed metric can no longer detect.
How do binarizing or capping a metric reduce variance in an A/B test, and what does it cost?
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Other
How does binarizing a metric, or using a capped-count version of it, work as a variance-reduction strategy in an experiment, and what does it cost?
For example, an experiment could replace revenue per user with "did the user purchase?" (0 or 1), or replace purchase count with purchases counted up to 5.
```hint Compare like with like
The variance of a 0/1 metric and the variance of revenue in dollars are in different units. Think about which quantity actually sets the sample size you need for a given relative lift.
```
```hint Where the effect lives
Picture a treatment that changes only how much existing buyers spend. What does each version of the metric show?
```
### What a Strong Answer Covers
- Why a heavy tail drives variance, and how binarizing or capping bounds it.
- A fair comparison of the raw and transformed metrics, in terms of the sample size needed for the same relative effect.
- What information each transformation discards, and which treatment effects become invisible.
- How to choose and fix a cap without biasing the test.
- When the transformed metric can be the decision metric and when it belongs beside the raw metric as a secondary one.
### Follow-up Questions
- How would you pick the cap, and why must it be fixed before the experiment ends?
- How does winsorizing revenue compare with binarizing it?
- Raw revenue per user is flat, but conversion is up and significant. How do you report the result?
- How does CUPED reduce variance without changing what the metric measures?
Overview: Asks how converting a metric to 0/1 or capping a count shrinks variance in an A/B test, and what is lost by doing it. Tests reasoning about heavy-tailed metrics, power for a given relative lift, choosing a cap in advance, and which treatment effects the transformed metric can no longer detect.
How does binarizing a metric, or using a capped-count version of it, work as a variance-reduction strategy in an experiment, and what does it cost?
For example, an experiment could replace revenue per user with "did the user purchase?" (0 or 1), or replace purchase count with purchases counted up to 5.
What a Strong Answer Covers Guidance
Why a heavy tail drives variance, and how binarizing or capping bounds it.
A fair comparison of the raw and transformed metrics, in terms of the sample size needed for the same relative effect.
What information each transformation discards, and which treatment effects become invisible.
How to choose and fix a cap without biasing the test.
When the transformed metric can be the decision metric and when it belongs beside the raw metric as a secondary one.
Follow-up Questions Guidance
How would you pick the cap, and why must it be fixed before the experiment ends?
How does winsorizing revenue compare with binarizing it?
Raw revenue per user is flat, but conversion is up and significant. How do you report the result?
How does CUPED reduce variance without changing what the metric measures?