Chi-square test of independence on a contingency table
Chi-square test of independence on a contingency table - statistic, df, p-value, Cramer V, expected counts, Yates correction and assumption warnings
Answeringour last check, 2026-10-20
1 of 1checks answered this week
528 msmedian answer time
$0.01listed price per call
$0.01price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://saylorinnovations.com/api/stats/chi-square
| Category | Everything else |
|---|---|
| Provider host | saylorinnovations.com |
| Networks | eip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-20 | valid payment request | 402 | $0.01 | 528 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"table": "[[30,10],[20,40]]"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"table": {
"description": "JSON grid of observed counts, 2x2 to 10x10, e.g. [[30,10],[20,40]]",
"type": "string"
}
},
"required": [
"table"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"association": {
"description": "Strength of association from Cramer's V",
"type": "string"
},
"assumption_warning": {
"description": "Assumption warning",
"type": [
"string",
"null"
]
},
"chi_square": {
"description": "Chi square",
"type": "number"
},
"column_totals": {
"description": "Column totals",
"type": [
"array",
"null"
]
},
"cramers_v": {
"description": "Cramers v",
"type": "number"
},
"df": {
"description": "Degrees of freedom",
"type": "number"
},
"expected_counts": {
"description": "Expected counts",
"type": "array"
},
"min_expected_count": {
"description": "Number of min expected",
"type": "number"
},
"p_value": {
"description": "P value",
"type": "number"
},
"row_totals": {
"description": "Row totals",
"type": [
"array",
"null"
]
},
"significant_at_5_percent": {
"description": "Significant at 5, as a percentage",
"type": "boolean"
},
"source": {
"description": "Data source the values come from",
"type": "string"
},
"total": {
"description": "Total number of matching items",
"type": [
"number",
"null"
]
},
"yates_corrected": {
"description": "Yates corrected"
}
},
"required": [
"chi_square",
"df",
"p_value"
],
"type": "object"
},
"type": {
"const": "json",
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}