---
title: "AP Statistics 3.13 Carrying Out a Test for the Difference Between Two Population Proportions"
description: "Review AP Statistics two-proportion z-tests, including pooled proportion, z-statistic, p-value, alpha decisions, calculator output, and contextual conclusions."
canonical: "https://fiveable.me/ap-stats/unit-3/carrying-out-test-for-difference-two-population-proportions/study-guide/mkdLDKdZAuQ6pIsV3aOL"
type: "study-guide"
subject: "AP Statistics"
unit: "Unit 3 – Inference for Categorical Data: Proportions"
lastUpdated: "2026-07-02"
---

# AP Statistics 3.13 Carrying Out a Test for the Difference Between Two Population Proportions

## Summary

Review AP Statistics two-proportion z-tests, including pooled proportion, z-statistic, p-value, alpha decisions, calculator output, and contextual conclusions.

## Guide

A two-sample z test for a difference of proportions checks whether two population proportions are really different or whether the gap you see could just be random [chance](/ap-stats/unit-3 "fv-autolink"). You calculate a [pooled proportion](/ap-stats/key-terms/pooled-proportion "fv-autolink"), find the z test statistic, get a p-value, then compare that p-value to your significance level to decide whether to reject the null hypothesis.

## Why This Matters for the AP Statistics Exam

This is the payoff step of the two-proportion test. Earlier topics had you set up hypotheses and check conditions; here you actually run the numbers and state a conclusion. On multiple-choice questions, you might compute or interpret a test statistic, identify the pooled proportion, or match a p-value to a correct decision. On free-response, a full inference question often expects you to show the test statistic, report the p-value, compare it to [alpha](/ap-stats/key-terms/alpha "fv-autolink"), and justify a claim about the two populations in context. Getting comfortable with this process also sets you up for two-sample mean tests and [chi-square tests](/ap-stats/key-terms/chi-square-tests "fv-autolink") later, which follow the same logic.

## Key Takeaways

- The test statistic uses a pooled (combined) [proportion](/ap-stats/unit-1/representing-categorical-variable-with-tables/study-guide/JUZVd7cRAnbarZyNoEAg "fv-autolink"): $\hat{p}_c = \frac{n_1\hat{p}_1 + n_2\hat{p}_2}{n_1 + n_2}$.
- The two-sample [z-statistic](/ap-stats/key-terms/z-statistic "fv-autolink") is $z = \frac{(\hat{p}_1 - \hat{p}_2) - 0}{\sqrt{\hat{p}_c(1-\hat{p}_c)}\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}$.
- The p-value is calculated assuming the [null hypothesis](/ap-stats/key-terms/null-hypothesis "fv-autolink") is true, meaning the two population proportions are equal.
- Decision rule: if p-value $\le \alpha$, reject $H_0$; if p-value $> \alpha$, [fail to reject](/ap-stats/key-terms/fail-to-reject "fv-autolink") $H_0$.
- Always state your conclusion in context and connect it back to the [research question](/ap-stats/unit-3/carrying-out-chi-square-test-for-homogeneity-or-independence/study-guide/AmRuD3egBrZMCLGaBpMw "fv-autolink") about both populations.
- A calculator's "2-PropZTest" gives you both the z-statistic and the p-value, so you mostly need to interpret the output correctly.

## Calculating the Test Statistic and p-value

You need two values to carry out this test: a z test statistic and a p-value. Both should appear in your written work on an inference free-response question.

### The Pooled Proportion

Because the null hypothesis says the two population proportions are equal, you combine both samples into one estimate called the pooled proportion:

$$\hat{p}_c = \frac{n_1\hat{p}_1 + n_2\hat{p}_2}{n_1 + n_2}$$

This is the same as adding up all the successes and dividing by the total of both [sample sizes](/ap-stats/key-terms/sample-size "fv-autolink"). You use $\hat{p}_c$ in the [standard error](/ap-stats/key-terms/standard-error "fv-autolink") because, under the null, both groups are assumed to share the same true proportion.

### The z Test Statistic

