The expected frequencies are
grand totalrow total∗column total
Drug.helped=52+10+20+44+12+26(52+44)(52+10+20)=48
Drug.harmed=52+10+20+44+12+26(10+12)(52+10+20)=11
Drug.no.effect=52+10+20+44+12+26(20+26)(52+10+20)=23
Sugar.helped=52+10+20+44+12+26(52+44)(44+12+26)=48
Sugar.harmed=52+10+20+44+12+26(10+12)(44+12+26)=11
Sugar.no.effect=52+10+20+44+12+26(20+26)(44+12+26)=23
The degrees of freedom for the chi square coefficient is
(3−1)(2−1)=2 The chi square test statistic is given by
X2=∑expected(observed−expected)2
X2=48(52−48)2+11(10−11)2+23(20−23)2+48(44−48)2+11(12−11)2+23(26−23)2
X2=1.6311
The p value corresponding to the chi square score of 1.6311 and a level of significance of0.05 is 0.4424 . We therefore conclude that there is no significant evidence to conclude that there is a difference in sugar and the drug.
Comments