This course has been archived. The College Board updated AP Statistics for the 2026–27 school year, and the units and topics changed.
Go to the new AP® Statistics
6m left·0%
Reading Time: 6 min
Last Updated: March 11, 2026
Main Ideas: 5
Reading Time: 6 min
Last Updated: March 11, 2026
Main Ideas: 5

Topic 6.10 Notes – Setting Up a Test for the Difference of Two Population Proportion

Read aloud
Two‑proportion z‑tests are used when you want to compare two population proportions and decide if a real difference exists. In this topic, the focus is on setting up the test correctly: defining parameters, writing hypotheses, choosing the right method, and checking conditions so the normal model applies.

What a two‑proportion z‑test is for

We use this test when we’re comparing one categorical variable (success/failure) across two independent groups.

Example situations:

  • Do a higher proportion of students at School A pass the AP exam than at School B?
  • Is the proportion of voters who support a policy different in two states?

The parameter of interest is:

p1−p2 p_1 - p_2

where:

  • p1 p_1 = true population proportion of “success” in group 1
  • p2 p_2 = true population proportion of “success” in group 2

This is the hypothesis‑test version of the two‑proportion confidence interval. Here, we are testing whether the difference is actually 0.

Writing hypotheses correctly

Before writing anything symbolic, define your parameters in context.

For example:

  • p1 p_1 = the true proportion of all adults in City A who support the new tax.
  • p2 p_2 = the true proportion of all adults in City B who support the new tax.

Null hypothesis

For a difference in proportions, the null always represents no difference:

H0:p1=p2 H_0: p_1 = p_2

or equivalently,

H0:p1−p2=0 H_0: p_1 - p_2 = 0

The value under the null is always 0. That’s built into this type of test.

Alternative hypothesis

This depends on the research question.

  • Two‑sided: Ha:p1≠p2 H_a: p_1 \ne p_2
  • One‑sided: Ha:p1>p2orHa:p1<p2 H_a: p_1 > p_2 \quad \text{or} \quad H_a: p_1 < p_2

The wording of the question determines direction. Don’t choose the direction based on what the sample data suggest.

Common mistake on quizzes: writing hypotheses using p^1 \hat{p}_1 and p^2 \hat{p}_2 . Hypotheses are always about population proportions.

Choosing the correct test

If you are:

  • Comparing two proportions
  • From two independent groups
  • For a single categorical variable

Then the correct method is a:

Two‑sample z‑test for a difference between two population proportions
(On your calculator: 2‑PropZTest.)

This is different from:

  • A one‑proportion z‑test (only one group)
  • A chi‑square test (used for larger tables or independence)
  • A t‑test (used for means, not proportions)

Conditions for inference

We are using a normal (z) model, so we must justify it.

1. Random

  • Two independent random samples
  • or
  • Random assignment in an experiment

If random sampling was used, you can generalize to the population.
If random assignment was used, you can talk about cause and effect.

2. Independence

Two parts:

  • The two samples are independent of each other.
  • 10% condition (if sampling without replacement):

n1≤0.1N1andn2≤0.1N2 n_1 \le 0.1N_1 \quad \text{and} \quad n_2 \le 0.1N_2

Random assignment automatically makes the two groups independent.

3. Normal (Large Counts Condition with pooling)

Here’s the key idea that students forget:

For a two‑proportion test, we assume H0 H_0 is true. That means we assume p1=p2 p_1 = p_2 . So we combine the samples to estimate a common proportion.

Step 1: Compute the pooled proportion

p^c=n1p^1+n2p^2n1+n2 \hat{p}_c = \frac{n_1\hat{p}_1 + n_2\hat{p}_2}{n_1 + n_2}

This is the combined proportion of successes from both samples.

Step 2: Check large counts using p^c \hat{p}_c

All four must be at least 10:

  • n1p^c n_1 \hat{p}_c
  • n1(1−p^c) n_1 (1 - \hat{p}_c)
  • n2p^c n_2 \hat{p}_c
  • n2(1−p^c) n_2 (1 - \hat{p}_c)

If these are satisfied, the sampling distribution of p^1−p^2 \hat{p}_1 - \hat{p}_2 is approximately normal, so using a z‑test is reasonable.

Important distinction:

  • Tests → pooled proportion
  • Confidence intervals → not pooled

That difference shows up often in AP questions.

What you should be able to do quickly

Given a scenario, you should be able to:

  • Identify that the response variable is categorical.
  • State and define p1 p_1 and p2 p_2 clearly in context.
  • Write H0:p1−p2=0 H_0: p_1 - p_2 = 0 .
  • Choose the correct alternative based on wording.
  • Name the correct procedure: two‑sample z‑test for a difference in population proportions.
  • Check random, independence, and large counts using the pooled proportion.

On free response, missing the pooled check or forgetting to define parameters is an easy way to lose points.

Key Takeaways

For a two‑proportion test, the null hypothesis is always p1−p2=0 p_1 - p_2 = 0 .
Hypotheses are written using population proportions p1 p_1 and p2 p_2 , never sample proportions.
The correct method is a two‑sample z‑test for a difference in population proportions.
Independence requires random sampling or random assignment and the 10% condition when sampling without replacement.
The large counts check uses the pooled proportion p^c \hat{p}_c , not p^1 \hat{p}_1 and p^2 \hat{p}_2 separately.

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