The test statistic follows the general pattern of ([statistic](/ap-stats/key-terms/statistic "fv-autolink") minus null value) divided by the [standard deviation](/ap-stats/unit-1/investigative-question-revisited-data-collection/study-guide/f842Kr6YNnYX4G0dtAC8 "fv-autolink") of the statistic:

$$z = \frac{(\hat{p}_1 - \hat{p}_2) - 0}{\sqrt{\hat{p}_c(1-\hat{p}_c)}\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}$$

The formula looks heavy, but a graphing calculator's "2-PropZTest" reports the z-statistic for you. This formula is not printed on the AP formula sheet, but you can rebuild it from the general test statistic formula and the standard error pieces that are provided.

### The p-value

The p-value uses the standard [normal curve](/ap-stats/key-terms/normal-curve "fv-autolink") and your z-statistic to find the [probability](/ap-stats/unit-2/intro-probability/study-guide/gfnBWfyMANOxF3vWLrbA "fv-autolink") of getting a difference as extreme or more extreme than what you observed, assuming the null hypothesis is true. A calculator handles this quickly. Match the tail to your alternative hypothesis:

- For $H_a: p_1 > p_2$, use the [area](/ap-stats/unit-2/normal-distribution-revisited/study-guide/dx4vMcx3WjSw68f1Ov66 "fv-autolink") above your z-statistic.
- For $H_a: p_1 < p_2$, use the area below your z-statistic.
- For $H_a: p_1 \neq p_2$, use both [tails](/ap-stats/unit-4/constructing-confidence-interval-for-population-mean/study-guide/Ol5pg6f4PKWs3n8reIZ5 "fv-autolink").

## Concluding the Test

Once you have the p-value, compare it to the significance level to decide on the null hypothesis.

### Using the p-value

The significance level $\alpha$ is the probability of rejecting the null hypothesis when it is actually true, and it is often set at 0.05. Compare your p-value to $\alpha$:

- If the p-value $\le \alpha$, reject $H_0$. The difference is [statistically significant](/ap-stats/key-terms/statistically-significant "fv-autolink") and unlikely to be due to chance, so you have evidence supporting the alternative.
- If the p-value $> \alpha$, fail to reject $H_0$. The difference could reasonably be due to chance, so you do not have convincing evidence for the alternative.

A quick way to remember it: if the p is low, reject the $H_0$.

Remember that failing to reject is not the same as proving the null is true. It just means you do not have enough evidence to support the alternative.

### Reading the z-statistic

If you only have the z-statistic, you can still judge how extreme the result is. On a normal curve, about 95% of values fall within two standard deviations of the mean and about 99.7% fall within three. A z-statistic far out in the tail (large in absolute value) points to a result that would be rare under the null, which supports rejecting it. The p-value is still the cleaner way to make and report the decision.

## Worked Example: MJ vs. LeBron

Suppose Michael Jordan made 836 of 1623 shots and LeBron James made 622 of 1493 shots. You want to test whether the data give convincing [statistical evidence](/ap-stats/unit-3/concluding-test-for-population-proportion/study-guide/THZeUpkm11DAwnNb6p4g "fv-autolink") that Jordan's true proportion of made shots is higher than LeBron's.

The hypotheses are $H_0: p_1 = p_2$ and $H_a: p_1 > p_2$, where group 1 is Jordan and group 2 is LeBron.

### Running the Test

Rather than grinding through the formula by hand, use a graphing calculator's "2-PropZTest." Enter the successes and sample sizes for each player, then select the correct alternative ($p_1 > p_2$). The output gives you the z-statistic and the p-value.

The two values to record are the **z-statistic** and the **p-value**.

### Stating the Conclusion

Use the p-value to write the conclusion:

> Since our p-value is less than 0.05, we reject $H_0$. We have convincing evidence that the true proportion of shots made by Jordan is higher than the true proportion of shots made by LeBron.

In this example the z-statistic comes out around 5.5, which is far in the tail, and the p-value is essentially 0. Both point to the same decision: reject the null in favor of the alternative. This also matches what a [confidence interval](/ap-stats/key-terms/confidence-interval "fv-autolink") for the difference would tell you.

## How to Use This on the AP Statistics Exam

### Free Response

