MLCrack

    EXPERIMENTATION & A/B TESTING Β· INTERVIEW QUESTION

    Why use pre-period metrics?

    🟒 beginner · A/B Testing

    Hint: Focus on the decision rule, assumptions, and failure mode behind a/b testing.

    Answer

    Pre-period metrics help check balance, reduce variance, and detect unusual users. They must be unaffected by treatment.

    Interview reasoning

    Pre-treatment outcome history can explain natural variation and improve precision through adjustment or blocking. CUPED uses a centered covariate with a fitted coefficient.

    Pretreatment covariates can explain outcome variation without removing treatment-caused change. In CUPED, subtract theta times centered X with theta=Cov(Y,X)/Var(X). Under the ideal linear setting, residual variance is original variance times (1-rho squared). Use common centering/fitting and explicit rules for absent history.

    Worked example. Preperiod spending can improve precision for current spending if its relationship is stable.

    Validation

    Check availability, covariate balance, and realized variance reduction by cohort.

    Check balance, availability and missing-history cohorts; compare adjusted/unadjusted estimates and A/A interval coverage.

    Common pitfalls

    Post-treatment covariates can remove part of the effect or introduce selection bias.

    Less estimator variance does not mean modifying away the treatment signal. Post-treatment adjustment or arm-specific arbitrary rules can bias the effect.

    Likely follow-up: Check availability, covariate balance, and realized variance reduction by cohort.