One-proportion vs two-proportion z-test setup
By Jude Wallis · Published
Use a one proportion z test when you compare one sample to a single claimed value. Use a two proportion z test when you compare the proportions of two groups. The one-sample test builds its standard error from the claimed value; the two-sample test uses a pooled proportion.
AP Statistics: Unit 3 (topics 3.5 Setting Up a Test for a Population Proportion, 3.6 p-Values, 3.7 Carrying Out a Test for a Population Proportion, 3.12 Setting Up a Test for the Difference Between Two Population Proportions, 3.13 Carrying Out a Test for the Difference Between Two Population Proportions). These tests are Unit 3 of the Fall 2026 AP Statistics course, with the one proportion test in topics 3.5 to 3.7 and the two proportion test in topics 3.12 to 3.13.
When to use each test
The choice comes down to how many groups you are asking about.
Use a one proportion z test when you have a single sample and want to compare its proportion to one fixed number, such as a claimed rate or a historical value. AP Statistics covers this in Unit 3 topics 3.5 to 3.7.
Use a two proportion z test when you have two independent groups and want to know whether their population proportions differ. The two groups can come from two separate random samples or from one randomized experiment with two treatment arms. This is Unit 3 topics 3.12 to 3.13.
A quick way to decide: if the null hypothesis names a specific number for the proportion, you have a one-sample problem. If the null hypothesis only says two groups are equal without naming a value, you have a two-sample problem.
First, some notation. is the true population proportion, the number you cannot see directly. (read 'p-hat') is the sample proportion, the count of successes divided by the sample size . is the value the null hypothesis claims for .
When there are two groups you will also meet , the pooled or combined sample proportion.
The two tests side by side
The structure is the same, but the parameter and the standard error change.
| Feature | One proportion z test | Two proportion z test |
|---|---|---|
| Question | Is different from ? | Is different from ? |
| Parameter | ||
| Standard error | ||
| AP topics | 3.5 to 3.7 | 3.12 to 3.13 |
The one proportion z test setup
You test a claim about a single population proportion .
State the hypotheses in terms of and the claimed value :
- (or , or )
The key feature of this test is the standard error. Because the null hypothesis assumes is true, you build the standard error (SE) from , not from :
The standardized test statistic follows the general form, (statistic minus parameter) divided by standard error:
You then convert to a p-value using the standard normal curve. The p-value calculator does this conversion for you.
The two proportion z test setup
Here you compare two population proportions, and , using two independent samples.
State the hypotheses in terms of the difference :
- (equivalently )
- (or , or )
Because says the two proportions are equal, you combine both samples into one estimate of that shared proportion. This is the pooled proportion , the total successes divided by the total sample size:
You then use in the standard error for the test:
The test statistic compares the observed difference to the hypothesized difference of 0:
The pooled proportion is only for the test. A confidence interval for does not pool; it uses each sample's own proportion in the standard error.
Decide which group is group 1 before you compute, and keep that order for both the difference and the alternative hypothesis. If you swap the groups, the sign of flips, so a one-sided must point the same way as your subtraction.
Conditions to check first
Both tests need the same three conditions, checked slightly differently.
Random. The data come from a random sample or a randomized experiment. The two proportion test needs two independent random samples or random assignment to two groups.
10%. When you sample without replacement, each sample should be no more than 10% of its population. For the two proportion test, check this for each sample separately.
Large counts. The sampling distribution is close enough to normal only when the successes and failures are both large.
- One proportion: use the expected counts under , so check and .
- Two proportions: use the pooled proportion (the combined success rate under ), so check , , , and are all at least 10.
The four-step structure
Both tests follow the same four steps, which match the AP free-response rubric.
- State. Define the parameter in words, write and , and give the significance level (often 0.05). See null vs alternative hypothesis if the direction is unclear.
- Plan. Name the procedure (one or two proportion z test) and check the three conditions with numbers.
- Do. Compute (and if needed), the standard error, the statistic, and the p-value.
- Conclude. Compare the p-value to . If the p-value is at most , reject ; otherwise fail to reject. Then state what that means in context.
How to read the result
The p-value is the probability of a sample result at least as extreme as yours, assuming is true. A small p-value means your data would be surprising if the claim were correct, which is evidence against .
Two reminders that AP graders look for:
- You never accept . You either reject it or fail to reject it.
- Your conclusion must mention the context and the parameter, not just 'reject '.
To check your arithmetic, the proportion z test calculator runs both the one and two sample versions.
One proportion z test: a support claim
A campaign claims that 60% of a city's voters support a ballot measure. A news outlet takes a random sample of 200 voters and finds 108 who support it. Test at whether the true proportion differs from 0.60.
State. Let be the true proportion of all city voters who support the measure. and , with .
Plan. One proportion z test. Random: the 200 voters were sampled at random. 10%: 200 is less than 10% of all city voters. Large counts: and , both at least 10.
Find the sample proportion. .
Find the standard error from . .
Find the test statistic. .
Find the p-value. This is a two-sided test, so p-value .
Conclude. Since , fail to reject . There is not convincing evidence that the true proportion of supporters differs from 0.60.
, p-value . Fail to reject at ; there is no convincing evidence that the support rate differs from 60%.
Two proportion z test: comparing two success rates
A researcher runs a randomized experiment on a new study method. In the treatment group, 90 of 150 students pass a test. In the control group, 48 of 100 students pass. Test at whether the treatment group has a higher pass rate.
State. Let be the true pass proportion with the new method and the true pass proportion for the control. and , with .
Plan. Two proportion z test. Random: students were randomly assigned to the two groups. Independence: random assignment to the two groups makes them independent, and the 10% condition is not needed for a randomized experiment. Large counts: use the pooled proportion . The expected counts , , , and are all at least 10.
Find the sample proportions. and .
Find the pooled proportion. .
Find the standard error. .
Find the test statistic. .
Find the p-value. This is a one-sided test, so p-value .
Conclude. Since , reject . There is convincing evidence that the new study method produces a higher pass rate than the control.
, , p-value . Reject at ; there is convincing evidence the new method has a higher pass rate.
Frequently asked questions
When do I use the pooled proportion?
Use the pooled proportion only for a two proportion z test, because the null hypothesis assumes the two proportions are equal. Do not pool for a confidence interval for ; that interval uses each sample's own proportion in the standard error.
Why does the one proportion test use $p_0$ instead of $\hat{p}$ in the standard error?
The test asks what would happen if were true, and says . So the standard error is built from . A confidence interval makes no such assumption, so it uses instead.
Can I use these tests if the counts are small?
No. If any expected success or failure count is below 10, the normal approximation is unreliable and the z test does not apply. The large counts condition is what lets you use the normal curve to find the p-value.