Sample-ratio mismatch: the check that invalidates a test
Illustration, with hypothetical numbers: you planned a 50/50 split and observe 52,000 in one arm and 48,000 in the other. With 100,000 units, a chi-square goodness-of-fit test on that split gives a p-value of about 1e-36. It did not happen by chance, and it means something went wrong between randomization and analysis.
Why it is fatal rather than untidy
The instinct is to treat unbalanced arms as a precision problem — slightly less power, carry on. That is wrong, and the reason is what causes the imbalance.
Units do not usually go missing at random. Common causes: bot filtering applied after assignment rather than before; a redirect that is slower on one variant, so more users abandon before the exposure event fires; a logging failure in one code path; a variant that errors for a particular browser. Every one of those removes users in a way that correlates with their likelihood of converting.
The arm that lost users lost a non-random subset of them. Whatever the effect estimate now measures, it is not the treatment effect.
And you cannot reweight your way out, because you do not know what the missing units would have done. Reweighting corrects for imbalance you can characterize; SRM is imbalance whose mechanism is unknown by definition — if you knew it, you would have fixed it.
Why the threshold is strict
Wind Tunnel runs its SRM check at an alpha of 0.001, not 0.05. That looks over-cautious until you consider the volume: a check run at 5% on every experiment in an archive will, by construction, flag about one in twenty sound experiments. At 0.001 it flags about one in a thousand, so the check can be a hard gate that fires rarely and means something when it does.
What to do about one
- Do not analyze the experiment. An SRM result is not a weaker result, it is an uninterpretable one.
- Trace the order of operations: randomization, exposure logging, bot filtering, and any redirect or latency difference between arms.
- Check whether the imbalance is present at assignment or only at exposure. Assignment-level imbalance points at the randomizer; exposure-level points at delivery.
- Re-run once the cause is fixed. An experiment that failed its SRM should not enter an evidence corpus, because it will bias everything pooled with it.
Wind Tunnel runs this check on every past test before it is used as evidence. A failing test is excluded, with the reason recorded, rather than silently averaged in.
Simulate your next test
Wind Tunnel is free today, by invitation. Start with a file export; live connections are set up with you. See what is included