P2= 6/21
H0: P1 = P2
Ha: P1 ≠ P2
p = (p1 * n1 + p2 * n2) / (n1 + n2)
p = (3 + 6) / 40 = 0.225
Test for Independence
- Random Sample
- np=(40)(.225)=9
- nq=(40)(1-.225)=31
SE = sqrt{ p * ( 1 - p ) * [ (1/n1) + (1/n2) ] }
SE = sqrt{0.225(1-0.225) [(1/19)+(1/21)] }
SE = 0.132
z = (p1 - p2) / SE
z = [(3/19) - (6/21)] / 0.132
z = -0.968
p value: .1660= 16.60%
Calculations are very easy to follow. I would fix the Ho and say that the proportions are >= instead of that one is greater than the other. Assume they are the same, and gather evidence to prove otherwise.
ReplyDeleteVerify that conditions are met (randomization and np and nq greater than or equal to 10).