Design of experiments (DOE) explained for engineers
Design of experiments (DOE) is a way of learning how inputs affect an output by changing several inputs at once, in a planned pattern, and analyzing the results with statistics. A well-chosen design estimates the effect of every factor and their interactions with far fewer runs than testing one factor at a time, and it tells you how sure you can be of each conclusion. This guide explains the ideas, the main families of designs and how to plan an experiment from start to finish.
Why not change one factor at a time?
The intuitive way to experiment is to hold everything fixed, change one setting, see what happens, and move on to the next. It fails in two ways: it needs many runs for the information it gives, and it cannot see interactions, where the effect of one factor depends on the level of another.
A small example shows the second problem. A chemical step has two factors, reaction temperature (A) and catalyst amount (B), each at a low and a high level. The yields (%) at the four combinations are:
| B low | B high | |
|---|---|---|
| A low | 70 | 69 |
| A high | 68 | 80 |
An engineer working one factor at a time starts at (low, low) with 70%. Raising temperature alone gives 68%, so temperature goes back to low. Raising catalyst alone gives 69%, so catalyst goes back too. The conclusion is that neither factor helps, and the best condition, 80% with both high, is never tried.
A 2×2 factorial runs all four combinations and computes each effect as a difference of averages:
Effect of A = (68 + 80)/2 − (70 + 69)/2 = 74.0 − 69.5 = 4.5
Effect of B = (69 + 80)/2 − (70 + 68)/2 = 74.5 − 69.0 = 5.5
Interaction AB = (70 + 80)/2 − (68 + 69)/2 = 75.0 − 68.5 = 6.5The interaction is the largest effect: each factor helps only when the other is high. The crossing lines below are the picture of it, the same picture an interaction plot draws.
Every run in a factorial is used to estimate every effect. That is why a factorial gets more information from the same number of runs: each effect is an average of half the runs against the other half, not a comparison of two single runs.
Three principles that make results trustworthy
- Randomization. Run the combinations in random order. Anything that drifts during the experiment (tool wear, ambient temperature, a new material lot) then spreads as noise instead of masquerading as a factor effect.
- Replication. Repeat runs to measure the run-to-run variation. Without an estimate of noise you cannot tell a real effect from chance. Repeat measurements of the same part are not replicates; a replicate is a fresh run of the whole setup.
- Blocking. When you know of a nuisance source, such as two shifts or two material lots, group the runs into blocks so that its effect can be separated from the factors.
Center points, runs with every numeric factor at its midpoint, add a check for curvature and an estimate of noise without disturbing the factorial estimates.
The main families of designs
Full factorials run every combination of levels. With two levels per factor, k factors take 2ᵏ runs: 8 for 3 factors, 32 for 5 and 128 for 7. They estimate all main effects and interactions. See factorial design.
Fractional factorials run a chosen half, quarter or smaller fraction. A 2⁷⁻⁴ design studies 7 factors in 8 runs. The price is aliasing: some effects can no longer be told apart. The design's resolution says how serious this is. In resolution III, main effects are aliased with two-factor interactions; in resolution IV, main effects are clear of two-factor interactions, but those interactions are aliased with each other; in resolution V, main effects and two-factor interactions are all clear of each other.
Screening designs sort many factors into the few that matter. A 12-run Plackett-Burman design handles up to 11 factors; a definitive screening design studies 6 factors at three levels in 13 runs and can detect curvature. See screening design.
Response surface designs fit curved models to find an optimum once the important factors are known. A central composite design for 3 factors uses 8 corner runs, 6 axial runs and center points; a Box-Behnken design uses edge midpoints and avoids the extreme corners. See response surface design.
Special cases. Mixture designs handle ingredients that must add up to 100%. Optimal designs are built by computer when the region is irregular or the run budget is fixed. Taguchi designs use orthogonal arrays with a focus on robustness to noise factors.
Experiments come in a sequence
One large experiment is rarely the best plan. A typical sequence is:
- Screen 6 to 15 candidate factors with a small design to find the 2 to 4 that matter.
- Characterize those with a full or resolution V factorial, with replicates and center points, to estimate interactions and check curvature.
- Optimize with a response surface design if curvature is present, then find the best settings with a response optimizer.
- Confirm with a few runs at the chosen settings, and compare with the prediction.
A common rule of thumb is to spend no more than about a quarter of the budget on the first experiment, because its results always change the plan for the next one.
Planning an experiment step by step
- State the objective in one sentence: "find settings of cure temperature, time and pressure that raise bond strength by at least 6 N without lowering throughput".
- Choose the responses and check how they are measured. A measurement system whose noise is close to the effects you want to see will hide them; see measurement system analysis.
- Choose factors and levels. Make the levels far enough apart that a real effect can show, but inside the safe operating range. Write down the factors you will hold fixed and the nuisance factors you cannot control.
- Choose the design from the families above.
- Size it. Decide the smallest effect worth detecting, in units of the run-to-run standard deviation σ, and compute the power. For a 2³ design, 2 replicates detect an effect of 2σ with 94% power but an effect of 1.5σ only 76% of the time; 3 replicates raise that to 93%. See power for 2-level factorial designs and for screening designs.
- Run it in random order, recording anything unusual. Do not "fix" a run that looks odd; note it.
- Analyze the effects with a Pareto or half-normal effects plot, fit a model with the important terms, check the residuals, and draw main effects and interaction plots.
- Confirm the predicted improvement with new runs before changing the process.
Reading the results
- Effect size first, p-value second. A significant effect of 0.2 N may not matter; a large effect that just misses significance may deserve another look with more replicates.
- Interactions change the story of main effects. When AB is large, the effect of A must be described at each level of B, as in the example above.
- Curvature from center points means a two-level model is not enough near the center; it is the usual signal to move to a response surface design.
- Residual plots should show no patterns against run order or predicted values. A trend against run order points to drift that randomization has turned into noise.
Common mistakes
- Levels too close together. The effect then hides in the noise, and the experiment wrongly concludes that the factor does not matter.
- Not randomizing because changing a factor is slow. If some factors truly cannot be reset every run, use a split-plot design and analyze it as one.
- Treating repeat measurements as replicates. This underestimates the noise and makes effects look more significant than they are.
- Ignoring the measurement system. An experiment cannot detect effects smaller than the measurement noise.
- Skipping the confirmation run. A model fitted to 16 runs is a hypothesis until new runs agree with it.
Frequently asked questions
How many factors can I study at once?
With a screening design, 10 or more in 12 to 20 runs, if you expect only a few to matter. To estimate interactions reliably, keep the follow-up experiment to about 2 to 5 factors.
Do I need statistics software to run a DOE?
You need it to generate fractional and optimal designs and to analyze them conveniently. The effects of a small full factorial can be computed by hand, as in the example above.
What if a run fails or is lost?
A full factorial with one missing run can still be analyzed with a regression model, though some estimates become correlated. Record what happened rather than repeating the run out of order without noting it.
Is DOE only for manufacturing?
No. The same designs are used in laboratories, product development, software settings and agriculture, where the method began.
How is DOE different from analyzing historical data?
In historical data, settings change together and for reasons you do not control, so an apparent effect may come from something else. In an experiment you set the factors yourself, independently and in random order, which supports conclusions about cause and effect.