- Show the test statistic value and the p-value, not just a final yes/no answer.
- Explicitly compare the p-value to $\alpha$ before stating your decision.
- Write the conclusion in context, naming both populations and the direction of the alternative.
- Tie the result back to the original research question about the two groups.

### MCQ

- Be ready to compute or identify the pooled proportion $\hat{p}_c$.
- Know that the p-value is found assuming the two population proportions are equal.
- Match a given p-value and $\alpha$ to the correct reject or fail-to-reject decision.
- Match the tail of the p-value to the alternative hypothesis.

### Common Trap

Writing "we accept the null" or "we proved there is no difference" loses the point. Failing to reject only means there is not enough evidence for the alternative, never proof of the null.

## Common Misconceptions

- **Using separate sample proportions in the standard error instead of the pooled proportion.** For the test, you assume the proportions are equal under the null, so you pool. The unpooled version belongs to the confidence interval, not the test.
- **Thinking a small p-value proves a huge real-world difference.** A small p-value means the result is statistically significant, but statistical significance is not the same as a large or practically important difference.
- **Believing "fail to reject" proves the null hypothesis.** It only means the evidence was not strong enough to support the alternative.
- **Forgetting to state the conclusion in context.** A bare "reject $H_0$" is incomplete; name the populations and what the difference means.
- **Mixing up the tail for the p-value.** A one-sided alternative uses one tail; a two-sided alternative ($p_1 \neq p_2$) uses both tails.
- **Treating the significance level as fixed at 0.05.** It is a common default, but the problem can set a different $\alpha$, and your decision depends on the one given.

## Related AP Statistics Guides

- [Unit 3 Overview: Inference for Categorical Data: Proportions](/ap-stats/unit-3/review/study-guide/qzicHbvrrBrvuJWSB5xP)
- [6.2 Constructing a Confidence Interval for a Population Proportion](/ap-stats/unit-3/constructing-confidence-interval-for-population-proportion/study-guide/rYCExLGlPYtMNFiJOWAR)
- [6.1 Introducing Statistics: Why Be Normal?](/ap-stats/unit-3/why-be-normal/study-guide/64N0FW5kF7jUylJbrOHf)
- [6.4 Setting Up a Test for a Population Proportion](/ap-stats/unit-3/setting-up-test-for-population-proportion/study-guide/QLu7hUN0rwtnxLF7YdBT)
- [6.3 Justifying a Claim Based on a Confidence Interval for a Population Proportion](/ap-stats/unit-3/justifying-claim-based-on-confidence-interval-for-population-proportion/study-guide/YeTpyj6nyq03j0AJO3Bm)
- [6.5 Interpreting p-Values](/ap-stats/unit-3/interpreting-p-values/study-guide/b0FEXf5MDjyQtz4Skz70)

## Vocabulary

- **difference in sample proportions**: The difference between two sample proportions (p̂₁ - p̂₂) used to compare proportions from two different samples.
- **difference of two population proportions**: The comparison between two population proportions, expressed as p₁ - p₂, to determine if they differ significantly.
- **null hypothesis**: The initial claim or assumption being tested in a hypothesis test, typically stating that there is no effect or no difference.
- **p-value**: The probability of observing a test statistic as extreme as or more extreme than the one calculated from the sample data, assuming the null hypothesis is true.
- **pooled proportion**: A combined estimate of the population proportion calculated from both samples when assuming the null hypothesis is true: p̂c = (n₁p̂₁ + n₂p̂₂)/(n₁ + n₂).
- **population proportion**: The true proportion or percentage of a characteristic in an entire population, typically denoted as p.
- **reject the null hypothesis**: The decision made when the p-value is less than or equal to the significance level, indicating sufficient evidence against the null hypothesis.
- **significance level**: The threshold probability (α) used to determine whether to reject the null hypothesis in a significance test.
- **significance test**: A statistical procedure used to determine whether there is sufficient evidence to reject the null hypothesis based on sample data.
- **standard error**: The standard deviation of a sampling distribution, which measures the variability of a sample statistic across repeated samples.
- **test statistic**: A calculated value used to determine whether to reject the null hypothesis in a hypothesis test, computed from sample data.

