A hypothesis test is a trial. The claim being tested is presumed innocent until the data make that very hard to believe. Every term in the topic (Type I and Type II errors, significance level, power, p-value) is a way of describing the ways that trial can go right or wrong. Start with the 2×2, watch the trade-off on a live picture, then learn the procedure and which test to pick.
A company claims its bulbs last 1,000 hours on average. You suspect they last less. You can't test every bulb, so you test a sample and ask: if the claim were true, how surprising would this sample be? Very surprising, and you reject the claim. Not very, and you let it stand.
Always contains the equality: . It is the “nothing unusual is going on” position: no effect, no difference, no relationship.
(one-tailed) or (two-tailed). Its direction decides which tail(s) of the distribution count as evidence.
| Term | Meaning |
|---|---|
| Test statistic | One number summarising how far the sample is from H₀, in standard-error units, e.g. . |
| Critical (rejection) region | The values of the test statistic that lead you to reject H₀. The rest is the acceptance (non-rejection) region. |
| Critical value | The boundary between the two regions, e.g. 1.96 for a two-tailed z test at 5%. |
| Significance level, α | The risk of rejecting H₀ when it is true that you are prepared to accept, chosen before looking at the data. Usually 5% or 1%. |
A test never proves H₀. “Not guilty” is not “innocent”: failing to reject H₀ only means the evidence against it was not strong enough. That is why careful writers say “do not reject H₀” rather than “accept H₀”, though many exam papers use “accept” to mean the same thing.
The truth is either H₀ or not; your decision is either to reject or not. That gives exactly four outcomes: two right, two wrong. Click each cell, and switch the analogy to see the same structure in three settings.
An innocent person is convicted. The legal system is built to make this rare: “beyond reasonable doubt” is a small α.
False positive. Its probability α is the size or level of significance of the test.
A quality inspector tests using the mean of n items, with σ = 15 known. The black curve is where the sample mean lands if H₀ is true; the blue curve is where it lands given the true mean. Everything is an area under one of these two curves. Try the trade-off buttons in order.
The black curve is where x̄ would land if H₀ were true; the blue one is where it lands given the true mean, 106. You reject H₀ when x̄ falls above 104.93. With these settings you would wrongly reject a true H₀ 5.0% of the time and miss this particular false H₀ 36.1% of the time.
The starting point. Note how much of the blue curve still falls in the acceptance region: that is β.
For a fixed sample size, moving the critical value to cut α makes the acceptance region wider, so β rises. You cannot shrink both by moving the line.
A larger n shrinks the standard error σ/√n. The curves narrow and separate, so β falls while α stays where you set it.
β depends on the true value of μ. Close to μ₀, a false H₀ is hard to detect and β is near 1 − α; far away, it is near 0.
or . All of α sits in one tail, so the critical value is closer to the centre and the test is more powerful in that direction, but blind to the other.
. α is split, α/2 in each tail. Use it whenever the question doesn't tell you the direction in advance.
| α | One-tailed z | Two-tailed z |
|---|---|---|
| 10% | 1.282 | ±1.645 |
| 5% | 1.645 | ±1.960 |
| 1% | 2.326 | ±2.576 |
The two-tailed 10% value equals the one-tailed 5% value (1.645), because both put 5% in a single tail. Likewise two-tailed 5% (1.96) matches one-tailed 2.5%.
The p-value is the probability, assuming H₀ is true, of getting a test statistic at least as extreme as the one you observed. Small p means the data would be surprising under H₀. It is also the smallest α at which you would reject H₀, which is why it is sometimes called the observed or exact significance level.
If H₀ were true, a test statistic at least as extreme as 1.80 would turn up 3.59% of the time. That is rare enough, by the standard you set, to reject H₀. The shaded area always crosses the dashed critical line at exactly the moment p crosses α: the p-value rule and the critical-value rule are the same test.
| Test | Use it for | Statistic | Distribution under H₀ |
|---|---|---|---|
| z | A mean when σ is known, or any large sample (n ≥ 30); a proportion | , | N(0, 1) |
| t | A mean when σ is unknown and the sample is small (normal population); a regression coefficient | , | t with n − 1 df (n − k in regression) |
| χ² | A single variance; goodness of fit; independence in a contingency table | , | χ² with n − 1 df; k − 1 (fit); (r − 1)(c − 1) (independence) |
| F | Equality of two variances; ANOVA; joint significance of several regression coefficients | (larger variance on top) | F with (n₁ − 1, n₂ − 1) df |
Like the normal, but with fatter tails to allow for estimating σ by s. Its only parameter is the degrees of freedom; as df grows it approaches N(0, 1), so for large samples z and t agree.
Tests that don't assume a distribution for the population: the sign test, Wilcoxon, Mann–Whitney U, Kruskal–Wallis, the runs test and Spearman's rank correlation. Useful for ranks, medians and small non-normal samples.
Give probabilities as decimals (0.0668, not 6.68%). Answers within 0.002 are accepted.
One attempt each. Read the explanation even when you get it right.
Reject a true H₀: Type I (α). Keep a false H₀: Type II (β). Reject a false H₀: power (1 − β). Keep a true H₀: 1 − α.
Fixed n: lower α ⇒ higher β. Larger n ⇒ lower β at the same α. Bigger true effect ⇒ higher power.
Hypotheses → α → test statistic → critical region or p-value → decision in words.
One-tailed: 1.282 (10%), 1.645 (5%), 2.326 (1%). Two-tailed: 1.645, 1.96, 2.576.
P(data at least this extreme | H₀). Reject when p ≤ α. The smallest α at which H₀ would be rejected.
σ known or large n: z. σ unknown, small n: t (n − 1 df). Variance, fit, independence: χ². Two variances, ANOVA: F.
From UGC NET, IIT JAM, JNU, CUET-PG and the University of Hyderabad: Type I and II errors, power, significance levels, p-values, the order of the steps, choosing the statistic, and three numeric tests.
These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.