D-optimal design: when and how to use an optimal design
An optimal design is an experiment whose runs are chosen by a computer to make a specified model as precise as possible, given the runs you can afford and the settings you are allowed to use. A D-optimal design maximizes the determinant of X′X, the information matrix of the model, which makes the joint confidence region of the coefficients as small as possible. Optimal designs fill the gaps that standard factorial and response surface designs leave: odd run budgets, constrained regions, and mixes of factor types.
When to use it
- Some combinations of settings are impossible or unsafe, so a square or cube design does not fit the feasible region.
- Your run budget does not match any standard design, for example 10 runs for a quadratic model in two factors.
- You combine factor types: continuous factors, categorical factors with three or more levels, and mixture components.
- You want to add runs to an experiment already done and need the additions that help the model most.
How it works
You supply four things: the model (for example, a full quadratic), the candidate settings or the feasible region, any constraints, and the number of runs N. Write X for the N × p model matrix, one row per run and one column per model term.
D-criterion: maximize det(X′X)
Relative D-efficiency of design 1 vs design 2 = ( det(X₁′X₁) / det(X₂′X₂) )^(1/p)A relative D-efficiency of 0.5 means design 1 needs about twice as many runs to match the precision of design 2.
There is no formula for the best design, so software searches. An exchange algorithm starts from a random set of runs, swaps one run at a time for a candidate that increases det(X′X), and stops when no swap helps. Because it can stop at a local optimum, it is restarted from many random designs and the best result is kept. Different designs can be equally good, so two programs, or two runs of one program, can return different but equivalent designs.
Other criteria exist. I-optimal designs minimize the average prediction variance over the region, which suits response surface work where prediction is the goal. A-optimal designs minimize the average variance of the coefficients. D-optimal designs tend to push runs to the edges of the region; I-optimal designs place more runs in the interior.
Example
A coating line cures parts in an oven. Temperature can run from 160 to 200 °C and time from 10 to 30 min, but not every pairing works: below a heat dose of 200 (temperature in °C plus twice the time in minutes) the coating stays soft, and above 240 it yellows. The feasible region is a hexagon inside the 160–200 °C by 10–30 min rectangle, with two corners cut off: 160 °C for 10 min and 200 °C for 30 min. The team can afford 10 runs and wants a full quadratic model in the two factors (6 coefficients).
An exchange search over a grid of 61 feasible candidates (steps of 5 °C and 2.5 min), restarted 300 times, found the D-optimal design: the six vertices of the hexagon plus the center, with three of these seven points run twice. Fifteen different arrangements of the replicates tied for best. One of them:
| Temperature (°C) | Time (min) | Runs |
|---|---|---|
| 160 | 20 | 2 |
| 160 | 30 | 2 |
| 180 | 10 | 1 |
| 180 | 20 | 2 |
| 180 | 30 | 1 |
| 200 | 10 | 1 |
| 200 | 20 | 1 |
Two hand-made alternatives, compared on the same coded scale:
| Design (10 runs) | det(X′X) | Relative D-efficiency |
|---|---|---|
| D-optimal: vertices + center, 3 replicates | 640 | 1.00 |
| Vertices + 4 center points | 384 | 0.92 |
| 3 × 3 grid shrunk to 170–190 °C and 15–25 min, + 1 center | 0.12 | 0.24 |
The shrunken grid is what people often do when the corners are forbidden: they pull the whole design inward until it fits. It costs a lot. The variance of each quadratic coefficient (in coded units) is 6.9σ² with the shrunken grid, against 0.86σ² and 1.0σ² with the D-optimal design shown.
How to read the results
- Coverage of the region drives precision. The D-optimal design runs at every vertex of the feasible region, including the new corners created by the two cuts, instead of shrinking the ranges.
- Replicates go where they help most. Replicating vertices instead of piling four runs at the center raised the efficiency from 0.92 to 1.00. If you need a better pure-error estimate or a lack-of-fit test, you may still choose more center points on purpose.
- Efficiency is relative to the model. This design is optimal for a quadratic model. If the true response needs a cubic term, the design has no spare points to detect it. Add a few runs for lack of fit when in doubt.
- Equivalent solutions are normal. Fifteen arrangements tied here. Pick the one that is easiest to run.
Common mistakes
- Shrinking a standard design to fit a constraint. In the example, the shrunken grid would need about four times as many runs to match the D-optimal design.
- Specifying the wrong model. An optimal design is optimal only for the model you give it. Include the terms you will actually fit.
- Using the minimum number of runs. With N equal to the number of coefficients, nothing is left for error or lack of fit. Add four or more runs.
- Trusting one search. Use many random starts and check that the best determinant repeats.
Frequently asked questions
D-optimal or I-optimal?
Use D-optimal when the goal is to estimate effects and decide which terms matter, as in screening or factorial work. Use I-optimal when the goal is to predict the response across the region, as in optimization with a quadratic model.
Is a D-optimal design better than a standard design?
When a standard design fits your region and budget, it is usually D-optimal or close to it, and easier to explain. Optimal designs pay off when constraints or budgets make standard designs awkward.
Can I augment an existing experiment?
Yes. Fix the runs already done and let the algorithm add the new runs that most increase det(X′X) for the extended model, for example to add quadratic terms to a factorial.
Why do two programs give different D-optimal designs?
The search uses random starts and often finds one of several designs with the same determinant. Compare their efficiencies, not their run lists.