ML0068 Type I vs Type II Errors

What are Type I and Type II errors, and how do they trade off?

Answer

A Type I error (false positive) rejects a true null hypothesis: you announce an effect that is not there. A Type II error (false negative) fails to reject a false null: a real effect goes undetected. Their rates are \alpha, the significance level you choose up front, and \beta, with power equal to 1 - \beta. For a fixed sample size the two trade off through the decision threshold: making the test stricter lowers \alpha but raises \beta, and only more data or lower metric variance reduces both at once.

(1) Type I (\alpha): rejecting a true null, the “convicting the innocent” error. It is controlled by fixing \alpha before looking at data and by correcting when many hypotheses are tested at once.
(2) Type II (\beta): missing a real effect. Power 1 - \beta grows with sample size, true effect size, and lower metric variance.
(3) Costs Set the Threshold: the right balance is a business decision. Gmail blocks over 99.9% of spam while misrouting only about 0.05% of legitimate mail, because a false positive (lost mail) costs far more than a false negative (spam seen in the inbox).

Two overlapping normal curves: the null distribution centered left and the alternative centered right, with a vertical decision threshold; the right tail of the null is shaded alpha and the left part of the alternative is shaded beta

Figure 1: Sampling distribution of the test statistic under H_0 (left) and H_1 (right) with one decision threshold. The right tail of H_0 is \alpha (Type I), the part of H_1 left of the threshold is \beta (Type II), and the rest of H_1 is power.

Mathematical Formulation:
\alpha = \Pr(\text{reject } H_0 \mid H_0 \text{ true})
\beta = \Pr(\text{fail to reject } H_0 \mid H_1 \text{ true})
\text{power} = 1 - \beta

Where:

  • H_0 is the null hypothesis (no effect) and H_1 the alternative (a real effect exists).
  • \alpha is the significance level chosen before the test; \beta is the false negative rate under a specific true effect.
  • Power is the probability of detecting the effect when it is real, and it rises with sample size, effect size, and reduced variance.
Two panels of the same null and alternative curves: left panel with a strict threshold far right showing tiny alpha and large beta, right panel with a lenient threshold showing larger alpha and small beta

Figure 2: Moving the threshold at fixed sample size swaps the errors: stricter (left panel) shrinks \alpha and inflates \beta; looser (right panel) does the reverse. Shrinking both at once requires more data or lower variance, which pulls the two curves apart.

Decision \ RealityH0 True (No Effect)H1 True (Real Effect)
Reject H0Type I error, rate \alphaCorrect detection, power 1 - \beta
Fail to Reject H0Correct, rate 1 - \alphaType II error, rate \beta

Login to view more content


Log in to track your progress

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *