> For the complete documentation index, see [llms.txt](https://www.mlcompendium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.mlcompendium.com/decision-intelligence/design-of-experiments.md).

# Design Of Experiments

A test that changes one thing at a time burns runs; design of experiments plans the tests so you learn from fewer of them. The reading below goes from why and how to experiment, through introductions, to worked Python, R, and Matlab examples. The same notes are in [Factorial Design](/decision-intelligence/factorial-design.md).

The two (good) starting points frame the problem before any tooling. (good) [The 7 steps of DoE](https://towardsdatascience.medium.com/design-of-experiments-for-your-change-management-8f70880efcdd) is Chris Kuo's Design of Experiments for Your Change Management, written for data science professionals who have faced the challenges it lists. (good) [Experimental Design for Data Science](https://towardsdatascience.medium.com/designing-experiments-in-data-science-23360d2ddf84) is the same question asked as experimental design in data science. [Vidhya on DOE, has a good explanation on why and how we can experiment with less variables](https://www.analyticsvidhya.com/blog/2015/10/guide-design-of-experiments-case-study/) is the Guest Blog beginner's guide, with a case study on banner advertisement, that treats DoE as a common analytical technique to design the right testing framework.

With the why in place, the introductions name the idea itself. An intro to DOE used to open this run; that address no longer opens and is kept at the end of the page. [2.](https://medium.com/swlh/a-design-of-experiments-6ab225ba9ab5) is Nicolus Rotich's A Design of Experiments, which starts from why we say "a design of experiments" the way we say "a school of fish", even though we are used to "a set of experiments".

The rest turns the plan into code. [Design of experiments overview of types, with PyDoe](https://towardsdatascience.medium.com/design-your-engineering-experiment-plan-with-a-simple-python-command-35a6ba52fa35) is Tirthajyoti Sarkar creating the experimental design with a simple Python command; the update notes that the code is now the standard library `doepy`, installed with `pip install doepy` and used to generate design tables. Its source, with multiple examples, is the [Git](https://github.com/tirthajyoti/Design-of-experiment-Python) repo tirthajyoti/Design-of-experiment-Python, a design-of-experiment (DOE) generator for science, engineering, and statistics. [Design of Experiments (DOE) with python](https://medium.com/mlearning-ai/design-of-experiments-doe-with-python-be88f5c013f5) is Andrea Castiglioni's introduction through a simple case study with and without interactions. Its follow-up, [Response Optimization with Design of Experiments and python](https://towardsdatascience.medium.com/response-optimization-with-design-of-experiments-and-python-63f9afb3f26f), moves from mean effects and interactions in a 2-level DOE to looking for the maximum response of the system. Outside Python, [Factorial Design using Matlab](https://medium.com/@shrutiavinodh/full-factorial-design-using-matlab-ccb98315b0d8) is the full factorial experiment, two or more factors with discrete values and every combination of them, run in MATLAB. [DOE with R](https://towardsdatascience.medium.com/design-of-experiments-with-r-e54167fac490) is Design of Experiments with R, opening on an image by Hans Reniers.

## Deprecated links

{% hint style="warning" %}
These links and images no longer work. The original wording is kept here. A same-resource copy, when one was checked, is used above.
{% endhint %}

* Medium on various papers that are tagged as experimental design. This address no longer opens: <https://towardsdatascience.com/tagged/experimental-design>
* Intro to DOE. This address no longer opens: <https://towardsdatascience.medium.com/an-introduction-to-design-of-experiments-3e86ea3ef7f6>


---

# 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://www.mlcompendium.com/decision-intelligence/design-of-experiments.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.
