Tuesday, May 31, 2011

2 Proportion Z-Test

P1= 3/19
P2= 6/21

H0:
P1 = P2
Ha:
P1P2

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
Because nq is greater than 10, the date is said to be independent and therefore a 2 proportion z-test can be applied.

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%

1 comment:

  1. 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.

    Verify that conditions are met (randomization and np and nq greater than or equal to 10).

    ReplyDelete