Problem
A/B tests randomize users, but many product metrics are ratios over another unit: average order value (AOV), banner CTR, average session length. Orders, clicks and sessions of one user are correlated, so a plain t-test on them breaks independence and p-values are not uniform under no effect. The test then ships empty features as wins, and the common workarounds fall short: per-user averages can flip the sign, the bootstrap is slow, the delta method blocks CUPED.
Example from the article: in synthetic A/A tests a t-test on order prices gave a 14% false positive rate at a 5% significance level, against 5% for per-user spend.
Solution in brief
Turn each user's two signals (numerator and denominator) into one number: the numerator minus the control-group ratio times the denominator. The mean of these numbers is a normal user-level metric. A t-test on it gives p-values consistent with the delta method, its sign always matches the change in the ratio, and CUPED works on it.
Questions this case answers
- How to test the difference of a metric whose unit of analysis differs from the randomization unit when a plain t-test breaks the independence assumption
- How to compute significance for many ratio metrics at once, on a platform where bootstrap is too expensive and variance reduction must still apply
- How to test the difference of a ratio metric such as average order value or CTR without inflating the false positive rate?
- How to apply CUPED to a ratio metric?
Tools and methods
- Ratio metric linearization — one user-level signal per user, used in place of the ratio
- CUPED — variance reduction applied to the linearized metric
- t-test — significance test on the linearized signals
- Bootstrap and delta method — baselines for comparison
- A/A simulation — checks that p-values are uniform and the false positive rate matches the significance level
Google or a one-time email code. No password.
