Solving a Chi-Squared Test Divide by Zero Error

  • Thread starter Thread starter Moose352
  • Start date Start date
  • Tags Tags
    Chi-squared Test
AI Thread Summary
A divide by zero error in a chi-squared test occurs when the expected value is zero, making the test statistic calculation impossible. The chi-squared test is unreliable with expected frequencies below 5, and especially with zero. In such cases, a Fisher's Exact Probability Test is recommended for 2x2 contingency tables with small expected frequencies, typically less than 10. If neither test is suitable for the data, alternative methods may need to be explored. It is crucial to ensure that expected frequencies are adequate for accurate statistical analysis.
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.
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top