Hypothesis testing
Hypothesis testing starts by assuming the null hypothesis is true, computes a test statistic measuring how far the sample departs from that assumption, and rejects the null only when that departure would be too unlikely to be explained by chance alone — it can disprove a null hypothesis but never proves one true, only fails to reject it.
Practise this conceptHypothesis testing is built around a deliberately asymmetric setup. You assume the null hypothesis — usually the boring, no-effect claim — is true, and ask: if it really were true, how surprising would this sample be? A test statistic, like z = (x̄ − μ₀)/(s/√n) for a sample mean, converts that question into a single number measuring how many standard errors the sample sits from what the null hypothesis predicted.
The p-value is the probability of seeing a test statistic at least this extreme if the null hypothesis were true — not the probability that the null hypothesis is true, which is a different question the data alone cannot answer. When the p-value falls below a chosen significance level (commonly 0.05), the result is called statistically significant and the null is rejected; otherwise, the honest conclusion is that the data didn't provide enough evidence against it — never that the null has been proven, since absence of evidence against a claim is not evidence for it.
Choosing the significance level is itself a trade-off, not a dial to turn toward "more rigorous" without cost. A smaller significance level makes a false positive (rejecting a true null — a Type I error) less likely, but only by making a false negative (failing to detect a real effect — a Type II error) more likely. Good test design balances both risks against what a wrong conclusion would actually cost.
Key ideas
Requires: Point and interval estimation
Formulas
| Symbol | Name | Unit |
|---|---|---|
| sample mean | 1 (dimensionless) | |
| null-hypothesis mean | 1 (dimensionless) | |
| standard deviation | 1 (dimensionless) | |
| sample size | 1 (dimensionless) | |
| test statistic | 1 (dimensionless) |
Common misconceptions
- Believes failing to reject the null hypothesis proves the null hypothesis is true, rather than merely meaning the sample gave insufficient evidence against it.
- Believes the p-value is the probability that the null hypothesis is true, rather than the probability of seeing a test statistic at least this extreme if the null hypothesis were true.
- Believes a smaller significance level always makes a test 'more rigorous' with no downside, ignoring that lowering it trades a smaller chance of a false positive (Type I error) for a larger chance of missing a real effect (Type II error).
Resources
Part of these UT courses
This concept is mapped as covering part of the following course(s) in the University of Tartu curriculum.