{"ok":true,"data":{"tool":{"slug":"chi-square-calculator","name":"Chi-Square Calculator","section":"calculators","category":"Math","subcategory":"Statistics & Probability","url":"/calculators/statistics-and-probability/chi-square-calculator/","status":"live","api_mode":"not_available","webmcp_mode":"navigate_only","processing_mode":"client-side","privacy_mode":"no-data-stored","summary":"Calculate a chi-square goodness-of-fit statistic.","input_schema":{"type":"object","properties":{"observed":{"type":"string","description":"Enter observed counts for this calculation."},"expected":{"type":"string","description":"Enter expected counts for this calculation."}},"required":["observed","expected"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"chi_square":{"type":"number","description":"Chi-square statistic calculated by the tool."},"degrees_of_freedom":{"type":"number","description":"Degrees of freedom calculated by the tool."},"p_value_approx":{"type":"number","description":"Approximate p-value calculated by the tool."},"rows":{"type":"array","description":"Cell contributions calculated by the tool."}},"additionalProperties":false},"examples":[{"title":"Chi-Square Calculator worked example","description":null,"input":{"observed":"48, 52, 61, 39","expected":"50, 50, 50, 50"},"output":{"chi_square":5,"degrees_of_freedom":3,"p_value_approx":0.1699867100000000130766153461081557907164096832275390625,"rows":[{"category":1,"observed":48,"expected":50,"contribution":0.08000000000000000166533453693773481063544750213623046875},{"category":2,"observed":52,"expected":50,"contribution":0.08000000000000000166533453693773481063544750213623046875},{"category":3,"observed":61,"expected":50,"contribution":2.4199999999999999289457264239899814128875732421875},{"category":4,"observed":39,"expected":50,"contribution":2.4199999999999999289457264239899814128875732421875}]}}],"capability":null}},"meta":{"api_status":"preview","execution":"unavailable"},"request_id":"faec78da5bdbee7cf794819c"}