Mistake Master
Carrying Out a Test for a Population Proportion
Two Verdicts Exist, and Neither of Them Is "the Null Is True"
You'll learnto run a one-proportion z-test end to end — state, plan, do, conclude — and then to say what the verdict does and does not mean: why failing to reject never becomes accepting, why the 0.05 line is a convention rather than a cliff, and why significant measures detectable, not large.
The arithmetic of a test is four numbers long; the sentence at the end is where the marks are. A company claims a 40% renewal rate, 88 of 250 sampled customers renewed, and the p-value comes out at 0.0607 against a threshold of 0.05 — so the test fails to reject. What may be said now? Not that the rate is 0.40: the same data sit just as comfortably with 0.38, and more comfortably still with 0.36, and this animation runs those tests to prove it. Not that one customer matters much: with 87 renewals instead of 88 the same test rejects, so the two verdicts sit one customer apart on nearly identical evidence. And when a test does reject, that is a statement about detectability, not size — a 40,000-person sample pushes an effect of under one percentage point to a p-value of 0.001, while thirty observations cannot certify a thirteen-point gap. Twelve short steps; press Next for each one.
Read all 12 steps as text
Every test runs the same four steps
State the parameter and the hypotheses about it, plan the procedure and check its conditions, do the arithmetic, and conclude — and the first three are mechanical while the fourth is a sentence somebody has to write.
The conditions are arithmetic, not a chant
Written out with their numbers, the large-counts condition is two bars against a short line: \(np_0 = 250(0.40) = 100\) and \(n(1-p_0) = 150\), both far past the floor of 10 that makes the null's sampling distribution close enough to normal to read a p-value from.
Do the arithmetic, then drop the dot
88 of 250 renewed, so \(\hat{p} = 0.352\) and \(z = -1.549\), which turns into a p-value of 0.0607 — and from here the whole decision is where one dot sits against one line.
Compare, decide, then interpret
0.0607 is greater than 0.05, so the decision is fail to reject — and the sentence that earns the marks names the population and keeps the hedge: there is not convincing evidence that the proportion of all customers who renew is below 0.40.
Ask the same data about other claims
Run the identical test against \(p_0 = 0.38\) and then \(p_0 = 0.36\) — each null building its own standard error — and the same 88 of 250 gives p-values of 0.1809 and 0.3961.
Failing to reject is never accepting
A test that leaves 0.40 and 0.38 and 0.36 all standing has not crowned any of them, so "we accept \(H_0\)" claims something the arithmetic never delivered — the two available decisions are reject and fail to reject, and there is no third.
One customer moves the dot across the line
Change one renewal: 87 of 250 gives \(z = -1.678\) and a p-value of 0.0466, which rejects, while 88 gives 0.0607, which does not — nearly identical evidence, opposite decisions.
Report the number, not only the verdict
Stand the five nearest samples on the lane at once — 86 through 90 renewals — and the p-values run from 0.0354 to 0.0984 with the line cutting straight through the middle of them.
Forty thousand observations, under a point
A different study: 20,320 of 40,000 against a claim of 0.50, so \(\hat{p} = 0.508\). The standard error is 0.0025, \(z = 3.20\), and the two-sided p-value is 0.0014 — deeply significant, for a gap of eight tenths of a percentage point.
Thirty observations, thirteen points
Now 19 of 30 against the same 0.50, so \(\hat{p} = 0.6333\). The standard error is 0.0913, \(z = 1.461\), and the one-sided p-value is 0.0721 — not significant, for a gap nearly seventeen times larger than the one that was.
Significant means detectable, not large
Put both studies on one lane and both effects on one scale: the study with the smaller p-value has the smaller effect by a factor of nearly seventeen, because a p-value measures the sample size as much as it measures the gap.
Name the population and keep the hedge
Back to the renewal study, and to the sentence that earns full credit: because 0.0607 is greater than 0.05 we fail to reject \(H_0\), so there is not convincing evidence that the proportion of all the company's customers who renew is below 0.40.