The following null and alternative hypotheses need to be tested:
"H_0:" The two variables are independent
"H_a:" The two variables are dependent
This corresponds to a Chi-Square test of independence.
Based on the information provided, the significance level is "\\alpha=0.01," the number of degrees of freedom is "df=(3-1)\\times(4-1)=6," so then the rejection region for this test is "R=\\{\\chi^2:\\chi^2>16.8119\\}"
"\\dfrac{146(81)}{390}=30.3231"
"\\dfrac{183(81)}{390}=38.0077"
"\\dfrac{26(81)}{390}=5.4"
"\\dfrac{35(207)}{390}=18.5769"
"\\dfrac{146(207)}{390}=77.4923"
"\\dfrac{183(207)}{390}=97.1308"
"\\dfrac{26(207)}{390}=13.8"
"\\dfrac{35(102)}{390}=9.1538"
"\\dfrac{146(102)}{390}=38.1846"
"\\dfrac{183(102)}{390}=47.8615"
"\\dfrac{26(102)}{390}=6.8""\\def\\arraystretch{1.5}\n \\begin{array}{c:c:c:c:c:c}\n E_{ij} & Y_1 & Y_2 & Y_3 & Y_4 & Total \\\\ \\hline\n A & 7.2692 & 30.3231 & 38.0077 & 5.4 & 81 \\\\\nB & 18.5769 & 77.4923 & 97.1308 & 13.8 &207 \\\\\nC & 9.1538 & 38.1846 & 47.8615 & 6.8 & 102 \\\\\n \\hdashline\n Total & 35 & 146 & 183 & 26 & 390\n\\end{array}"
Based on the observed and expected values, the squared distances can be computed according to the following formula: "(E-O)^2\/E"
"\\dfrac{(23-7.2692)^2}{7.2692}=34.0416""\\dfrac{(40-30.3231)^2}{30.3231}=3.0882"
"\\dfrac{(16-38.0077)^2}{38.0077}=12.7432"
"\\dfrac{(2-5.4)^2}{5.4}=2.1407"
"\\dfrac{(11-18.5769)^2}{18.5769}=3.0904"
"\\dfrac{(75-77.4923)^2}{77.4923}=0.0802"
"\\dfrac{(107-97.1308)^2}{97.1308}=1.0028"
"\\dfrac{(14-13.8)^2}{13.8}=0.0029"
"\\dfrac{(1-9.1538)^2}{9.1538}=7.2630"
"\\dfrac{(31-38.1846)^2}{38.1846}=1.3518"
"\\dfrac{(60-47.8615)^2}{47.8615}=3.0785"
"\\dfrac{(10-6.8)^2}{6.8}=1.5059"
The Chi-Squared statistic is computed as follows:
"=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.3936"
Since it is observed that "\\chi^2=69.3936>16.8119=\\chi^2_c," 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(\\chi^2>69.3936)<0.0001."
The statement
2. The degrees of freedom df = 12
is incorrect.
Comments
Leave a comment