Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Statistics · Unit 3 · Step-Through Animation

Constructing a Confidence Interval for the Difference Between Two Population Proportions

An Interval Assumes Nothing, Which Is Exactly Why It May Not Pool

You'll learnto build a two-proportion z-interval from each group's own estimate, why pooling belongs to the test and never to the interval — shown on a study where it changes the conclusion — how the confidence level trades width for certainty, and how to write an interpretation that names both populations and the direction of subtraction.

A store's new checkout system finishes 138 of 300 customers and the old one 90 of 250, a difference of 10 percentage points. A confidence interval puts a range around that estimate: 0.10 give or take 0.082, so (0.018, 0.182) at the 95% level. Two things about it are worth more than the arithmetic. The first is that the standard error keeps the two groups apart, because an interval assumes nothing about whether the rates are equal — and pooling, which the test does, is not merely wrong in principle. This page searches the study design for a case where it changes the answer, finds one at 110 of 300 against 72 of 250, and draws the two intervals straddling zero from opposite sides. The second is that the confidence level is a lever: the same data give an interval that excludes zero at 95% and includes it at 99%. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · UNPOOLED SE · THE LEVEL AS A LEVER · DIRECTION · v2

Estimate 10 points, margin 8.2, and the pooled version can land on the other side of zero.
Before you start
What you're looking at
One axis of percentage points, a dashed line at zero, and horizontal bars: each bar is a confidence interval for the gap between two checkout systems.
The question
Does the bar reach across zero? That is the whole reading — and one wrong standard error can move it from one side to the other.
Step 1 / 12

Read all 12 steps as text
Step 1

One number, and no idea how far off it is

The new checkout system finishes 138 of 300 customers and the old one 90 of 250, so the observed gap is 0.46 − 0.36 = 0.10 — one dot on the axis, and nothing yet about how much of it is sampling.

Step 2

Estimate, give or take a margin of error

An interval is the statistic plus or minus a margin: \(0.10 \pm 1.96(0.0418)\), which grows out of the dot in both directions and lands on \((0.018, 0.182)\).

Step 3

Each group keeps its own uncertainty

The standard error is \(\sqrt{\hat{p}_1\hat{q}_1/n_1 + \hat{p}_2\hat{q}_2/n_2} = 0.0418\): each group's own estimate, divided by its own sample size, added under one radical — because an interval assumes nothing about whether the two rates are equal.

Step 4

More confidence buys width

Raise the level and the multiplier rises with it — 1.645, 1.960, 2.576 — so the same estimate and the same standard error give a wider interval every time.

Step 5

The level can change the answer

At 95% the interval is \((0.018, 0.182)\) and misses zero; at 99% it is \((-0.008, 0.208)\) and contains it — same data, same conditions, opposite readings about whether the two systems differ.

Step 6

An interval may not borrow the test’s spread

Pooling builds one common proportion, \(\hat{p}_c = 0.4146\), and that step assumes the two population rates are equal. A test may assume it — that is its null — but an interval is estimating the difference and cannot assume it away.

Step 7

On this study the error hides

Draw both intervals for the checkout data and they are almost the same bar: the pooled standard error is 0.0422 against the correct 0.0418, under 1% wider, and both intervals clear zero comfortably.

Step 8

And on this one it decides the answer

Walk the same two sample sizes through 503 pairs of success counts and one turns up where the two intervals disagree about zero: 110 of 300 against 72 of 250, where the correct interval starts at 0.00041 and the pooled one starts at −0.00031.

Step 9

Four counts, and one check that is new

Every count comes from the observed proportions, because an interval assumes no value of \(p\): 138 and 162 for the new system, 90 and 160 for the old, plus random samples, each under 10% of its population, and independence between the two groups.

Step 10

The 95% belongs to the method

The level describes the procedure: 95% of intervals built this way capture the true difference. This one either does or does not, and nothing in the arithmetic assigns it a probability — which is the same conditional that Topic 3.6 refused to turn around.

Step 11

Say which way you subtracted

New minus old gives \((0.018, 0.182)\) and old minus new gives \((-0.182, -0.018)\) — the same interval, mirrored through zero. Both are correct and they mean the same thing only if the sentence says which order was used.

Step 12

Estimate the gap, and keep the groups apart

The whole procedure in one line: \((\hat{p}_1 - \hat{p}_2) \pm z^*\sqrt{\hat{p}_1\hat{q}_1/n_1 + \hat{p}_2\hat{q}_2/n_2}\), with each group's own estimate, the level fixed in advance, four counts checked, and the direction of subtraction named in the sentence.