An online A/B test configured for a 50/50 split logs 50,800 users in control and 49,200 in treatment out of 100,000 total. What does a goodness-of-fit test at (critical value ) show about sample ratio mismatch (SRM), and why must metric analysis stop if SRM fails?
ML systems and evaluation, Online experiments
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can run the standard SRM diagnostic test and understand why an unbalanced split invalidates causal inference.
Key idea
Under a valid 50/50 split of users, expected counts are , and tests whether observed counts deviate beyond random chance; a failed SRM test signals selection or logging bias that ruins treatment comparability.
Steps
- State the null hypothesis (where and are the control and treatment assignment probabilities) on users, giving expected counts .
- Compute the test statistic: .
- Compare with the critical value: (in fact ), so reject and declare a sample ratio mismatch.
- Explain why to halt analysis: an 800-user deficit in treatment is rarely benign—it often happens when treatment crashes or adds latency so users drop off before logging, leaving a biased subset of survivors whose metrics cannot be trusted.
Common mistakes
- Thinking a 50.8% vs 49.2% split is "close enough to 50/50" without running the test; with 100,000 users, standard deviation is only users, so an 800-user gap is over 5 standard errors.
- Trying to fix SRM by subsampling control down to 49,200 users; if missing treatment users dropped out non-randomly, subsampling does not remove the bias.
How long your answer should be
Three lines of arithmetic and two sentences on why SRM invalidates the test; 3 minutes.
Last checked on 4 December 2026.
Read this
Previous in ML systems and evaluation: You are training a pneumonia detector on 5,000 chest X-rays collected from 500 patients (10 scans per patient). Why does standard or stratified -fold cross-validation overestimate test accuracy, and how does group -fold fix it?
Next in ML systems and evaluation: What is the difference between unstructured magnitude pruning and structured pruning, and why does 80% unstructured sparsity often give little wall-clock speedup on standard GPUs?