CFA Program Level I
Type I vs Type II errors in hypothesis testing: CFA Level I
A Type I error is rejecting a null hypothesis that is true, and its probability is the significance level, alpha. A Type II error is failing to reject a null hypothesis that is false, with probability beta. For a given sample, lowering alpha raises beta; a larger sample can lower both.
The four outcomes
If the null is true and you fail to reject it, the decision is correct. If the null is true and you reject it, that is a Type I error, a false positive. Its probability is the significance level, alpha, which you choose before the test.
If the null is false and you fail to reject it, that is a Type II error, with probability beta. If the null is false and you reject it, the decision is correct. The probability of that, 1 - beta, is the power of the test.
NIST notes that beta is not chosen directly. It depends on how far the true value is from the null: a large difference gives a small beta, a small difference a large beta.
Alpha and beta trade off
For a fixed sample, beta increases as alpha decreases. Moving from a 5% to a 1% significance level makes you less likely to reject a true null, but more likely to miss a real effect.
The way to lower both is more data. NIST gives the minimum sample size for a two-sided test of a mean with known standard deviation sigma as N = (z(1 - alpha/2) + z(1 - beta))^2 (sigma / delta)^2, where delta is the shift you want to detect. For a one-sided test, z(1 - alpha) replaces z(1 - alpha/2).
Example: to detect a shift of one standard deviation (delta = sigma) with a two-sided test at alpha = 0.05 and beta = 0.10, N = (1.960 + 1.282)^2 = 10.51, so 11 observations. Cutting beta to 0.05 gives (1.960 + 1.645)^2 = 13.00, so 13. A one-sided test at alpha = 0.05 and beta = 0.10 needs (1.645 + 1.282)^2 = 8.57, so 9.
Rejection rules for a test of a mean
With the standard deviation estimated from the sample, the statistic is t = (sample mean - mu0) / (s / √N), with N - 1 degrees of freedom.
Two-sided, H0: mu = mu0: reject if |t| ≥ t(1 - alpha/2, N - 1). Upper one-sided, H0: mu ≤ mu0: reject if t ≥ t(1 - alpha, N - 1). Lower one-sided, H0: mu ≥ mu0: reject if t ≤ t(alpha, N - 1).
In a lower one-sided test, a large positive statistic is no evidence against H0, so you fail to reject it. The critical region is the set of statistic values that lead to rejection.
Where the exam catches people
- Believing the probability of a Type I error equals the confidence level: it equals the significance level, alpha, which is 1 minus the confidence level.
- Believing a lower significance level makes the test better in every way: on the same sample it raises beta, the chance of missing a real effect.
- Believing a Type II error means rejecting a true null: that is a Type I error; a Type II error is failing to reject a false null.
- Believing a lower beta needs fewer observations: reducing beta raises z(1 - beta), so the minimum sample size rises.
- Believing any statistic far from zero rejects a one-sided null: in a lower-tail test only values below the lower critical value reject.