P-values & Significance
What a p-value actually measures — and the tempting misreadings to avoid.
Start with a world where nothing is going on
Every significance test begins by playing devil's advocate. You assume the null hypothesis \(H_0\) — the boring, no-effect explanation: the coin is fair, the two groups are really the same, the new method changes nothing. Then you ask a single question:
If that dull world were true, how often would ordinary chance alone produce data at least as extreme as what I just saw?
That 'how often' is the p-value. If the answer is 'all the time', your data fit the no-effect world fine. If the answer is 'almost never', either something unusual happened or the no-effect world is wrong — and the rarer the coincidence, the more you lean toward the second reading.
Turning data into a tail area
To make this concrete we standardize. Under \(H_0\), many test statistics behave like a standard normal curve centered at 0 — the null distribution. Your data collapse to a single number, the observed statistic \(z_{\text{obs}}\): how many standard errors your result sits from the null value.
The p-value is then just an area in the tail of that curve — the shaded slice of outcomes as extreme as, or more extreme than, yours. Drag the observed statistic in the tool below and watch the tail area (the p-value) change. Switch between a one-sided and a two-sided alternative, and change the significance level \(\alpha\) to see when the shaded p-tail slips past the critical value.
One-sided or two-sided?
The choice depends on the question you set before looking at the data:
- A one-sided test asks about a specific direction ('is the new time faster?'). Only one tail counts as extreme.
- A two-sided test asks whether things differ at all, in either direction. Both tails count, so the p-value is twice as large for the same \(z_{\text{obs}}\).
Because two-sided is more conservative and does not require guessing the direction, it is the common default. Picking one-sided after seeing which way the data went is a way to fool yourself — decide up front.
- It is not the probability that \(H_0\) is true. \(H_0\) is either true or not; the p-value is computed assuming it is true, so it cannot also be its probability.
- A p-value of 0.03 does not mean '3% chance the result is a fluke and 97% chance the effect is real'.
- It does not measure the size or importance of an effect — only how surprising the data are under the null. A tiny, unimportant effect can give a small p-value with enough data.
Comparing to a threshold
To turn the p-value into a yes/no decision, you fix a significance level \(\alpha\) in advance — often 0.05 — as the line for 'surprising enough'. If \(p \le \alpha\) you reject \(H_0\) and call the result statistically significant; if \(p > \alpha\) you do not reject it. The \(\alpha\) you pick is also your tolerated rate of wrongly rejecting a true \(H_0\) — the false-alarm rate.
- Find one tail. From the standard normal, \(P(Z \ge 2.10) \approx 0.0179\).
- It is two-sided, so count both tails: \(p = 2 \times 0.0179 \approx 0.036\).
- Compare to \(\alpha = 0.05\). Since \(0.036 \le 0.05\), the result falls in the rejection region.
- Interpret honestly: a no-effect world would produce a result this extreme only about 3.6% of the time, so the data cast doubt on \(H_0\).
Check your understanding
- A p-value is the probability, assuming H0 is true, of a result at least as extreme as the one observed — a measure of surprise under the null.
- Small p = the data would be unusual in a no-effect world, so you doubt that world; compare p to a preset significance level alpha and reject H0 when p ≤ alpha.
- A p-value is NOT the probability that H0 is true, and it does not measure the size or importance of an effect.
- A two-sided test counts both tails (so its p-value is double the one-sided value); choose the sidedness before seeing the data.
- 'Not significant' means not enough evidence against H0 — not proof that there is no effect.