Skill Tracer
Skills › Scientific Agent Skills › experimental-design

experimental-design

skill · 286 lines · MIT license · skills/experimental-design/SKILL.md

The facts

Its description

Designs experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects/samples to groups, mentions randomization, blocking, stratification, controls, factorial or fractional-factorial designs, design of experiments (DOE), screening many factors, response-surface optimization, crossover or repeated-measures or split-plot designs, cluster/group randomization, Latin squares, plate layouts, batch/run-order effects, replication vs. pseudoreplication, or sequential/adaptive/group-sequential designs. Trigger even for informal phrasings like "how should I set up this experiment", "how do I avoid confounding", "what's the best way to test these 6 factors", or "assign these mice to conditions". For computing the sample size or power once the design is chosen, use statistical-power; for analyzing data already collected, use statistical-analysis.

The description the agent reads to decide when to use it.

From its settingsline 3

Tools it may use, or may not

allowed-tools: Read Write Edit Bash

Tools it may use while it runs without asking you first.

From its settingsline 4

Runs scripts

bin/python, scripts/randomization.py, scripts/doe_designs.py

Scripts the text names. Found by matching words, so treat them as pointers.

Found by matching wordsline 43 line 102 line 137 line 241 line 244

Files it mentions

references/randomization_and_blocking.md, references/factorial_and_doe.md, references/design_types.md, references/sequential_and_adaptive.md, scripts/randomization.py (first 5 of 15 lines)

Files the text names, such as ones to read or write. Found by matching words, so treat them as pointers.

Found by matching wordsline 86 line 87 line 88 line 89 line 102

Licence

MIT license, from the skill file

The terms its author shares it under, which let it be shown here.

From its settingsline 6 licence text

Other settings

compatibility: Requires Python >=3.12 with numpy, pandas, and pydoe 1.5.0 (DOE matrices). Network access is needed only to install packages; no credentials are required. metadata: version: "1.5" last-reviewed: "2026-09-30" skill-author: K-Dense Inc.

More settings at the top of the file, shown as written.

From its settingsline 5 line 7
Other files in this skill (6) Close

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: experimental-design
3description: Designs experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects/samples to groups, mentions randomization, blocking, stratification, controls, factorial or fractional-factorial designs, design of experiments (DOE), screening many factors, response-surface optimization, crossover or repeated-measures or split-plot designs, cluster/group randomization, Latin squares, plate layouts, batch/run-order effects, replication vs. pseudoreplication, or sequential/adaptive/group-sequential designs. Trigger even for informal phrasings like "how should I set up this experiment", "how do I avoid confounding", "what's the best way to test these 6 factors", or "assign these mice to conditions". For computing the sample size or power once the design is chosen, use statistical-power; for analyzing data already collected, use statistical-analysis.
4allowed-tools: Read Write Edit Bash
5compatibility: Requires Python >=3.12 with numpy, pandas, and pydoe 1.5.0 (DOE matrices). Network access is needed only to install packages; no credentials are required.
6license: MIT license
7metadata:
8 version: "1.5"
9 last-reviewed: "2026-09-30"
10 skill-author: K-Dense Inc.
11---
13# Experimental Design

Experimental Design

