Problem
Teams test investments such as bigger servers or ad spend and want to know whether they pay for themselves. The treatment changes both cost and revenue, so the quantity of interest is the ratio of two treatment effects. Both metrics are skewed, and most users bring zero revenue while still generating cost. A per-user ratio can flip the sign of the conclusion, and the standard error of a ratio is not given by the plain difference-in-means formula.
Example from the article: An online marketplace moves its internal search to higher-tier cloud servers, with users randomly assigned to old or new machines. The data covers 10,000 users over one month.
Solution in brief
Define return on investment (ROI) as the ratio of the average revenue difference to the average cost difference between treatment and control. Get its standard error with the delta method: build an auxiliary per-user variable and regress it on the treatment flag. Test against ROI = 1 (break-even), not against zero.
Questions this case answers
- How to decide whether an intervention is cost-effective in a randomized experiment when the outcome is the ratio of two treatment effects and heavy-tailed user-level values make per-unit ratios misleading
- How to compute a valid confidence interval for a ratio of two experimental effects without resampling
- How to tell whether an investment tested in an A/B test paid off when the treatment changes both revenue and cost?
- How to build a confidence interval for the ratio of two treatment effects?
Tools and methods
- Difference-in-means by regression — estimates the treatment effect on cost and on revenue
- Ratio estimator of ROI — ratio of the two average effects, instead of the mean of per-user ratios
- Delta method — asymptotic variance of a function of averages, here the ratio
- Auxiliary variable regression — gives the ROI standard error in one regression
- Bootstrap — resampling check of the standard error
Google or a one-time email code. No password.