Run a chi-square test
statistics_chi-square-testChi-square test of independence (with optional Yates correction), goodness of fit, Fisher's exact test for 2x2 tables and Cramer's V, with expected counts and a low-expected-cell warning. Price $0.02 USDC. POST /api/v1/statistics/chi-square-test. 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": {
"kind": "<kind>"
},
"name": "statistics_chi-square-test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | kind, string, one of independence, goodness_of_fit. Required. | |
| table | No | table, array. Optional. | |
| yates | No | yates, boolean. Required. | |
| fisher | No | fisher, boolean. Required. | |
| observed | No | observed, array. Optional. | |
| expectedProportions | No | expectedProportions, array. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| df | No | df. Number. | |
| yates | No | yates. Boolean. | |
| fisher | No | fisher. Object. | |
| pValue | No | pValue. Number. | |
| sources | No | sources. Array. | |
| cramersV | No | cramersV. Number. | |
| expected | No | expected. Array. | |
| chiSquare | No | chiSquare. Number. | |
| limitations | No | limitations. Array. | |
| lowExpectedCells | No | lowExpectedCells. Number. |