Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Two-Level Factorial Designs

A 2k2^k full factorial studies kk factors, each at two levels, and includes all 2k2^k combinations. It is useful for screening: identify important factors and interactions before investing in a more detailed experiment.

The interaction interpretation comes from Factorial Experiments & Interaction. Here, coding levels as -1 and +1 makes the calculations especially simple.

FactorsCombinations at two levelsCombinations at three levels
3827
532243
82566,561

Multiply by the number of independent replicates per combination for the total run count. Two levels reduce the cost, but run counts still grow rapidly.

Coding Natural Units

For low and high numerical settings XL,XHX_L,X_H, code

x=X−(XH+XL)/2(XH−XL)/2.x=\frac{X-(X_H+X_L)/2}{(X_H-X_L)/2}.

Then XL↦−1X_L\mapsto-1, XH↦+1X_H\mapsto+1, and their midpoint maps to 0. To recover natural units,

X=XH+XL2+xXH−XL2.X=\frac{X_H+X_L}{2}+x\frac{X_H-X_L}{2}.

Standard Order & Sign Columns

In standard (Yates) order, A changes sign every row, B every two rows, and C every four. A letter in a treatment label means that factor is high; (1)(1) means all factors are low.

LabelABCABACBCABC
(1)(1)-1-1-1+1+1+1-1
aa+1-1-1-1-1+1+1
bb-1+1-1-1+1-1+1
abab+1+1-1+1-1-1-1
cc-1-1+1+1-1-1+1
acac+1-1+1-1+1-1-1
bcbc-1+1+1-1-1+1-1
abcabc+1+1+1+1+1+1+1

Interaction columns are products: xAB=xAxBx_{AB}=x_Ax_B, xABC=xAxBxCx_{ABC}=x_Ax_Bx_C. Add a column of +1s for the intercept.

Standard order is for bookkeeping, not execution. Randomize the actual run order. Running all low-C settings first could confound C with equipment drift, fatigue, or another time-related change.

Effects as Signed Contrasts

For an effect column ss containing −1,+1-1,+1, define the factorial effect as

E^s=Yˉs+−Yˉs−.\widehat E_s=\bar Y_{s+}-\bar Y_{s-}.

For A this compares its high and low levels, averaging over all other factors. For AB it compares the combinations with positive product signs against those with negative product signs. “AB positive” is not the same as “A and B both high.”

Let rr be the number of independent replicates at each corner and N=r2kN=r2^k. If TiT_i is the response total at corner ii,

Cs=∑i=12ksiTi,E^s=Csr2k−1.C_s=\sum_{i=1}^{2^k}s_iT_i,\qquad \widehat E_s=\frac{C_s}{r2^{k-1}}.

Equivalently, using corner means,

E^s=12k−1∑isiYˉi.\widehat E_s=\frac1{2^{k-1}}\sum_i s_i\bar Y_i.

Keep totals and means distinct: using a total-based denominator with corner means introduces an erroneous factor of rr.

Why Regression Coefficients Are Half the Effects

The full coded regression contains the intercept and all factor-product columns. For two factors,

Y=β0+βAxA+βBxB+βABxAxB+ε.Y=\beta_0+\beta_Ax_A+\beta_Bx_B+\beta_{AB}x_Ax_B+\varepsilon.

In a balanced full factorial,

β^0=Yˉ,β^s=E^s2.\widehat\beta_0=\bar Y,\qquad \widehat\beta_s=\frac{\widehat E_s}{2}.

A coded factor changes by two units, from -1 to +1. This is why its averaged high-minus-low effect is twice the coefficient.

For the two-factor model, the simple A effect at B level xBx_B is

Δ^A(xB)=2(β^A+β^ABxB).\widehat\Delta_A(x_B)=2(\widehat\beta_A+\widehat\beta_{AB}x_B).

Consequently,

difference of A simple effects=4β^AB=2E^AB.\text{difference of A simple effects}=4\widehat\beta_{AB}=2\widehat E_{AB}.

The factorial AB effect is half the difference of differences under this standard convention. Distinguish these quantities when switching between an interaction plot and a sign-table calculation.

Orthogonality & ANOVA

For the balanced full factorial design matrix XX, including all product columns,

XTX=NI.X^\mathsf TX=NI.

Different columns have zero inner product; every column has squared length NN. Hence,

β^=1NXTY,Var⁡(β^)=σ2NI.\widehat{\boldsymbol\beta}=\frac1N X^\mathsf T\mathbf Y,\qquad \operatorname{Var}(\widehat{\boldsymbol\beta})=\frac{\sigma^2}{N}I.

The coefficient estimates are uncorrelated under independent common-variance errors; normal errors additionally imply independence. Missing runs, unequal replication, or different weights can remove this orthogonality.

Every main effect and interaction has one df. Its sum of squares is

SSs=Cs2r2k=Nβ^s2=N4E^s2.SS_s=\frac{C_s^2}{r2^k}=N\widehat\beta_s^2=\frac N4\widehat E_s^2.

For a fully replicated design, estimate pure error within each corner:

SSE=∑i=12k∑j=1r(Yij−Yˉi)2,νE=2k(r−1),MSE=SSE/νE.SS_E=\sum_{i=1}^{2^k}\sum_{j=1}^r(Y_{ij}-\bar Y_i)^2,\qquad \nu_E=2^k(r-1),\qquad MSE=SS_E/\nu_E.

Then

SE⁡(β^s)=MSE/N,SE⁡(E^s)=2MSE/N,\operatorname{SE}(\widehat\beta_s)=\sqrt{MSE/N},\qquad \operatorname{SE}(\widehat E_s)=2\sqrt{MSE/N},
ts=E^s2MSE/N,Fs=SSsMSE=ts2.t_s=\frac{\widehat E_s}{2\sqrt{MSE/N}},\qquad F_s=\frac{SS_s}{MSE}=t_s^2.

Under the corresponding zero-effect null, use tνEt_{\nu_E} or F1,νEF_{1,\nu_E}. An individual effect interval is

E^s±t1−α/2,νE 2MSE/N.\widehat E_s\pm t_{1-\alpha/2,\nu_E}\,2\sqrt{MSE/N}.

When examining many effects, distinguish individual tests from a family of claims and plan the multiplicity treatment accordingly.

Saturated Designs & Error Estimation

An unreplicated 2k2^k design has 2k2^k observations and 2k2^k coefficients in the full model, including the intercept. It is saturated:

νE=2k−2k=0.\nu_E=2^k-2^k=0.

It fits the corner responses exactly. A perfect fit is not evidence of negligible noise or an adequate response surface.

OptionWhat supplies error information?Limitation
Replicate corners independentlyWithin-setting variation.Requires additional runs.
Replicate center settingsVariation at the center.Using it at corners assumes a common error variance.
Pool scientifically negligible effects into residualsUnmodeled contrast variation.Depends on those effects truly being negligible.
Use relevant external variance informationPrior or separate measurements.Must be applicable to the present process and units.

For example, a 23 design has 8 runs. Fitting the intercept, three main effects, and three two-way interactions leaves one residual df, corresponding to ABC. This is an error estimate only under the assumption that ABC is negligible; it is not pure replication error.

Do not select a favorable error denominator simply to obtain significance. Preserve hierarchy: retain the lower-order terms needed by any retained interaction. A single marginal effect can be small even when that factor participates in an important interaction.

From Screening to a Better Experiment

A screening experiment identifies directions and dependencies worth investigating. It does not automatically determine the best operating conditions.

  • Use response units and interaction plots to judge practical importance, not only pp-values or marginal boxplots.

  • Choose low/high settings that are feasible and scientifically distinguishable.

  • Account for participant, batch, or day when it is part of the assignment structure. Repeated trials from one participant are not automatically independent replicates.

  • For quantitative factors, investigate intermediate settings and curvature when needed.

  • For categorical factors, additional categories are new levels; they are not numerical midpoints.

  • Validate a promising combination with additional independent runs before treating its observed advantage as established.

A reduced model or a design using fewer than all combinations introduces additional assumptions. The full-factorial sign-table formulas above should not be applied unchanged to an arbitrary subset of runs.