
Two-Sample z-Test
Purpose To perform a hypothesis test for two population
proportions, p1 and p2
Assumptions:
1. Simple random samples
2. Independent samples
3. x1,
n1 - x1,
x2, and n2 - x2 are all 5 or greater
i. The null hypothesis is
H0: p1 = p2, and the alternative hypothesis
is:
H0 : p1 ¹ p2 or
H0 : p1 < p2 or
H0 : p1 > p2
(Two Tailed) (Left Tailed) (Right Tailed)
ii. Decide on the significance level, α
iii. Compute the value of the test statistic z =
where
pp = (x1 + x2)/(n1 + n2). (Call it
zo.)
(Critical-Value Approach)
iv. The critical value(s) are
±za/2 or -za or +za
(Two tailed) (Left tailed) (Right tailed)
v. If the value of the test statistic falls in the rejection region, reject H0; otherwise do not reject H0
vi. Interpret the results of the hypothesis test
Two-Sample z-Interval Procedure
Purpose To
find a confidence interval for the
difference between two population proportions, p1 and p2
Assumptions:
1. Simple random samples
2. Independent samples
3. x1,
n1-x1,
x2, and n2-x2 are all 5 or greater
i. For a confidence level of 1 – α,
use Table II to find zα/2.
ii. The endpoints of the confidence interval
for p1 – p2 are ![]()
iii. Interpret the confidence interval.
Margin of Error for estimate of p1 - p2
E = zα/2![]()
Sample Size for Estimating p1 - p2
A (1-α)-level confidence interval for the difference between two population proportions that has a margin of error of at most
E :
n1 = n2 = 0.5
, rounded up to the nearest whole number.
If you can make educated guesses, p1g and p2g, for the observed values of
p1 and p2:
n1 = n2 =
rounded up to the nearest whole number.