A/B test significance calculator
test_ab_significanceIs an A/B test result statistically significant? From visitors and conversions per group: two-proportion z-test (pooled), one or two-sided p-value, Wald confidence interval for the difference, relative lift, Pearson chi-square with and without Yates correction (R prop.test), Fisher exact p for the same 2x2 table, and a sample ratio mismatch (SRM) check against the planned split.
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": {
"control_visitors": "<control_visitors>",
"control_conversions": "<control_conversions>",
"variant_visitors": "<variant_visitors>",
"variant_conversions": "<variant_conversions>"
},
"name": "test_ab_significance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | Significance level, default 0.05. | |
| alternative | No | greater = variant converts better than control. | two-sided |
| expected_split | No | Planned share of traffic in control, for the SRM check. Default 0.5. | |
| control_visitors | Yes | ||
| variant_visitors | Yes | ||
| control_conversions | Yes | ||
| variant_conversions | Yes |