Chi-squared test for independence Flashcards
what is this about?
is thee=re a relationship between two categorical variables? is one dependent on another?
null hypothesis and chi-squared
that there is no association between row and column variables
is the difference due to chance and significantly insignificant
alternative hypothesis
that the H0 does not occur
does not specify a direction
not onesided or two sided
calculations
calculate expected values and compare to observed values
note: chi squared should only be used when expected numbers are greater or equal to five
what is the chi squared statisic?
(observed - expected)^2/expected
this is summed over all r x c
If the expected and observed counts are very different, a large chi-squared results and this is evidence against H0
determine the p value from chi squared
chi squared are described by degrees of freedom
positive values are skewed to the right
chi-square test for r x c table
H0: no association
Ha: row and column are associated
If H0 is true, the statistic X^2 is approximatly chi distributed with df (r-1)(c-1)
conclusion: reject based on p value