Academic Statistics · Module 04 of 11

Chi-square tests for categorical data

This module covers the chi-square goodness-of-fit test and the chi-square test of independence for contingency tables, the expected count assumption, Fisher's exact test, and effect sizes such as phi and Cramér's V. Categorical outcomes are common in survey and clinical research, and the assumption checks here are frequently overlooked.

Watch the first lesson of every module free. The remaining lessons, exercises and live sessions open when you enrol.

What you will be able to do

  • Choose between the goodness-of-fit test and the test of independence
  • Check expected counts (no more than 20% of cells below 5 and none below 1) and use Fisher's exact test when the condition is not met
  • Interpret adjusted standardised residuals to locate where an association lies
  • Report chi-square with phi or Cramér's V as an effect size

Key terms

  • Contingency table
  • Chi-square test of independence
  • Goodness of fit
  • Expected count
  • Fisher's exact test
  • Cramér's V
  • Phi coefficient
  • Standardised residual

Hands-on practice

Run a chi-square test of independence on a provided survey dataset in SPSS or jamovi, check expected counts and report the result with Cramér's V.

Common pitfalls this module fixes

  • Running chi-square on percentages or means; the test requires frequency counts.
  • Ignoring small expected counts; combine categories meaningfully or use Fisher's exact test.
  • Applying chi-square to repeated measurements of the same people; use McNemar's test for paired binary data.