What is a sample ratio mismatch (SRM), how do you detect it, what causes it, and why does it invalidate results?

Quick Overview

Asks what a sample ratio mismatch in an A/B test is, how to detect it, what usually causes it, and why it undermines the results. Tests your grasp of goodness-of-fit testing on assignment counts, the path from randomization to logging, and selection bias.

What is a sample ratio mismatch (SRM), how do you detect it, what causes it, and why does it invalidate results?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Other

What is a Sample Ratio Mismatch, how do you detect it, what are its common causes, and why does it invalidate experiment results? ```hint Detecting it Treat the user counts per variant as draws from a known split, and pick the test that compares observed counts with expected ones. ``` ```hint Finding causes Follow one user from the moment of assignment to the moment they show up in the analysis table, and ask where one arm could lose or gain users that the other does not. ``` ```hint Why it matters Ask whether the users who go missing from one arm are a random sample of that arm. ``` ### What a Strong Answer Covers - A precise definition, including why "significantly different" depends on sample size - The detection test, the threshold used and how it extends to unequal splits and more than two arms - Causes along the path from assignment to analysis, with concrete examples - Why the mismatch biases the estimated treatment effect - What to do once an SRM is found ### Follow-up Questions - A 50/50 test shows 50.3% versus 49.7% with two million users. Is that an SRM, and what would you check first? - How would you narrow down the cause of an SRM once the check fails? - Why is the SRM check usually run with a strict threshold such as 0.001 instead of 0.05? - Can differential attrition bias an experiment without producing an SRM?

Overview: Asks what a sample ratio mismatch in an A/B test is, how to detect it, what usually causes it, and why it undermines the results. Tests your grasp of goodness-of-fit testing on assignment counts, the path from randomization to logging, and selection bias.

General logo
General
Nov 24, 2026
mediumData ScientistOtherAnalytics & Experimentation
0
0

What is a Sample Ratio Mismatch, how do you detect it, what are its common causes, and why does it invalidate experiment results?

What a Strong Answer Covers Guidance

  • A precise definition, including why "significantly different" depends on sample size
  • The detection test, the threshold used and how it extends to unequal splits and more than two arms
  • Causes along the path from assignment to analysis, with concrete examples
  • Why the mismatch biases the estimated treatment effect
  • What to do once an SRM is found

Follow-up Questions Guidance

  • A 50/50 test shows 50.3% versus 49.7% with two million users. Is that an SRM, and what would you check first?
  • How would you narrow down the cause of an SRM once the check fails?
  • Why is the SRM check usually run with a strict threshold such as 0.001 instead of 0.05?
  • Can differential attrition bias an experiment without producing an SRM?