AI engineering glossary · Statistics inference

What is chi-square goodness-of-fit test?

Chi-square goodness-of-fit test: A test of whether observed category counts match a claimed distribution. It sums (observed - expected)^2 / expected across categories and compares the total with a chi-square reference distribution. Small totals mean the observed counts match the claim well.

Level: intermediateTopic: Statistics inference

Chi-square goodness-of-fit test: an example

A die rolled 600 times should give about 100 of each face; the test judges whether the observed counts deviate too much for a fair die.

Related terms

More Statistics inference terms

Where you learn it

Chi-square goodness-of-fit test 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.