🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
Search courses…
💼 Servicesℹ️ About✉️ ContactView Pricing Plansfrom $10

Chi-Square Tests

StatisticsNon-parametric Tests🟢 Free Lesson

Advertisement

Chi-Square Tests


Overview

Chi-square tests address two fundamental questions about categorical data. The goodness of fit test determines whether a single categorical variable follows a specified distribution (e.g., is a die fair?). The test of independence determines whether two categorical variables are associated (e.g., is gender associated with voting preference?). Both use the same test statistic — the sum of squared differences between observed and expected frequencies, standardized by expected frequencies. When expected frequencies are small (), the chi-square approximation breaks down and Fisher's exact test should be used instead. Effect size is measured by Cramér's V.


Key Concepts

Degrees of Freedom

TestFormulaExample
Goodness of Fit (known )6-sided die:
Goodness of Fit (estimated params)10 bins, estimating μ and σ:
Independence table:

Minimum Expected Frequency Rule

  • No expected frequency should be less than 1
  • No more than 20% of expected frequencies should be less than 5
  • For tables violating this, use Fisher's exact test

Cramér's V Benchmarks

SmallMediumLarge
10.100.300.50
20.070.210.35
3+0.060.170.29

Quick Example


Key Takeaways


Deep Dive

For detailed explanations, worked examples, and Python implementations, explore the dedicated statistics lessons:

Chi-Square Distribution

Goodness of Fit

Test of Independence

Related Tests

Related Topics

Need Expert Mathematics Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement