James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Statistics & probability › Critical regions & errors

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.

AHL 4.18HL onlyPaper 1Paper 2Paper 3GDC allowed≈ 60 min to work through
Before you start: the t-test and the logic of hypothesis testing (The t-test), the Poisson distribution (Poisson distribution) and X¯~N(μ,σ2n) (Combining random variables).

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.

The big idea

A Type I error is rejecting H0 when it is true (a false alarm). A Type II error is not rejecting H0 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 H0.

2.1 Critical regions for a normal mean

The critical region is the set of values of the test statistic that lead to rejecting H0; its boundary is the critical value. For a mean with σ known, use X¯~N(μ0,σ2n) under H0 and the inverse normal. With σ unknown use a t-test, but you will not be asked for critical regions of t-tests.

Worked example 1Paper 1
A machine fills bags with mean 500 g and standard deviation 12 g. After a repair, it is suspected the mean has fallen. A sample of 16 bags is taken. Find the critical region for a test at the 5% level, and the conclusion if x¯=494.2.
H0:μ=500, H1:μ<500; under H0, X¯~N(500, 32)
P(X¯<c)=0.05⇒c=495.07
invNorm(0.05, 500, 3).
Critical region: x¯<495.07
494.2 is in the critical region: reject H0. There is evidence that the mean has fallen.

2.2 Binomial and Poisson tests

For a proportion, the test statistic is the number of successes X~B(n,p0). For a mean rate, it is the count X~Po(λ0). These tests are one-tailed. Because X is discrete, you cannot hit exactly 5%: choose the critical region that makes P(X in region) as large as possible while still less than the significance level. That probability is the actual significance level, which is also P(Type I error).

Worked example 2Paper 2
In the past, 30% of customers chose a vegetarian meal. After a menu change, a random sample of 20 customers is taken to test whether the proportion has increased, at the 5% level. Find the critical region and P(Type I error).
H0:p=0.3, H1:p>0.3; X~B(20,0.3)
P(X≥9)=0.113, P(X≥10)=0.0480
Use binomCdf(20, 0.3, k, 20) for several k.
Critical region X≥10; P(Type I)=0.0480
Worked example 3Paper 2
A shop receives a mean of 4 complaints per day. After new training, the manager counts complaints over 5 days to test, at 5%, whether the rate has increased. Find the critical region.
H0:λ=4 per day, H1:λ>4; over 5 days X~Po(20)
P(X≥28)=0.0525, P(X≥29)=0.0343
Critical region X≥29; P(Type I)=0.0343

2.3 Type I and Type II errors

Error probabilities Not in booklet: learn it
P(Type I)=P(in critical region∣H0 true)P(Type II)=P(not in critical region∣the given alternative is true)

For a continuous test statistic, P(Type I) equals the significance level. A Type II probability needs a specific alternative value of the parameter.

Worked example 4Paper 1
For WE1, the true mean is actually 493 g. Find the probability of a Type II error.
Not in the critical region: X¯≥495.07, with now X¯~N(493, 32)
P(X¯≥495.07)=0.246
Worked example 5Paper 1
For WE2, the true proportion is 0.45. Find P(Type II error).
X~B(20,0.45); not in critical region: X≤9
P(X≤9)=0.591
Even with a real increase, this small test often misses it.
Worked example 6 (faded)Paper 1
For WE3, the true rate is actually 5 per day. Find P(Type II error).
X~Po(25), P(X≤28)= 0.763  ← you work this out

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 H0:μd=0. To test whether two variables are correlated, use H0:ρ=0 with technology (the data will be given); ρ is the population product moment correlation coefficient.

Worked example 7Paper 2
Six runners’ 5 km times are recorded before and after a training plan. The improvements (before − after, in seconds) are 3, 5, −1, 4, 6, 2. Test at 5% whether the plan reduces times on average.
H0:μd=0, H1:μd>0, where d = before − after
One-sample t-test on the differences: t=3.12, p=0.0131
0.0131<0.05: reject H0. There is evidence the plan reduces times.
Worked example 8Paper 2
For 8 students, hours of practice x are 2, 4, 5, 7, 8, 10, 11, 13 and scores y are 31, 35, 33, 40, 38, 45, 43, 47. Test at 1% whether there is a correlation.
H0:ρ=0, H1:ρ≠0
Linear regression t-test on the GDC: r=0.958, p=0.000186
p<0.01: reject H0. There is evidence of correlation between practice and score.
On your TI-Nspire Calculator tricks →

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 ρ=0: menu → Statistics → Stat Tests → Linear Reg t Test, choosing the alternative ρ≠0, ρ>0 or ρ<0.

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 P(Type I) 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 H0 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 X≥10.
  • 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 H0 is "proved" or "accepted".

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
H0:μ=80, H1:μ>80, σ=10, n=25. Find the critical region at 5%.
x¯>83.3 (83.29)
FluencyP2
X~B(15,0.4), H1:p<0.4, 5% level. Find the critical region.
P(X≤2)=0.0271, P(X≤3)=0.0905: X≤2
FluencyP3
X~Po(6), H1:λ>6, 10% level. Find the critical region and P(Type I).
X≥10; 0.0839
FluencyP4
Describe a Type II error in the context of testing a new medicine against H0: "the medicine has no effect".
Concluding there is no evidence of an effect when the medicine does work.
Problem solvingP5
For the first question, find P(Type II) if the true mean is 86.
X¯~N(86,4); P(X¯≤83.29)=0.0877
Problem solvingP6
Explain why lowering the significance level from 5% to 1% increases the probability of a Type II error.
The critical region gets smaller, so it is harder to reject H0 even when it is false.

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.

Question 1Paper 1[7 marks]

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 X¯.[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)
H0:μ=250, H1:μ<250A1
(b)
X¯~N(250, 12)(M1)
P(X¯<c)=0.05(M1)
x¯<248.4 (248.355…)A1
(c)
248.5 is not in the critical region, so do not reject H0: insufficient evidence the mean has decreasedR1
(d)
P(X¯≥248.355∣μ=247.5)(M1)
0.196A1
Question 2Paper 1[7 marks]

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)
H0:p=0.2, H1:p>0.2A1
(b)
X~B(25,0.2)(M1)
P(X≥8)=0.109, P(X≥9)=0.0468(A1)
X≥9A1
(c)
0.0468A1
(d)
P(X≤8∣p=0.35)(M1)
0.467A1
Question 3Paper 2[9 marks]

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 H0.[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)
H0:λ=3.5, H1:λ<3.5 (per week)A1
X~Po(14)A1
(b)
P(X≤7)=0.0316, P(X≤8)=0.0621(M1)(A1)
X≤7A1
(c)
8 is not in the critical region: do not reject H0; insufficient evidence of a decreaseR1
(d)
X~Po(10), P(X≥8)(M1)
0.780A1
(e)
faults occur independently, or at a constant average rateR1

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.

PaperQuestionFocusDifficulty
Nov 2022 · Paper 1Q16Binomial test for healthy canteen choices, with Type I error★★☆
May 2021 · TZ2 · Paper 1Q15Poisson test for coffee sales after a discount★★☆
May 2025 · TZ3 · Paper 1Q12Poisson test for cars at an intersection: critical region★★☆
May 2022 · TZ2 · Paper 1Q12Cuttlefish weights: critical value and both error probabilities★★★
Nov 2025 · Paper 2Q5Spicy snacks: a binomial test and its errors★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake