In: Statistics and Probability
In a test for the difference between two proportions, the sample sizes were n1 = 120 and n2 = 85, and the numbers of events were x1 = 55 and x2 = 45. A test is made of the hypotheses H0: p1 = p2versus H1: p1 ≠ p2.
Compute the value of the test statistic.
Can you reject H0 at the α = 0.05 level of significance?
Can you reject H0 at the α = 0.01 level of significance?
Solution :
Given that,
This is the two tailed test .
The null and alternative hypothesis is ,
H0 : P1 = P2
Ha : P1 P2
1 = x1 / n1 = 55 / 120 = 0.4583
2 = x2 / n2 = 45 / 85 = 0.5294
= (x1 + x2) / (n1 + n2) = (55 + 45) / (120 + 85) = 0.4878
1 - = 0.5122
Z = (1 - 1) / * (1 - ) (1 / n1 + 1 / n2)
Z = (0.4583 - 0.5294) / 0.4878 * 0.5122 (1 / 120 + 1 / 85)
Z = -1.003
Test statistic = -1.003
P(z < -1.003) = 0.1579
P-value = 0.3158
= 0.05
P-value >
Fail to reject the null hypothesis .
= 0.01
P-value >
Fail to reject the null hypothesis .