Login
📚 Mostly Harmless Statistics
Chapters ▾
⇩ Download ▾

9.3 Two Proportion Z-Test and Confidence Interval

This section will look at how to analyze a difference in the proportions for two independent samples. As with all other hypothesis tests and confidence intervals, the process of testing is the same, though the formulas and assumptions are different.

There are three types of hypothesis tests for comparing the difference in 2 population proportions p1p2, see Figure 9-7.

Table of the three hypothesis setups for two proportions: two-tailed with H0: p1 = p2 and H1: p1 ≠ p2, right-tailed with H1: p1 > p2, and left-tailed with H1: p1 < p2, each with a normal curve shaded in both tails, the right tail, or the left tail, and the equivalent difference forms H0: p1 - p2 = 0 with H1: p1 - p2 ≠ 0, > 0, or < 0.
Figure 9-7

Note that for our purposes, p1p2 = 0. We could also use a variant of this model to test for a magnitude difference for when p1p2 ≠ 0, but we will not cover that scenario.

The pooled proportion p^ is a weighted mean of the proportions and q^ is the complement of p^. Some texts or software may use different notation for the pooled proportion, note that p^=p¯.

Two Proportions Z-Interval

The requirements are identical to the 2-proportion hypothesis test. Note that the standard error does not rely on a hypothesized proportion so do not use a confidence interval to make decisions based on a hypothesis statement.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.