KatInterview

Designing and Analyzing a Core Feed Ad-Insertion Experiment

Statistics & ExperimentsModel answer
HardModel answerStatistics & ExperimentsA/B TestingExperimentationSample Size

Last updated

Design an A/B test for introducing sponsored video cards into a social feed, addressing metrics, sample size, network interference, multiple testing, and novelty effects.

You are an experimentation data scientist at a social video platform. The product team wants to insert a new sponsored short video format into the primary organic feed. The goal is to generate incremental revenue without harming long-term user retention or daily activity.

Walk through the design, execution, and post-experiment analysis of this change:

Part 1: Experimental Design

  1. Metric Selection: Pick a primary metric, a guardrail metric, and secondary metrics. Explain why standard ad metrics like Revenue per Mille (RPM) can be misleading when used as a primary assignment-level metric.
  2. Power & Sample Size Calculation: How do you determine the required sample size per arm if you target a 2% lift in revenue while ensuring you can rule out a 0.5% drop in user active time? Show how you structure the calculation.
  3. Randomization Strategy & Interference: Compare user-level, cluster-level, and switchback designs. How do you mitigate both social spillover and advertiser auction interference?

Part 2: Statistical Inference & Pitfalls

  1. Multiple Testing & Guardrail Evaluation: Suppose you track 10 metrics across engagement, ad quality, and revenue. Your primary metric shows a significant gain, but active time shows a borderline drop ($p = 0.048$). How should you handle multiple testing, and how should a guardrail metric be evaluated differently than a superiority metric?
  2. Novelty & Long-Term Effects: Initial results show a spike in engagement during the first week that decays by week two. How would you quantify and model this novelty effect to estimate steady-state impact?

Part 3: Validation & Diagnostics

  1. Diagnostics & Cross-Experiment Interference: How do you verify the integrity of the experiment (e.g., sample ratio checks, cross-experiment contamination)? What steps would you take if a Sample Ratio Mismatch (SRM) is detected?

Hints

Hint 1

Ratio metrics like RPM have moving denominators under treatment; consider normalizing per user unit instead.

Hint 2

Guardrail metrics require non-inferiority testing, which flips the burden of proof compared to superiority testing.

Hint 3

Auction interference can be addressed by partitioning advertiser budgets alongside user randomization.