Screenshot of Lukas Vermeer's manual SRM checker at LukasVermeer.nl

Lukas Vermeer's manual sample ratio mismatch (SRM) cheker

Quickly learn if your data is randomized properly or not

Screenshot of Lukas Vermeer's manual SRM checker.
Simply plug in the sample size you observe for both the control and the treatment groups and learn if there's likely to be a sample ratio mismatch or not.

Randomization is the hidden power behind A/B testing. When randomized properly, the confounds in your data are completely removed. This allows you trust any cause/effect relationship you might observe. 

To manually check for a sample ratio mismatch (SRM) head over to Lukas Vermeer's sample ratio mismatch checker at LukasVermeer.nl. Here's how to use it:

  1. Plug in the ratio you wanted your sample split into. By default the checker is pre-populated with .5 (aka 50%) for the "Expected ratio #1" and "Expected ratio 2" form fields. This means the intended split was 50/50. This is the most common split ratio, but it's also possible to choose any other ratio that makes sense in your situation.
  2. Go to your A/B testing tool and get the sample size for both the control and the treatment groups. You can usually find these numbers by looking for something labeled "visitors," "users," or "participants."
  3. Plug in the sample size numbers you observe in your A/B testing tool. These numbers go in the fields labeled "Observed sample #1" for your control and "Observed sample #2" for your treatment.
  4. Look at what the colored banner below the fields says. The checker works on-the-fly, so there's no need to push any buttons or do anything else.

How to read the manual SRM check result

If the banner is green and says, "No indication of sample ratio mismatch with p = ..." then there is no sample ratio mismatch in your data. The figure below illustrates what a result without an SRM looks like.

A screenshot of what the result looks like if there's no SRM in your data. It's a green box with text in it.

If the banner is yellow and says, "Warning. Possible sample ratio mismatch detected with p < 0.0001. The observed sample size in treatment does not match the expected proportion of the total sample size. This is an indicator for randomisation failure or missing data issues. Comparative statistics may be invalid as a result."

An example of what the banner looks like when there's likely an SRM in your data.

This simply means you're like to have an SRM in your data, and you should not trust the result.

More useful resources

Screenshot of Speero's A/B tesing tool comparison website

A/B testing tool comparison

Speero’s A/B testing tool comparison website Helping you find the right experimentation tool quickly and easily Speero’s A/B testing too comparison website includes a comprehensive list of options. If you’re […]

Go to resource
Shopping Cart
Scroll to Top