Solving a Chi-Squared Test Divide by Zero Error

  • Context: Undergrad 
  • Thread starter Thread starter Moose352
  • Start date Start date
  • Tags Tags
    Chi-squared Test
Click For Summary
SUMMARY

The discussion addresses the issue of encountering a divide by zero error when calculating the chi-squared test statistic due to expected values being zero. It establishes that the chi-squared test is unreliable when expected frequencies are less than 5, and particularly invalid when they are zero. The recommended alternative is to use Fisher's Exact Probability Test for 2x2 contingency tables with small expected frequencies, specifically when they are less than 10. The conversation highlights the necessity of ensuring adequate expected frequencies for valid statistical testing.

PREREQUISITES
  • Understanding of chi-squared test principles
  • Familiarity with Fisher's Exact Probability Test
  • Knowledge of contingency tables
  • Basic statistical analysis skills
NEXT STEPS
  • Research the application of Fisher's Exact Probability Test in statistical analysis
  • Learn about the assumptions and limitations of chi-squared tests
  • Explore methods for ensuring adequate expected frequencies in statistical tests
  • Study alternative statistical tests for small sample sizes
USEFUL FOR

Statisticians, data analysts, and researchers dealing with categorical data who need to perform accurate statistical tests without encountering divide by zero errors.

Moose352
Messages
165
Reaction score
0
What should I do when the expected value for a chi squared test is zero, so when I try to calculate the test statistic, i get a divide by zero?
 
Physics news on Phys.org
The chi-squared test isn't very accurate when expected frequencies are less than 5 (and definitely not if they are 0). In some cases, you can instead use a Fisher's Exact Probability Test (if you have a 2x2 contingency table and small expected frequencies...I think less than 10). I don't have the formula for that handy though. If that doesn't work for your data, I'm not sure what other alternatives there are.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K