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

Carrying Out a Test for the Difference Between Two Population Proportions

A Large p-Value Fails to Convict. It Does Not Acquit

You'll learnhow to carry a two-proportion z-test from statistic to sentence — the gap divided by the pooled standard error, the p-value as a tail area of the null's own distribution, a conclusion that carries the direction and both populations, why failing to reject never becomes a finding of equality, and how the test lines up with the interval built from the same data.

The arithmetic left after Topic 3.12's setup is one division and one area. The observed gap of 0.10 sits 2.37 pooled standard errors from where the null expects it, and two populations with a shared rate would produce a gap that far out about nine times in a thousand. Every beat here is drawn on the null's own sampling distribution — the world the null describes, drawn as a curve — with the observed gap planted on it and the p-value shaded in. Then comes the sentence, which is where this topic is actually lost: a small p-value earns a direction and two populations, a large one earns precisely "not convincing evidence", and a pilot study with a p-value of 0.28 has not shown two systems equal, because at its sample sizes only a gap past eleven points was ever going to register. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · THE TEST STATISTIC · p-VALUES AND DECISIONS · THE TEST AND THE INTERVAL · v2

The p-value is the shaded area of the null's own curve, and nothing else.
Before you start
What you're looking at
The null hypothesis drawn as a curve: the gaps between two sample proportions that two populations with the same rate would produce.
The question
The checkout samples showed a gap of 0.10. Is that a gap equal populations make on their own?
Step 1 / 12

Read all 12 steps as text
Step 1

Even two identical systems give different samples

This curve is the null hypothesis taken seriously: if both checkout systems really had the same completion rate, the gap between two samples would still wobble around zero, and it would wobble like this.

Step 2

The width of the curve is the pooled standard error

The spread of that wobble is the pooled standard error from Topic 3.12, \(\sqrt{\hat{p}_c(1-\hat{p}_c)\left(\tfrac{1}{n_1} + \tfrac{1}{n_2}\right)} \approx 0.0422\), so almost every gap equal systems produce lands within about 0.08 of zero.

Step 3

Plant the gap the study actually saw

The checkout study finished 138 of 300 on the new system and 90 of 250 on the old, a gap of 0.10 — and on this curve that lands far out to the right.

Step 4

z is the gap measured in standard errors

Dividing the gap by the pooled standard error gives \(z = \frac{0.10}{0.0422} \approx 2.37\), and nothing is subtracted in the numerator because the null already puts the difference at zero.

Step 5

The shaded area is the p-value

The area beyond the observed gap is \(P(Z \ge 2.37) \approx 0.0089\): if the two systems really performed the same, samples of these sizes would show the new one ahead by 0.10 or more about nine times in a thousand.

Step 6

One tail or two, depending on the question

Against \(H_a: p_1 > p_2\) only the right tail counts and the p-value is 0.0089; against \(H_a: p_1 \ne p_2\) a gap this large either way counts, and the area doubles to 0.0178.

Step 7

Compare to alpha, then write four things

Since 0.0089 is below \(\alpha = 0.05\) we reject \(H_0\), and the sentence has to carry the comparison, the decision, the direction, and both populations — with "evidence" for a verb, never "proves".

Step 8

A smaller pilot, and a much wider curve

The same two systems were compared at one store on 100 shoppers each: 42 finished on the new and 38 on the old, and with those sample sizes the pooled standard error grows to 0.0693.

Step 9

A large p-value is not a finding of equality

The pilot gives \(z = 0.58\) and a one-sided p-value of 0.28, so we fail to reject — which earns the sentence "these data do not give convincing evidence of a difference", and nothing stronger.

Step 10

What that pilot could ever have detected

At 100 shoppers per group an observed gap has to reach \(1.645 \times 0.0693 \approx 0.114\) before it clears \(\alpha = 0.05\) one-sided, so a real difference of five or eight points would usually slip past a study this size.

Step 11

The numerator that zeroes every test ever run

"Observed minus hypothesized" tempts a numerator of \(0.10 - 0.10\), which makes \(z = 0\) and a p-value of 0.5 for any data whatsoever — and a procedure that returns the same answer for every study has stopped measuring the study.

Step 12

The interval says how large, the test says detectable

The same data give a 95% interval of \(0.10 \pm 1.96 \times 0.0418 = (0.018, 0.182)\), which clears 0 exactly as the two-sided p-value of 0.0178 does — and adds what no p-value carries, the sizes the data leave plausible.