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

p-Values

A p-Value Is a Probability About Samples, Computed in a World Where the Null Is True

You'll learnwhat a p-value is — a tail area of the null's own sampling distribution — how the alternative decides which tail counts, why the number moves when the sample does, and why every standard misreading is the definition with its assuming-clause dropped.

A company claims a 40% renewal rate and a manager suspects less. Of 250 customers, 88 renewed — a proportion of 0.352. Is that low enough to matter? The p-value answers one very specific version of that question: if the rate really were 0.40, how often would a random sample of 250 land at 0.352 or lower? The whole calculation happens inside the world that if builds — a curve centered at 0.40 with a spread computed from 0.40 — and the answer, about 6%, is the area of that curve's left tail. It is not the probability the claim is true, not the probability the result was chance, and not the probability of this exact sample; each of those is the same definition with one clause removed, and this page computes each one so you can watch it come out as a different number. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · THE ASSUMING CLAUSE · TAIL AREAS · ONE- AND TWO-SIDED · v2

Assuming p = 0.40: the sample sits at z = −1.55 and 0.0607 of this curve lies below it.
Before you start
What you're looking at
The samples of 250 that a true rate of 0.40 would produce — the claim's own world, drawn before any data arrive.
The question
The survey gave 0.352. How often does this world go that low, and what exactly does that number mean?
Step 1 / 12

Read all 12 steps as text
Step 1

A claim builds a whole world of samples

A company claims a renewal rate of 0.40, and before a single customer is asked that claim already decides the shape on screen: every sample of 250 it would produce, centered on 0.40 with a spread of \(\sqrt{0.40(0.60)/250} \approx 0.0310\).

Step 2

The sample lands, and it lands low

Now the data arrive: 88 of 250 renewed, so \(\hat{p} = 0.352\), and the test's first question is simply where that sits inside the world the claim already built — \(z = (0.352 - 0.40)/0.0310 \approx -1.55\).

Step 3

The world does not move to the data

The dashed red curve is what the commonest slip would build — a distribution centred on 0.352, with its spread \(\sqrt{0.352(0.648)/250} \approx 0.0302\) taken from the data — and it answers a question nobody asked, because a test measures how surprising the sample is to the claim.

Step 4

Shade everything at least this low

The alternative says less than, so "at least as extreme" means 0.352 or lower — everything to the left of the marker, and not the single outcome the marker sits on.

Step 5

That shaded area is the p-value

Three roads that share no arithmetic land on the same area: the normal-tail formula gives 0.0607, summing four hundred slices under the curve gives 0.0607 again, and abandoning the curve to add up the exact probability of all 89 qualifying counts gives 0.0680.

Step 6

Which tail counts is the question’s choice

Ask "is the rate higher than 0.40?" of this very same sample and the shading flips: the area to the right of \(z = -1.55\) is 0.9393, nearly the whole curve, because a sample below the claim is no evidence at all that the rate is above it.

Step 7

Either way? Then both tails count

For \(H_a: p \ne 0.40\) a result equally far out on the other side would be equally surprising, so both tails count and the area doubles to \(2(0.0607) \approx 0.1213\) — which is the price of having asked about two directions, not a penalty.

Step 8

Slide the sample and the area follows

Hold the test still — same claim, same alternative, same \(n\) — and let only the sample vary: the marker slides from 0.340 up to 0.400 and the shaded area grows with every step it takes toward the claim.

Step 9

The number belongs to the sample

Five samples, one claim: the five markers stand on the same unmoved curve, and the p-value changed five times while nothing about the claim changed once — so it was never a probability about the claim.

Step 10

Every misreading drops the same clause

"A 6.07% chance the null is true" reverses a conditional the test never runs; "a 93.9% chance the alternative is true" is that misreading's complement; "a 6.07% chance the results are due to chance" describes the assumption rather than the answer; and "the probability of exactly this sample" is a different, smaller number — \(P(X = 88) \approx 0.0156\).

Step 11

A second sample, and a large p-value

Run the identical test on 97 renewals of 250: \(\hat{p} = 0.388\), \(z \approx -0.39\), and the shaded area is 0.3493 — about a third of the claim's own samples land this low or lower, which is the claim's routine output.

Step 12

Say it with the if left in

Assume the claim, locate the sample inside the world it builds, shade outward in the direction the alternative names, and then say the number back with all four pieces: the if, the assumed value, the sample size, and the direction.