Detect A/B sample ratio mismatch
experimentation_sample-ratio-mismatchChi-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. Price $0.01 USDC. POST /api/v1/experimentation/sample-ratio-mismatch. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"arms": "<arms>"
},
"name": "experimentation_sample-ratio-mismatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arms | Yes | arms, array. Required. | |
| threshold | No | threshold, number. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| df | No | df. Number. | |
| srm | No | srm. Boolean. | |
| arms | No | arms. Array. | |
| hints | No | hints. Array. | |
| pValue | No | pValue. Number. | |
| sources | No | sources. Array. | |
| chiSquare | No | chiSquare. Number. | |
| threshold | No | threshold. Number. | |
| limitations | No | limitations. Array. |