Sub topic 2
What the Data Should Show if the Cause Is Real
Prerequisites: You should know basic Lean Six Sigma terms, including DMAIC, defect, process output Y, and input X. You should also understand means, medians, standard deviation, histograms, and run charts.
A suspected root cause is only useful when it makes a prediction that data can check. A statement such as “the night shift causes defects” is a suspicion. It does not yet say what to measure or what result would support it.
A testable hypothesis connects a possible cause to an expected change in the process output:
- Cause, or input X: the condition you suspect.
- Effect, or output Y: the measurable result that may change.
- Prediction: the pattern you expect if X contributes to Y.
For example:
> When units are produced on shift B, the defect rate will be higher than the rate for shift A.
This statement identifies the suspected cause, the output, the comparison group, and the expected direction.
Turn a suspicion into a measurable prediction
Start with a vague cause statement and add measurable details.
| Weak statement | Testable prediction |
|---|---|
| The new setup causes slow cycles. | The mean cycle time with the new setup is at least 1 minute longer than with the old setup. |
| Shift B has more defects. | Shift B has a defect rate at least 5 percentage points higher than shift A during the same product run. |
| Temperature affects fill weight. | For every 1°C increase in temperature, average fill weight decreases by about 0.4 grams. |
The prediction should define:
- The input condition, such as shift, machine, material lot, or setup.
- The output measure, such as defect status, cycle time, or fill weight.
- The comparison, such as another shift or the same process before the change.
- The expected direction or difference.
- The population and time period to which the claim applies.
A useful prediction also includes a practical threshold. A difference can be statistically detectable but too small to matter to customers or the process. If one minute of extra cycle time matters, state that before reviewing the results.
Separate the hypothesis from the prediction
The hypothesis is the claim about the process. The prediction is the observable result that should follow.
For example:
- Hypothesis: A worn cutting tool contributes to burr defects.
- Prediction: Parts made with the worn tool will have a higher burr-defect rate than parts made with a tool below the wear limit.
- Measurement: Record tool-wear level and whether each part has a burr.
- Decision threshold: Treat a difference of 3 percentage points or more as operationally important.
A prediction can be directional or non-directional. A directional prediction says which group should be higher or lower. A non-directional prediction says only that the groups should differ. Use a directional prediction when process knowledge supports it. Do not choose a direction merely because it makes the data easier to interpret.
Check the prediction with grouped data
Suppose the suspected cause is shift assignment and the output is a defect flag. Calculate the defect rate for each shift. A defect rate is the number of defective units divided by the total number of units.
import pandas as pd
df = pd.DataFrame({
"shift": ["A", "A", "A", "B", "B", "B", "B", "A"],
"defect": [0, 1, 0, 1, 1, 0, 1, 0],
})
summary = df.groupby("shift")["defect"].agg(
defect_rate="mean",
units="count"
)
print(summary)Because the defect flag is coded as 0 or 1, its mean is the defect proportion. This calculation describes the observed difference. It does not, by itself, prove that shift caused the difference. The groups may differ in product mix, machine condition, operator experience, or time of day.
Write the prediction before viewing results
Record the hypothesis, measures, comparison, expected direction, practical threshold, and time period before analyzing the data. This prevents changing the claim after seeing an attractive pattern.
Exercise
A team suspects that high humidity causes packaging seals to fail. Write a testable prediction with an input, output, comparison, direction, and practical threshold.
Show answer
When humidity is above 60% relative humidity, the seal-failure rate will be at least 2 percentage points higher than when humidity is 60% or lower, for the same packaging material and product.