Understand the idea
Instead of testing one factor at a time, a factorial experiment deliberately runs every combination of a handful of factors, each set at a 'low' and a 'high' level: low temperature/high temperature, old machine/new machine, and so on. With k factors run at two levels each, a full run of every combination takes 2^k experimental runs, and from that one set of runs you can estimate not just how much each factor matters on its own (a main effect) but whether factors interact: whether the effect of one factor depends on the level of another.
Each factor's low level is relabeled -1 and its high level +1 before fitting, which makes the arithmetic clean: the 'effect' of a factor is the average change in the response as it moves from -1 to +1, and it is exactly twice the fitted regression coefficient (because moving from -1 to +1 is a 2-unit swing). Interaction terms are just the product of two factors' coded columns: a large interaction effect means the two factors' influences are not simply additive.
The Pareto chart of effects is the fastest way to read the result: it ranks every effect by size and draws a line marking how large an effect needs to be to count as real (not noise) at your chosen significance level. Bars past the line are the 'vital few' worth acting on; everything short of it is the 'trivial many'.
This DOE analysis fits a factorial DOE, most often a 2-level factorial design, one of the central tools of design of experiments.
Practitioner explanation
Each supplied factor must have EXACTLY two distinct levels; the engine sorts them (numeric factors sorted numerically, others lexically) and maps the lower level to -1.0 and the higher to +1.0, then fits an ordinary least-squares regression on the coded columns: main effects plus, by default (with the include-interactions option on), interaction terms up to max_order (default 2, i.e. two-factor interactions). The ANOVA decomposition and per-term F-tests use the model's residual degrees of freedom; in a SATURATED design (as many model terms as runs, e.g. a 2^k design with no replication and all interactions fit), df_residual is 0 and F-tests are undefined: the card reports this rather than fabricating a p-value, and the fix is to replicate runs, add center points, or drop high-order interactions to free up error degrees of freedom.
This card fits a plain regression on whatever rows you supply; it does NOT verify that your data actually forms a balanced 2^k (or fractional factorial) design and does not check run randomization. It does notice terms that are completely confounded (aliased) in your runs: it keeps the lower-order term, removes the other and names the pair, and the kept coefficient is the combined effect of both. Planning which effects a fractional design confounds is still done before the runs are made.
Curvature (a response that bends across the design space) cannot be detected or modeled by a two-level design: every factor has exactly two settings, so there is no way to tell whether the response is linear or curved between them; center points or a response-surface design (out of scope for this function) are required to check and model curvature.
When to use it
Consider it when
You ran (or are analyzing) a designed experiment where each factor was deliberately set at exactly two levels across every combination, and you want to estimate which factors, and which interactions between them, drive a continuous response.
Use caution when
A factor with more than two levels (recode it to two levels, or use a full factorial/response-surface design with the appropriate tool), a design suspected to have curvature (a two-level design cannot detect it; add center points), or a fractional factorial where you need to check the aliasing structure before trusting an effect estimate (the card names only the terms that are completely confounded in your runs).
Formulas and symbols
Effect from the coded coefficient
Because the coded factor spans -1 to +1, a 2-unit range, so the regression coefficient is half the average response change across that range.
Per-term F-test
Undefined when the design is saturated (df_residual = 0): the card reports this rather than a fabricated p-value.
Model R-squared
Fraction of response variation explained by the fitted main effects and interactions.
Assumptions and checks
- Runs performed out of randomized order let time trends (equipment drift, warm-up, operator learning) masquerade as, or mask, real factor effects.
In KernelStats: Not checked by KernelStats: the card states this is assumed by design (runs should be randomized); no run-order or time-trend diagnostic is computed from the data actually supplied.
- Normality (of residuals, not of the raw data). Non-normal residuals make the effect significance tests (and the half-normal/Pareto effect plot built on them) approximate rather than exact.
In KernelStats: Shapiro-Wilk on the model residuals when there are enough residual degrees of freedom; on a saturated design (zero residual error, e.g. an unreplicated full factorial with every interaction kept in the model) the card reports the check as not testable rather than fabricating a p-value.
Alternatives
- Linear Regression. Your factors are continuous and were not run at exactly two clean levels: fit the actual measured values rather than forcing a -1/+1 coding.
- Two-Way (Factorial) ANOVA. You have exactly two categorical factors (not necessarily at two levels each) and want the classical two-way ANOVA framing rather than a coded-regression DOE analysis.
- Design Compare (Trade-off Table). You have not yet run the experiment and are choosing between candidate factorial or fractional-factorial designs.
Worked example
Scenario
A 2^3 factorial experiment (8 runs, no replication) varying temperature, pressure and catalyst type, measuring reaction yield.
Result
Temperature's main effect is +12.4 (p = .002), the temperature x pressure interaction is +6.1 (p = .04), catalyst's main effect is not significant (p = .31); model R-squared = 0.91.
Interpretation
Temperature is the dominant driver of yield, and its benefit depends on pressure (the significant interaction means the two should be considered together, not independently); catalyst choice, at least between the two levels tested, does not move yield enough to distinguish from noise in this small design.
Common misconceptions
Misconception
A significant main effect and a significant interaction can both be interpreted the same way: just read the main effects table.
Correction
When an interaction involving a factor is significant, that factor's main effect no longer has a single, constant meaning: its effect DEPENDS on the level of the other factor. Interpret the simple effects (the effect of one factor at each level of the interacting factor) from the interaction plot, not the main-effect estimate alone.
Misconception
A non-significant effect in this analysis proves that factor has no influence on the response.
Correction
Absence of evidence is not evidence of absence: a small or under-replicated design has limited power to detect real but modest effects, and a term reported as non-significant may simply reflect too few residual degrees of freedom to say more.
Read more: Misconception: a non-significant result proves there is no effect
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §5.3.3 Full factorial designs, NIST/SEMATECH (2012), §5.3.3.
- Design and Analysis of Experiments, Montgomery, D. C. (2019).
