Skip to main content
Albero Academy

Hypothesis Testing

A framework for deciding if an effect is real or chance.

Inference10 min

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

StepWhat it is
Null hypothesis (H₀)No effect / no difference (the default)
Alternative (H₁)There is an effect
Test statisticHow far the data is from H₀
p-valueHow surprising the data is if H₀ were true
DecisionReject H₀ if p < significance level (e.g. 0.05)

How to think about it

Key takeaways

  1. 01Hypothesis testing asks whether an effect is real or could be chance.
  2. 02Start from the null hypothesis (no effect); the alternative is that there is one.
  3. 03The p-value measures how surprising the data is if the null were true.
  4. 04Reject the null if p < the significance level (α); you never "prove" the null.

Finished this chapter?

Mark it complete to track your progress through Statistics.