Week 11 (Chi-squared) Flashcards
What is Chi square test
Test of association
-Used with categorical variables
-Non-parametric
-Does not make any assumptions
How Chi-square works
-If there is no association, the observed values - the frequencies in each cell - do not differ from what we would EXPECT to happen merely by chance.
-But if the observed values are significantly different from the expected values, we can conclude that there is an association between the variables that differs from what we would expect by chance.
How to calculate expected values
Row total X Column total divided by Grand total
How to calculate chi square ( χ2)
- Square each O-E value
- Divide each result by it’s expected value
- Add up all the results
Interpreting Chi Square
Should always be either zero or a positive value
-If it is not zero, then an association exists
-To get p value for significance we need degrees of freedom
-Compare this to a critical value table
How to calculate degrees of freedom for chi square
df = (Number of Rows - 1) (Number of Columns - 1)
e.g df = (2-1)(2-1)
1 X 1 = 1
df = 1