6m left·0%
Reading Time: 6 min
Last Updated: September 7, 2026
Main Ideas: 5
Reading Time: 6 min
Last Updated: September 7, 2026
Main Ideas: 5

Topic 3.12 Notes – Setting Up a Test for the Difference Between Two Population Proportions

Verified for 2027 AP® Statistics Exam
Read aloud
This topic is about recognizing when you should use a two-sample z-test for a difference in population proportions and setting it up correctly. You’re comparing two groups on a yes/no outcome, writing hypotheses about the true proportions, and checking the conditions that make the test valid.

What a Test for Two Population Proportions Is

This test compares two populations or two independent treatment groups on a binary categorical outcome.

  • Binary categorical means there are two outcomes, like support/do not support, passed/did not pass, recovered/did not recover.
  • Success means the outcome you care about. It does not have to be good. If the study is about getting sick, then “success” could be “got sick.”

The parameter is

p1−p2 p_1 - p_2

where p1p_1 and p2p_2 are the true population proportions of success.

The sample statistics are

p^1=x1n1andp^2=x2n2 \hat p_1=\frac{x_1}{n_1} \qquad\text{and}\qquad \hat p_2=\frac{x_2}{n_2}

where xx is the number of successes and nn is the sample size.

Use this when:

  • the response variable has two categories
  • the groups are independent
  • the question asks whether one proportion is bigger, smaller, or different

Do not use it for:

  • comparing means of quantitative data
  • paired or matched data

Be careful with order. If you define the parameter as pA−pBp_A - p_B, then a positive result means A’s proportion is larger. Reverse the order, and the sign and one-sided hypothesis direction reverse too.

Hypotheses for p1−p2p_1 - p_2

The null says no difference:

H0:p1=p2orH0:p1−p2=0 H_0: p_1=p_2 \qquad\text{or}\qquad H_0: p_1-p_2=0

The alternative depends on the wording:

  • “higher,” “greater,” “more likely”
    →Ha:p1>p2\rightarrow H_a: p_1>p_2
  • “lower,” “less”
    →Ha:p1<p2\rightarrow H_a: p_1<p_2
  • “different,” “not the same,” “has an effect”
    →Ha:p1≠p2\rightarrow H_a: p_1\ne p_2

A common trap is choosing the direction after seeing the sample results. On the AP exam, the direction comes from the research question, not from which sample proportion happened to be bigger.

Also, hypotheses are always about population proportions p1,p2p_1, p_2, never sample proportions p^1,p^2\hat p_1, \hat p_2.

Why Pooling Happens Under the Null

If H0H_0 says p1=p2p_1=p_2, then both groups are assumed to share one common proportion. So we estimate that common value by pooling the samples:

p^c=x1+x2n1+n2=n1p^1+n2p^2n1+n2 \hat p_c=\frac{x_1+x_2}{n_1+n_2} =\frac{n_1\hat p_1+n_2\hat p_2}{n_1+n_2}

This is a weighted average, so the larger sample has more influence.

A two-way display like this is a good way to picture the setup. Each group has its own observed counts, but under the null you combine the successes and totals to estimate one shared proportion.

Two-way table of group counts and outcomes. Group 1 has p^1=0.60\hat p_1 = 0.60 and Group 2 has p^2=0.40\hat p_2 = 0.40; pooling uses the Success total over the grand total, p^c=84/170≈0.494\hat p_c = 84/170 \approx 0.494, which falls between them.

You use p^c\hat p_c here because the null assumes equal proportions. That pooled proportion is used for the large-counts check in this test. It is not used to describe each group’s observed proportion, and it is not used in a confidence interval for p1−p2p_1-p_2.

Conditions for a Valid Two-Sample zz-Test

All three conditions must be checked in context.

Randomization and independent groups

You need either:

  • two independent random samples, or
  • a randomized experiment with independent treatment groups

Random sampling lets you generalize to a population. Random assignment lets you talk about cause and effect. Big sample sizes do not fix bad sampling.

10% condition

This matters for random samples taken without replacement from finite populations:

n1≤0.10N1andn2≤0.10N2 n_1 \le 0.10N_1 \qquad\text{and}\qquad n_2 \le 0.10N_2

Check it separately for each group. You do not need this for a randomized experiment.

Large counts condition

Because the null assumes one common proportion, use the pooled proportion:

  • n1p^c≥10n_1\hat p_c \ge 10
  • n1(1−p^c)≥10n_1(1-\hat p_c) \ge 10
  • n2p^c≥10n_2\hat p_c \ge 10
  • n2(1−p^c)≥10n_2(1-\hat p_c) \ge 10

These are expected successes and failures in each group under the null. This is what justifies the normal approximation.

How to Write a Complete Setup and What to Avoid

A good setup sounds like this:

  1. Define the parameters in context.
    pAp_A = true proportion of all voters in District A who support the measure.
    pBp_B = true proportion of all voters in District B who support the measure.
  2. State hypotheses with the correct direction.
  3. Name the procedure.
    Two-sample zz-test for a difference between two population proportions
  4. Verify randomization, 10% condition if needed, and large counts.

Common mistakes:

  • writing hypotheses with p^\hat p instead of pp
  • mixing up subtraction order and inequality direction
  • forgetting groups must be independent
  • checking large counts with separate p^1\hat p_1 and p^2\hat p_2 instead of p^c\hat p_c
  • mixing up the 10% condition with the large-counts condition
  • trying to calculate the test statistic here. This topic stops at setup.

Key Takeaways

The parameter is the difference in population proportions, p1−p2p_1-p_2, not the difference in sample proportions.
“Success” means the outcome of interest, even if that outcome is something negative like failing or getting sick.
The null hypothesis for this test is always a statement of no difference, usually H0:p1−p2=0H_0: p_1-p_2=0.
The order of subtraction matters because it controls the sign of the difference and the direction of a one-sided alternative.
Pooling happens only because the null assumes p1=p2p_1=p_2, so use p^c\hat p_c for the large-counts check in this test.
The 10% condition is about independence in sampling without replacement, not about normality.
Large counts do not rescue a study that was not random or whose groups were not independent.
On AP Stats, your setup must be written in context, naming the actual groups and what counts as a success.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining