Skip to content
Log in
← Glossary

Pearson's chi-square test

Tests association between categorical variables by summing (observed - expected)^2 / expected over all cells.

Example

Common mistakes

  • Feeding in percentages instead of counts. The statistic depends on sample size; "5.2% vs 6.8%" without the counts behind it can't be tested.
  • Counting the same user more than once. A table of sessions or page views where one customer appears many times breaks the independence assumption and makes the result look far more certain than it is.
  • Ignoring small expected counts. If any expected cell count falls below about 5 (common in niche segments), switch to Fisher's exact test.
  • Reading a significant 3-variant result as "C wins". Chi-square only says the rates are not all equal. Follow up with pairwise comparisons and a multiple-comparisons correction.
  • Treating a big χ² as a strong effect. χ² grows with the sample; report the conversion rates and the lift as the effect size.