The chapter in short
Hypothesis testing uses sample data to decide whether a claim about a population is supported. It is central to data science and research.
The chapter covers null and alternative hypotheses, significance level, p-values, test statistics, and type I and type II errors.
HypothesisNull hypothesisSignificance levelp-valueType I error
Key points
- The null hypothesis (H₀) assumes no effect or difference.
- The alternative hypothesis (H₁) is what we seek evidence for.
- The significance level α is often 0.05.
- If the p-value is below α, reject H₀.
- A type I error rejects a true H₀; a type II error fails to reject a false H₀.
- Statistical significance does not always mean practical importance.
Definitions
- 1
Hypothesis
A statement that can be tested.
- 2
Null hypothesis
The default assumption of no effect or difference.
- 3
Significance level
The probability threshold for rejecting the null hypothesis.
- 4
p-value
The probability of results at least as extreme as those observed if H₀ is true.
- 5
Type I error
Rejecting a null hypothesis that is true.