Skill Tracer
Skills › Scientific Agent Skills › experimental-design › design_types.md

design_types.md

137 lines · skills/experimental-design/references/design_types.md at 5f2bc03

Open on GitHub
1# Design Types and the Replication Structure
2
3Choosing the right design structure is mostly about matching the *unit of
4randomization* and the *unit of replication* to your question, and respecting any
5nesting in the analysis. This file walks through the standard structures and then
6treats the single most common fatal error — pseudoreplication — in depth.
7

Design Types and the Replication Structure

Choosing the right design structure is mostly about matching the unit of randomization and the unit of replication to your question, and respecting any nesting in the analysis. This file walks through the standard structures and then treats the single most common fatal error — pseudoreplication — in depth.

Raw lines 1 to 7
8## Table of contents
9- [Completely randomized design](#completely-randomized-design)
10- [Randomized complete block design](#randomized-complete-block-design)
11- [Latin square](#latin-square)
12- [Repeated-measures and crossover](#repeated-measures-and-crossover)
13- [Split-plot designs](#split-plot-designs)
14- [Cluster / group-randomized designs](#cluster--group-randomized-designs)
15- [Nested designs and pseudoreplication](#nested-designs-and-pseudoreplication)

Table of contents

  • Completely randomized design
  • Randomized complete block design
  • Latin square
  • Repeated-measures and crossover
  • Split-plot designs
  • Cluster / group-randomized designs
  • Nested designs and pseudoreplication
Raw lines 8 to 16
17## Completely randomized design
19Units are assigned to treatments purely at random, no blocking. Simplest design;
20appropriate when units are homogeneous and there's no identifiable nuisance factor.
21Analyze with one-way ANOVA / regression. If units are *not* homogeneous, the
22nuisance variation inflates error — block instead.

Completely randomized design

Units are assigned to treatments purely at random, no blocking. Simplest design; appropriate when units are homogeneous and there's no identifiable nuisance factor. Analyze with one-way ANOVA / regression. If units are not homogeneous, the nuisance variation inflates error — block instead.

Raw lines 17 to 23
24## Randomized complete block design
26Group units into **blocks** of similar units (day, batch, litter), and randomize all
27treatments *within* each block. Every treatment appears once per block. The
28between-block variation is removed from the error term, sharply increasing precision
29when blocks differ. Analyze with `treatment + block` in the model. This is the
30default upgrade over a completely randomized design whenever a nuisance factor exists.

Randomized complete block design

Group units into blocks of similar units (day, batch, litter), and randomize all treatments within each block. Every treatment appears once per block. The between-block variation is removed from the error term, sharply increasing precision when blocks differ. Analyze with treatment + block in the model. This is the default upgrade over a completely randomized design whenever a nuisance factor exists.

Raw lines 24 to 31
32## Latin square
34Controls **two** nuisance factors simultaneously with a square layout: each treatment
35appears exactly once in every row and every column. Classic uses: row = day, column =
36position/order, cell = treatment. Requires #treatments = #rows = #columns, and assumes
37no interactions between the blocking factors and treatment. Efficient when both
38nuisance dimensions matter and runs are limited. (Graeco-Latin squares extend this to
39three nuisance factors.)

Latin square

Controls two nuisance factors simultaneously with a square layout: each treatment appears exactly once in every row and every column. Classic uses: row = day, column = position/order, cell = treatment. Requires #treatments = #rows = #columns, and assumes no interactions between the blocking factors and treatment. Efficient when both nuisance dimensions matter and runs are limited. (Graeco-Latin squares extend this to three nuisance factors.)

Raw lines 32 to 40
41## Repeated-measures and crossover
43Each subject receives more than one condition, serving as its own control. This
44removes between-subject variation — usually the largest noise source — so these
45designs can improve precision when within-subject correlation and carry-over
46assumptions support them; the benefit is not automatic.
48- **Repeated measures:** the same units measured under several conditions or over
49 time.
50- **Crossover:** each subject receives each treatment in sequence, with **washout**
51 periods between to clear carry-over. Subjects are randomized to treatment *orders*
52 (e.g. an AB/BA crossover; or a Williams square for ≥3 treatments to balance order).
54Watch for:
55- **Carry-over / residual effects** — an effect of the previous treatment persisting
56 into the next period. Adequate washout is essential; otherwise the design is biased.
57- **Period effects** — systematic change over time (learning, fatigue, disease
58 progression). Balanced orders let you separate period from treatment.
59- **Correlation within subject** — the repeated observations are not independent; the
60 analysis must model it (mixed model / repeated-measures ANOVA). Sample-size/power
61 for these depends on the within-subject correlation — use simulation in the
62 **statistical-power** skill.

Repeated-measures and crossover

Each subject receives more than one condition, serving as its own control. This removes between-subject variation — usually the largest noise source — so these designs can improve precision when within-subject correlation and carry-over assumptions support them; the benefit is not automatic.

  • Repeated measures: the same units measured under several conditions or over time.
  • Crossover: each subject receives each treatment in sequence, with washout periods between to clear carry-over. Subjects are randomized to treatment orders (e.g. an AB/BA crossover; or a Williams square for ≥3 treatments to balance order).

Watch for:

  • Carry-over / residual effects — an effect of the previous treatment persisting into the next period. Adequate washout is essential; otherwise the design is biased.
  • Period effects — systematic change over time (learning, fatigue, disease progression). Balanced orders let you separate period from treatment.
  • Correlation within subject — the repeated observations are not independent; the analysis must model it (mixed model / repeated-measures ANOVA). Sample-size/power for these depends on the within-subject correlation — use simulation in the statistical-power skill.
Raw lines 41 to 63
64## Split-plot designs
66Arises when some factors are **hard to change** (applied to large units) and others
67are **easy to change** (applied to sub-units). The hard-to-change factor is randomized
68to whole plots; the easy factor is randomized to subplots within each whole plot.
69Example: oven temperature (whole plot — you can't re-set it per sample) × coating type
70(subplot — applied per sample). Crucially there are **two different error terms** — one
71for whole-plot factors, one for subplot factors — and the analysis must use both.
72Treating a split-plot as a completely randomized factorial gives wrong (usually
73anticonservative) tests for the whole-plot factor. Industrial DOE and agricultural
74trials are full of accidental split-plots; recognize when a factor can't be reset per
75run.

Split-plot designs

Arises when some factors are hard to change (applied to large units) and others are easy to change (applied to sub-units). The hard-to-change factor is randomized to whole plots; the easy factor is randomized to subplots within each whole plot. Example: oven temperature (whole plot — you can't re-set it per sample) × coating type (subplot — applied per sample). Crucially there are two different error terms — one for whole-plot factors, one for subplot factors — and the analysis must use both. Treating a split-plot as a completely randomized factorial gives wrong (usually anticonservative) tests for the whole-plot factor. Industrial DOE and agricultural trials are full of accidental split-plots; recognize when a factor can't be reset per run.

Raw lines 64 to 76
77## Cluster / group-randomized designs
79When the intervention is delivered to a *group* (a clinic's protocol, a classroom
80curriculum, a village water supply), you can only randomize at the group level. The
81**cluster is the unit of randomization**, and because members of a cluster are
82correlated, it is effectively the unit of replication too.
84- Power depends on the number of **clusters** far more than the number of individuals,
85 and on the **intraclass correlation (ICC)**. Adding people to existing clusters
86 helps much less than adding clusters.
87- The **design effect** `DEFF = 1 + (m − 1)·ICC` (m = common cluster size) approximates the
88 variance inflation for an equal-size parallel design with exchangeable correlation;
89 unequal sizes or other designs require a suitable calculation. Even a small ICC
90 with large clusters costs dearly. Power these by simulation (see **statistical-power**).
91- Analyze with a method that accounts for clustering (mixed model with a cluster
92 random effect, or GEE). Analyzing individuals as independent is pseudoreplication.

Cluster / group-randomized designs

When the intervention is delivered to a group (a clinic's protocol, a classroom curriculum, a village water supply), you can only randomize at the group level. The cluster is the unit of randomization, and because members of a cluster are correlated, it is effectively the unit of replication too.

  • Power depends on the number of clusters far more than the number of individuals, and on the intraclass correlation (ICC). Adding people to existing clusters helps much less than adding clusters.
  • The design effect DEFF = 1 + (m − 1)·ICC (m = common cluster size) approximates the variance inflation for an equal-size parallel design with exchangeable correlation; unequal sizes or other designs require a suitable calculation. Even a small ICC with large clusters costs dearly. Power these by simulation (see statistical-power).
  • Analyze with a method that accounts for clustering (mixed model with a cluster random effect, or GEE). Analyzing individuals as independent is pseudoreplication.
Raw lines 77 to 93
94## Nested designs and pseudoreplication
96**Pseudoreplication** is treating non-independent measurements as independent
97replicates. It is a serious design and analysis error in experimental biology. Statistical
98modeling cannot create missing independent replication. If enough independent
99units were collected, a mistaken analysis can be corrected by respecting the
100nesting; no mixed model rescues one independently treated unit per arm.
102The principle: **the replicate is whatever the treatment is independently applied
103and randomized to.** Measurements below that level can be biological subsamples (cells within mice)
104or technical repeated measurements. They characterize that unit but do **not**
105become independent treatment replicates.
107Worked examples:
108- **One dish per treatment, 50 cells imaged.** Treatment applied to the dish ⇒ n = 1
109 per treatment. The 50 cells describe that one dish; they are not 50 independent
110 tests of the treatment. You need multiple independently treated dishes.
111- **3 mice per group, 100 cells each.** n = 3 (mice) for a treatment given to the
112 mouse, not 300 (cells). Average within mouse, or use a mixed model with mouse as a
113 random effect.
114- **One tank of fish given a diet, every fish measured.** The tank is the unit (the
115 diet was randomized to the tank) ⇒ n = number of tanks, not number of fish. Shared
116 tank water, temperature, and social effects make fish within a tank correlated.
117- **Repeated measurements over time on the same subject** are nested within subject;
118 the subject is the replicate.
120How to avoid it:
1211. **Identify the experimental unit** = the smallest physical entity to which a
122 treatment level is independently and randomly assigned.
1232. **Replicate at that level** — more independently treated units, not more
124 measurements per unit (though technical replicates can reduce measurement noise).
1253. **Analyze with the nesting respected** — average to the unit level, or fit a mixed
126 model with random effects for the nesting (cells in mice, fish in tanks, time in
127 subjects). Inference must still use a suitable covariance model and small-sample degrees
128 of freedom; few clusters can make routine asymptotic mixed-model or GEE tests
129 unreliable.
131Technical replicates are still worth taking — they sharpen each unit's estimate — but
132report and analyze them as what they are, never as independent biological replicates.
133For sample size of nested/clustered designs, use simulation in **statistical-power**.
135See the [NC3Rs experimental-unit guidance](https://eda.nc3rs.org.uk/experimental-design-unit)
136for animal, litter, cage, and split-plot examples. Different treatment factors can
137have different experimental units within one study.

Nested designs and pseudoreplication

Pseudoreplication is treating non-independent measurements as independent replicates. It is a serious design and analysis error in experimental biology. Statistical modeling cannot create missing independent replication. If enough independent units were collected, a mistaken analysis can be corrected by respecting the nesting; no mixed model rescues one independently treated unit per arm.

The principle: the replicate is whatever the treatment is independently applied and randomized to. Measurements below that level can be biological subsamples (cells within mice) or technical repeated measurements. They characterize that unit but do not become independent treatment replicates.

Worked examples:

  • One dish per treatment, 50 cells imaged. Treatment applied to the dish ⇒ n = 1 per treatment. The 50 cells describe that one dish; they are not 50 independent tests of the treatment. You need multiple independently treated dishes.
  • 3 mice per group, 100 cells each. n = 3 (mice) for a treatment given to the mouse, not 300 (cells). Average within mouse, or use a mixed model with mouse as a random effect.
  • One tank of fish given a diet, every fish measured. The tank is the unit (the diet was randomized to the tank) ⇒ n = number of tanks, not number of fish. Shared tank water, temperature, and social effects make fish within a tank correlated.
  • Repeated measurements over time on the same subject are nested within subject; the subject is the replicate.

How to avoid it:

  1. Identify the experimental unit = the smallest physical entity to which a treatment level is independently and randomly assigned.
  2. Replicate at that level — more independently treated units, not more measurements per unit (though technical replicates can reduce measurement noise).
  3. Analyze with the nesting respected — average to the unit level, or fit a mixed model with random effects for the nesting (cells in mice, fish in tanks, time in subjects). Inference must still use a suitable covariance model and small-sample degrees of freedom; few clusters can make routine asymptotic mixed-model or GEE tests unreliable.

Technical replicates are still worth taking — they sharpen each unit's estimate — but report and analyze them as what they are, never as independent biological replicates. For sample size of nested/clustered designs, use simulation in statistical-power.

See the NC3Rs experimental-unit guidance for animal, litter, cage, and split-plot examples. Different treatment factors can have different experimental units within one study.

Raw lines 94 to 137