Null World: Hypothesis Testing and the p-Value
Imagine a world where nothing is really going on. If your result would be a shock even there, that is your evidence something is.
The skeptic's world
A new coin looks like it lands heads too often. A tweak to a website seems to lift sales. How do you tell a real effect from a lucky streak? Statistics answers with a deliberately skeptical move: first assume there is no effect at all.
That skeptical assumption is the null hypothesis (H₀) — the claim that nothing is going on, that any difference you see is just chance. Its rival, the alternative hypothesis (H₁), says a real effect exists.
Measuring the surprise
Now overlay your real result on the null distribution. If it sits comfortably in the fat middle, chance explains it easily. If it sits way out in a thin tail, it is the kind of result that would rarely happen by luck alone.
The p-value puts a number on that surprise: it is the probability, assuming the null is true, of getting a result at least as extreme as the one you observed.
Drawing a line: the significance level
To turn the p-value into a decision, fix a threshold in advance called the significance level α — commonly 0.05. If p < α, the result is too surprising to blame on chance, and you reject the null. If p ≥ α, you fail to reject it — the evidence simply is not strong enough.
- Null world: a fair coin gives on average 50 heads, with standard deviation \( \sqrt{100\cdot 0.5\cdot 0.5} = 5 \).
- Locate the result: \( z = \dfrac{60 - 50}{5} = 2 \), so 60 heads is 2 standard deviations above expectation.
- A result 2σ or more from the mean happens only about 5% of the time by chance — here the two-sided p-value is about 0.046.
- Compare to α: 0.046 < 0.05.
Check your understanding
- Hypothesis testing starts by assuming the null hypothesis H₀: nothing is going on but chance.
- The null distribution shows how results scatter by luck alone if H₀ were true.
- The p-value is the probability, assuming H₀, of a result at least as extreme as the one observed.
- Compare the p-value to a preset significance level α: reject H₀ when p < α, otherwise fail to reject.
- A p-value is not the probability that H₀ is true, and failing to reject H₀ does not prove it.