Topic 6.10 Notes – Setting Up a Test for the Difference of Two Population Proportion
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:
where:
- = true population proportion of “success” in group 1
- = 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:
- = the true proportion of all adults in City A who support the new tax.
- = 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:
or equivalently,
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:
- One‑sided:
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 and . 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):
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 is true. That means we assume . So we combine the samples to estimate a common proportion.
Step 1: Compute the pooled proportion
This is the combined proportion of successes from both samples.
Step 2: Check large counts using
All four must be at least 10:
If these are satisfied, the sampling distribution of 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 and clearly in context.
- Write .
- 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
Two-Sample Z-Test for a Difference Between Two Population Proportions
A significance test comparing two population proportions using a z statistic.
Parameters p1 and p2
The true population proportions for the two groups being compared.
Pooled Proportion / Combined Proportion
The combined sample proportion, p̂c = (x1 + x2)/(n1 + n2), used under the null hypothesis.
Hypotheses for a Difference in Two Population Proportions
States no difference in population proportions versus a one-sided or two-sided difference.
Large Counts Condition for a Two-Proportion Z-Test
Uses the pooled proportion to verify all expected counts in both samples are at least 5 or 10.
Random and Independence Conditions for Two-Proportion Tests
Requires random samples or random assignment, independent groups, and each sample under 10% of its population.
Notes
Two-Sample Z-Test for a Difference Between Two Population Proportions
A significance test comparing two population proportions using a z statistic.
Parameters p1 and p2
The true population proportions for the two groups being compared.
Pooled Proportion / Combined Proportion
The combined sample proportion, p̂c = (x1 + x2)/(n1 + n2), used under the null hypothesis.
Hypotheses for a Difference in Two Population Proportions
States no difference in population proportions versus a one-sided or two-sided difference.
Large Counts Condition for a Two-Proportion Z-Test
Uses the pooled proportion to verify all expected counts in both samples are at least 5 or 10.
Random and Independence Conditions for Two-Proportion Tests
Requires random samples or random assignment, independent groups, and each sample under 10% of its population.