Chi-squared tests Flashcards
When setting up your Hypothesis for a Chi-Squared test, What is your null and Alternate hypothesis
H(0): the two variables are independent
H(1): the two variables are not independent
In a contingency table, what is the expected value of a cell i
E(i)= row total x column total /overall total
What is the Chi-squared value and how is it calculated
The Chi-squared value that gives the difference between the observed values, O(i) and the expected values E(i).
χ2(calc)=Σ (O(i)-E(i))^2/E(i)
in an n by m contingency table the number of degrees of freedom is….
v=(n-1)(m-1)
What needs to be true for all E(i) in a contingency table
E(i)>5
if your test statistic is less than the value in the statistical value, then what conclusion is made
Do not reject H(0)
if your test statistic is more than the value in the statistical value, then what conclusion is made
Reject H(0)
when v=1 what correction is used to account for the Chi-Squared test and how is it calculated
Yates correction
χ2(Yates)=Σ (|O(i)-E(i) |-0.)^2/E(i)