Raw lines 1 to 14
15## Overview
17The design of a study — how units are assigned to conditions, what is held constant, what is varied, and in what structure — determines what questions the data can answer. No analysis can rescue a confounded or pseudoreplicated design after the fact. This skill is about the decisions made *before* data collection: picking a design that isolates the effect of interest, randomizing to license causal claims, blocking to remove known nuisance variation, and structuring multi-factor experiments so effects are estimable rather than tangled together.
19The three ideas behind almost every good design (Fisher's principles):
20- **Randomization** — assign treatments at random so that confounders, known and unknown, are balanced in expectation. This is what turns a comparison into a causal claim.
21- **Replication** — independent repetition at the right level, so you can estimate variability and your effects aren't artifacts of a single unit. The most common fatal error is **pseudoreplication**: counting repeated measurements on the same unit as independent replicates.
22- **Blocking / local control** — group similar units (by batch, day, site, litter) and randomize within blocks, removing that nuisance variation from the error term instead of letting it inflate noise.
24This skill helps you choose among design types, generate the actual randomization or DOE layout (with reproducible scripts), and avoid the structural mistakes that make data uninterpretable.

Overview

The design of a study — how units are assigned to conditions, what is held constant, what is varied, and in what structure — determines what questions the data can answer. No analysis can rescue a confounded or pseudoreplicated design after the fact. This skill is about the decisions made before data collection: picking a design that isolates the effect of interest, randomizing to license causal claims, blocking to remove known nuisance variation, and structuring multi-factor experiments so effects are estimable rather than tangled together.

The three ideas behind almost every good design (Fisher's principles):

  • Randomization — assign treatments at random so that confounders, known and unknown, are balanced in expectation. This is what turns a comparison into a causal claim.
  • Replication — independent repetition at the right level, so you can estimate variability and your effects aren't artifacts of a single unit. The most common fatal error is pseudoreplication: counting repeated measurements on the same unit as independent replicates.
  • Blocking / local control — group similar units (by batch, day, site, litter) and randomize within blocks, removing that nuisance variation from the error term instead of letting it inflate noise.

This skill helps you choose among design types, generate the actual randomization or DOE layout (with reproducible scripts), and avoid the structural mistakes that make data uninterpretable.

Raw lines 15 to 25
26## When to Use This Skill
28- Planning any comparative experiment or trial and deciding how to assign units
29- Randomizing subjects/samples to arms (simple, blocked, stratified, or cluster)
30- Removing nuisance variation by blocking or stratification
31- Designing multi-factor experiments: full or fractional factorial, screening designs
32- Optimizing a response over continuous factors (response-surface designs)
33- Within-subject / repeated-measures, crossover, split-plot, or Latin-square designs
34- Cluster- or group-randomized designs (sites, clinics, classrooms, litters)
35- Deciding the number and level of replicates and avoiding pseudoreplication
36- Sequential, group-sequential, or adaptive designs with interim analyses
37- Laying out plates/batches and randomizing run order to defeat drift

When to Use This Skill

  • Planning any comparative experiment or trial and deciding how to assign units
  • Randomizing subjects/samples to arms (simple, blocked, stratified, or cluster)
  • Removing nuisance variation by blocking or stratification
  • Designing multi-factor experiments: full or fractional factorial, screening designs
  • Optimizing a response over continuous factors (response-surface designs)
  • Within-subject / repeated-measures, crossover, split-plot, or Latin-square designs
  • Cluster- or group-randomized designs (sites, clinics, classrooms, litters)
  • Deciding the number and level of replicates and avoiding pseudoreplication
  • Sequential, group-sequential, or adaptive designs with interim analyses
  • Laying out plates/batches and randomizing run order to defeat drift
Raw lines 26 to 38
39## Installation
41```bash
42uv venv --python 3.13 .venv-design
43uv pip install --python .venv-design/bin/python "numpy==2.5.3" "pandas==3.0.6" "pydoe==1.5.0"
44```
46`pyDOE3` was [archived in May 2026](https://github.com/relf/pyDOE3); active
47development returned to [pydoe](https://pydoe.github.io/pydoe/). The bundled
48wrappers target `pydoe==1.5.0`, imported as lowercase `pydoe`, and return
49designs in real factor units. All seven DOE wrappers and both script demos were
50executed with Python 3.13, NumPy 2.5.3, pandas 3.0.6, and SciPy 1.18.1. On
51Windows, the environment interpreter is `.venv-design/Scripts/python.exe`.
52Archive the environment versions and exported schedules: a seed alone does not
53promise identical output across package or script upgrades.
55---

Installation

uv venv --python 3.13 .venv-design
uv pip install --python .venv-design/bin/python "numpy==2.5.3" "pandas==3.0.6" "pydoe==1.5.0"

pyDOE3 was archived in May 2026; active development returned to pydoe. The bundled wrappers target pydoe==1.5.0, imported as lowercase pydoe, and return designs in real factor units. All seven DOE wrappers and both script demos were executed with Python 3.13, NumPy 2.5.3, pandas 3.0.6, and SciPy 1.18.1. On Windows, the environment interpreter is .venv-design/Scripts/python.exe. Archive the environment versions and exported schedules: a seed alone does not promise identical output across package or script upgrades.


Raw lines 39 to 56
Runs code bin/python :43
57## Choosing a design
59Start from the question and the structure of your units, not from a favorite design.
61```
62What are you trying to learn?
63│
64├─ Compare a few predefined conditions (A vs B vs C)?
65│ ├─ Units independent, possibly with a known nuisance factor (day, batch, site)?
66│ │ → Completely randomized (no nuisance) or RANDOMIZED BLOCK design.
67│ ├─ Each unit can receive every condition in sequence (washout possible)?
68│ │ → CROSSOVER / repeated-measures design (watch carry-over and correlation).
69│ └─ You can only randomize groups, not individuals (schools, clinics)?
70│ → CLUSTER-randomized design (account for clustering; see pseudoreplication).
71│
72├─ Screen MANY factors (5+) to find the few that matter?
73│ → FRACTIONAL FACTORIAL or PLACKETT-BURMAN screening design.
74│
75├─ Quantify main effects AND interactions among a handful of factors?
76│ → FULL 2^k FACTORIAL design.
77│
78├─ Find the settings that OPTIMIZE a response (curvature matters)?
79│ → RESPONSE-SURFACE design: central composite or Box-Behnken.
80│
81└─ Explore a simulation/computer model over a continuous space?
82 → SPACE-FILLING design: Latin hypercube.
83```
85Detailed guidance per branch:
86- **Randomization, blocking, stratification, controls** → `references/randomization_and_blocking.md`
87- **Factorial, fractional-factorial, screening, response-surface, DOE concepts (aliasing, resolution)** → `references/factorial_and_doe.md`
88- **Crossover, repeated-measures, split-plot, Latin-square, cluster, nested designs** → `references/design_types.md`
89- **Sequential, group-sequential, and adaptive designs (interim analyses)** → `references/sequential_and_adaptive.md`
91---

Choosing a design

Start from the question and the structure of your units, not from a favorite design.

What are you trying to learn?
│
├─ Compare a few predefined conditions (A vs B vs C)?
│   ├─ Units independent, possibly with a known nuisance factor (day, batch, site)?
│   │     → Completely randomized (no nuisance) or RANDOMIZED BLOCK design.
│   ├─ Each unit can receive every condition in sequence (washout possible)?
│   │     → CROSSOVER / repeated-measures design (watch carry-over and correlation).
│   └─ You can only randomize groups, not individuals (schools, clinics)?
│         → CLUSTER-randomized design (account for clustering; see pseudoreplication).
│
├─ Screen MANY factors (5+) to find the few that matter?
│     → FRACTIONAL FACTORIAL or PLACKETT-BURMAN screening design.
│
├─ Quantify main effects AND interactions among a handful of factors?
│     → FULL 2^k FACTORIAL design.
│
├─ Find the settings that OPTIMIZE a response (curvature matters)?
│     → RESPONSE-SURFACE design: central composite or Box-Behnken.
│
└─ Explore a simulation/computer model over a continuous space?
      → SPACE-FILLING design: Latin hypercube.

Detailed guidance per branch:


Raw lines 57 to 92
93## Generating the design
95Two scripts produce ready-to-use, reproducible layouts. Run them from the skill's
96`scripts/` directory or add it to `sys.path`. Seeds support reproducible layouts
97within the recorded software environment.
98The default seed is for demonstrations; choose and securely record a study-specific
99seed for a real allocation. These helpers do not implement an enrollment system
100or conceal future assignments from recruiters.

Generating the design

Two scripts produce ready-to-use, reproducible layouts. Run them from the skill's scripts/ directory or add it to sys.path. Seeds support reproducible layouts within the recorded software environment. The default seed is for demonstrations; choose and securely record a study-specific seed for a real allocation. These helpers do not implement an enrollment system or conceal future assignments from recruiters.

Raw lines 93 to 101
102### Randomization / allocation schedules — `scripts/randomization.py`
104```python
105from randomization import (
106 simple_randomization, block_randomization,
107 stratified_block_randomization, cluster_randomization,
108 assign_factorial_runs, arm_balance,
111# Permuted blocks balance at completed-block boundaries.
112# A partial final block or interim prefix need not have the requested ratio.
113sched = block_randomization(n=60, arms=["treatment", "control"], seed=42)
115# Balance a prognostic variable across arms by randomizing within each stratum
116sched = stratified_block_randomization({"siteA": 30, "siteB": 30},
117 arms=["drug", "placebo"], ratio=(2, 1), seed=42)
119# Randomize whole clusters, not individuals (the cluster is the unit)
120sched = cluster_randomization(["clinic1", "clinic2", "clinic3", "clinic4"], seed=42)
122arm_balance(sched) # sanity-check the counts per arm
123sched.to_csv("allocation_schedule.csv", index=False)
124```
126Choosing among them: **simple** is fine for large n but can produce imbalance with
127small n; **block** enforces the ratio within each complete block; **stratified block**
128does this independently within each stratum; **cluster** is mandatory when the intervention
129is delivered at a group level. See `references/randomization_and_blocking.md`.
131For a sequence of stratum labels, `unit_id` is the original one-based input
132position, including when strata are interleaved. Join the exported schedule to
133your subject IDs using that position and verify every ID exactly once. A dict
134input creates grouped planning slots rather than assigning an existing roster.
135Missing stratum labels and duplicate cluster IDs are rejected.

Randomization / allocation schedules — scripts/randomization.py

from randomization import (
    simple_randomization, block_randomization,
    stratified_block_randomization, cluster_randomization,
    assign_factorial_runs, arm_balance,
)

# Permuted blocks balance at completed-block boundaries.
# A partial final block or interim prefix need not have the requested ratio.
sched = block_randomization(n=60, arms=["treatment", "control"], seed=42)

# Balance a prognostic variable across arms by randomizing within each stratum
sched = stratified_block_randomization({"siteA": 30, "siteB": 30},
                                       arms=["drug", "placebo"], ratio=(2, 1), seed=42)

# Randomize whole clusters, not individuals (the cluster is the unit)
sched = cluster_randomization(["clinic1", "clinic2", "clinic3", "clinic4"], seed=42)

arm_balance(sched)            # sanity-check the counts per arm
sched.to_csv("allocation_schedule.csv", index=False)

Choosing among them: simple is fine for large n but can produce imbalance with small n; block enforces the ratio within each complete block; stratified block does this independently within each stratum; cluster is mandatory when the intervention is delivered at a group level. See references/randomization_and_blocking.md.

For a sequence of stratum labels, unit_id is the original one-based input position, including when strata are interleaved. Join the exported schedule to your subject IDs using that position and verify every ID exactly once. A dict input creates grouped planning slots rather than assigning an existing roster. Missing stratum labels and duplicate cluster IDs are rejected.

Raw lines 102 to 136
137### DOE matrices — `scripts/doe_designs.py`
139```python
140from doe_designs import (
141 full_factorial, two_level_factorial, fractional_factorial,
142 plackett_burman, central_composite, box_behnken, latin_hypercube,
145# Factors as real-world (low, high) ranges -> design comes back in real units
146factors = {"temp_C": (20, 60), "conc_mM": (1, 10), "pH": (6, 8)}
148# Full 2^3: all main effects + all interactions (8 runs), run order randomized
149design = two_level_factorial(factors, seed=42)
151# Screen 7 factors cheaply (main effects only)
152many = {f"factor_{i}": (0, 1) for i in range(7)}
153design = plackett_burman(many, seed=42)
155# Optimize over 2 factors with curvature (response-surface)
156design = central_composite(
157 {"temp_C": (20, 60), "conc_mM": (1, 10)},
158 center=(2, 2), face="inscribed", seed=42,
161design.to_csv("experimental_runs.csv", index=False)
162```
164Before running a central composite design, inspect each factor's actual minimum
165and maximum. The default `face="circumscribed"` places axial points beyond the
166supplied low/high factorial settings; those arguments are not hard operating
167limits. If the stated ranges are physical limits, choose `face="inscribed"` or
168`face="faced"`, then recheck all combinations. Do not clip out-of-range rows:
169clipping changes the design geometry and its statistical properties. See the
170[NIST CCD comparison](https://www.itl.nist.gov/div898/handbook/pri/section3/pri3361.htm).
172The CCD example reserves four center runs; execute them independently to estimate
173pure error. The wrapper default has only one. Confirm all settings are feasible, the intended
174model matrix has full rank, and independent replication supplies residual degrees
175of freedom. Center points check aggregate curvature; they do not identify each
176quadratic term without axial or other suitable runs.
178DOE run order is randomized by default (Latin hypercube defaults to no added
179`run_order`) so factors are not systematically aligned with time/drift
180(machine warm-up, reagent aging). See `references/factorial_and_doe.md` for picking
181generators, reading the alias structure, and choosing resolution. These wrappers
182shuffle globally: for split plots, plates, or a CCD run in separate batches, retain
183block IDs and randomize only within the permitted structure.
185---

DOE matrices — scripts/doe_designs.py

from doe_designs import (
    full_factorial, two_level_factorial, fractional_factorial,
    plackett_burman, central_composite, box_behnken, latin_hypercube,
)

# Factors as real-world (low, high) ranges -> design comes back in real units
factors = {"temp_C": (20, 60), "conc_mM": (1, 10), "pH": (6, 8)}

# Full 2^3: all main effects + all interactions (8 runs), run order randomized
design = two_level_factorial(factors, seed=42)

# Screen 7 factors cheaply (main effects only)
many = {f"factor_{i}": (0, 1) for i in range(7)}
design = plackett_burman(many, seed=42)

# Optimize over 2 factors with curvature (response-surface)
design = central_composite(
    {"temp_C": (20, 60), "conc_mM": (1, 10)},
    center=(2, 2), face="inscribed", seed=42,
)

design.to_csv("experimental_runs.csv", index=False)

Before running a central composite design, inspect each factor's actual minimum and maximum. The default face="circumscribed" places axial points beyond the supplied low/high factorial settings; those arguments are not hard operating limits. If the stated ranges are physical limits, choose face="inscribed" or face="faced", then recheck all combinations. Do not clip out-of-range rows: clipping changes the design geometry and its statistical properties. See the NIST CCD comparison.

The CCD example reserves four center runs; execute them independently to estimate pure error. The wrapper default has only one. Confirm all settings are feasible, the intended model matrix has full rank, and independent replication supplies residual degrees of freedom. Center points check aggregate curvature; they do not identify each quadratic term without axial or other suitable runs.

DOE run order is randomized by default (Latin hypercube defaults to no added run_order) so factors are not systematically aligned with time/drift (machine warm-up, reagent aging). See references/factorial_and_doe.md for picking generators, reading the alias structure, and choosing resolution. These wrappers shuffle globally: for split plots, plates, or a CCD run in separate batches, retain block IDs and randomize only within the permitted structure.


Raw lines 137 to 186
Reads a file scripts/doe_designs.py :137
187## The mistakes that ruin studies
189These are structural — they can't be fixed in analysis, only in design.
1911. **Pseudoreplication.** Treating repeated measurements of one unit as independent
192 replicates: 3 mice with 100 cells each is n = 3 (mice), not n = 300 (cells), for
193 any treatment applied to the mouse. The replicate must be at the level the
194 treatment is randomized. This single error invalidates a large share of published
195 experiments. Randomize and replicate at the right level; analyze with the nesting
196 respected (mixed model). See `references/design_types.md`.
1972. **Confounding by a nuisance variable.** Running all treatment samples on Monday
198 and all controls on Tuesday confounds treatment with day. Randomize across, or
199 block on, every nuisance factor you can name (batch, day, plate, technician,
200 instrument, position).
2013. **No or broken randomization.** Convenience assignment (first-come → treatment)
202 lets confounders sneak in. Use a seeded schedule and follow it.
2034. **No proper control.** Without a concurrent control (and, where relevant, a
204 vehicle/sham and blinding), you can't separate the treatment effect from time,
205 placebo, or handling effects.
2065. **Batch effects mistaken for biology.** In omics especially, process samples in a
207 randomized/blocked order across batches; never let batch align with the condition.
2086. **Edge/position effects on plates.** Evaporation and thermal gradients make plate
209 edges differ. Randomize or block sample positions; don't put all controls in
210 column 1.
2117. **Aliasing ignored in fractional designs.** A low-resolution fractional factorial
212 confounds main effects with interactions; know your alias structure before
213 concluding a factor "has no effect."
2148. **Optimizing without curvature.** A two-level factorial alone cannot estimate
215 pure quadratic terms; you'll miss an interior optimum. Use a response-surface design.
217---

The mistakes that ruin studies

These are structural — they can't be fixed in analysis, only in design.

  1. Pseudoreplication. Treating repeated measurements of one unit as independent replicates: 3 mice with 100 cells each is n = 3 (mice), not n = 300 (cells), for any treatment applied to the mouse. The replicate must be at the level the treatment is randomized. This single error invalidates a large share of published experiments. Randomize and replicate at the right level; analyze with the nesting respected (mixed model). See references/design_types.md.
  2. Confounding by a nuisance variable. Running all treatment samples on Monday and all controls on Tuesday confounds treatment with day. Randomize across, or block on, every nuisance factor you can name (batch, day, plate, technician, instrument, position).
  3. No or broken randomization. Convenience assignment (first-come → treatment) lets confounders sneak in. Use a seeded schedule and follow it.
  4. No proper control. Without a concurrent control (and, where relevant, a vehicle/sham and blinding), you can't separate the treatment effect from time, placebo, or handling effects.
  5. Batch effects mistaken for biology. In omics especially, process samples in a randomized/blocked order across batches; never let batch align with the condition.
  6. Edge/position effects on plates. Evaporation and thermal gradients make plate edges differ. Randomize or block sample positions; don't put all controls in column 1.
  7. Aliasing ignored in fractional designs. A low-resolution fractional factorial confounds main effects with interactions; know your alias structure before concluding a factor "has no effect."
  8. Optimizing without curvature. A two-level factorial alone cannot estimate pure quadratic terms; you'll miss an interior optimum. Use a response-surface design.

Raw lines 187 to 218
Reads a file references/design_types.md :196
219## Workflow
2211. **State the question, the unit, and the response.** What is randomized? What is
222 measured? At what level is a true independent replicate? This determines everything.
2232. **List nuisance factors** (batch, day, site, operator, position) — plan to block,
224 stratify, or randomize across each.
2253. **Pick the design** using the decision tree and reference files.
2264. **Decide replication** at the correct level (and get n from the
227 **statistical-power** skill for the chosen design).
2285. **Generate the layout** with `randomization.py` / `doe_designs.py`, seeded.
2296. **Randomize run/processing order** and plate/batch positions within the design
230 restrictions; verify roster IDs, completed-block balance, range limits, and rank.
2317. **Document** the design, software versions, seed, and schedule. Pre-specify the
232 analysis; restrict access to the seed and future assignments during enrollment.
2338. **Match the analysis to the design** — blocks, strata, clusters, and nesting must
234 appear in the model (hand off to **statistical-analysis** / **statsmodels**).
236---

Workflow

  1. State the question, the unit, and the response. What is randomized? What is measured? At what level is a true independent replicate? This determines everything.
  2. List nuisance factors (batch, day, site, operator, position) — plan to block, stratify, or randomize across each.
  3. Pick the design using the decision tree and reference files.
  4. Decide replication at the correct level (and get n from the statistical-power skill for the chosen design).
  5. Generate the layout with randomization.py / doe_designs.py, seeded.
  6. Randomize run/processing order and plate/batch positions within the design restrictions; verify roster IDs, completed-block balance, range limits, and rank.
  7. Document the design, software versions, seed, and schedule. Pre-specify the analysis; restrict access to the seed and future assignments during enrollment.
  8. Match the analysis to the design — blocks, strata, clusters, and nesting must appear in the model (hand off to statistical-analysis / statsmodels).

Raw lines 219 to 237
238## Resources
240### Scripts
241- `scripts/randomization.py` — seeded allocation schedules: `simple_randomization`,
242 `block_randomization`, `stratified_block_randomization`, `cluster_randomization`,
243 `assign_factorial_runs`, `arm_balance`.
244- `scripts/doe_designs.py` — DOE matrices in real units: `full_factorial`,
245 `two_level_factorial`, `fractional_factorial`, `plackett_burman`,
246 `central_composite`, `box_behnken`, `latin_hypercube`.

Scripts

  • scripts/randomization.py — seeded allocation schedules: simple_randomization, block_randomization, stratified_block_randomization, cluster_randomization, assign_factorial_runs, arm_balance.
  • scripts/doe_designs.py — DOE matrices in real units: full_factorial, two_level_factorial, fractional_factorial, plackett_burman, central_composite, box_behnken, latin_hypercube.
Raw lines 240 to 247
Reads a file scripts/randomization.py :241
Reads a file scripts/doe_designs.py :244
248### References
249- `references/randomization_and_blocking.md` — randomization methods, blocking,
250 stratification, controls, blinding, batch/plate layout.
251- `references/factorial_and_doe.md` — factorial and fractional designs, resolution
252 and aliasing, screening, and response-surface methodology.
253- `references/design_types.md` — completely randomized, randomized block, crossover,
254 repeated-measures, split-plot, Latin-square, cluster, and nested designs; the
255 pseudoreplication problem in depth.
256- `references/sequential_and_adaptive.md` — group-sequential designs, alpha spending,
257 interim stopping, and adaptive sample-size re-estimation.

References

Raw lines 248 to 258
259### Related skills
260- **statistical-power** — required sample size / power for the design you've chosen.
261- **statistical-analysis** — running and reporting the analysis after collection.
262- **statsmodels** / **pymc** — fitting the models the design implies.

Related skills

  • statistical-power — required sample size / power for the design you've chosen.
  • statistical-analysis — running and reporting the analysis after collection.
  • statsmodels / pymc — fitting the models the design implies.
Raw lines 259 to 263
264### Key references
265- Fisher, R. A. (1935). *The Design of Experiments*.
266- Montgomery, D. C. (2019). *Design and Analysis of Experiments* (10th ed.).
267- Hurlbert, S. H. (1984). Pseudoreplication and the design of ecological field
268 experiments. *Ecological Monographs*, 54(2), 187–211.
269- Lazic, S. E. (2016). *Experimental Design for Laboratory Biologists*.

Key references

  • Fisher, R. A. (1935). The Design of Experiments.
  • Montgomery, D. C. (2019). Design and Analysis of Experiments (10th ed.).
  • Hurlbert, S. H. (1984). Pseudoreplication and the design of ecological field experiments. Ecological Monographs, 54(2), 187–211.
  • Lazic, S. E. (2016). Experimental Design for Laboratory Biologists.
Raw lines 264 to 270
Boilerplate, lines 271 to 286. The same text appears in 125 other files here. Close
271## Citing Scientific Agent Skills
273This skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a
274manuscript, report, presentation, or code release, add the paper to the references or
275software section and tell the user you did so:
277> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent
278> Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065.
279> https://doi.org/10.48550/arXiv.2609.00065
281Always cite the current version. The DOI and https://arxiv.org/abs/2609.00065 resolve to the
282latest arXiv version, so never append a version suffix such as `v1`. When network access is
283available, fetch https://arxiv.org/abs/2609.00065 (or
284http://export.arxiv.org/api/query?id_list=2609.00065) before writing the reference and take
285the author list, year, and version from that record. If the record lists a journal reference
286or publisher DOI, cite the published version instead.

From K-Dense-AI/scientific-agent-skills at 5f2bc03, 2026-10-26. Not read by a model yet. Summary and techniques by Claude Opus 5.5 on 2026-11-06.