Sub topic 1
What the Analyze phase asks of a hypothesis test
Prerequisites
This chapter assumes you can calculate a mean, median, and standard deviation, read histograms and box plots, and describe the DMAIC cycle. You should also understand that a sample is a subset of a larger population.
What the Analyze phase asks
The Analyze phase finds which inputs (X) drive the output (Y) that the project targets. A hypothesis test checks whether an observed difference, such as two shifts producing different defect rates, is likely real or just noise in the sample.
Writing the null and alternative hypotheses
The null hypothesis (H0) states that no difference or effect exists. The alternative hypothesis (H1) states the difference you want to detect. Write both before you analyze the data.
For example, H0: mean fill time on Line A equals mean fill time on Line B. H1: mean fill time on Line A differs from Line B.
Type I error, Type II error, alpha, and power
A Type I error rejects H0 when H0 is true. Its probability is alpha, usually set at 0.05. A Type II error fails to reject H0 when H1 is true. Its probability is beta. Power is 1 minus beta, commonly targeted at 0.80.
| Decision | H0 is true | H0 is false |
|---|---|---|
| Reject H0 | Type I error (alpha) | Correct decision (power) |
| Fail to reject H0 | Correct decision | Type II error (beta) |
Reading a p-value and making the decision
The p-value is the probability of a result at least as extreme as the sample result, assuming H0 is true. It is not the probability that H0 is true. Compare it with alpha:
- If p is less than or equal to alpha, reject H0.
- If p is greater than alpha, fail to reject H0. This does not prove H0 is true.
Classifying Y and X as continuous or discrete
Continuous data are measured on a scale, such as cycle time in seconds. Discrete data are counted or sorted into categories, such as defect counts or pass/fail results. This classification determines which family of tests you can use in later chapters.
Exercise
A test returns p = 0.03 and alpha is set at 0.05. What decision do you make, and why?
Show answer
Reject H0, because 0.03 is less than 0.05. The sample data indicate a difference at the chosen risk level.