Testing a New Ad Recommendation System
Statistics & ExperimentsModel answerLast updated
Design an A/B test to compare a new ad model against the current one, choose metrics for different stakeholders, and decide whether to launch.
You work on an advertising platform and your team has developed a new recommendation model for serving ads. You need to determine whether this model should replace the existing system.
Your task:
- Design an experiment to compare the new model against the current one
- Define the metrics you would track, distinguishing between primary objectives and guardrails
- Explain how you would present findings differently to a finance executive versus a growth executive
- Describe your decision framework for launching or abandoning the new model
Consider the complexity of a two-sided marketplace where both user experience and advertiser outcomes matter.
Hints
Hint 1
Think about what unit you randomize on and why that matters for metric consistency
Hint 2
Consider how shared advertiser budgets can create interference between experiment arms
Hint 3
Remember that optimizing for immediate engagement metrics might harm long-term outcomes
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
Understanding the Problem
This question evaluates your ability to design rigorous experiments in complex business environments. The challenge lies in balancing multiple stakeholders—users want relevant content, advertisers want conversions, and the business needs revenue—while accounting for statistical and marketplace dynamics that can invalidate naive experiment designs.
Experiment Design
Randomization Strategy
Randomize at the user level, assigning each user deterministically (via user ID hash) to either the control or treatment group. Every ad request from that user passes through the assigned model.
Why not randomize at the impression level? Because user-level metrics like session count, retention, and ad fatigue would become meaningless. A user seeing a mix of both models experiences neither purely, contaminating the comparison.
Handling Budget Interference
The critical subtlety: advertisers typically have daily or campaign budget caps. If the new model wins more auctions, it exhausts shared budgets faster, starving the control group of inventory. This makes treatment look artificially better.
Solution: budget splitting. Divide each advertiser's budget proportionally across arms (e.g., 50/50 for a 50/50 traffic split). Each arm effectively runs its own isolated auction marketplace. This approach is standard at large advertising platforms.
Alternative validation: run a small cluster-randomized test where entire advertiser accounts are assigned to one model, capturing equilibrium price effects, though this sacrifices statistical power.
Traffic Allocation and Ramp
- Safety phase (1–2 days, 1% traffic): Monitor for crashes, latency spikes, serving errors, and gross metric anomalies
- Initial test (3–5 days, 5% traffic): Validate prediction calibration and check for unexpected behavior
- Full test (2+ weeks, 50/50 split with budget division): Main analysis phase
Run an A/A test beforehand or validate pre-period balance to detect sample ratio mismatches or pre-existing bias.
Sample Size and Duration
Assume revenue per user per day averages $0.50 with standard deviation $3 (revenue distributions are heavy-tailed). To detect a 0.5% relative improvement ($0.0025 absolute) with 80% power and α=0.05:
n ≈ 16σ²/δ² ≈ 16 × 9 / (0.0025)² ≈ 23M users per arm
Techniques to reduce variance:
- CUPED (Controlled-experiment Using Pre-Experiment Data): Use pre-period revenue as a covariate, typically reducing variance by 30–50%
- Winsorization: Cap extreme values to reduce influence of outliers
Duration considerations:
- Minimum two full weeks to capture weekly patterns and advertiser pacing cycles
- Watch for novelty effects (initial excitement wearing off) or learning effects
- Avoid major holidays unless testing holiday-specific changes
- Pre-commit to duration; use sequential testing methods if you need interim looks
Long-term Holdout
After launching, maintain 1–5% of users on the old model for 1–3 months. This captures retention, lifetime value, and ad fatigue effects invisible in a two-week test.
Metrics Hierarchy
Primary Metrics (what we optimize)
- Revenue per user: Direct business objective
- Advertiser conversion value and ROAS: Revenue is sustainable only if advertisers see positive ROI
User Guardrails (what we protect)
- Daily active users (DAU) and sessions per user
- Time spent on platform
- 7-day and 28-day retention rates
- Ad hide/report rate and negative feedback signals
Advertiser Guardrails
- Ad load (impressions per session)—prevents "winning" by simply showing more ads
- eCPM and auction clearing prices
- Advertiser budget pacing and campaign completion rates
- Advertiser retention and churn
System Guardrails
- Serving latency (p50, p99)
- Error rates and timeout rates
- Infrastructure cost per 1,000 requests
Diagnostic Metrics (explain why)
- Click-through rate (CTR) and conversion rate (CVR)
- Prediction calibration: predicted CTR/CVR vs. observed
- Coverage across advertiser sizes and categories
- Performance by surface (Feed, Stories, etc.)
Statistical Considerations
- CTR and CVR are ratio metrics; use delta method or bootstrap for variance since randomization is per-user, not per-impression
- Guardrails use non-inferiority tests (one-sided): e.g., DAU must not decrease by more than 0.1%
- Correct diagnostic metrics for multiple comparisons using Bonferroni or Benjamini-Hochberg
- Pre-specify segment analysis: new vs. returning users, geography, device type, advertiser size
Presenting to Different Executives
Finance Executive (CFO)
Focus: Returns, risk, and confidence
- Present annualized incremental revenue with confidence intervals: "+0.8% revenue per user [CI: 0.5%, 1.1%], projecting $XM–$YM annually"
- Net of costs: incremental infrastructure expenses, giving ROI and payback period
- Downside risk: worst-case scenario from lower confidence bound
- Revenue concentration: is the lift driven by a few large advertisers (risky) or broadly distributed?
- Advertiser ROAS trends: stable or improving ROAS predicts sustained spending
Growth Executive (CGO)
Focus: Ecosystem health and sustainability
- User engagement: changes in DAU, session frequency, retention cohorts
- Long-term value indicators: effects on new user retention and reactivation
- Advertiser ecosystem: small/new advertiser success rates, advertiser LTV trends
- Quality of revenue: did we improve relevance (higher CVR at same ad load) or simply monetize more aggressively (higher ad load/prices)? Only the former is sustainable
- Segment-specific impacts: emerging markets, new user cohorts
Bridging the Trade-off
Establish a pre-agreed exchange rate between engagement and revenue, derived from historical lifetime value models. For example, if analysis shows 1% DAU loss equals $Z in long-term revenue, you can evaluate "+1% revenue, -0.2% DAU" on a single scale rather than through political negotiation.
Launch Decision Framework
Pre-register these criteria before running the test:
Launch Unconditionally All conditions met:
- Primary metric shows statistically significant improvement (p < 0.05, confidence interval excludes zero)
- All guardrail metrics pass non-inferiority thresholds
- Treatment effect is stable over time (no decay)
- No critical segment shows material harm
- Proceed to 100% rollout with long-term holdout
Launch Conditionally / Iterate Primary metric wins but guardrails are borderline or segments show mixed results:
- Launch only in segments where it clearly wins
- Adjust model parameters (e.g., ad load calibration)
- Run a follow-up test with modifications
Do Not Launch Any of these:
- Primary metric shows no significant improvement or degrades
- Critical guardrail violated (e.g., retention drops beyond threshold)
- Effect decays over time, suggesting novelty rather than improvement
- Advertiser value metrics significantly worsen
Rollback Triggers Post-Launch Monitor for:
- Sustained guardrail violations in production
- Segment-specific degradation emerging at scale
- Advertiser churn acceleration
- Long-term holdout showing negative retention effects
Common Mistakes to Avoid
- Treating CTR as the objective rather than a diagnostic—high CTR with low conversion harms advertisers
- Ignoring budget interference—shared budgets create bias that invalidates results
- Peeking at p-values repeatedly without sequential testing corrections—inflates false positive rate
- Stopping early on a "win" without checking stability or long-term effects
- Using impression-level variance for user-randomized ratio metrics—severely underestimates uncertainty
- Fishing for significant segments post-hoc without multiple testing correction
- Ignoring advertiser outcomes—unsustainable revenue gains lead to future budget cuts
This framework balances rigor with practical business constraints, ensuring decisions are both statistically sound and strategically informed.