Hypothesis tests: critical regions & errors
Every hypothesis test can go wrong in two ways: rejecting a true null hypothesis, or failing to reject a false one. This page sets up tests with critical regions for normal means, binomial proportions and Poisson rates, adds paired samples and the test for correlation, and works out the probability of each kind of error.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Find critical values and critical regions, and use them to reach a conclusionAHL 4.18
- Test a population mean using the normal distribution (σ known) or the t-distribution (σ unknown), including paired samplesAHL 4.18
- Test a proportion with the binomial distribution, one-tailedAHL 4.18
- Test a mean rate with the Poisson distribution, one-tailedAHL 4.18
- Use technology to test whether the population correlation coefficient is 0AHL 4.18
- Define Type I and Type II errors and calculate their probabilitiesAHL 4.18
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
A Type I error is rejecting when it is true (a false alarm). A Type II error is not rejecting when it is false (a missed effect). Making the critical region bigger makes Type I errors more likely and Type II errors less likely. The significance level controls the Type I risk; the Type II risk depends on how far the truth is from .
2.1 Critical regions for a normal mean
The critical region is the set of values of the test statistic that lead to rejecting ; its boundary is the critical value. For a mean with known, use under and the inverse normal. With unknown use a t-test, but you will not be asked for critical regions of t-tests.
2.2 Binomial and Poisson tests
For a proportion, the test statistic is the number of successes . For a mean rate, it is the count . These tests are one-tailed. Because is discrete, you cannot hit exactly 5%: choose the critical region that makes as large as possible while still less than the significance level. That probability is the actual significance level, which is also .
2.3 Type I and Type II errors
For a continuous test statistic, equals the significance level. A Type II probability needs a specific alternative value of the parameter.
2.4 Paired samples and testing correlation
Paired data (the same people before and after, or matched pairs) are tested as a single sample of differences: find each difference, then do a one-sample t-test on them with . To test whether two variables are correlated, use with technology (the data will be given); is the population product moment correlation coefficient.
On the TI-Nspire: critical values for a normal mean come from invNorm(area, μ, σ/√n). For binomial and Poisson critical regions, try values with binomCdf(n, p, lower, upper) or poissCdf(λ, lower, upper) until the probability first drops below the significance level; a table in a Lists & Spreadsheet page with a column of k values is quicker. Paired t-test: put the differences in a list and use menu → Statistics → Stat Tests → t Test. Test of : menu → Statistics → Stat Tests → Linear Reg t Test, choosing the alternative , or .
3Explore it
H₀: μ = 500 (navy curve) against H₁: μ < 500, with σ = 12. The red curve is the distribution of the sample mean if the true mean is μ₁. The shaded navy area is P(Type I error) and the shaded red area is P(Type II error). Try a bigger sample, or a μ₁ further from 500.
4Common mistakes & exam tips
Common mistakes
- Choosing a discrete critical region whose probability is just over the significance level. It must be less than it.
- Giving as the significance level for a binomial or Poisson test. It is the actual probability of the critical region.
- Working out a Type II probability with the value instead of the alternative value.
- Doing a two-sample test on paired data. Paired data are one sample of differences.
- Forgetting to scale the Poisson mean to the length of the observation period.
Exam tips
- Write the critical region as an inequality in terms of the test statistic, for example .
- For discrete tests, show the two probabilities either side of the boundary: it proves you found the right value.
- Define Type I and Type II errors in context: "concluding the mean has fallen when it has not".
- Conclusions need context and should not say is "proved" or "accepted".
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
Jars of honey are filled with a mean mass of 250 g and a standard deviation of 4 g. A quality controller suspects the mean has decreased. She weighs a random sample of 16 jars and tests at the 5% significance level.
- (a)Write down the null and alternative hypotheses.[1]
- (b)Find the critical region for .[3]
- (c)The sample mean is 248.5 g. State the conclusion of the test.[1]
- (d)The true mean is in fact 247.5 g. Find the probability of a Type II error.[2]
| (a) | |
| , | A1 |
| (b) | |
| (M1) | |
| (M1) | |
| (248.355…) | A1 |
| (c) | |
| 248.5 is not in the critical region, so do not reject : insufficient evidence the mean has decreased | R1 |
| (d) | |
| (M1) | |
| A1 | |
In a large town, 20% of adults cycle to work. After a new cycle path opens, a random sample of 25 adults is surveyed to test, at the 5% level, whether the proportion has increased.
- (a)State the hypotheses.[1]
- (b)Find the critical region.[3]
- (c)Write down the probability of a Type I error.[1]
- (d)The true proportion is now 35%. Find the probability of a Type II error.[2]
| (a) | |
| , | A1 |
| (b) | |
| (M1) | |
| , | (A1) |
| A1 | |
| (c) | |
| A1 | |
| (d) | |
| (M1) | |
| A1 | |
A factory has historically produced a mean of 3.5 faulty items per week, following a Poisson distribution. After a new process is introduced, the number of faulty items is counted over 4 weeks to test, at the 5% level, whether the mean has decreased.
- (a)State the hypotheses, and the distribution of the number of faulty items in 4 weeks under .[2]
- (b)Find the critical region.[3]
- (c)In the 4 weeks there were 8 faulty items. State the conclusion.[1]
- (d)The new process actually produces a mean of 2.5 faulty items per week. Find the probability of a Type II error.[2]
- (e)Give one assumption needed for the Poisson model to be valid in this context.[1]
| (a) | |
| , (per week) | A1 |
| A1 | |
| (b) | |
| , | (M1)(A1) |
| A1 | |
| (c) | |
| 8 is not in the critical region: do not reject ; insufficient evidence of a decrease | R1 |
| (d) | |
| , | (M1) |
| A1 | |
| (e) | |
| faults occur independently, or at a constant average rate | R1 |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| Nov 2022 · Paper 1 | Q16 | Binomial test for healthy canteen choices, with Type I error | ★★☆ |
| May 2021 · TZ2 · Paper 1 | Q15 | Poisson test for coffee sales after a discount | ★★☆ |
| May 2025 · TZ3 · Paper 1 | Q12 | Poisson test for cars at an intersection: critical region | ★★☆ |
| May 2022 · TZ2 · Paper 1 | Q12 | Cuttlefish weights: critical value and both error probabilities | ★★★ |
| Nov 2025 · Paper 2 | Q5 | Spicy snacks: a binomial test and its errors | ★★★ |
