STA215 · 2077 · 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]
Chi-Square Test for Association Between Email Account Type and Hacking Status
Given
| Account | Yes (Hacked) | No (Not Hacked) | Row Total |
|---|---|---|---|
| Yahoo | 60 | 15 | 75 |
| Gmail | 20 | 120 | 140 |
| Column Total | 80 | 135 | 215 |
Level of significance: $\alpha = 0.01$
Step 2 - Hypotheses
- $H_0$: Type of email account and hacking status are independent (not associated).
- $H_1$: Type of email account and hacking status are associated.
Step 3 - Expected Frequencies
$$E_{ij} = \frac{\text{Row Total} \times \text{Column Total}}{\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 - Chi-Square Statistic
$$\chi^2 = \sum \frac{(O-E)^2}{E}$$
| O | E | $(O-E)$ | $(O-E)^2$ | $(O-E)^2/E$ |
|---|---|---|---|---|
| 60 | 27.907 | 32.093 | 1029.96 | 36.906 |
| 15 | 47.093 | -32.093 | 1029.96 | 21.870 |
| 20 | 52.093 | -32.093 | 1029.96 | 19.771 |
| 120 | 87.907 | 32.093 | 1029.96 | 11.717 |
$$\chi^2 = 36.906 + 21.870 + 19.771 + 11.717 = 90.264 \approx 90.26$$
Step 5 - Degrees of Freedom
$$df = (r-1)(c-1) = (2-1)(2-1) = 1$$
Step 6 - Critical Value
$$\chi^2_{tab,,0.01,,1} = 6.635$$
Step 7 - Decision
Since $\chi^2_{cal} = 90.26 > \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 hacking status are significantly associated. (Yahoo accounts show a much higher hacking rate than Gmail accounts.)
Note: For a 2×2 table Yates' continuity correction is sometimes applied, giving $\chi^2 \approx 87.6$, but the conclusion (reject $H_0$) remains unchanged.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.