How to check A/B test validity: SRM and other criteria

Polina Revina27 May 2024

Problem

An A/B platform team has to tell experimenters which results are safe to read. A test can look clean and still be broken. Users vanish from one group, two concurrent tests overlap unevenly, or two features interact. Such a test cannot be trusted, and the experiment often has to be rerun. At Kuper (formerly SberMarket) SRM alone hit about 8% of tests.

Example from the article: a test-group label was handed out only after interaction with one product-card component. One platform had a second card component that the team did not know about, so users with that component never entered the test group.

Solution in brief

Run a fixed set of automatic validity checks on every test. Compare group sizes with the planned split using a chi-square test (SRM). Test how pairs of tests overlap, again with chi-square, and fit a regression with an interaction term to catch non-additive effects. Add warnings for short tests, reused salts and historical A/A divergence.

Questions this case answers
  • How to decide automatically whether a randomized experiment readout can be trusted when assignment, filtering or concurrent tests may have broken randomization
  • How to monitor group-size imbalance continuously during an experiment without inflating false alarms
  • How to check that an A/B test is valid before trusting its result
  • How to detect and diagnose sample ratio mismatch (SRM), including during a running test

Tools and methods

  • Chi-square test — compares observed group sizes with the planned split (SRM) and tests uniform overlap of two experiments.
  • Sequential SRM — checks imbalance every day without inflating false alarms.
  • Regression with an interaction term — detects non-additive effects of two tests.
  • Historical A/A tests — show metric divergence on history and check the splitting at platform level.
Continue reading — it's free

Google or a one-time email code. No password.