FS1 8.1 - Type I and Type II errors

FS1 8.1 - Type I and Type II errors

A statistical decision can be wrong in two different ways: rejecting a true claim or missing a real change. You will identify each error in context and calculate its probability using the correct population model and the test's fixed rejection rule.

Two ways a test can make an error

A test rejects a null hypothesis using a 5%5\% significance level. Does that mean there is a 5%5\% probability that this rejected hypothesis is actually true?

No. The significance calculation starts by assuming the null is true and asks how often the rule would reject it. That is a different direction of conditioning from asking whether the null is true after seeing a rejection.

You already know

A test has a null hypothesis H0H_0, an alternative H1H_1, and a critical region CC of outcomes that cause rejection. Earlier Poisson tests calculate probabilities under the null model; a conclusion of insufficient evidence does not prove H0H_0.

To name an error, you need both the decision and the true population state. The observed count alone does not tell you whether a mistake has occurred.

Type I and Type II errors

A Type I error is rejecting H0H_0 when H0H_0 is true.

A Type II error is failing to reject H0H_0 when H0H_0 is false. Its probability is evaluated at a specified true alternative parameter.

For example, if H0H_0 says a machine's hourly fault mean is unchanged, a Type I error reports evidence of a change when there is none. A Type II error misses a change that really has occurred.

True population stateReject H0H_0Do not reject H0H_0
H0H_0 is trueType I errorCorrect decision
The specified alternative is trueCorrect detectionType II error

Neither error probability is the probability that a hypothesis is true. Also, Type I and Type II error probabilities are calculated under different population states, so they are not complements of each other.

Key idea

Keep truth and decision separate: Type I is a false rejection under the null, while Type II is a missed rejection under a specified true alternative.

The opening question reverses the condition. A 5%5\% significance limit controls false rejection when H0H_0 holds; it does not assign probabilities to the hypotheses after the data arrive.

False rejection is calculated under the null model

Once a rejection rule is fixed, its Type I error probability is the probability of that critical region under H0H_0. Do not alter the cutoff during this calculation.

Probability of a Type I error

For a fixed critical region CC and a specified null parameter θ0\theta_0,

P(Type I error)=Pθ0(X∈C)\mathrm P(\text{Type I error}) =\mathrm P_{\theta_0}(X\in C)

The subscript records which true population parameter is used. For a discrete test this actual probability need not equal a stated significance limit. Not in the formula booklet: learn it.

Consider H0:λ=4H_0:\lambda=4 against H1:λ>4H_1:\lambda>4, where λ\lambda is a population mean number of faults per hour. The statistic XX is a one-hour count, with a suitable Poisson model. Large counts lead to rejection.

Worked example 1: the false-alarm probability

Question. The fault test rejects when X≥9X\ge9. Find the probability of a Type I error, to four decimal places.

Plan. Assume the null mean really is 44, and calculate the inclusive critical tail.

X∼Po⁡(4)true null modelP(Type I error)=Pλ=4(X≥9)rejection while H0 holds=1−Pλ=4(X≤8)include outcome 9=0.0213634…Poisson upper tail\begin{aligned} X&\sim\operatorname{Po}(4) &&\text{true null model}\\ \mathrm P(\text{Type I error}) &=\mathrm P_{\lambda=4}(X\ge9) &&\text{rejection while }H_0\text{ holds}\\ &=1-\mathrm P_{\lambda=4}(X\le8) &&\text{include outcome }9\\ &=0.0213634\ldots &&\text{Poisson upper tail} \end{aligned}

Why this step? A Type I error assumes the original mean is correct; replacing it with an increased mean would no longer measure a false alarm.

Answer. The Type I error probability is 0.02140.0214.

Check. This is below 0.050.05, consistent with the 5%5\% critical region constructed in the earlier Poisson lesson.

Worked example 2 changes only the rejection cutoff from 99 to 1010, making the rule more demanding.

Worked example 2: requiring a larger count

Question. Find the Type I error probability if the same hypotheses are tested by rejecting when X≥10X\ge10.

Plan. Retain the true null distribution and move the tail boundary.

X∼Po⁡(4)same true nullP(Type I error)=Pλ=4(X≥10)=1−Pλ=4(X≤9)new inclusive tail=0.0081322…\begin{aligned} X&\sim\operatorname{Po}(4) &&\text{same true null}\\ \mathrm P(\text{Type I error}) &=\mathrm P_{\lambda=4}(X\ge10)\\ &=1-\mathrm P_{\lambda=4}(X\le9) &&\text{new inclusive tail}\\ &=0.0081322\ldots \end{aligned}

Why this step? The stricter rule rejects fewer outcomes, reducing the probability of a false rejection.

Answer. The probability is 0.00810.0081, to four decimal places.

Check. X≥10X\ge10 is contained in X≥9X\ge9, so its probability must be smaller under the same model.

This reduction is not a free improvement in every respect. A rule that rarely rejects can also miss genuine changes; that is a separate calculation under the alternative.

Watch out

Wrong: multiply the critical-tail probability by an invented probability that H0H_0 is true. Right: Type I error is already a conditional calculation under a true null.

Raise the cutoff one more time.

A missed change is calculated under the alternative

Return to the original rule, rejecting for X≥9X\ge9. If the mean has genuinely increased, a Type II error occurs when the observed count still lies in the non-rejection region X≤8X\le8.

The test's cutoff stays fixed. Change the probability model to the specified true alternative, rather than designing a new critical region using that alternative.

Probability of a Type II error

For fixed critical region CC, at a specified true alternative parameter θ1\theta_1,

β(θ1)=Pθ1(X∉C)\beta(\theta_1) =\mathrm P_{\theta_1}(X\notin C)

This is non-rejection under the true alternative model. Its value can change with θ1\theta_1; it is not determined by the stated significance level alone. Not in the formula booklet: learn it.

The complement of β(θ1)\beta(\theta_1) concerns a correct detection under that same alternative. By contrast, a Type I probability uses the null parameter, so it cannot generally be found by subtracting β\beta from 11.

Worked example 3: missing a genuine increase

Question. For the rule X≥9X\ge9, find the Type II error probability if the true hourly mean is 66, to four decimal places.

Plan. Use the actual mean 66, and sum the outcomes that fail to reject.

X∼Po⁡(6)specified true alternativeβ(6)=Pλ=6(X≤8)non-rejection region=0.8472374…Poisson cumulative probability\begin{aligned} X&\sim\operatorname{Po}(6) &&\text{specified true alternative}\\ \beta(6)&=\mathrm P_{\lambda=6}(X\le8) &&\text{non-rejection region}\\ &=0.8472374\ldots &&\text{Poisson cumulative probability} \end{aligned}

Why this step? The mean really has risen, so the error consists of observing too few faults for the fixed rule to detect the increase.

Answer. The Type II error probability is 0.84720.8472.

Check. A mean of 66 is still below the rejection cutoff 99; missing this change can be quite likely.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account