Hypothesis Testing For The Difference of Proportions
Hypothesis Testing For The Difference of Proportions
proportions
Now that we know how to find a confidence interval around the difference
of proportions, let’s look at how to conduct a hypothesis test with the
difference of proportions, when we want to use the difference of sample
proportions to make an inference about the difference of population
proportions.
In a two-tailed test, the null hypothesis will state that the proportions don’t
differ, whereas the alternative hypothesis states that there is a difference
between proportions. So we write the hypothesis statements for a two-
tailed test as
H0 : p1 − p2 = 0
Ha : p1 − p2 ≠ 0
or
H0 : p1 = p2
Ha : p1 ≠ p2
347
In an upper-tailed test, the alternative hypothesis states that the
difference in proportions is positive, so we write
H0 : p1 − p2 ≤ 0
Ha : p1 − p2 > 0
or
H0 : p1 ≤ p2
Ha : p1 > p2
H0 : p1 − p2 ≥ 0
Ha : p1 − p2 < 0
or
H0 : p1 ≥ p2
Ha : p1 < p2
348
( p1̂ − p2̂ ) − (p1 − p2)
z=
̂ − p)̂ ( n1 +
p(1 n2 )
1
1
where p1̂ and p2̂ are the sample proportions, p1 and p2 are the population
proportions, n1 and n2 are the sample sizes, and p̂ is the proportion of the
combined sample, given by
p1̂ n1 + p2̂ n2
p̂ =
n1 + n2
x1 + x2
p̂ =
n1 + n2
p1̂ − p2̂
z=
̂ − p)̂ ( n1 +
p(1 n2 )
1
1
Example
349
people, and for 3 months administer the new drug to the first group and
the old drug to the second group. 120 people in the first group and and 107
people in the second group show decreased cholesterol levels. Can the
team conclude at a 99 % confidence level that the new drug is more
affective than the old drug at lowering cholesterol?
H0 : p1 − p2 ≤ 0
Ha : p1 − p2 > 0
x1 + x2
p̂ =
n1 + n2
120 + 107
p̂ =
250 + 250
227
p̂ =
500
p̂ = 0.454
350
120
p1̂ = = 0.480
250
107
p2̂ = = 0.428
250
p1̂ − p2̂
z=
̂ − p)̂ ( n1 +
p(1 n2 )
1
1
0.480 − 0.428
z=
0.454(1 − 0.454)( 250 250 )
1 1
+
0.052
z=
0.454(0.546)( 125 )
1
0.052
z=
0.247884
125
125
z = 0.052
0.247884
z ≈ 1.17
351
Using the critical-value approach, we’ll therefore reject H0 if z ≥ 2.33. Since
1.17 ≱ 2.33, the team can’t reject the null hypothesis. Therefore, they’re
unable to provide support for the hypothesis that the new drug is more
affective than the old drug.
352