Sub topic 3
Type I Error, Type II Error, Alpha, and Power
This chapter assumes you know the DMAIC cycle, basic descriptive statistics, standard deviation, and the difference between a sample and a population. You should also be able to read a histogram or box plot.
The decision in a hypothesis test
In the Analyze phase, a hypothesis test helps you decide whether sample data provide enough evidence to challenge a process assumption.
Suppose a filling process is expected to produce a mean fill volume of 500 milliliters.
- The null hypothesis, \(H_0\), states that the process mean is 500 milliliters.
- The alternative hypothesis, \(H_1\), states that the process mean is different from 500 milliliters.
The test uses sample data to decide whether to reject \(H_0\). It does not prove that either hypothesis is absolutely true.
Type I and Type II errors
A hypothesis test can make two kinds of wrong decisions.
| Reality | Decision: reject \(H_0\) | Decision: do not reject \(H_0\) |
|---|---|---|
| \(H_0\) is true | Type I error | Correct decision |
| \(H_0\) is false | Correct decision | Type II error |
A Type I error occurs when you reject a true null hypothesis. In the filling example, you conclude that the mean fill differs from 500 milliliters when the process is actually on target.
A Type II error occurs when you do not reject a false null hypothesis. You fail to detect that the process mean has moved away from 500 milliliters.
In quality work, the cost of each error depends on the situation. A Type I error might lead to an unnecessary process adjustment. A Type II error might allow an out-of-control process to continue producing defects.
Alpha and the decision rule
The significance level, written as \(\alpha\), is the maximum Type I error rate you accept before running the test. A common choice is \(\alpha = 0.05\).
After calculating a p-value:
- If the p-value is less than or equal to \(\alpha\), reject \(H_0\).
- If the p-value is greater than \(\alpha\), do not reject \(H_0\).
An alpha of 0.05 does not mean that there is a 5% probability that \(H0\) is true. It means that, if \(H0\) were true and the test were repeated many times, the chosen decision rule would falsely reject \(H_0\) about 5% of the time.
Power and Type II error
The power of a test is the probability that it detects a real effect of a specified size. Power is related to Type II error:
\[ \text{Power} = 1 - \beta \]
Here, \(\beta\) is the probability of a Type II error for a particular effect size.
Power increases when:
- The sample size increases.
- The true process shift is larger.
- Measurement variation decreases.
- The chosen alpha increases.
Many studies target 80% power. This means the test has a good chance of detecting the stated effect, but it does not guarantee detection of every possible shift.
Planning a useful test
Before collecting data, define:
- The smallest process change worth detecting.
- The acceptable alpha level.
- The target power.
- An estimate of process variation.
- The sample size required.
A statistically detectable shift may still be too small to matter operationally. Always compare the expected effect with engineering limits, customer requirements, cost, and safety consequences.
Exercise
A test uses alpha = 0.05 and produces a p-value of 0.08. What should you conclude, and what should you not conclude?
Show answer
Do not reject the null hypothesis at the 0.05 level. This result does not prove that the null hypothesis is true, and it does not establish that the process has no meaningful effect.