Hypothesis testing is a formal way to ask "is this difference real, or could it be chance?". You assume no effect, then check how surprising your data would be if that were true.
The logic
| Step | What it is |
|---|---|
| Null hypothesis (H₀) | No effect / no difference (the default) |
| Alternative (H₁) | There is an effect |
| Test statistic | How far the data is from H₀ |
| p-value | How surprising the data is if H₀ were true |
| Decision | Reject H₀ if p < significance level (e.g. 0.05) |
How to think about it
Key takeaways
- 01Hypothesis testing asks whether an effect is real or could be chance.
- 02Start from the null hypothesis (no effect); the alternative is that there is one.
- 03The p-value measures how surprising the data is if the null were true.
- 04Reject the null if p < the significance level (α); you never "prove" the null.
