The following table was derived from a study of HIV patients,and the data reflect the number of subjects classified by theirprimary HIV risk factor and gender. Test if there is a relationshipbetween HIV risk factor and gender using a 5% level ofsignificance:
| Gender | Total |
HIV Risk Factor | Male | Female |
IV drug user | 24 | 40 | 64 |
Homosexual | 32 | 18 | 50 |
Other | 15 | 25 | 40 |
| 71 | 83 | 154 |
What type of chi-square test will you use (goodness of fit ortest of independence)?
What are your hypotheses?
H0:
HA:
Fill in the following table to calculate your teststatistic:
| | IV Drug Use: | Homosexual: | Other: | Total |
Male | O = | 24 | 32 | 15 | 71 |
E = | | | | |
(O – E) = | | | | |
(O – E)2 / E = | | | | |
Female | O = | 40 | 18 | 25 | 83 |
E = | | | | |
(O – E) = | | | | |
(O – E)2 / E = | | | | |
df =___________________
Critical value: ______________________
Conclusion: We _____________________ (reject / fail to reject) theNull Hypothesis
Interpretation: