Converter tool

DOE Factorial Design Generator and Analyser

Build 2-level full factorial, fractional factorial and Plackett-Burman worksheets with centre points, blocks and a seeded run order, then paste the responses back for effects, ANOVA, Lenth's method and an optimiser.

Pick the type and size

1. Design

Factor names and levels

Low and high values are optional and are printed in the worksheet when "Coded levels" is off. Numeric pairs also give the centre value.

2^4 full factorial, 16 runs

2. Worksheet

Runs
16
Resolution
n/a
Blocks
1
Seed
2024
Design worksheet in run order
StdOrderRunOrderPtTypeABCDResponse
121111-11
321-11-1-1
131-1-1-1-1
16411111
6511-11-1
1561-1111
571-1-11-1
14811-111
2911-1-1-1
410111-1-1
8111111-1
7121-111-1
9131-1-1-11
101411-1-11
11151-11-11
13161-1-111

DOE Factorial Design Generator and Analyser

Operator: Abdulla Al Fahad. How tools are built and checked

Changing one factor at a time tells you nothing about how factors combine, and costs more runs than it needs to. A two-level factorial changes every factor together in a pattern that separates their effects, so a 16-run experiment can estimate four main effects and all their interactions.

This page does both halves of the job. Create a design for 2 to 7 factors as a full factorial, a standard fraction or a Plackett-Burman screen, with replicates, centre points, blocks and a seeded random run order, and export the worksheet. After the runs, paste the responses back for effects, ANOVA, Lenth's method, plots and a simple search for the best settings.

Key features

  • Full factorials for 2 to 7 factors and eleven fractions with Montgomery's standard generators, resolution III to VII
  • Plackett-Burman designs of 12 runs (up to 11 factors) and 20 runs (up to 19)
  • Replicates up to 8, centre points up to 20, and 2 or 4 blocks with block words chosen to confound the highest-order interactions
  • Defining relation and alias lines shown for fractions, and every alias reported beside the effect it hides
  • Effects and coefficients, ANOVA with lack of fit and curvature, Lenth's pseudo standard error, half-normal, Pareto, main-effect and interaction plots

Design types, aliasing and what the analysis reports

A design is written in the standard order with a seeded shuffle for the run order: the same seed always gives the same order, which you can store with the experiment. The worksheet has StdOrder, RunOrder, an optional Block, PtType (1 for a factorial point, 0 for a centre point), one column per factor and an empty Response column. Levels are coded -1 and +1, or the low and high values you type; the centre value is filled in when both levels are numbers.

For analysis, each factor column holds two levels, plus an optional centre value halfway between them, in any numeric or text form; text levels are ordered alphabetically and the page tells you which is low. Rows with a blank response are skipped. A block column of up to 8 values is optional, and up to 19 factors can be analysed.

A fraction's resolution is computed from its defining relation, not stored by hand: in a resolution IV design such as 2^(4-1) with D = ABC, main effects are aliased with three-factor interactions and two-factor interactions with each other (AB with CD).

How it works

Effects are twice the least-squares coefficients on coded columns, with block dummies in the model. Terms whose columns equal or negate an earlier term's column are listed as aliases rather than fitted twice. With replicates, the model holds every term up to the order you chose and ANOVA tests them against pure error; without replicates it keeps the terms Lenth flags.

Common use cases

  • A process engineer screening 7 injection-moulding settings in a 2^(7-4) design of 8 runs, and then following up the 3 that matter.
  • Two days, one 2^3 design run twice: a lab uses 2 blocks so the day-to-day shift stays out of the effects.
  • A product team running a 12-run Plackett-Burman screen of 9 website variables before a full test.
  • Before committing to a response surface, a chemist adds 3 centre points to a 2^2 design to test for curvature.

How to use this tool

  1. Choose Create a design, the design type, the number of factors and, for a fraction, which one.
  2. Set replicates, centre points, blocks and the seed, name the factors and optionally type their low and high values.
  3. Download the worksheet, run the experiment in the listed order and fill in the Response column.
  4. Switch to Analyse results and drop the filled worksheet, or load an example.
  5. Tick the factor columns, pick the response and the highest interaction order.
  6. Read the effects, Lenth's flags and ANOVA, adjust the model terms, and use Predictions or the best-settings table.

Example

A pilot-plant chemist analysing an unreplicated 2^4 run of temperature (A), pressure (B), concentration (C) and stirring rate (D) against filtration rate

A,B,C,D,Filtration rate
-1,-1,-1,-1,45
1,-1,-1,-1,71
-1,1,-1,-1,48
1,1,-1,-1,65
... 16 runs in all. Filtration rates in standard order: 45, 71, 48, 65, 68, 60, 80, 65, 43, 100, 45, 104, 75, 86, 70, 96 (the experiment in Montgomery, Design and Analysis of Experiments, chapter 6)

Effects, Lenth thresholds and the reduced model

Effects: A 21.625, C 9.875, D 14.625, AC -18.125, AD 16.625; B 3.125, all others under 5
Lenth: PSE 2.625, margin of error 6.75, simultaneous margin 13.70 on 5 df
Flagged: A, C, D, AC, AD. Model on those terms: R-squared 96.6%, adjusted 94.9%, predicted 91.3%

Common pitfalls

With no replicates there is no pure error, so the page picks the terms Lenth flags and uses what remains as the error term. Add replicates if that error estimate looks small.

Lenth's method assumes most effects are zero. When more than about a third of the effects are active, its pseudo standard error is too large.

A centre point tests curvature of the whole response surface, not which factor curves. A significant curvature test calls for a second-order design that this page does not build.

The best-settings search only tries the corners of the design cube, since the fitted model has no squared terms.

A Plackett-Burman design has main effects partially aliased with two-factor interactions, so use it to find active factors, not to rule out interactions.

  • Use the same seed to reproduce a worksheet, and a different seed for a second replicate so its run order differs.
  • Read the alias column before trusting an effect from a fraction: AC + BD in a 2^(4-1) design is one number that two different interactions could produce.

Common errors and how to fix them

Column "Temp" has 4 distinct values. A two-level design has a low and a high level, plus an optional centre value.
Use a two-level version of the factor, or split the data so each analysis has two levels.
Column "Time": the middle value 12 is not halfway between 10 and 20.
A centre point must sit exactly halfway. Recode the column or remove the off-centre runs.
Blocking needs at least 3 base factors (8 runs before replication).
Blocking a 2^2 design leaves nothing to estimate: its only block word would be the AB interaction, and there are no degrees of freedom to spare. Add a factor, use replicates instead, or run it as one block.

Best practices

  • Run the blocks one after another in the listed order: the shuffle happens inside each block, and a block is meant to be one day, one batch or one operator.
  • Count a replicate as a fresh run of the whole setup, not a second reading of the same run. Only fresh runs give the pure error that lets ANOVA test effects directly.

Lenth's method for an unreplicated design

Fifteen effects from a 2^4 experiment give no error estimate. Lenth's pseudo standard error takes the median absolute effect, multiplies by 1.5 to get s0, then recomputes the median of the effects smaller than 2.5 s0 and multiplies again by 1.5. In the filtration-rate data s0 is 3.9375 and the pseudo standard error 2.625.

A margin of error of t(0.975, 5) times 2.625, or 6.75, and a simultaneous margin of 13.70 are the thresholds. An effect above the first line is probably real; one above the second almost certainly is. The half-normal plot draws the same idea: effects that are pure noise lie on a line through the origin with slope equal to the pseudo standard error.

Frequently asked questions

Why does the F value for A differ in the second decimal from the book?

For the 2^2 yield example in the same chapter (three replicates per run, effects A = 8.33, B = -5.00, AB = 1.67), the page computes F = 53.19 from the exact error mean square 3.9167; the book prints 53.15, which comes from its rounded mean square of 3.92. The sums of squares, 208.33, 75.00 and 8.33 with an error of 31.33 on 8 df, match the book.

Which fraction should I pick for 5 factors?

2^(5-1) with 16 runs is resolution V, so main effects and two-factor interactions are clear of each other. 2^(5-2) with 8 runs is resolution III and keeps main effects clear only of other main effects.

Can I analyse a design that was not made here?

Yes, if each factor column has two levels and an optional centre value. Fractions and Plackett-Burman designs from other software work, with aliases computed from the columns themselves.

What if my design has missing runs?

Rows without a response are skipped and the page recomputes aliasing from the runs that are left. It warns when the remaining runs cannot support the interactions you asked for.