Two-proportion z interval and z test practice problems
By Jude Wallis · Published
This set has 8 problems on comparing two proportions: two-sample z intervals for a difference, two-proportion z tests with the pooled standard error, Large Counts checks on both samples, and reading an interval that does or does not contain 0. Solve each on paper, then open the steps.
AP Statistics: Unit 3 (topics 3.10 Constructing a Confidence Interval for the Difference Between Two Population Proportions, 3.11 Justifying a Claim Based on a Confidence Interval for the Difference Between Two Population Proportions, 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 problems sit at the end of Unit 3 of the Fall 2026 AP Statistics course, where the one-proportion procedures of topics 3.3 through 3.7 extend to comparing two independent groups, and Unit 3 carries 15 to 25% of the multiple-choice section.
What these problems build
These 8 problems build the two Unit 3 procedures for comparing two groups on a categorical variable: the two-sample z interval for and the two-proportion z test of . Both start from the same point estimate, the difference in sample proportions (read 'p-hat one minus p-hat two'), where each is that sample's successes divided by its own sample size .
The interval takes the form , with at 90% confidence, at 95%, and at 99%. The test standardizes the same difference against the 0 that claims:
What changes between the two is the standard error, which is the subject of the next section. Work each problem with the four-step State, Plan, Do, Conclude structure before opening the solution, and fix your order of subtraction in the first step. Define the difference as and keep that order to the last sentence, because reversing it flips the sign of every number you report.
One note on p-values. A t-table forces you to trap a p-value between two columns, but the standard normal table the exam supplies hands you the area directly. These solutions round to two decimal places, look the area up on the z table, and report it, so the digits below are table values; software working from the unrounded will differ slightly in the last place. More sets are on the practice page.
Pooled for the test, unpooled for the interval
This is the most common lost point in two-proportion inference, and it comes down to one question: do you have a null hypothesis to lean on?
An interval does not. It estimates each group's variability from that group's own sample proportion, and the two pieces stay separate:
A test begins by assuming is true. Under that assumption the two groups share one common proportion, and the best estimate of it throws every observation into one pile:
where and are the two success counts. That single pooled proportion then goes into both terms:
Two warnings come with it. Pool counts, not proportions: is combined successes over combined sample sizes, and it equals the plain average of and only when . And because the two formulas return slightly different numbers, an interval and a test on the same data can land on opposite sides of a borderline cutoff, so report whichever procedure the question asked for. When a confidence interval and a p-value disagree works through that case. One-proportion vs two-proportion z test sets the two up side by side, and the proportion z test calculator checks your arithmetic.
Checking Large Counts on both samples
Large Counts needs four numbers to clear 10, not two, and which four depends on the procedure.
- For an interval, use each sample's observed counts: , , , and .
- For a test, use the expected counts under , built from the pooled proportion: , , , and .
A sample of 500 does not rescue a sample of 30, and a healthy success count does not rescue a thin failure count. Problem 5 is a case where both procedures are off the table, and the right answer there is to name the failed condition and stop.
The rest of the checklist:
- Random. Two independent random samples, or one group of subjects randomly assigned to two treatments. The second kind supports a cause and effect conclusion; the first does not.
- 10%. Needed only when you sample without replacement, so it applies to the survey problems here and not to the randomized experiments. Check each sample against its own population: and .
- Independent groups. The two samples must not be the same subjects measured twice. Paired data call for a different procedure.
Why 10 successes and 10 failures explains where the threshold comes from, and what a two-proportion interval containing 0 means covers the conclusion wording problems 1 and 6 ask for. The full sequence sits in Unit 3.
Frequently asked questions
Why does the test pool the two samples but the interval does not?
A test starts by assuming is true. If the two proportions really are equal, then every observation in both samples estimates the same number, so the best estimate combines them into and uses it in both terms of the standard error. An interval makes no such assumption. It is estimating the difference, not testing whether the difference is 0, so it has nothing to pool toward and uses each sample's own proportion.
Do I check Large Counts with observed counts or expected counts?
Observed counts for an interval, expected counts for a test. An interval checks , , , and against 10. A test checks , , , and , all built from the pooled proportion. Either way you need all four numbers to reach 10, and a large sample in one group does not cover for a small count in the other.
My interval for the difference contains 0. What do I write?
Write that 0 is a plausible value for the difference, so there is not convincing evidence that the two proportions differ. Do not write that the proportions are equal or that there is no difference. The interval supports every value between its endpoints, and 0 is only one of them. Name the confidence level, both endpoints, and both populations in context.
Does the order of subtraction change my conclusion?
It changes every sign but not the verdict. Switching from to swaps and negates the interval endpoints and flips the sign of , while the p-value and whether 0 sits inside the interval stay exactly the same. State your order in the first step and keep it, because a conclusion that says the wrong group is ahead loses the point even when the arithmetic is right.
Problem 1
A city compares recycling participation in two neighborhoods. An independent random sample of 250 households in Neighborhood A contains 130 that recycle. An independent random sample of 200 households in Neighborhood B contains 88 that recycle. Construct and interpret a 95% confidence interval for , the difference in the true proportions of households that recycle.
Show the worked solution
State. Let be the true proportion of all Neighborhood A households that recycle and the same proportion for Neighborhood B. Estimate with a 95% confidence interval.
Plan. Two-sample z interval for a difference of proportions. Random: two independent random samples. 10%: 250 must be at most 10% of Neighborhood A and 200 at most 10% of Neighborhood B, so assume the neighborhoods hold at least 2,500 and 2,000 households. Large Counts: use the observed counts, recyclers and non-recyclers in sample A, and in sample B, all four at least 10.
Find the sample proportions and the point estimate. and , so .
Find the standard error. An interval uses each sample's own proportion, with no pooling. and , so .
Find the margin of error. For 95% confidence, , so .
Build the interval. gives .
Conclude. We are 95% confident that the interval from to captures the true difference in the proportions of households that recycle, Neighborhood A minus Neighborhood B. Because 0 lies inside the interval, it is plausible that the two neighborhoods recycle at the same rate, so there is not convincing evidence of a difference. That is not the same as saying the rates are equal: the interval also supports a Neighborhood A lead as large as about 17 percentage points.
, , , interval . The interval contains 0, so a difference of 0 is a plausible value and there is not convincing evidence that the recycling rates differ.
Problem 2
A company randomly assigns 400 new employees to one of two versions of a safety training video. Of the 180 who watch Version A, 117 pass the certification test on the first try. Of the 220 who watch Version B, 121 pass on the first try. At , is there convincing evidence that the two versions produce different first-try pass rates?
Show the worked solution
State. Let and be the true first-try pass proportions for Version A and Version B. versus , with .
Plan. Two-proportion z test. Random: the employees were randomly assigned to a version, so the two groups are independent. Large Counts: a test checks expected counts from the pooled proportion . Those counts are , , , and , all at least 10.
Find the sample proportions. and , a difference of .
Find the pooled standard error. , and , so .
Find the test statistic. .
Find the p-value. Two-sided, so p-value .
Conclude. Since , reject . There is convincing evidence that the two versions of the training video produce different first-try pass rates. Because employees were randomly assigned to a version, the difference can be attributed to the video for the employees in this experiment.
, , , two-sided p-value . Reject at ; convincing evidence the two video versions give different first-try pass rates.
Problem 3
A traffic study watches a random sample of 400 vehicles approaching a stop sign at Intersection A and records 240 that come to a complete stop. An independent random sample of 400 vehicles at Intersection B has 200 that come to a complete stop. Construct a 90% confidence interval for and say what it shows about which intersection has the higher stopping rate.
Show the worked solution
State. Let and be the true proportions of vehicles that come to a complete stop at Intersection A and Intersection B. Estimate with a 90% confidence interval.
Plan. Two-sample z interval. Random: two independent random samples. 10%: 400 vehicles is less than 10% of all vehicles passing each intersection. Large Counts: the observed counts are stopping and not at A, and at B, all four at least 10.
Find the sample proportions and the point estimate. and , so the point estimate is .
Find the standard error. and , so exactly.
Find the margin of error. For 90% confidence, , so .
Build the interval. gives .
Conclude. We are 90% confident that the interval from to captures the true difference in the proportions of vehicles that come to a complete stop, Intersection A minus Intersection B. Both endpoints are positive, so 0 is not a plausible value and every plausible difference points the same way. There is convincing evidence that Intersection A has the higher stopping rate, by somewhere between about 4 and 16 percentage points.
Point estimate , , , interval . Both endpoints are positive, so 0 is not plausible and there is convincing evidence Intersection A has the higher stopping rate.
Problem 4
A financial aid office runs an experiment on 600 seniors. It randomly assigns 240 to receive weekly text reminders about the federal aid application and 360 to receive no reminders. By the deadline, 168 of the text group and 216 of the no-reminder group have filed. At , is there convincing evidence that the reminders raise the filing rate?
Show the worked solution
State. Let be the true filing proportion under text reminders and the true filing proportion with no reminders. versus , with .
Plan. Two-proportion z test. Random: the 600 seniors were randomly assigned to the two conditions, so the groups are independent. No 10% check is needed, because this is a randomized experiment rather than sampling without replacement. Large Counts: , giving expected counts , , , and , all at least 10.
Find the sample proportions. and , a difference of .
Find the pooled standard error. , and , so exactly.
Find the test statistic. .
Find the p-value. Right-tailed, so p-value .
Conclude. Since , reject . There is convincing evidence that weekly text reminders raise the true proportion of seniors who file the aid application. Because the seniors were randomly assigned, this supports a cause and effect conclusion for the seniors in this study.
, , , one-sided p-value . Reject at ; convincing evidence the reminders raise the filing rate, and random assignment supports a causal reading.
Problem 5
A quality engineer compares defect rates on two production lines. A random sample of 40 units from Line A contains 3 defective units. An independent random sample of 45 units from Line B contains 1 defective unit. (a) Can the engineer construct a 95% confidence interval for ? (b) Can the engineer carry out a two-proportion z test? (c) If the combined defect rate stayed the same, how large would each sample have to be, using equal sample sizes, for the test's Large Counts condition to hold?
Show the worked solution
(a) Check Large Counts the way an interval checks it, with each sample's own observed counts. Line A gives defective and non-defective. Line B gives defective and non-defective. The defect counts and are both below 10, so the condition fails and the two-sample z interval is not appropriate for these data.
(b) Check Large Counts the way a test checks it, with expected counts from the pooled proportion. , so . The four expected counts are , , , and . Two of the four fall below 10, so this condition fails as well and the two-proportion z test is not appropriate either.
(b) Say why in one line. Both procedures approximate the sampling distribution of with a normal curve, and success counts of 1 and 3 leave that distribution too skewed for the approximation to hold. Naming the failed condition and stopping is the correct response; running the procedure anyway produces a z statistic the normal model does not support.
(c) Solve for the sample size. Hold the combined defect rate at and let be the common sample size. The binding requirement is the defect count, , so .
(c) Round the right way. Sample sizes are whole numbers and would give , just short, so round up: each line needs at least units, which gives . Check the other side, , which clears 10 with room to spare.
(a) No: the observed defect counts and are below 10. (b) No: with the expected defect counts are and , both below 10. Name the failed condition and stop. (c) At least 213 units per line, since needs .
Problem 6
A university surveys an independent random sample of 150 students who eat at Dining Hall A and finds 96 who rate the food good or better. An independent random sample of 150 students at Dining Hall B has 84 who rate it good or better. (a) Construct a 99% confidence interval for . (b) Use that interval to decide the test of against at , and check the decision by running the test.
Show the worked solution
(a) State. Let and be the true proportions of students at each dining hall who rate the food good or better. Estimate with a 99% confidence interval.
(a) Plan. Two-sample z interval. Random: two independent random samples. 10%: 150 must be at most 10% of the students who eat at each hall, so assume each hall serves at least 1,500 students. Large Counts: the observed counts are and at Hall A, and at Hall B, all four at least 10.
(a) Sample proportions and point estimate. and , so the point estimate is .
(a) Standard error. and , so .
(a) Margin of error and interval. For 99% confidence, , so and the interval is , or . We are 99% confident this interval captures the true difference .
(b) Read the interval as a decision. A 99% confidence interval usually agrees with a two-sided test at , though the interval's unpooled standard error and the test's pooled one can send the two verdicts opposite ways on a borderline problem. Because 0 lies inside , fail to reject . There is not convincing evidence that the two dining halls differ in the true proportion of students who rate the food good or better. Note the wording: 0 being plausible does not make the proportions equal, and a Hall A lead near is equally plausible.
(b) Check by running the test. Pooling gives , with expected counts and in each group, all at least 10. Then , so and the two-sided p-value is . Since , fail to reject : the same verdict, reached through a slightly different standard error.
(a) Point estimate , , , interval . (b) The interval contains 0, so fail to reject at ; the test agrees, with , , and a two-sided p-value of about .
Problem 7
A university randomly assigns 1,000 students taking an online statistics course to one of two formats: 500 to a self-paced version and 500 to a cohort-based version. By the end of the term, 305 self-paced students and 260 cohort-based students have completed the course. (a) Construct a 95% confidence interval for , the difference in true completion proportions, self-paced minus cohort-based. (b) Carry out a two-proportion z test at . (c) Explain why the standard error in part (a) differs from the one in part (b).
Show the worked solution
(a) State and plan. Let and be the true completion proportions for the self-paced and cohort-based formats. Two-sample z interval for . Random: the 1,000 students were randomly assigned, so the groups are independent, and no 10% check applies to a randomized experiment. Large Counts: the observed counts are completions and non-completions in the self-paced group, and in the cohort group, all four at least 10.
(a) Point estimate and standard error. and , so the point estimate is . Unpooled, and , so .
(a) Interval and interpretation. , so and the interval is , or . We are 95% confident this interval captures the true difference in completion proportions. Both endpoints are positive, so 0 is not plausible and the self-paced format has the higher completion rate.
(b) State. versus , with .
(b) Plan and pooled standard error. Large Counts for a test uses , giving expected counts and in each group, all at least 10. Then and , so .
(b) Test statistic, p-value, and conclusion. , so the two-sided p-value is . Since , reject . There is convincing evidence that the two formats produce different completion rates, and because students were randomly assigned, the format is a plausible cause.
(c) Explain the gap. The interval has no null hypothesis to lean on, so it measures each group's variability with that group's own proportion, and . The test assumes is true, and under that assumption both groups share one proportion, best estimated by combining the samples into . That is why the interval used while the test used . The two agreed here, but on a borderline problem they can disagree, so give the question the procedure it asked for.
(a) Point estimate , , interval , which excludes 0. (b) , , , two-sided p-value ; reject . (c) The interval uses each sample's own proportion; the test pools because says the proportions are equal.
Problem 8
A state agency compares how small businesses file their taxes in two regions. An independent random sample of 420 businesses in Region 1 has 273 that filed online. An independent random sample of 380 businesses in Region 2 has 209 that filed online. (a) Construct and interpret a 95% confidence interval for . (b) Carry out a test of against at . (c) Interpret the p-value in context. (d) Name the error the decision in part (b) could be and describe it in context.
Show the worked solution
(a) State and plan. Let and be the true proportions of small businesses that file online in Region 1 and Region 2. Two-sample z interval for . Random: two independent random samples. 10%: 420 must be at most 10% of Region 1's businesses and 380 at most 10% of Region 2's, so assume the regions hold at least 4,200 and 3,800 small businesses. Large Counts: the observed counts are online and not online in Region 1, and in Region 2, all four at least 10.
(a) Point estimate and standard error. and , so the point estimate is . Unpooled, and , so .
(a) Interval and interpretation. , so and the interval is , or . We are 95% confident that the interval from to captures the true difference in the proportions of small businesses that file online, Region 1 minus Region 2. Both endpoints are positive, so 0 is not plausible and Region 1 has the higher online filing rate, by roughly 3 to 17 percentage points.
(b) Plan and pooled standard error. Two-proportion z test with against at . Large Counts for a test uses , giving expected counts , , , and , all at least 10. Then and , so .
(b) Test statistic, p-value, and conclusion. , so the two-sided p-value is . Since , reject . There is convincing evidence that the true proportions of small businesses filing online differ between the two regions. These are observational samples rather than a randomized experiment, so the conclusion is about a difference in rates and not about what causes it.
(c) Interpret the p-value. If the two regions truly had the same online filing rate, there would be about a chance of drawing two samples of these sizes whose sample proportions differ by at least in either direction from sampling variability alone.
(d) Name the error. A Type I error is the only one available, because a Type I error can accompany a rejection and a Type II error can accompany only a failure to reject. Here it would mean concluding that the two regions have different true online filing rates when in fact the rates are identical. Its long-run rate is the significance level you chose, .
(a) Point estimate , , interval , which excludes 0. (b) , , , two-sided p-value ; reject . (c) About a chance of a gap this large if the true rates were equal. (d) A Type I error: calling the regions different when they are the same.