## FAQs

### What is a two-proportion z-test?

A two-proportion z-test checks whether two population proportions differ by comparing the observed sample difference to what would be expected if the null hypothesis were true.

### Why do you use a pooled proportion in a two-proportion z-test?

You use a pooled proportion because the null hypothesis assumes the two population proportions are equal, so the samples are combined to estimate that shared proportion.

### What does the z-statistic measure in a two-proportion z-test?

The z-statistic measures how many standard errors the observed difference between sample proportions is from the null value, usually zero.

### How do you interpret the p-value?

The p-value is the probability of getting a difference as extreme as the observed one, assuming the null hypothesis is true. Smaller p-values give stronger evidence against the null.

### When do you reject the null hypothesis?

Reject the null hypothesis when the p-value is less than or equal to the significance level. Otherwise, fail to reject the null hypothesis.

### How should I write the conclusion on an AP Statistics free-response question?

Compare the p-value to alpha, state reject or fail to reject, and write the conclusion in context using the two populations and the alternative hypothesis.

## Structured Data

```json
{"@context":"https://schema.org","@type":"FAQPage","inLanguage":"en","mainEntity":[{"@type":"Question","@id":"https://fiveable.me/ap-stats/unit-3/carrying-out-test-for-difference-two-population-proportions/study-guide/mkdLDKdZAuQ6pIsV3aOL#what-is-a-two-proportion-z-test","name":"What is a two-proportion z-test?","acceptedAnswer":{"@type":"Answer","text":"A two-proportion z-test checks whether two population proportions differ by comparing the observed sample difference to what would be expected if the null hypothesis were true."}},{"@type":"Question","@id":"https://fiveable.me/ap-stats/unit-3/carrying-out-test-for-difference-two-population-proportions/study-guide/mkdLDKdZAuQ6pIsV3aOL#why-do-you-use-a-pooled-proportion-in-a-two-proportion-z-test","name":"Why do you use a pooled proportion in a two-proportion z-test?","acceptedAnswer":{"@type":"Answer","text":"You use a pooled proportion because the null hypothesis assumes the two population proportions are equal, so the samples are combined to estimate that shared proportion."}},{"@type":"Question","@id":"https://fiveable.me/ap-stats/unit-3/carrying-out-test-for-difference-two-population-proportions/study-guide/mkdLDKdZAuQ6pIsV3aOL#what-does-the-z-statistic-measure-in-a-two-proportion-z-test","name":"What does the z-statistic measure in a two-proportion z-test?","acceptedAnswer":{"@type":"Answer","text":"The z-statistic measures how many standard errors the observed difference between sample proportions is from the null value, usually zero."}},{"@type":"Question","@id":"https://fiveable.me/ap-stats/unit-3/carrying-out-test-for-difference-two-population-proportions/study-guide/mkdLDKdZAuQ6pIsV3aOL#how-do-you-interpret-the-p-value","name":"How do you interpret the p-value?","acceptedAnswer":{"@type":"Answer","text":"The p-value is the probability of getting a difference as extreme as the observed one, assuming the null hypothesis is true. Smaller p-values give stronger evidence against the null."}},{"@type":"Question","@id":"https://fiveable.me/ap-stats/unit-3/carrying-out-test-for-difference-two-population-proportions/study-guide/mkdLDKdZAuQ6pIsV3aOL#when-do-you-reject-the-null-hypothesis","name":"When do you reject the null hypothesis?","acceptedAnswer":{"@type":"Answer","text":"Reject the null hypothesis when the p-value is less than or equal to the significance level. Otherwise, fail to reject the null hypothesis."}},{"@type":"Question","@id":"https://fiveable.me/ap-stats/unit-3/carrying-out-test-for-difference-two-population-proportions/study-guide/mkdLDKdZAuQ6pIsV3aOL#how-should-i-write-the-conclusion-on-an-ap-statistics-free-response-question","name":"How should I write the conclusion on an AP Statistics free-response question?","acceptedAnswer":{"@type":"Answer","text":"Compare the p-value to alpha, state reject or fail to reject, and write the conclusion in context using the two populations and the alternative hypothesis."}}]}
```
