SLIDE 8 11/2/2016 8
S L I D E 42
Proportions in three or more groups, Chi-square test
1- Calculate the test statistic
πβπΉ 2 πΉ
Where,
- O=observed frequencies
- E=expected frequencies=
π ππ₯ π’ππ’ππ π¦ ππππ£ππ π’ππ’ππ ππ πππ π’ππ’ππ
2- Calculate degrees of freedom
Chi-square test Exposure
Total Sever disease Mild disease Control Exposed y11 y12 y13 y11+y12+y13 Unexposed y21 y22 y23 y21+y22+y23 Total y11+y21 y12+y22 y13+y32 y11+y12+y13 +y21+y22+y23
S L I D E 43
Proportions in three or more groups, Chi-square test
3-Determine the critical value of significance from the x2 table 4-Compare the test statistic with the critical value 5-Calculate the p value 6-Draw a conclusion
df Probability (p value) 0.10 0.05 0.025 0.01 0.005 1 2.706 3.841 5.024 6.635 7.879 2 4.605 5.991 7.378 9.210 10.597 3 6.251 7.815 9.348 11.345 12.838 4 7.779 9.488 11.143 13.277 14.860 5 9.236 11.070 12.833 15.086 16.750 6 10.645 12.592 14.449 16.812 18.548 7 12.017 14.067 16.013 18.475 20.278 8 13.362 15.507 17.535 20.090 21.955 9 14.684 16.919 19.023 21.666 23.589 10 15.987 18.307 20.483 23.209 25.188 11 17.275 19.675 21.920 24.725 26.757 12 18.549 21.026 23.337 26.217 28.300 13 19.812 22.362 24.736 27.688 29.819
S L I D E 44
Proportions in three or more groups, Chi- square test, example
Researchers examined the response to three vaccineβs dilutions. Subjects were classified as responders or non-
- responders. Researchers would like to
determine whether there is an association between vaccineβs dilutions and the response to the vaccine. If the calculated x2 statistic is 2.589, and for an alpha of .05, what are: the df, critical value of significance and the p value, and your conclusion?
- df=(3-1)(2-1)=2
- Critical value=5.991
- p value >.1
- Conclusion: there is no significant
association between vaccineβs dilutions and the response
df Probability (p value) 0.10 0.05 0.025 0.01 0.005 1 2.706 3.841 5.024 6.635 7.879 2 4.605 5.991 7.378 9.210 10.597 3 6.251 7.815 9.348 11.345 12.838 4 7.779 9.488 11.143 13.277 14.860 5 9.236 11.070 12.833 15.086 16.750 6 10.645 12.592 14.449 16.812 18.548 7 12.017 14.067 16.013 18.475 20.278 8 13.362 15.507 17.535 20.090 21.955 9 14.684 16.919 19.023 21.666 23.589 10 15.987 18.307 20.483 23.209 25.188 11 17.275 19.675 21.920 24.725 26.757 12 18.549 21.026 23.337 26.217 28.300 13 19.812 22.362 24.736 27.688 29.819
S L I D E 45
Proportions in three or more groups, Chi- square test, example
Researchers examined the association between eyesβ color and hair color. Eyesβ color was classified into three groups, and hairβs color was classified into 5
- groups. If the calculated x2 statistic is
20.92, and for an alpha of .05, what are: the df, critical value of significance and the p value, and your conclusion?
- df=(3-1)(5-1)=2x4=8
- Critical 15.507
- .005 < p value <.01
- Conclusion: there is significant
association between eyes' color and hairβs color
df Probability (p value) 0.10 0.05 0.025 0.01 0.005 1 2.706 3.841 5.024 6.635 7.879 2 4.605 5.991 7.378 9.210 10.597 3 6.251 7.815 9.348 11.345 12.838 4 7.779 9.488 11.143 13.277 14.860 5 9.236 11.070 12.833 15.086 16.750 6 10.645 12.592 14.449 16.812 18.548 7 12.017 14.067 16.013 18.475 20.278 8 13.362 15.507 17.535 20.090 21.955 9 14.684 16.919 19.023 21.666 23.589 10 15.987 18.307 20.483 23.209 25.188 11 17.275 19.675 21.920 24.725 26.757 12 18.549 21.026 23.337 26.217 28.300 13 19.812 22.362 24.736 27.688 29.819
S L I D E 46
Proportions in three or more groups, odds ratio
1. Pick exposure reference category
- 2. Calculate OR for each exposure level
Chi-square test Outcome Exposure level Total High Middle Low Diseased y11 y12 y13 y11+y12+y13 Not diseased y21 y22 y23 y21+y22+y23 Total y11+y21 y12+y22 y13+y32 y11+y12+y13 +y21+y22+y23 P (π§11) (π§11 + π§21) (π§12) (π§12 + π§22) (π§13) (π§13 + π§23) OR (π§11)(π§23) (π§13)(π§21) (π§12)(π§23) (π§13)(π§22) 1
S L I D E 47
Proportions in three or more groups, risk ratio
1. Pick exposure reference category
- 2. Calculate RR for each exposure level
Chi-square test Outcome Exposure level Total High Middle Low Diseased y11 y12 y13 y11+y12+y13 Not diseased y21 y22 y23 y21+y22+y23 Total y11+y21 y12+y22 y13+y23 y11+y12+y13 +y21+y22+y23 P (π§11) (π§11 + π§21) (π§12) (π§12 + π§22) (π§13) (π§13 + π§23) RR (π§11)/(π§11 + π§21) (π§13)/(y13+y23 ) (π§12)/(π§12 + π§22) (π§13)/(π§13 + π§23) 1