MLCrack

    EXPERIMENTATION & A/B TESTING · INTERVIEW QUESTION

    Why is randomization unit important?

    🟢 beginner · A/B Testing

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

    Answer

    Randomizing by user, session, query, or item changes independence assumptions and interference risk. The unit should match how treatment affects outcomes.

    Interview reasoning

    The randomization unit must fit dependence and spillovers. User-level assignment keeps repeated experiences consistent; marketplace designs may need clusters or time blocks.

    Randomization and analysis must respect the unit whose outcomes are jointly influenced. Repeated visits from one user are not independent units; shared teams or markets can require cluster assignment. Stratifying on pretreatment variables can improve balance, while cluster-aware inference addresses within-unit correlation rather than eliminating it.

    Worked example. Assign users consistently across their sessions and use user-level outcomes or suitable clustered inference.

    Validation

    Check assignment persistence and estimate power using independent units.

    Check assignment persistence, stratum balance and cluster counts; validate intervals through null simulations using realistic correlation.

    Common pitfalls

    Counting correlated requests as independent users understates uncertainty.

    Few clusters can invalidate ordinary large-sample standard errors. Choosing the analysis unit for convenience understates uncertainty.

    Likely follow-up: Check assignment persistence and estimate power using independent units.