MLCrack

    EXPERIMENTATION & A/B TESTING · INTERVIEW QUESTION

    How do you design an A/B test for a new ranking model?

    🟢 beginner · A/B Testing

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

    Answer

    Define a primary metric, guardrails, randomization unit, eligibility, duration, sample size, exposure logging, and launch criteria. Validate instrumentation before starting.

    Interview reasoning

    Define the unit, eligibility, assignment, primary outcome, guardrails, target effect, exposure period, and analysis before changing rankings. Track actual exposure separately from assignment.

    An online model experiment evaluates the whole changed decision pipeline under stable random assignment. Offline improvements may not survive shifts in candidates, latency, eligibility or user response. Define the decision unit, primary durable outcome, power and guardrails before ramping, and retain mature delayed outcomes.

    Worked example. Randomize users for a new ranker and compare satisfied engagement plus latency, rather than randomizing individual correlated clicks.

    Validation

    Run instrumentation and allocation checks, then estimate effects and uncertainty under the declared design.

    Use A/A and SRM checks, declared stopping rules, user-level intervals, staged rollout and outcome-maturity monitoring.

    Common pitfalls

    Request-level randomization can contaminate repeated users and ignore interference.

    An impressive offline score does not prove incremental business impact. Shared inventory or social interactions may require a different randomization design.

    Likely follow-up: Run instrumentation and allocation checks, then estimate effects and uncertainty under the declared design.