Math Playground
Data

Chi-square test

Test whether observed counts match what you expected.

The chi-square test checks whether observed counts match expected counts — used in goodness-of-fit and independence tests.

Test statistic
χ² = Σ (O − E)² / E