KatInterview

Estimating Personalization Impact via AB Test Covariate Adjustment

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentscausal inferenceab testingvariance reduction

Last updated

Analyze an A/B test on content recommendation by calculating the ATE, deriving robust 95% confidence intervals, and evaluating covariate adjustment techniques like Lin's regression.

You are analyzing data from an A/B experiment designed to test a novel personalized recommendation system against the standard non-personalized baseline.

The dataset is formatted with one record per user and contains the following fields:

  • user_id: Unique identifier for each participant
  • treat: Binary indicator (1 if assigned to the personalized experience, 0 if control)
  • minutes_streamed: Continuous numeric outcome representing cumulative watch time (in minutes) over a 7-day post-assignment evaluation period
  • Pre-experiment features (pre-treatment covariates): e.g., prior_7d_minutes, tenure_days, is_premium, device_type, country (some variables may be non-informative or noisy)

Your Objectives:

  1. Detail how to compute the Average Treatment Effect (ATE) of personalization on total streaming time.
  2. Formulate a 95% confidence interval for your ATE point estimate and explain the statistical underpinnings of your chosen variance calculation method.
  3. Discuss the theoretical and practical implications of incorporating pre-experiment covariates into your estimation model. Address why including uninformative covariates typically does or does not introduce estimation bias or inflate error bounds.

Assumptions & Operational Rules:

  • Randomization is performed independently at the user level with no interference between subjects (SUTVA holds).
  • All reported confidence intervals should be two-sided at $\alpha = 0.05$.
  • Post-treatment mediators are excluded from the covariate set; all auxiliary attributes reflect user state strictly prior to assignment.

Hints

Hint 1

Recall how the Neyman variance estimator accounts for potential heteroskedasticity (differing variances between control and treatment groups) without relying on equal-variance assumptions.

Hint 2

Consider how covariate adjustment via OLS can introduce bias in small samples if treatment effects interact with pre-treatment features, and how Lin's (2013) interacted model resolves this issue.

Hint 3

Distinguish between pre-treatment covariates and post-treatment variables; why does conditioning on post-treatment data corrupt the ATE estimate?