Sub topic 14
Reducing variation with DMAIC
This chapter assumes you have read the earlier chapters of this tutorial. You should know the difference between common-cause and special-cause variation, how to compute a mean and sample standard deviation, how an individuals control chart sets its limits, and how Cp, Cpk and sigma level compare spread to specification limits. Here those tools are used in a fixed order of work.
What DMAIC is
DMAIC is the improvement cycle used in Six Sigma projects. The letters stand for Define, Measure, Analyze, Improve and Control. Each phase answers one question, and each phase ends with a result that the next phase needs.
The cycle exists because variation problems are easy to misdiagnose. A team that jumps straight to a fix often adjusts a stable process (tampering), treats a special cause as if it were routine noise, or optimizes a number that no customer cares about. DMAIC forces the team to state the problem, measure it, find the cause, change the cause, and then prove the change lasts.
Define: choose an output and a target
Define turns a vague complaint ("the shafts are bad") into a measurable statement. A good problem statement names four things:
- The output (a critical-to-quality characteristic), such as shaft diameter in mm.
- The customer requirement, as specification limits, such as 9.90 to 10.10 mm.
- The gap, such as "about 6% of shafts are outside the limits".
- The goal, such as "Cpk of at least 1.33 within three months".
The output must be something you can measure on a continuous scale or count as defects. Avoid stating the solution in the problem ("install a new lathe"). That fixes the answer before anyone has looked at the data.
Measure: baseline and measurement system
Measure establishes how the process behaves now. It has two jobs.
First, check the measurement system. Part of any observed spread comes from the gauge and the people using it. If the gauge contributes a large share of the variation, improving the process will not show up in the data. A gauge study (often called measurement system analysis) comes before any baseline.
Second, collect a baseline in time order and chart it. Capability numbers describe a process only if the process is stable. If the chart shows special causes, Cp and Cpk are not meaningful yet, because the spread is not predictable. Remove or explain the special causes first.
The following code computes control limits for the baseline and then capability against the specification. It reuses the individuals-chart method (average moving range divided by 1.128) and the standard Cp and Cpk formulas.
from statistics import mean, stdev
def individuals_chart_limits(data):
# Sigma from the average moving range; 1.128 is d2 for subgroups of size 2.
moving_ranges = [abs(b - a) for a, b in zip(data, data[1:])]
sigma_hat = mean(moving_ranges) / 1.128
center = mean(data)
return center - 3 * sigma_hat, center, center + 3 * sigma_hat
def out_of_control_points(data):
lcl, _, ucl = individuals_chart_limits(data)
return [(i, x) for i, x in enumerate(data) if x < lcl or x > ucl]
def capability(data, lsl, usl):
m, s = mean(data), stdev(data)
cp = (usl - lsl) / (6 * s)
cpk = min(usl - m, m - lsl) / (3 * s)
return cp, cpk
# Shaft diameters in mm, in production order
baseline = [10.02, 9.98, 10.05, 9.97, 10.01, 10.03, 9.99, 10.00, 10.04, 9.96]
LSL, USL = 9.90, 10.10
lcl, center, ucl = individuals_chart_limits(baseline)
print("limits:", round(lcl, 3), round(center, 3), round(ucl, 3))
print("signals:", out_of_control_points(baseline))
cp, cpk = capability(baseline, LSL, USL)
print("baseline Cp:", round(cp, 2), "Cpk:", round(cpk, 2))With these ten values no point falls outside the limits, so the process is stable enough to assess. Cp is about 1.12 and Cpk about 1.06. Both are below the 1.33 goal, which means the common-cause spread itself is too wide for these specification limits. Ten points is only enough for illustration. A real baseline needs many more, commonly 20 to 25 subgroups or more.
Analyze: find the sources that matter
Analyze asks why the spread is as wide as it is. The answer comes from data, not from opinion. Common methods:
- Stratify the data by machine, shift, operator, material lot or supplier, and compare means and spreads between groups. A large difference between groups points to a source.
- Use a cause-and-effect diagram to list candidate sources under people, machines, materials, methods, measurement and environment. Treat the list as hypotheses, not findings.
- Test hypotheses with statistical tests, regression or designed experiments, so that a suspected cause is confirmed before anyone changes the process.
The aim is to find the few inputs that account for most of the variation. Because variation from independent sources adds as variances rather than as standard deviations, one dominant source often explains most of the total spread. Reducing a minor source barely moves the result.
Improve: change the cause, then verify
Improve changes the identified inputs and tests whether the output really got better. Typical actions are tightening a method (a standard work instruction, a fixture that removes operator choice), upgrading or maintaining equipment, qualifying suppliers, and adding error-proofing.
Pilot first on a small scale, then compare before and after on the same measure, with the same gauge, in time order. Two points matter here:
- Reducing spread and recentering the mean are separate gains. Cp measures only spread. Cpk also falls when the mean drifts toward a limit. If Cp is good but Cpk is poor, centering is the cheaper fix.
- A before-and-after difference needs a statistical comparison, not a glance at two averages. Random variation alone can make a small change look like an improvement.
Continuing the example, suppose the pilot added a fixture that locates the part the same way every time. Here is the pilot data and the comparison.
from statistics import mean, stdev
def capability(data, lsl, usl):
m, s = mean(data), stdev(data)
cp = (usl - lsl) / (6 * s)
cpk = min(usl - m, m - lsl) / (3 * s)
return cp, cpk
LSL, USL = 9.90, 10.10
baseline = [10.02, 9.98, 10.05, 9.97, 10.01, 10.03, 9.99, 10.00, 10.04, 9.96]
pilot = [10.01, 9.99, 10.02, 9.99, 10.00, 10.01, 9.99, 10.00, 10.02, 9.98]
for name, data in [("baseline", baseline), ("pilot", pilot)]:
cp, cpk = capability(data, LSL, USL)
print(f"{name}: mean={mean(data):.3f} s={stdev(data):.4f} Cp={cp:.2f} Cpk={cpk:.2f}")The standard deviation drops from about 0.030 mm to about 0.014 mm, and Cpk rises from about 1.06 to about 2.4. A change this large is unlikely to be chance, yet ten parts per group is still a small sample. Before rollout, confirm the gain with a larger run and a proper test, such as an F-test on the variances.
Control: make the gain last
Without Control, processes drift back. The old method returns, a new operator is not trained, or maintenance lapses. Control builds the safeguards:
- Put the individuals chart (or another suited to the data) on the improved process, with limits computed from the improved baseline. Staff then see signals while they are still small.
- Write a reaction plan: who investigates a point outside the limits, and what they check first. Make clear that points inside the limits are not a reason to adjust the process.
- Update standard work, training material, and the control plan or FMEA so the new method is the documented one.
- Track the capability index over time. A falling Cpk with a stable chart means the mean or spread has changed slowly. A signal on the chart means a special cause.
- Hand the process to its owner and close the project with the measured, verified result.
How the phases map to the earlier tools
| Phase | Main question | Variation tools used |
|---|---|---|
| Define | Which output and what limits? | Specification limits, defect definition |
| Measure | How wide is the spread, and can we trust the gauge? | Mean, standard deviation, control chart, Cp and Cpk, sigma level |
| Analyze | Which sources drive the spread? | Stratification, hypothesis tests, cause-and-effect diagram |
| Improve | Does the change reduce spread or recenter the mean? | Before-and-after capability, pilot runs |
| Control | Is the process still stable and capable? | Control chart with reaction plan, capability tracking |
Common errors
- Skipping Measure and starting with a solution. The team then has no baseline to prove the result.
- Computing capability on an unstable process. The numbers change from week to week and mean little.
- Calling the project done after Improve. Most lost gains disappear in the months after the pilot.
- Using DMAIC for a problem that needs no analysis. If the cause is known and the fix is obvious, a quick correction is cheaper than a full project.
- Quoting a sigma level from a tiny sample. Cpk values above 2 from ten points are an artifact of small-sample estimates, not proof of a world-class process.
Exercise
A team's baseline chart shows one point beyond the upper control limit, caused by a bad material lot. The same data gives a Cpk of 0.9. In which DMAIC phase should the team handle the bad lot, and should they trust the 0.9 as the process capability?
Show answer
They handle it in Analyze (finding the special cause) and fix it in Improve or immediately as a containment step. They should not trust the 0.9 yet. The chart shows the process is not stable, so the spread is not predictable and Cp and Cpk are not meaningful. They should remove the special cause, collect a new stable baseline, and then compute capability.
Exercise
After an improvement, Cp rises from 1.4 to 1.5 but Cpk stays at 0.8. What does this tell you, and what should the team do next in the Improve phase?
Show answer
Spread is already small relative to the specification width, since Cp is above 1.33. The low Cpk means the mean sits close to one specification limit. The team should find why the process is off center and move the mean toward the midpoint of the specification, for example by correcting a setup or offset, instead of trying to reduce spread further.