ABCTotalY12311135Y2407531146Y31610760183Y42141026Total81207102390 The following null and alternative hypotheses need to be tested:
H0: The two variables are independent
Ha: The two variables are dependent
This corresponds to a Chi-Square test of independence.
Based on the information provided, the significance level is α=0.01, the number of degrees of freedom is df=(3−1)×(4−1)=6, so then the rejection region for this test is R={χ2:χ2>16.8119}
39035(81)=7.2692
390146(81)=30.3231
390183(81)=38.0077
39026(81)=5.4
39035(207)=18.5769
390146(207)=77.4923
390183(207)=97.1308
39026(207)=13.8
39035(102)=9.1538
390146(102)=38.1846
390183(102)=47.8615
39026(102)=6.8EijABCTotalY17.269218.57699.153835Y230.323177.492338.1846146Y338.007797.130847.8615183Y45.413.86.826Total81207102390
Based on the observed and expected values, the squared distances can be computed according to the following formula: (E−O)2/E
7.2692(23−7.2692)2=34.0416
30.3231(40−30.3231)2=3.0882
38.0077(16−38.0077)2=12.7432
5.4(2−5.4)2=2.1407
18.5769(11−18.5769)2=3.0904
77.4923(75−77.4923)2=0.0802
97.1308(107−97.1308)2=1.0028
13.8(14−13.8)2=0.0029
9.1538(1−9.1538)2=7.2630
38.1846(31−38.1846)2=1.3518
47.8615(60−47.8615)2=3.0785
6.8(10−6.8)2=1.5059
Squared distancesABCY134.04163.09047.2630Y23.08820.08021.3518Y312.74321.00283.0785Y42.14070.00291.5059 The Chi-Squared statistic is computed as follows:
χ2=i,j∑Eij(Oij−Eij)2=
=34.046+3.0882+12.7432+2.1407+
+3.0904+0.0802+1.0028+0.0029+
+7.2630+1.3518+3.0785+1.5059=
=69.3936Since it is observed that χ2=69.3936>16.8119=χc2, it is then concluded that the null hypothesis is rejected.
Therefore, there is enough evidence to claim that the two variables are dependent, at the 0.01 significance level.
The corresponding p-value for the test is p=P(χ2>69.3936)<0.0001.
The statement
2. The degrees of freedom df = 12
is incorrect.
Comments