The Sample-Ratio-Mismatch Auditor is a free Claude Skill that checks whether an A/B test's actual traffic split matches its intended assignment ratio using a real chi-square goodness-of-fit test, before you trust any metric result the test produced.
A statistical integrity check, not a metric-significance test. Checking whether a test’s traffic split is even correct is a separate, prerequisite question to whether a metric moved. A test can show a “winning” variant purely because broken randomization skewed how many users landed in each arm.
| File | Purpose |
|---|---|
srm.js | computeChiSquareStatistic(), pValueChiSquareDf1(), detectSRM(), detectSRMMultiArm() — zero dependencies |
test.js | 22-test suite, including the p-value function cross-checked against the standard published chi-square df=1 critical value table |
SKILL.md | Full skill definition, loadable in Claude Code/Desktop |
A deliberately strict default significance threshold (alpha 0.001, not the usual 0.05), since under correct random assignment a real ratio mismatch should almost never occur by chance. And an honest scope limit on multi-arm tests: an exact p-value beyond 2 arms requires the chi-square CDF for higher degrees of freedom, which this zero-dependency skill does not implement — it returns the statistic and a note to check a standard critical value table rather than shipping an invented number.
Yes. Free to download and run yourself. MV3 charges $175/hr only for implementation help wiring this into your real experimentation platform's actual assignment data.
A significance test checks whether a metric moved. This checks whether the traffic split itself is correct, which is a prerequisite question. Broken randomization can produce a fake metric win even before you look at the metric.
Under correct random assignment, a real ratio mismatch should almost never happen by chance. A strict threshold (0.001 by default) avoids false alarms on ordinary sampling noise while still catching genuine instrumentation bugs.
detectSRMMultiArm() computes the chi-square statistic for any number of arms, but only returns an exact p-value at 2 arms. Beyond that it honestly returns null and tells you to check a standard chi-square critical value table, rather than approximating a number it cannot verify.
No. All calculations run entirely in your own environment.
AI Marketing & SEO Automation, All States
AI Content & SEO Infrastructure for B2B companies that want to own their growth channel , not rent it.
(704) 317-2293 Get the Audit →We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
Google Tag Manager simplifies the management of marketing tags on your website without code changes.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.