---
title: SRM Checks
description: Sample ratio mismatch (SRM) detection in Statsig Warehouse Native flags skewed traffic splits in experiment scorecards so you can investigate and fix logging.
product: general
lang: en
token_estimate: 413
---
# SRM Checks

## How SRM checks work

Sample ratio mismatch (SRM) occurs when the observed allocation of unique users between test groups differs from the expected allocation or "split" of the test. Go to the [Statsig blog post on SRM](https://www.statsig.com/blog/sample-ratio-mismatch) for background.

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

SRM is a signal that there could be unknown bias in the test. Unless you can clearly diagnose the reason for the imbalance, there's no reliable way to know how much this bias affects your results.

Statsig runs SRM checks on all experiments and feature gates as part of Health Checks (described in [Health Checks](https://docs.statsig.com/experiments/monitor)). Statsig uses a Chi-squared test to identify whether the split of users between groups indicates a sample ratio mismatch.

![SRM health check results interface](https://docs.statsig.com/images/experiments/srm-checks-health.png)

Statsig automatically analyzes data by common dimensions that the Statsig SDK logs to identify potential drivers of SRM. These include sdk\_type, sdk\_version, reason, is\_bot, browser\_name, browser\_version, os, os\_version, and region. When the check reports an imbalance, select **Open Debugger** to open the **Debug SRM** dialog. The **P-value Over Time** tab charts the SRM p-value by day, and the **P-value By Group** tab lists the unit count and SRM p-value for each dimension value.

![SRM dimension analysis breakdown](https://docs.statsig.com/images/experiments/srm-checks-dimensions.png)

