chi_square_independence_test
Performs a Chi-Square test for independence on a 2x2 contingency table. Returns the chi-square statistic, p-value, and whether to reject the null hypothesis at the given significance level. (cost: 1 credit)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contingency_table | No | 2D array, required, 2x2 table of observed frequencies [[a, b], [c, d]] | |
| significance_level | No | number, required, significance level for the test (e.g., 0.05 for 5%) |