util_chi_square
Chi-square test (independence or goodness of fit) with Fisher exact — Categorical data test. table= contingency table, rows separated by ; and cells by , (e.g. 30,10;20,40) for a test of independence: chi-square, df, p, G-test, Cramer's V, expected counts, adjusted residuals, low-expected-cell warning; 2x2 tables add Yates correction, Fisher exact p, odds ratio and relative risk. Or observed= counts with optional expected= counts/proportions (default uniform) and ddof= for goodness of fit with Cohen's w. alpha= default 0.05. Verdict ASSOCIATED/NO_EVIDENCE_OF_ASSOCIATION or DOES_NOT_FIT/CONSISTENT_WITH_EXPECTED. Offline. Price: $0.002 USDC (Base, via x402).
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": {
"table": "<table>"
},
"name": "util_chi_square"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | 30,10;20,40 |