- Introduced by
- Kathryn Chaloner & Isabella Verdinelli (Bayesian experimental design framework); building on Fisher's factorial design principles
- Year
- 1990s (Bayesian DOE formalized); factorial design roots in 1920s (Fisher)
- Type
- Bayesian experimental design method
- Family
- Engineering methods
What does it do?
Bayesian full factorial design runs every combination of factor levels, as a classical full factorial experiment does, and analyses the data in a Bayesian framework.
Prior distributions for main effects and interactions are combined with the observed responses to yield posterior distributions over these effects and model parameters, rather than point estimates and p-values. The experimental layout is the classical one; what changes is the inference.
The intuition behind the method
Suppose a manufacturing process has three factors, each at two levels. A classical full factorial runs all eight combinations and tests each effect against a null hypothesis. The Bayesian version runs the same eight combinations but asks for the posterior distribution of each effect, given prior engineering knowledge and the observed data. The output is a set of credible intervals and posterior probabilities, for example the probability that an effect exceeds a threshold of practical interest, and these can be updated as further runs are added.
History
Factorial experiments were systematically developed by Ronald A. Fisher in the 1920s and 1930s, treating interactions as quantities that can be estimated. Chaloner and Verdinelli (1995) give a decision-theoretic review of Bayesian optimal design in general. That review offers a general framework for Bayesian design and is cited here for that framework, not for factorial layouts. The label 'Bayesian full factorial design' is a practical descriptor for applying Bayesian inference to a full factorial layout, and it has no single attributed originator.
When to use it
Choose Bayesian full factorial design when you want every main effect and interaction estimated without aliasing and you have prior information about effect sizes that should be included formally. It is most useful when the number of runs is small relative to the number of parameters, so that the prior regularizes estimation, or when decisions call for probability statements rather than reject or fail-to-reject conclusions. Do not use it when the number of factors is large: four factors at two levels already require 16 runs and five require 32, so a Bayesian fractional or screening design is more efficient. If little prior knowledge is available, weakly informative priors can still be used, with their influence checked by sensitivity analysis. Where no prior specification is wanted at all, a classical full factorial analysed with ANOVA is the simpler alternative, and its conclusions then rest almost entirely on the data.
Limitations and considerations
- The run count grows as L^k, so the full layout becomes impractical as the number of factors increases; see the run counts in the usage guidance above.
- Requires specification of prior distributions, which demands subject-matter expertise and introduces analyst subjectivity.
- MCMC-based computation is more involved than ANOVA and requires software such as Stan, JAGS, R-INLA or equivalent, plus checks of chain convergence.
- Results can be sensitive to prior choice, particularly when sample sizes are small; sensitivity analysis adds analytical burden.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Estimates every main effect and every interaction without aliasing, providing a complete picture of the factor space.
- Prior information from past experiments or physical models is formally incorporated, which helps estimation when the run count is small.
- Outputs are probability distributions over effects, enabling direct probability statements such as 'there is an 87% chance this factor changes the mean yield by more than 5 units.'
- Credible intervals have a direct probabilistic interpretation that confidence intervals do not, making results easier to communicate to decision-makers.
- Sequential updating is natural: the posterior from one experiment can serve as the prior for the next, allowing an adaptive experimental programme.
Applications
- Pharmaceutical process development: estimating the probability that a factor combination meets specification limits with limited batch runs.
- Chemical engineering: jointly optimizing reaction yield and purity across temperature, pressure, and catalyst concentration levels.
- Reliability engineering: quantifying the posterior distribution of component failure rates across design configurations.
- Agricultural trials: incorporating historical soil and weather knowledge as priors when estimating treatment effects across all factor combinations.
- Quality engineering: assessing the probability that main effects and interactions meet practical significance thresholds before scale-up.
- Semiconductor fabrication: estimating the posterior joint distribution of etch rate and uniformity across all combinations of gas flow and power settings.
How it works
How it works
Before running experiments, the analyst specifies prior probability distributions for each main effect and interaction term. These priors encode existing knowledge from previous studies, physical models or engineering judgment. Weakly informative priors are used when little is known; informative priors incorporate strong prior evidence. The choice of prior is documented and its influence on conclusions is assessed via sensitivity analysis.
A complete full factorial layout is constructed: every combination of factor levels is included, so that all main effects and all interaction terms can be estimated without aliasing. For k factors each at L levels, this yields L^k runs before replication. Replication and randomization are applied to control for error and lurking variables, as in classical factorial design.
Experiments are conducted according to the randomized full factorial schedule, and response measurements are recorded for every combination. Because all combinations are run, no effect is confounded with another; this is the defining structural advantage of a full factorial over a fractional design.
For a factorial linear model, the response is written as a grand mean plus one term for each main effect and interaction, plus a random error term. Factor effects are typically represented through contrast coding (for two-level factors, ±1 coding is common). Under a Gaussian error assumption, the likelihood of the observed data is combined with the specified priors via Bayes' theorem, so that the posterior is proportional to the likelihood multiplied by the prior. For a linear model with known error variance and normal priors on the effects, the posterior is itself normal, which gives an analytic case. For most practical models, including generalized linear models, the posterior is obtained by Markov chain Monte Carlo (MCMC) sampling. Posterior distributions for main effects and interactions are the primary outputs.
Conclusions are drawn from the posterior distributions. Credible intervals indicate where effect sizes plausibly lie. The probability that an effect has practical significance is obtained as P(effect exceeds δ | data), estimated as the proportion of posterior MCMC draws for that effect that exceed δ. The threshold δ should be fixed from engineering or scientific considerations before the experiment is run, not chosen after the results are seen. Model comparison (via Bayes factors or WAIC) identifies the most parsimonious model. Results can be used to update a sequential experimental program or to set factor levels for optimization.
Common pitfalls
- Using an informative prior that is inconsistent with reality — if prior beliefs are wrong and the dataset is small, the posterior will be dominated by incorrect prior assumptions. Always run a prior predictive check before collecting data.
- Ignoring convergence diagnostics — MCMC samplers can fail to mix properly; inspecting trace plots, R-hat statistics, and effective sample sizes is mandatory before interpreting posteriors.
- Treating the full factorial as always superior — if resources permit only a small fraction of runs, a Bayesian fractional factorial or optimal design will outperform a full factorial that is under-replicated.
- Confusing credible intervals with confidence intervals — while they often agree numerically, their interpretations differ; credible intervals are statements about parameters conditional on data, not about long-run procedure coverage.
Frequently asked questions
How is Bayesian full factorial design different from classical full factorial design?
The experimental layout, running every factor-level combination, is identical. The difference is inferential: classical analysis uses ANOVA and F-tests to produce p-values and confidence intervals, whereas Bayesian analysis combines a likelihood with prior distributions to produce posterior distributions over effects. The Bayesian approach supports direct probability statements and formal incorporation of prior knowledge.
What prior distributions should I use for factorial effects?
For factorial effects (contrast coefficients), weakly informative normal or half-normal priors are common defaults. When prior information from previous experiments is available, elicit the prior mean and variance from that data. For variance components, half-Cauchy or inverse-gamma priors are frequently used. Always perform prior predictive checks to ensure the prior implies plausible response values before observing data.
Can I use standard software like R or Python for Bayesian full factorial analysis?
Yes. In R, the brms package (which uses Stan) fits Bayesian linear models, including factorial designs, with compact model formulas. Python users can use PyMC. Both provide MCMC sampling, posterior summaries and diagnostics. Contrast coding for main effects and interactions follows the same principles as in classical ANOVA.
When should I prefer a Bayesian fractional factorial design over a Bayesian full factorial design?
When the number of factors makes the full layout impractical, a Bayesian fractional factorial design is the usual alternative; the run count of the full layout (L^k) is the deciding quantity, as described in the usage guidance above. A fractional design leaves some effects aliased, so for aliased effects the posterior depends more heavily on the prior, and the influence of the prior should be examined in a sensitivity analysis.
How do I report Bayesian full factorial results in a publication?
Report the prior specifications and justification, the MCMC sampler used and convergence diagnostics (R-hat, effective sample size), posterior means and credible intervals for each main effect and interaction, any model comparison metric used (Bayes factor, LOO-CV, WAIC), and a sensitivity analysis showing how conclusions change under alternative reasonable priors.
Related methods
Sources
Chaloner, K., & Verdinelli, I. (1995). Bayesian experimental design: A review. Statistical Science, 10(3), 273–304.
Open DOI referenceBox, G. E. P., Hunter, J. S., & Hunter, W. G. (2005). Statistics for Experimenters: Design, Innovation, and Discovery (2nd ed.). Wiley-Interscience.
ISBN: 978-0471718130