State the hypotheses
H0:the two factors are independentH1:the two factors are not independent A chi-squared test always tests a model against the alternative that the model is wrong.
State the model of independence
Eij=TRi×Cj Under H0 the two factors are independent, which fixes every expected frequency.
Find the expected frequency for row 1, column 1
E11=10050×57=28.5000 Independence gives E=grand total(row total)×(column total).
Find the expected frequency for row 1, column 2
E12=10050×43=21.5000 Independence gives E=grand total(row total)×(column total).
Find the expected frequency for row 2, column 1
E21=10050×57=28.5000 Independence gives E=grand total(row total)×(column total).
Find the expected frequency for row 2, column 2
E22=10050×43=21.5000 Independence gives E=grand total(row total)×(column total).
Check that the expected frequencies sum to the observed total
∑E=100.000=100=∑O This confirms that no arithmetic slip has been made.
Check the pooling rule
iminEi=21.5000≥5⇒no pooling Every expected frequency is at least 5, so no classes are combined.
Find the number of degrees of freedom
ν=(2−1)(2−1)=1 For a contingency table ν=(r−1)(c−1).
Find the contribution of row 1, column 1
28.5000(∣22−28.5000∣−0.5)2=1.2632 Each cell contributes to the test statistic.
Find the contribution of row 1, column 2
21.5000(∣28−21.5000∣−0.5)2=1.6744 Each cell contributes to the test statistic.
Find the contribution of row 2, column 1
28.5000(∣35−28.5000∣−0.5)2=1.2632 Each cell contributes to the test statistic.
Find the contribution of row 2, column 2
21.5000(∣15−21.5000∣−0.5)2=1.6744 Each cell contributes to the test statistic.
Add the contributions
χcalc2=1.2632+1.6744+1.2632+1.6744=5.875 This is the value of the test statistic, to 3 decimal places.
Find the critical value
χcrit2=χ0.12(1)=2.706 This is the upper 10\% point of the chi-squared distribution with ν=1.
Compare the statistic with the critical value
5.875>2.706 H0 is rejected if and only if χcalc2>χcrit2.
Recall the chi-squared test statistic
χcalc2=∑E(O−E)2 Each class contributes E(O−E)2, so the statistic is never negative.
Select the correct conclusion in context
reject H0; there is evidence at the 10% level of an association between seeing the advert and buying the product The conclusion must be stated in the context of the question.