pydoe
Design of Experiments for Python
What it is and what it does
PyDOE is a comprehensive experimental design library that generates structured point sets for planning and analyzing scientific experiments. It implements classical DOE methods (full and fractional factorial, Plackett-Burman, Latin hypercube, Box-Behnken, central composite, Taguchi, and many others) plus advanced techniques like space-filling designs, low-discrepancy sequences, and optimal design algorithms. The package depends on numpy and scipy for numerical computation and is built on a stable, long-running codebase (first released in 2013) that supports modern Python versions.
Typical users are experimentalists who need to choose factor levels and run counts before conducting expensive tests—whether in manufacturing, materials science, simulation, or parameter optimization. Rather than running all possible combinations or guessing, PyDOE lets you construct designs that balance coverage, efficiency, and statistical properties, then analyze results to identify important factors or fit response models.
Use it for:
- Plan a manufacturing experiment with multiple process parameters using fractional factorial to reduce runs while detecting main effects.
- Generate space-filling sample points for computer simulation or surrogate model training using Latin hypercube or Sobol sequences.
- Construct a response-surface design (Box-Behnken or central composite) to fit a polynomial model and optimize a process output.
- Screen many factors quickly with Plackett-Burman or Morris sensitivity analysis to identify which ones matter most.
- Design a mixture experiment (e.g., recipe formulation) using simplex-lattice or simplex-centroid designs.
- Apply Taguchi robust design methods to find factor settings that minimize variation under noise conditions.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
PyDOE constructs experimental designs for scientists and engineers, providing factorial, mixture, response-surface, space-filling, and optimal design methods to plan efficient experiments.
Yes. PyDOE is a mature, actively maintained library with no security vulnerabilities, low install friction, and permissive licensing. Install it if you need to design experiments systematically—it covers classical and modern DOE methods and integrates cleanly with numpy and scipy workflows. Skip it only if your experiment is too simple to benefit from structured design or if you prefer a different framework.
Install
pydoe on PyPI
pip
pip install pydoeuv
uv add pydoepoetry
poetry add pydoeInstalling pydoe
Before you install
Low friction: pure Python wheel with only numpy and scipy as runtime dependencies. Actively maintained with a recent release (9 days ago) and no known vulnerabilities.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install pydoe
import pydoe
design = pydoe.fullfact([2, 3, 4]) # Full factorial with 2, 3, 4 levels
Requires Python 3.10 or later.
Verify before relying
- Whether the package's large API surface (many design methods) is actively maintained or if some functions are legacy/deprecated.
- Performance characteristics for large-scale designs (e.g., how many factors or runs the methods can handle efficiently).
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — numpy, scipy |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,757,252/month — #2,904 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pydoe-1.4.0-py3-none-any.whl
Keywords: DOE, design of experiments, experimental design, optimal design, optimization, python, sparse grids, statistics, taguchi design
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pyDOE3pyDOE3 provides functions to construct…
permissive · top 15,000 on PyPI
rdrobustImplements regression discontinuity (RD) design…
copyleft · top 15,000 on PyPI
blueskyBluesky is an experiment control and scientific…
permissive · top 15,000 on PyPI
qcodesQCoDeS is a Python data acquisition and control…
permissive · top 15,000 on PyPI
pyedbPyEDB is a high-level Python API for reading,…
permissive · top 15,000 on PyPI
scikit-posthocsProvides post hoc statistical tests for…
permissive · top 15,000 on PyPI
gmrGaussian Mixture Models for clustering and…
permissive · top 15,000 on PyPI
spglmFits Gaussian, Poisson, QuasiPoisson, and…
permissive · top 15,000 on PyPI
qiskit-experimentsQiskit Experiments provides tools for building,…
permissive · top 15,000 on PyPI