← Back to directory

Chi-square goodness-of-fit test of observed arm counts against expected traffic ...

https://www.brainiac.software/api/v1/experimentation/sample-ratio-mismatch

Overview

Chi-square goodness-of-fit test of observed arm counts against expected traffic shares, with an exact binomial p-value for tiny two-arm counts and generic causes when a mismatch is flagged. Docs: https://www.brainiac.software/api/experimentation/sample-ratio-mismatch

Protocol x402 (POST)
Price $0.01
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Detect A/B Sample Ratio Mismatch
Source bazaar
Indexed 2026-11-24 19:01:16

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "arms": [ { "expectedShare": 0.5, "name": "control", "observed": 50000 }, { "expectedShare": 0.5, "name": "treatment", "observed": 49000 } ], "threshold": 0.0005 }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "arms": [ { "deviationPct": 1.01, "expected": 49500, "name": "control", "observed": 50000 }, { "deviationPct": -1.01, "expected": 49500, "name": "treatment", "observed": 49000 } ], "chiSquare": 10.1010101, "df": 1, "hints": [], "limitations": [ "A non-significant result does not prove assignment is balanced; the default threshold 0.0005 is conservative on purpose.", "Pure computation on the supplied input: no events are stored and no network is called. Results are statistical calculations for human review." ], "pValue": 0.001481880775, "sources": [ { "retrievedAt": "2026-11-14T00:00:00.000Z", "source": "NIST/SEMATECH e-Handbook: chi-square goodness-of-fit test", "status": "ok", "url": "https://www.itl.nist.gov/div898/handbook/eda/section3/eda35f.htm" } ], "srm": false, "threshold": 0.0005 }, "type": "json" }