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

Setting Up a Test for the Difference Between Two Population Proportions

The Null Says One Proportion, So the Test Estimates One Proportion

You'll learnhow to set up a test for the difference between two population proportions — hypotheses written about the two populations rather than the two samples, why the null's claim of equality is what lets you merge both samples into one estimate, why the test's standard error is not the interval's, and the design question that decides whether any of it applies.

Two checkout systems, two groups of shoppers, and a gap of ten points between them. That gap is a measured fact about 550 people; whether it says anything about the two systems is the question the test exists to answer. This animation writes the claim about the populations, strikes out the version written about the samples, and then does what the null's one sentence tells it to: if both populations share a single completion rate, estimate that one rate from all 550 shoppers at once. You will see why that pooled 228 of 550 is not the average of 0.46 and 0.36, why the test's standard error is not the interval's, and why one question about the design outranks all of the arithmetic. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · HYPOTHESES ABOUT PARAMETERS · THE POOLED PROPORTION · CONDITIONS · v2

The dashed line is the one rate the null claims both systems share.
Before you start
What you're looking at
A lane from 0 to 1. Each bar is one checkout system; the filled part is the shoppers who finished, the dim part the ones who did not.
The question
Could two systems with the same completion rate have produced samples this far apart?
Step 1 / 12

Read all 12 steps as text
Step 1

Two checkout systems, two groups of shoppers

Each bar is one checkout system, and the filled part of it is the shoppers who finished a purchase — nothing is named or counted yet.

Step 2

The new system finished ten points ahead

Of 300 shoppers on the new system 138 completed a purchase, and of 250 on the old system 90 did, so the two samples sit at \(\hat{p}_1 = 0.46\) and \(\hat{p}_2 = 0.36\).

Step 3

The gap is certain; what caused it is not

Both sample proportions are known exactly, and neither one is what the study is asking about: the question is about every shopper who could use each system.

Step 4

Write the claim about the two populations

Let \(p_1\) be the share of all shoppers who would finish on the new system and \(p_2\) the same for the old, then claim \(H_0: p_1 = p_2\) against \(H_a: p_1 > p_2\).

Step 5

A null about the samples tests nothing

Writing \(H_0: \hat{p}_1 = \hat{p}_2\) makes a claim about two numbers you have already measured, and it is settled — 0.46 is not 0.36 — before any test runs.

Step 6

One shared rate, estimated from all 550

If the null is true the two populations share one completion rate, so the best estimate of it uses every shopper at once: \(\hat{p}_c = \frac{138 + 90}{300 + 250} = \frac{228}{550} \approx 0.4145\).

Step 7

Nearly the average of the two — but only nearly

The simple average of 0.46 and 0.36 is 0.410, which sits less than half a point from the pooled 0.4145 on this study, because 300 and 250 are nearly the same size.

Step 8

Change the sample sizes and they separate

Run the same two sample proportions on 900 and 100 shoppers: the pool follows the data to \(\frac{414 + 36}{1000} = 0.450\) while the simple average has no idea anything changed.

Step 9

That one estimate feeds the standard error

The test's standard error is computed as if the null were true, from the one pooled rate and both sample sizes: \(\sqrt{\hat{p}_c(1-\hat{p}_c)\left(\tfrac{1}{n_1} + \tfrac{1}{n_2}\right)} \approx 0.0422\).

Step 10

The interval uses a different standard error

A confidence interval assumes nothing about equality, so it keeps each group's own proportion and gets 0.0418 — close to the test's 0.0422 here, and derived from a different assumption.

Step 11

Four counts, and every one has to clear ten

The four segments already on the lane are the large-counts condition — successes and failures in both groups, \(138, 162, 90, 160\), each at least 10 — alongside random selection or assignment, independent groups, and the 10% check made once per sample.

Step 12

Two independent groups, or none of it applies

The standard error is built from the two groups' variances adding, and variances add only when no individual is in both groups — so the same shoppers measured twice need a paired analysis instead.