# Diagnose sample ratio mismatch in A/B tests Compare observed with expected traffic splits, run a chi-square check and rule out logging, eligibility or randomization defects before trusting the experiment. - Canonical: https://satracking.net/guides/analytics-ab-test-sample-ratio-mismatch/ - Language: en - Category: validation - Level: intermediate - Published: 2026-11-14 - Updated: 2026-11-14 --- Compare observed with expected traffic splits, run a chi-square check and rule out logging, eligibility or randomization defects before trusting the experiment. It focuses on clear definitions, correct analytical scope and checks that make conclusions reproducible. ## Define the analytical question State the decision or question the analysis must support. Specify the population, unit of analysis, time window and metric scope. Identify the source fields and transformations required, and record assumptions that could change the result. ## Apply a repeatable method Compare observed assignment counts with the planned allocation; test the mismatch statistically using the correct expected ratio; segment diagnostics by platform, eligibility and assignment time; inspect exposure logging and allocation code before interpreting outcomes. ## Check interpretation and edge cases A sample ratio mismatch is a warning about assignment or measurement integrity, not evidence that a treatment won or lost. Validate the result with a small known example, inspect missing or duplicated records, and compare equivalent periods and populations. Keep the denominator visible and distinguish observed behavior from causal explanation. ## Make the analysis reproducible Record the report configuration, query or exploration settings, source freshness and definition version. Share a concise interpretation with limitations and next actions. Re-run the same checks after material tracking, schema or business-process changes. ## Review checklist - Is the population, grain and time window explicit? - Do the selected fields match the intended scope? - Have duplicates, missing values and boundary cases been checked? - Are limitations and assumptions visible? - Can another analyst reproduce the result? ## Official references - Chi-Square Goodness-of-Fit Test — https://www.itl.nist.gov/div898/handbook/eda/section3/eda35f.htm (verified 2026-11-14) - Sample Ratio Mismatch (SRM) — https://docs.geteppo.com/statistics/sample-ratio-mismatch/ (verified 2026-11-14)