MLCrack

    EXPERIMENTATION & A/B TESTING ยท INTERVIEW QUESTION

    What is a guardrail metric?

    ๐ŸŸข beginner ยท A/B Testing

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

    Answer

    A guardrail metric protects against unacceptable harm, such as latency, errors, churn, fairness, or revenue loss, while optimizing the primary metric.

    Interview reasoning

    A guardrail can require that latency or opt-outs worsen by less than a meaningful margin. Non-inferiority requires evidence excluding unacceptable harm, not merely a nonsignificant harm test.

    The primary metric expresses intended user or business value; guardrails constrain costs and harm. A convenient proxy is useful only when its relation to durable value is tested. Specify directions, acceptable margins and uncertainty rules so a neutral safety p-value is not mistaken for proof of no harm.

    Worked example. A ranking experiment might optimize satisfied sessions while guarding latency, hides and retention.

    Validation

    Set margins before results and examine confidence intervals against them.

    Validate instrumentation and sensitivity, define tolerated harm margins, and assess long-term proxy alignment on holdouts.

    Common pitfalls

    Failure to reject a zero-effect null does not prove safety.

    Many metrics without a decision rule invite cherry-picking. An underpowered guardrail can hide degradation larger than the product permits.

    Likely follow-up: Set margins before results and examine confidence intervals against them.