> For the complete documentation index, see [llms.txt](https://zavalab.gitbook.io/doe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zavalab.gitbook.io/doe/readme.md). Agents can also search and read this documentation through its [MCP server](https://zavalab.gitbook.io/doe/~gitbook/mcp).

# Design of Experiments

From Data to Models to Decisions

**Victor M. Zavala** · Department of Chemical and Biological Engineering, University of Wisconsin-Madison

How should experiments be chosen so that they teach us the most, or lead us to the best conditions, with the fewest runs? This online book follows my notes on Experimental Design and provides Python implementations right next to the concepts and equations they implement. An interactive lab where you can try the techniques is included in the book.

{% hint style="info" %}
This material supports the textbook [*Statistics for Chemical Engineers*](https://www.cambridge.org/highereducation/product/A8DB49C10B02BADA637D13FC02CD62A7) by Victor M. Zavala (Cambridge University Press, © 2025), and complements its [online companion](https://zavalab.gitbook.io/statschemebook).
{% endhint %}

## Where to start

| If you want to...                                     | Start here                                                                                                                                                                                                                                                                 |
| ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| choose experiments for a regression model             | [Experimental Design for Linear Regression](https://zavalab.gitbook.io/doe/chapter-3-experimental-design-techniques/01-experimental-design-for-linear-regression.md)                                                                                                       |
| add the most informative experiments to data you have | [Optimal Design](https://zavalab.gitbook.io/doe/chapter-3-experimental-design-techniques/03-optimal-design-a-d-e.md)                                                                                                                                                       |
| find the best operating conditions                    | [Response Surface Methodology](https://zavalab.gitbook.io/doe/chapter-3-experimental-design-techniques/04-response-surface-methodology.md) or [Bayesian Optimization](https://zavalab.gitbook.io/doe/chapter-3-experimental-design-techniques/06-bayesian-optimization.md) |
| review regression and uncertainty first               | [Modeling Techniques](https://zavalab.gitbook.io/doe/chapter-1-modeling-techniques/01-modeling-techniques.md)                                                                                                                                                              |
| review Gaussian processes first                       | [Gaussian Process Models](https://zavalab.gitbook.io/doe/chapter-2-advanced-modeling-techniques/02-gaussian-process-models.md)                                                                                                                                             |

## Slides, notebooks, and code on GitHub

All materials are in the GitHub repository [vzavala/DoE](https://github.com/vzavala/DoE):

* [Slides](https://github.com/vzavala/DoE/tree/main/Slides) (PDF, one deck per chapter) and [4-up handouts](https://github.com/vzavala/DoE/tree/main/Slides/handouts)
* [Python notebooks](https://github.com/vzavala/DoE/tree/main/Python), with their data

The first page of each chapter links to its slides and handout, and the slides link to the notebooks.

## DoE Lab

The [DoE Lab](https://vzavala.github.io/DoE/) is an interactive page where you run experiments on the solvent extraction problem of this book. It works in any browser, with nothing to install:

* [Open the lab](https://vzavala.github.io/DoE/), or see its [page in this book](https://zavalab.gitbook.io/doe/doe-lab.md)
* Twelve techniques: from factorial and Box-Behnken designs to optimal design and Bayesian optimization
* For each technique: the experiments in 2D and 3D, the fitted model, its uncertainty, and the Fisher information
* The process is the quadratic model fitted to the data of Peng et al. (2020), so the results can be compared with the slides and notebooks

<figure><img src="https://1271928544-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwGO5oE8nytjcJL6IP9dU%2Fuploads%2Fgit-blob-36ff36cb0f38383102e0e6d2bb83149c45143c2b%2Flab.png?alt=media" alt="Screenshot of the DoE Lab" width="563"><figcaption><p>The DoE Lab.</p></figcaption></figure>

## How the pages are organized

Each chapter follows the slides. Wherever a slide works through an example, the page continues with a **Python implementation** section: a short table that maps the symbols on the slide to the Python variable names, the equations each followed by the code that computes it, and the results and figures. Every implementation is also a Jupyter notebook that you can open in Google Colab or run locally (see [How to use this book](https://zavalab.gitbook.io/doe/how-to-use.md)).

## Chapters

1. **Modeling Techniques**: regression, uncertainty quantification, data sufficiency, nonlinear models, prior knowledge, Bayesian estimation
2. **Advanced Modeling Techniques**: kernel models, Gaussian processes, neural nets
3. **Experimental Design Techniques**: factorial, optimal (A, D, E), response surface, Bayesian design, Bayesian optimization

The [Nomenclature](https://zavalab.gitbook.io/doe/nomenclature.md) page summarizes how the mathematical notation maps to Python names.

## Credits

Python notebooks by Victor M. Zavala with Ugochukwu Ikegwu, David Cole, J. E. Umaña, Jaron T., Leo Gonzalez, and Shiyi (Amy) Qin.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://zavalab.gitbook.io/doe/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
