Sub topic 1
What the Analyze Phase Asks of a Hypothesis Test
In Six Sigma, a project team reaches the Analyze phase holding a baseline from Measure. The baseline might be a defect rate of 4.1%, a mean cycle time of 38 minutes, or a process sigma level. The team also has a list of suspected causes. Analyze decides which suspects the data support and which they don't. A hypothesis test is the tool that makes this decision explicit and defensible. This chapter explains what the phase expects from a test, so that the later chapters on choosing one have a clear goal.
Prerequisites
This chapter assumes you already know:
- Basic descriptive statistics: mean, median, and standard deviation.
- The DMAIC cycle (Define, Measure, Analyze, Improve, Control) and what each phase produces.
- How to read histograms and box plots.
- The difference between a sample and a population.
You don't need to know any test procedures yet. Later chapters cover them.
Where Analyze sits in DMAIC
Measure produces data and a baseline. Improve designs and pilots solutions. Analyze sits between them and answers one question: which inputs (X variables) actually drive the output (Y variable)?
If a team skips this step, Improve becomes a list of guesses. The team may redesign a fixture when the real cause is the shift schedule. The phase therefore needs evidence that separates real effects from noise.
What the phase asks of a test
Analyze places four demands on any hypothesis test.
- It must answer a specific process question. "Is the process bad?" is too vague. "Does Shift 2 produce a higher defect rate than Shift 1?" can be tested.
- It must separate signal from noise. Every sample varies. Two machines will almost never show identical sample means, even if they are identical machines. The test asks whether the observed gap is larger than sampling variation alone would plausibly produce.
- It must be repeatable and auditable. Another black belt, given the same data and the same stated assumptions, should reach the same conclusion. This is why you state hypotheses and a decision rule before looking at results.
- It must lead to an action. The result should decide whether a candidate X goes forward to Improve. A statistically correct answer that no one can act on has failed the phase's purpose.
From a project question to a testable question
Every test in this tutorial starts from the same translation step. You take a plain-language claim and name the Y, the X, and the comparison being made. The table shows three examples.
| Project question | Y (output) | X (input) | Comparison |
|---|---|---|---|
| Is our fill weight different from the 500 g target? | Fill weight (continuous) | None, compared to a target | One sample against a fixed value |
| Did the new fixture change cycle time? | Cycle time (continuous) | Fixture: old or new (discrete) | Two groups |
| Is the defect rate linked to shift? | Defective or not (discrete) | Shift (discrete) | Association between categories |
The next chapters build on the Y and X columns. Whether each is continuous or discrete narrows the list of suitable tests. Do this translation first, because a test chosen before the question is clear usually answers a different question.
The core idea, shown with a simulation
Before any formal test, it helps to see the logic the Analyze phase relies on. Suppose two lines show different sample means. If the line label made no difference, then shuffling the labels across the measurements should produce gaps just as large fairly often. If shuffled gaps rarely match the observed gap, the observed gap is hard to explain by chance.
import numpy as np
rng = np.random.default_rng(1)
line_1 = rng.normal(loc=50.0, scale=2.0, size=30)
line_2 = rng.normal(loc=51.0, scale=2.0, size=30)
observed = line_2.mean() - line_1.mean()
pooled = np.concatenate([line_1, line_2])
n_shuffles = 10000
as_extreme = 0
for _ in range(n_shuffles):
rng.shuffle(pooled)
diff = pooled[30:].mean() - pooled[:30].mean()
if abs(diff) >= abs(observed):
as_extreme += 1
print("Observed difference in means:", observed)
print("Share of shuffles at least as extreme:", as_extreme / n_shuffles)The printed share is a rough, hands-on cousin of the p-value. Formal tests reach the same kind of answer with a mathematical shortcut that needs assumptions about the data. Those assumptions are the reason the rest of this tutorial exists. The shortcut is only valid when the data behave as the test expects.
What a test cannot do
Knowing the limits keeps the Analyze phase honest.
- It cannot prove a cause. A test can show that Y differs across levels of X. Establishing that X causes the change needs a sound design, such as a controlled trial or a comparison that rules out confounders.
- It cannot fix bad data. If the measurement system is unreliable, the test inherits that unreliability. A measurement system analysis from the Measure phase should come first.
- It cannot say whether a difference matters. A tiny difference can be statistically detectable in a large sample and still be worthless to the business. A later chapter covers practical significance.
- It cannot rescue a poorly framed question. A precise answer to the wrong question wastes the team's time.
Common errors at this stage
These mistakes show up repeatedly in Analyze work.
- Testing everything. Running dozens of tests on every available X and reporting the ones that "work" inflates false positives. Start from process knowledge and a short list of suspects. A later chapter covers multiple comparisons.
- Choosing the test after seeing the answer. If you try several tests and keep the one with the smallest p-value, the stated error rates no longer hold. Decide the test and the decision rule first.
- Ignoring plots. Look at histograms, box plots, and time-ordered plots before testing. A plot often reveals outliers, mixed populations, or drift that no summary statistic shows.
- Mixing up the unit of analysis. Ten measurements from one part are not ten independent parts. Treating repeated readings as independent samples overstates the evidence.
- Reading "no significant difference" as "no difference." A non-significant result may only mean the sample was too small to detect an effect. Sample size and power get their own chapter.
Summary of the working model
Analyze is a filter. Suspected causes go in, and each one becomes a hypothesis tied to a Y, an X, and a comparison. A test weighs the data against chance, and the result decides what moves forward. The quality of that decision depends on the question, the data, and the assumptions, which the following chapters take in turn: writing hypotheses, understanding errors and p-values, classifying data, and picking a test.
Exercise
A team suspects that the supplier of a raw material affects the tensile strength of finished parts. Three suppliers are in use, and strength was measured on 40 parts from each. Name the Y, the X, whether each is continuous or discrete, and one thing a test result alone could not establish.
Show answer
The Y is tensile strength, which is continuous. The X is supplier, which is discrete with three levels. A test could show that mean strength differs across suppliers, but it could not alone prove that the supplier causes the difference. Other factors, such as the production line or the time period in which each supplier's material was used, could be confounded with supplier unless the data were collected with a design that controls for them.
Exercise
In the shuffling simulation, 3% of shuffles produced a gap at least as large as the observed gap. In plain words, what does that suggest about the observed gap, and what does it not tell you?
Show answer
It suggests the observed gap would be fairly unusual if the line label had no effect, so chance alone is a weak explanation. It does not tell you that the line causes the gap, how large the gap is in practical terms, or that there is a 97% probability that the lines differ.