"p_1=\\frac{362}{600}=0.6033,\\;\\;p_2=\\frac{80}{400}=0.2,\\;\\; p_0=\\frac{362+80}{600+400}=0.442."
Null hypothesis "H_0: p_1=p_2."
Alternative hypothesis "H_a:p_1>p_2 ."
Test statistic: "z=\\frac{p_1-p_2}{\\sqrt{p_0(1-p_0)(\\frac{1}{n_1}+\\frac{1}{1\/n_2}})}=\n\\frac{0.6033-0.2}{\\sqrt{0442(1-0.442)(\\frac{1}{600}+\\frac{1}{400}})}=12.58."
P-value: "p<0.0001."
Since the P-value is less than 0.05, reject the null hypothesis.
There is a sufficient evidence that the proportion of non-smokers who said yes is greater than the proportion of smokers who said yes.
Comments
Leave a comment