{"slug":"saylorinnovations-com-api-stats-chi-square-b08b8b","title":"Chi-square test of independence on a contingency table","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/stats/chi-square","category":"other","description":"Chi-square test of independence on a contingency table - statistic, df, p-value, Cramer V, expected counts, Yates correction and assumption warnings","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":528,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"table":"[[30,10],[20,40]]"},"type":"http"},"output_schema":{"$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"},"history":[{"day":"2026-10-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":528,"error":null}],"description_full":"Chi-square test of independence on a contingency table - statistic, df, p-value, Cramer V, expected counts, Yates correction and assumption warnings","last_updated":"2026-10-20T14:51:42.229Z","schemes":["exact"]}