KatInterview

Evaluating a New Ad Ranking Algorithm End to End

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsexperimentationcausal-inferencea-b-testing

Last updated

Design metrics, randomization and rollout for a new ad ranker, plus fallbacks when a clean 50/50 test is impossible.

A product data science partner sits with the ads ranking team, which has built a new model for choosing which ad to show a user. The team believes it will do better. You are asked to be the voice of measurement.

Part A — You can run an online experiment. Lay out a full plan: state the objective and whose interests matter (people seeing ads, advertisers, and the platform's own revenue); pick one primary metric and defend it; list diagnostic metrics that explain movement and guardrail metrics that cap downside; choose the randomization unit and explain where interference can wreck the comparison; then cover practical execution — staged ramp, run length, power/MDE, sample-ratio checks, and how you would read segment-level differences.

Part B — A clean 50/50 split is off the table. Reasons might be risk, serving capacity, feedback loops in model training, or advertiser delivery constraints. Give at least two legitimate alternatives (unequal allocation, phased ramp, cluster/geo assignment, switchback, long-term holdout). For each: when it fits, what can bias it, and how the analysis changes (variance, sequential monitoring, variance reduction).

Part C — No controlled test at all. Describe how you would still make a recommendation using offline or observational data, how you would fight confounding and selection bias, and how you would serve recommendations to brand-new users while still exploring.

Be explicit about assumptions and about how each plan could fail.

Hints

Hint 1

Start by pinning down what 'better' means: relevance for users, outcomes for advertisers, and durable revenue — not just short-term revenue, which can be moved by price rather than match quality.

Hint 2

Ads run in a shared auction with shared advertiser budgets. Ask whether one user's treatment changes another user's control experience, and design around that.

Hint 3

For every non-standard design, name the trade: fewer effective units, carryover between periods, or slower detection — then say how you adjust the analysis.