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.

Level: intermediateTopic: Statistics inference

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

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.