In: Math
A study might compare the rates of microbiologic cure of three different antibiotics used for urinary tract infection, as shown in the following table:
Antibiotics 1 |
Antibiotics 2 |
Antibiotics 3 |
Total |
|
Cure |
49 |
112 |
26 |
187 |
Not cure |
12 |
37 |
8 |
57 |
Total |
61 |
149 |
34 |
244 |
Is there is a relationship between which antibiotic the patient took and achieving microbiologic cure?
a)The variables are quantitive.
b)Chi sq test is appropriate in this situation.
c)H0=all the antibiotics are equivalent vs H1=not H0
d)pi=denotes that the proportion of people who are cured. for all i=1(1)2
p1=187/244=0.77
p2=57/244=0.23
the expected frequencies of the different classes
61*0.77=46.97 | 149*0.77=114.73 | 34*0.77=26.18 |
61*0.23=14.03 | 149*0.23=34.27 | 34*0.23=7.82 |
chi sq= double sum over j=1(1)3 and i=1(1)2 {(Nij-nipi)2/nipi}
=((49-46.97)2/46.97+(12-14.03)214.03)+
((112-114.73)2/114.73+(37-34.27)2/34.27)+
(26-26.18)2/26.18+(8-7.82)2/7.82)
=0.665
now the df is =(2-1)(3-1)=2
the tabulated chi sq with level of significnce (alpha)=0.1 and df is=2
and its value is=0.211
as we can see that the chi sq value is much greater than the tabulated value (0.665>0.211)
then we reject our null hypothesis at level 0.1.
**as we reject our null hypothesis this imply that the antibiotics has no relationship between them.