Help involving Chi squared test

  • Context: Undergrad 
  • Thread starter Thread starter mmmboh
  • Start date Start date
  • Tags Tags
    Chi Test
Click For Summary
SUMMARY

The discussion centers on handling a zero expected value in a Chi-squared test, specifically when using the formula (O-E)²/E. Participants recommend combining cells with expected counts below 5 to ensure all cells meet the minimum requirement, thus avoiding division by zero. It is emphasized that if a row or column total is zero, the expected value cannot be valid, and the category should be considered invalid. Proper calculation of expected values is crucial, using the formula: expected = [row total] x [column total] / [table total].

PREREQUISITES
  • Understanding of Chi-squared tests
  • Familiarity with statistical concepts such as expected values
  • Knowledge of contingency tables
  • Basic proficiency in statistical software or tools for calculations
NEXT STEPS
  • Learn how to combine categories in Chi-squared tests to meet expected value requirements
  • Study the implications of zero totals in contingency tables
  • Explore alternative statistical tests for small sample sizes, such as Fisher's Exact Test
  • Review the calculation of expected values in Chi-squared tests
USEFUL FOR

Students, researchers, and data analysts conducting Chi-squared tests, particularly those facing issues with low expected values in their datasets.

mmmboh
Messages
401
Reaction score
0
URGENT help involving Chi squared test!

Hello, I am doing a chi squared test for a project due soon and everything is fine, except for one thing...for one of my rows the expected value is zero!...and the equation is (O-E)^2/E...but I can't divide it by zero because that will give infinity...so what do I do if the expected value is zero? not include it in the summation?...

Help is greatly appreciated!
 
Physics news on Phys.org


mmmboh said:
Hello, I am doing a chi squared test for a project due soon and everything is fine, except for one thing...for one of my rows the expected value is zero!...and the equation is (O-E)^2/E...but I can't divide it by zero because that will give infinity...so what do I do if the expected value is zero? not include it in the summation?...

Help is greatly appreciated!

A common suggestion is to combine cells for which the expected count is below 5: pool cells until every cell has expected count >=5, then do the test. when you do this base the degrees of freedom on the number of cells after combination, not the original number.

you could also try a different test.
 


Hm I'm not quite sure I follow, I am just suppose to combine rows together? I don't think that would work in my case, and my expected values for any given row are low anyway...is there something else I can do?...I don't think there is an alternate test, at least not that we have been tought.
 


mmmboh said:
Hello, I am doing a chi squared test for a project due soon and everything is fine, except for one thing...for one of my rows the expected value is zero!...and the equation is (O-E)^2/E...but I can't divide it by zero because that will give infinity...so what do I do if the expected value is zero? not include it in the summation?...

Help is greatly appreciated!

unless one row total or column total is exactly 0, then the expected cannot be 0. is the expected calculated right?

expected=[row total]x[column total]/[table total]

if one of the totals indeed 0, then the category containing that is completely invalid!
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K