Sub topic 1
From suspicion to a testable hypothesis
Prerequisites
This chapter assumes you already know the following:
- Basic Lean Six Sigma vocabulary: DMAIC, defect, process output Y, and process input X.
- How to read a cause-and-effect (fishbone) diagram or a 5 Whys chain.
- Descriptive statistics: mean, median, and standard deviation.
- How to read histograms and run charts.
You do not need to run a hypothesis test yet. This chapter prepares the claim that later chapters will test.
Why a suspicion is not yet a root cause
At the end of brainstorming in the Analyze phase, a team usually holds a list of possible causes. A fishbone diagram might show "second shift", "worn fixture", "supplier lot", and "operator training". A 5 Whys chain might end with "the setup sheet is out of date". Each of these is a suspicion. It comes from experience, from opinion, or from a plausible story about the process.
Plausible stories are cheap and often wrong. If the team acts on a wrong cause, it spends money on the Improve phase, the defect rate does not move, and the team loses credibility. Verification is the step between "we think" and "we know". It asks one question: does the process data support this cause as a real driver of Y?
In this tutorial a root cause is an input or condition X that, when it changes, changes the output Y. A suspected root cause is an X that the team has named but has not yet checked against data.
The shape of a testable hypothesis
A hypothesis is a claim that data can contradict. "Shift B is a problem" cannot be contradicted, because "problem" has no definition. "The defect rate on shift B is higher than on shift A" can be contradicted, because you can count defects on each shift.
A testable hypothesis names four things:
- The X: the input or condition you suspect.
- The Y: the output measure that should respond.
- The direction or kind of difference: higher, lower, different, or related.
- The population and time window: which process, which units, and which period.
Compare these two statements.
| Suspicion | Testable hypothesis |
|---|---|
| The new setup is slowing us down. | Mean cycle time for the new setup is longer than for the old setup on line 3, for jobs run between 1 March and 31 March. |
| Shift B makes more defects. | The proportion of defective units from shift B differs from the proportion from shift A on line 3, measured over the last four weeks. |
| Humidity affects the coating. | Coating thickness is related to room humidity at the time of coating, for batches produced on line 2. |
Each hypothesis in the right-hand column gives you something to measure and a way to be wrong.
Null and alternative hypotheses
Statistical tests work with a pair of competing statements.
- The null hypothesis, written H0, says there is no effect. The suspected X does not change Y.
- The alternative hypothesis, written H1 (or Ha), says there is an effect. This is usually the team's suspected cause.
For the shift example:
- H0: the defect proportion is the same on shift A and shift B.
- H1: the defect proportion differs between shift A and shift B.
The test asks whether the data are surprising enough under H0 to make you doubt it. You never prove H1 directly. You collect evidence against H0. Chapter 8 covers how to read that evidence. For now, the important point is that you must write both statements before you look at the result.
One-sided or two-sided
A two-sided alternative says "different". A one-sided alternative says "higher" or "lower" only. Choose before you see the data, and base the choice on what you would do with each outcome.
- If a difference in either direction would change your decision, use two-sided. This is the safer default.
- Use one-sided only when an effect in the opposite direction is impossible or would lead to exactly the same action as no effect.
Picking the direction after seeing which group looks worse inflates your false-positive risk. A one-sided test chosen after the fact is a common way to turn a borderline result into a "significant" one.
From a fishbone branch to a hypothesis
The practical route has five steps.
- Pick one suspected cause. Do not test "operator, machine, and material" together. Test one X at a time so a result points to one thing.
- Define Y with an operational definition. An operational definition says exactly how Y is measured, by whom, with what instrument, and in what unit. "Defect" must mean the same thing for every inspector. "Cycle time" must say where the clock starts and stops.
- Define X as a comparison. Decide what the groups or levels of X are. Shift A versus shift B, old setup versus new setup, supplier 1 versus supplier 2, or humidity as a number.
- State H0 and H1. Use plain words first, then add the statistic: a difference in means, a difference in proportions, or a relationship.
- Record the scope. Write down the line, product, and period. A hypothesis that is true for line 3 in March may say nothing about line 4 in July.
A worked example
A packaging team sees a high rate of seal failures. Their fishbone diagram lists "second shift" as a possible cause. A team member says, "It's always second shift."
Working through the steps:
- X: shift (first or second).
- Y: proportion of cartons that fail the seal inspection, as defined in work instruction WI-22 (a failure is any seal gap over 1 mm).
- Comparison: first shift versus second shift.
- H0: the seal failure proportion is the same on both shifts.
- H1: the seal failure proportion differs between the shifts.
- Scope: line 3, all cartons inspected in the last four weeks.
The team now has a claim that a table of counts can support or contradict.
Writing the hypothesis in code
Writing the hypothesis as a small structured record keeps the team honest. It forces you to fill in each part before analysis starts, and it can be saved with the project files.
from dataclasses import dataclass, asdict
import json
@dataclass
class RootCauseHypothesis:
x: str
y: str
y_definition: str
comparison: str
h0: str
h1: str
sidedness: str
scope: str
def is_complete(self) -> bool:
return all(str(value).strip() for value in asdict(self).values())
hyp = RootCauseHypothesis(
x="Shift (first or second)",
y="Proportion of cartons failing seal inspection",
y_definition="Failure = seal gap over 1 mm, per work instruction WI-22",
comparison="First shift versus second shift",
h0="Seal failure proportion is equal on both shifts",
h1="Seal failure proportion differs between shifts",
sidedness="two-sided",
scope="Line 3, cartons inspected in the last four weeks",
)
print("Complete:", hyp.is_complete())
print(json.dumps(asdict(hyp), indent=2))This record does no statistics. Its value is that an empty field becomes visible.
Common errors
These mistakes appear often when teams write hypotheses.
- A vague X. "Training" is not testable. "Operators with less than 90 days on the line" is.
- A vague Y. "Quality" cannot be measured. A defect proportion, a mean thickness, or a count of returns can.
- Several causes in one claim. "Second shift with the old fixture and a new supplier" cannot be separated afterwards.
- A claim that cannot fail. "Some units may be defective because of the setup" is true whatever happens. A hypothesis must forbid some outcomes.
- Choosing the hypothesis after the data. If you scan many splits of the data (shift, day of week, operator, lot) and then write a hypothesis about the one that looks different, you have tested it on the same data that suggested it. With enough splits, some difference will appear by chance. Treat such a finding as a new suspicion that needs fresh data.
- Confusing H0 and H1. The null is the "no effect" statement. Teams often reverse them because the cause they care about feels like the main claim.
- Skipping the scope. Without a time window and a process boundary, no one can later reproduce or challenge the result.
Where the hypothesis sits in the verification flow
The hypothesis is the first step of verification. Every later step depends on it: the prediction, the data plan, the data checks, the graphs, the test, and the decision.
The loop at the bottom matters. A rejected cause is not a failed project. It removes one explanation and sends the team back to the list of other suspects.
A quick check before you move on
Before you leave this step, the team should be able to answer these questions without hesitation.
- What is the one X being tested?
- How exactly is Y measured, and by whom?
- What are H0 and H1 in words?
- Is the alternative one-sided or two-sided, and why?
- Which process, units, and period does the claim cover?
- What would you do if the data contradict the claim?
The last question is the most useful. If the team would continue with the same fix whatever the data say, the hypothesis is decoration and the verification is wasted effort. A real hypothesis changes what you do next.
Exercise
A team writes this statement: "Operator training causes a lot of the rework on line 5." Rewrite it as a testable hypothesis. Give the X, the Y with an operational definition, H0, H1, whether it is one-sided or two-sided, and the scope.
Show answer
One acceptable answer. X: operator experience, in two groups: operators with fewer than 90 days on line 5 and operators with 90 days or more. Y: proportion of units sent to rework, where a unit counts as rework if it fails the final visual check defined in the line 5 inspection instruction and is returned to station 4. H0: the rework proportion is the same for both groups. H1: the rework proportion differs between the groups. Two-sided, because a lower rate for new operators would also change the team's understanding (for example, if new operators are supervised more closely). Scope: line 5, all units produced in the last six weeks, with each unit linked to the operator who ran it. The key features are one X, a measurable Y with a stated definition, two competing statements, a stated direction with a reason, and a defined scope.
Exercise
A team compares shift, day of week, operator, supplier lot, and machine against the defect flag in last month's data. Only supplier lot shows a clear difference. They write the hypothesis "Supplier lot affects defect rate" and test it on the same month of data. What is wrong with this approach, and what should they do?
Show answer
The hypothesis was chosen because it looked different in this data, so testing it on the same data is circular. With five factors checked, one is likely to show a difference by chance. The team should treat the supplier lot as a new suspicion, write a hypothesis with a definition of Y, H0, H1, and scope, and collect a fresh, planned sample (for example, the next four weeks of production with lot recorded for each unit) to test it.