2078 9

STA215 ยท 2078 ยท 5 marks

Chi-Square Test for Association Between Email Account Type and Hacking Status A survey was conducted to see the association between hacking status of the email and the type of email account. The survey has reported the following cross tabulation. Do the information provide sufficient evidence to con

Chi-Square Test for Association Between Email Account Type and Hacking Status

A survey was conducted to see the association between hacking status of the email and the type of email account. The survey has reported the following cross tabulation. Do the information provide sufficient evidence to conclude that the type email account and the hacking status is associated? Use Chi-square test at 1% level of significance.

$$\begin{array}{|c|c|c|} \hline \text{Type of e-mail account} & \text{Hacking status Yes} & \text{Hacking status No} \ \hline \text{Yahoo} & 60 & 15 \ \text{Gmail} & 20 & 120 \ \hline \end{array}$$

[5]

Statistics IIChapter 3: Non parametric testTwo independent sample testNumerical: chi-square test association

Chi-Square Test for Association Between Email Account Type and Hacking Status

Given

Email AccountYes (Hacked)No (Not Hacked)Row Total
Yahoo601575
Gmail20120140
Column Total80135215

Level of significance: $\alpha = 0.01$

Step 2 - Hypotheses

  • $H_0$: Email account type and hacking status are independent (not associated)
  • $H_1$: Email account type and hacking status are associated

Step 3 - Expected Frequencies

$$E_{ij} = \frac{(\text{Row Total}_i)(\text{Column Total}_j)}{\text{Grand Total}}$$

$$E_{11} = \frac{75 \times 80}{215} = 27.907$$ $$E_{12} = \frac{75 \times 135}{215} = 47.093$$ $$E_{21} = \frac{140 \times 80}{215} = 52.093$$ $$E_{22} = \frac{140 \times 135}{215} = 87.907$$

Step 4 - Test Statistic

$$\chi^2 = \sum \frac{(O - E)^2}{E}$$

OEO - E(O-E)ยฒ(O-E)ยฒ/E
6027.90732.0931029.9636.907
1547.093-32.0931029.9621.870
2052.093-32.0931029.9619.771
12087.90732.0931029.9611.717

$$\chi^2_{cal} = 36.907 + 21.870 + 19.771 + 11.717 = 90.27$$

(Small rounding differences; approximately $90.2$-$90.3$.)

Step 5 - Degrees of Freedom

$$df = (r-1)(c-1) = (2-1)(2-1) = 1$$

Step 6 - Critical Value

$$\chi^2_{0.01,,1} = 6.635$$

Step 7 - Decision

Since $\chi^2_{cal} = 90.27 > \chi^2_{tab} = 6.635$, we reject $H_0$.

Conclusion

At the 1% level of significance, there is sufficient evidence to conclude that the type of email account and the hacking status are associated. Yahoo accounts show a markedly higher hacking rate (60/75 = 80%) than Gmail accounts (20/140 โ‰ˆ 14%).

Note (optional): For a $2\times2$ table, Yates' continuity correction may be applied: $$\chi^2_{Yates} = \sum \frac{(|O-E| - 0.5)^2}{E} \approx 87.5$$ Either way, the conclusion is unchanged (reject $H_0$).

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.