Tech Blog · Algorithms Explained
[Prescription Methods 2] Finding the optimum by designing experiments — design of experiments and response surface methodology
Changing one variable at a time misses interactions. We explain how design of experiments (DoE) looks at the effects of several variables at once with few experiments, how response surface methodology (RSM) moves the experimental region toward the optimum, and what to check when applying them to a process.
Jun 25, 2026 · OPTI-X
Series “Prescription Methods” · Part 2
The most common way to improve process conditions is to "change one thing at a time." Fix the temperature and vary the pressure, then fix the pressure and vary the temperature. The problem is that this misses interactions between variables, such as when pressure has a larger effect only at high temperature.
If the rules in the previous part take their answers from experience, design of experiments gets its answers from planned experiments. The statistics handbook of the US National Institute of Standards and Technology (NIST) defines experimental design as "the laying out of a detailed experimental plan in advance of doing the experiment."
Design of experiments: change several variables at once
Design of experiments (DoE) arranges combinations of variables systematically to estimate the effect of each variable and their interactions with fewer experiments. The most basic form is the full factorial design, which sets each variable at two levels, high and low, and runs every combination.
Number of runs in a two-level full factorial design by number of variables
It grows as a power of 2
When there are many variables, a fractional factorial design, which tests only some of the combinations, reduces the number of runs. The price is confounding. In a design that runs three variables in only four runs, the effect of the third variable is mixed with the interaction of the first two, and the two cannot be estimated separately. Fractional factorial designs therefore rest on the "sparsity of effects" assumption that interactions are small compared with main effects.
In the NIST handbook's design table, seven variables take 128 runs as a full factorial, but fractional designs of 64, 32, 16 or 8 runs are available. The fewer the runs, the more effects get mixed: the 8-run design is "resolution III," in which main effects are confounded with two-factor interactions.
So the objective comes before the design. The NIST handbook divides objectives into comparison, screening (finding the important variables), response surface modeling (hitting a target, maximizing, reducing variation), and regression modeling, and recommends different designs for each.
Response surface methodology: approaching the optimum in two phases
Response surface methodology (RSM) fits a simple equation to the experimental results and moves the experimental region in the direction that equation points to, searching for the optimal conditions. Following the advice of Box and Wilson (1951), the NIST handbook sets this process out in two phases.
In Phase 1, you run a small factorial experiment around the current operating conditions and fit a first-order (planar) model. You keep experimenting along the direction in which the plane rises most steeply, the path of steepest ascent, and when results stop improving, you run a new factorial experiment at that point to set a new direction. When curvature appears that the plane cannot explain, it signals that you are near the optimum; you then move to Phase 2, fit a quadratic surface, and find its peak.
How response surface methodology proceeds
Scan broadly, then narrow in
- 1Screening experimentsPick out the variables with large effects (fractional factorial design)2–4 key variables
- 2Move along the path of steepest ascentExperiment in the direction the first-order model points to; when improvement stops, reset the direction with a factorial experimentNext once curvature appears
- 3Fit the surface and find the optimumEstimate a quadratic surface with a central composite design or similar, and calculate its peakPropose optimal conditions
In Phase 1, the engineer decides two things: the direction to move and how far to move in one step. The direction is set by the ratio of the first-order model's coefficients, and that ratio depends on the units of the variables. NIST therefore recommends calculating with coded variables, in which each variable's low level becomes −1 and its high level +1. It also adds that this procedure should not be automated in a way that leaves the experimenter no input.
Worked example: reaction temperature and reaction time
This is a chemical process example from the NIST handbook. After steps such as a screening experiment, the variables that drive yield have been narrowed to reaction temperature and reaction time, and for safety reasons the operating region is limited to 50–250°C and 150–500 minutes. The process currently runs at 200°C and 200 minutes.
Centered on the current conditions, the engineer ran a two-level full factorial experiment of four runs at 170 and 230°C and 150 and 250 minutes, plus five repeated runs at the center point.
Results of the Phase 1 factorial experiment
The two combinations with longer reaction time gave higher yields
| Temperature (°C) | Time (min) | Yield (%) |
|---|---|---|
| 170 | 150 | 32.79 |
| 230 | 150 | 24.07 |
| 170 | 250 | 48.94 |
| 230 | 250 | 52.49 |
| 200 | 200 (mean of 5 center runs) | 41.5 |
The first-order model fitted to the results had, in coded units, a time coefficient of +11.14 and a temperature coefficient of −1.29. Yield was driven mainly by time, and there was no evidence of curvature. The engineer computed the point on the steepest ascent direction one coded unit from the center. In original units, this is the direction in which reaction time increases by 49.66 minutes for every 3.456°C decrease in temperature, and the next experiments proceed along this line.
Noise shows up as well. Yield from five repeats of the same 200°C, 200-minute condition varied from 29.68% to 48.29%, and the model's coefficient of determination (R²) was 0.65. Center-point repeats are used to check this pure error and curvature. Had each condition been run only once, this variation could have been mistaken for an effect.
Designs for fitting the surface, and what to check
Fitting a quadratic surface in Phase 2 requires at least three levels for each variable. The classical designs introduced in the 1950s fall into two categories: Box and Wilson's central composite design and the Box-Behnken design. The central composite design adds two star points on the axes for each variable to a two-level factorial experiment and center points, which allows curvature to be estimated.
The distance to the star points is set by rotatability. Rotatability, a concept introduced by Box and Hunter (1957), is the property that the variance of predicted values depends only on the distance from the design center, so the design does not favor any direction. It matters because you experiment without knowing which way the optimum lies; with the factorial range set to ±1, the star-point distance is ±1.414 for two variables and ±1.682 for three.
Number of runs in quadratic surface designs
With 3–4 variables, Box-Behnken needs slightly fewer runs
| Variables | Central composite design | Box-Behnken |
|---|---|---|
| 2 | 13 runs (incl. 5 center points) | – |
| 3 | 20 runs (incl. 6 center points) | 15 runs |
| 4 | 30 runs (incl. 6 center points) | 27 runs |
| 5 | 33 runs (fractional factorial) / 52 runs | 46 runs |
| 6 | 54 runs (fractional factorial) / 91 runs | 54 runs |
The first thing to check on a process is whether the conditions a design calls for are within the allowed range. In the circumscribed central composite design, the star points go outside the range of the factorial experiment. In NIST's example, a factor set at 10–20 becomes 6.6 and 23.4 at the star points, and the handbook notes that you must check before experimenting that those settings are feasible.
If the range is a true limit, use the inscribed or face-centered type, which keeps the star points within the boundary. The face-centered type stays within range but gives poor precision for the pure quadratic coefficients. The Box-Behnken design leaves out the corner combinations where all variables are at their extremes at once, which makes it useful for processes where several variables must not be pushed to extremes together.
Strengths, limits, and how it relates to other methods
Design of experiments and response surface methodology at a glance
Statistically solid, but it assumes you can 'experiment'
Design of experiments is strong at recipe development. With few experiments it separates the effects of variables and their interactions statistically and leaves the result as an equation. NIST writes that quadratic models are almost always sufficient for industrial applications.
In continuous processes where raw materials and load change from moment to moment, however, you need "the optimum for right now." Optimal conditions, once found, assume the raw materials and equipment condition at the time of the experiments. If an experiment itself can stop production or produce defects, the number of experiments also becomes a heavy burden.
It is used in sequence with Bayesian optimization in Part 4. Where design of experiments designs the whole set of experiments in advance, Bayesian optimization picks the next experiment one at a time while looking at the results.
Design of experiments and response surface methodology find the effects of variables and the optimal conditions through planned experiments, and on a process the first check is whether the conditions a design calls for are within the allowed range. In the next part, we look at MPC, which uses a process model to calculate the future and adjust in real time.
References
- Journal of the Royal Statistical Society, Series B 1951 (Box et al.), "On the Experimental Attainment of Optimum Conditions" ↗
- The Annals of Mathematical Statistics 1957 (Box et al.), "Multi-Factor Experimental Designs for Exploring Response Surfaces" ↗
- NIST/SEMATECH e-Handbook of Statistical Methods, "5. Process Improvement" ↗
- NIST/SEMATECH e-Handbook of Statistical Methods, "5.5.3.1.1. Single response: Path of steepest ascent" ↗
- NIST/SEMATECH e-Handbook of Statistical Methods, "5.3.3.6.3. Comparisons of response surface designs" ↗
Could this work for your process?
Talk to us