KatInterview

Online experiment plan for a new ad ranking model

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingexperimentationcausal-inference

Last updated

Design an A/B test to evaluate whether a new ad recommendation model should replace the production system, covering experimental setup, metrics, and launch criteria.

You work on an advertising platform and have developed a new recommendation model for ranking ads. Before deploying it to production, you need to validate its performance through controlled experimentation.

Design a comprehensive test plan addressing:

a) Experimental setup
Choose your randomization unit (options: user-level, session-level, impression-level, advertiser-level, or auction-level). Justify your choice considering marketplace dynamics like shared advertiser budgets, auction competition between treatment and control, and repeat user exposure. Explain how you'll prevent contamination between groups. Should you run an initial validation test? Describe your traffic ramp strategy.

b) Metric selection
Identify one primary metric for the launch decision and define at least three guardrail metrics covering advertiser outcomes, user experience, and system performance. For click-through rate, explain whether you'd compute it as a mean-of-ratios or ratio-of-means and why.

c) Sample size and test length
Given a baseline revenue-per-thousand-impressions (RPM) of $0.50 and an expected 1.5% improvement, walk through your approach to calculating required sample size for α=0.05 and 80% power. What variance parameters do you need and how would you estimate them? What variance reduction techniques would you apply?

d) Validation procedures
List specific checks you'd perform before and during the experiment to ensure result validity. Address issues like traffic allocation imbalances, covariate distribution, novelty effects, seasonality, advertiser composition shifts, outlier treatment, and statistical corrections for continuous monitoring.

e) Results visualization
You receive a time-series chart showing daily CTR for control and treatment over 28 days. Critique this visualization approach and propose concrete improvements covering: confidence intervals and effect size display, noise reduction, documentation of traffic changes, handling of weekend patterns and missing data, and presentation of heterogeneous effects across placements or user segments.

f) Launch decision framework
Define an explicit rule for when to stop the test and make a launch decision. Include how you'd handle sequential testing corrections, what you'd do if guardrails move negatively while the primary metric improves, and how you'd validate longer-term effects after launch.

Hints

Hint 1

Marketplace experiments have spillover issues: treatment and control share advertiser budgets and compete in the same auctions. Consider how to isolate these effects.

Hint 2

Revenue metrics are heavy-tailed with high user-level variance. Think about variance reduction methods like regression adjustment and how to compute standard errors when your metric is a ratio.

Hint 3

Looking at results repeatedly during an experiment increases false positive risk. You need either a sequential testing framework or a pre-committed analysis schedule.