AI engineering glossary · Statistics inference
What is chi-square test of independence?
Chi-square test of independence (also called Chi-square test): A test that checks whether two categorical variables are related, by comparing observed counts in a contingency table with the counts expected if they were unrelated. Large gaps produce a large statistic and a small p-value.
Chi-square test of independence: an example
Test whether payment method (UPI, card, cash) and product category are related using a 3 by 4 table of order counts.
Related terms
More Statistics inference terms
- Cohen's d
- Confidence interval
- Confidence level
- Consistency
- Contingency table
- Control group
- Counterfactual
- Cramér-Rao bound
Where you learn it
Chi-square test of independence is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.