How do ANCOVA and Lin's estimator reduce variance in online experiments, and how do they compare to CUPED?

Quick Overview

Explain how regression adjustment with ANCOVA or Lin's estimator lowers the variance of A/B test results using pre-experiment covariates, and how it compares to CUPED. Tests variance reduction mechanics, valid standard errors, covariate choice and the practical trade-offs of each method.

How do ANCOVA and Lin's estimator reduce variance in online experiments, and how do they compare to CUPED?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Other

How does regression adjustment, such as ANCOVA or Lin's estimator, reduce variance in online controlled experiments? What are its advantages and disadvantages compared to CUPED? ```hint Where the standard error comes from The standard error of the treatment effect depends on the variance of the part of the outcome that is left unexplained. Think about what a pre-experiment covariate does to that part. ``` ```hint Put the estimators side by side Write CUPED's adjusted metric next to the ANCOVA regression and compare how each one estimates the covariate's slope. ``` ```hint When adjustment can hurt Consider an unequal traffic split where the covariate's effect on the outcome differs between treatment and control. ``` ### What a Strong Answer Covers - The mechanism: covariates explain outcome variance unrelated to treatment, and how large the reduction is in terms of the covariate's correlation or $R^2$ - Why randomization keeps the adjusted estimate valid, and which covariates are safe to include - What Lin's estimator adds to plain ANCOVA and the guarantee it gives - How CUPED relates to regression adjustment, and the practical strengths of each - Pitfalls such as standard errors under heteroskedasticity, post-treatment covariates, overfitting and choosing covariates after seeing results ### Follow-up Questions - A third of the users in the experiment are new and have no pre-period data. How do you adjust for them? - How would you apply regression adjustment to a ratio metric such as clicks per session when you randomize by user? - What changes if the covariate is a machine learning prediction of the outcome built from pre-period features (CUPAC)? - The adjusted and unadjusted estimates point in different directions. How do you investigate?

Overview: Explain how regression adjustment with ANCOVA or Lin's estimator lowers the variance of A/B test results using pre-experiment covariates, and how it compares to CUPED. Tests variance reduction mechanics, valid standard errors, covariate choice and the practical trade-offs of each method.

PracHub logo
General
Nov 24, 2026
hardData ScientistOtherAnalytics & Experimentation
0
0

How does regression adjustment, such as ANCOVA or Lin's estimator, reduce variance in online controlled experiments? What are its advantages and disadvantages compared to CUPED?

What a Strong Answer Covers Guidance

  • The mechanism: covariates explain outcome variance unrelated to treatment, and how large the reduction is in terms of the covariate's correlation or R2R^2
  • Why randomization keeps the adjusted estimate valid, and which covariates are safe to include
  • What Lin's estimator adds to plain ANCOVA and the guarantee it gives
  • How CUPED relates to regression adjustment, and the practical strengths of each
  • Pitfalls such as standard errors under heteroskedasticity, post-treatment covariates, overfitting and choosing covariates after seeing results

Follow-up Questions Guidance

  • A third of the users in the experiment are new and have no pre-period data. How do you adjust for them?
  • How would you apply regression adjustment to a ratio metric such as clicks per session when you randomize by user?
  • What changes if the covariate is a machine learning prediction of the outcome built from pre-period features (CUPAC)?
  • The adjusted and unadjusted estimates point in different directions. How do you investigate?