Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Blocking Designs

Blocking accounts for known nuisance variation while preserving fair treatment comparisons. This page covers complete blocks, balanced incomplete blocks, and Latin squares. Numerical examples use illustrative practice data.

At a Glance

Complete blocks
Incomplete blocks

Each block contains every treatment. Treatment comparisons are made within blocks.

Randomized Complete Block Designs

Use a randomized complete block design (RCBD) when a known nuisance variable creates meaningful groups of similar units, and every treatment fits within every block.

Examples: compare production settings within each batch, or compare several conditions within each participant. Randomize within blocks, not across the whole experiment after forming them.

For mm treatments and bb blocks, with one observation per treatment-block cell,

Yij=μ+τi+βj+εij,N=mb,Y_{ij}=\mu+\tau_i+\beta_j+\varepsilon_{ij},\qquad N=mb,
∑iτi=0,∑jβj=0,εij∼iidN(0,σ2).\sum_i\tau_i=0,\quad\sum_j\beta_j=0,\qquad \varepsilon_{ij}\overset{\mathrm{iid}}{\sim}N(0,\sigma^2).
ParameterMeaningEstimate in this balanced design
μ\muOverall meanYˉ⋅⋅\bar Y_{\cdot\cdot}
τi\tau_iTreatment deviationYˉi⋅−Yˉ⋅⋅\bar Y_{i\cdot}-\bar Y_{\cdot\cdot}
βj\beta_jBlock deviationYˉ⋅j−Yˉ⋅⋅\bar Y_{\cdot j}-\bar Y_{\cdot\cdot}
Y^ij=Yˉi⋅+Yˉ⋅j−Yˉ⋅⋅,eij=Yij−Y^ij.\widehat Y_{ij}=\bar Y_{i\cdot}+\bar Y_{\cdot j}-\bar Y_{\cdot\cdot},\qquad e_{ij}=Y_{ij}-\widehat Y_{ij}.

This is an additive model. With only one observation per cell, treatment-by-block interaction cannot be separated from random error. The simple analysis assumes interaction is negligible. Repeated measurements can also require a covariance model beyond these independent errors.

Block ANOVA

SSTr=b∑i(Yˉi⋅−Yˉ⋅⋅)2,SSB=m∑j(Yˉ⋅j−Yˉ⋅⋅)2,SSE=∑i,j(Yij−Yˉi⋅−Yˉ⋅j+Yˉ⋅⋅)2.\begin{aligned} SS_{\mathrm{Tr}}&=b\sum_i(\bar Y_{i\cdot}-\bar Y_{\cdot\cdot})^2,\\ SS_B&=m\sum_j(\bar Y_{\cdot j}-\bar Y_{\cdot\cdot})^2,\\ SS_E&=\sum_{i,j}(Y_{ij}-\bar Y_{i\cdot}-\bar Y_{\cdot j}+\bar Y_{\cdot\cdot})^2. \end{aligned}
SST=SSTr+SSB+SSE.SS_T=SS_{\mathrm{Tr}}+SS_B+SS_E.
SourcedfMSTest
Treatmentm−1m-1SSTr/(m−1)SS_{\mathrm{Tr}}/(m-1)MSTr/MSEMS_{\mathrm{Tr}}/MSE
Blockb−1b-1SSB/(b−1)SS_B/(b-1)MSB/MSEMS_B/MSE
Error(m−1)(b−1)(m-1)(b-1)SSE/[(m−1)(b−1)]SS_E/[(m-1)(b-1)]
Totalmb−1mb-1

For H0:τ1=⋯=τm=0H_0:\tau_1=\cdots=\tau_m=0,

FTr∼Fm−1,(m−1)(b−1).F_{\mathrm{Tr}}\sim F_{m-1,(m-1)(b-1)}.

A fixed-block test uses Fb−1,(m−1)(b−1)F_{b-1,(m-1)(b-1)} under H0:β1=⋯=βb=0H_0:\beta_1=\cdots=\beta_b=0. The scientific focus is usually the treatment comparison. Blocking should be planned from knowledge of the experiment, not selected solely through a block pp-value.

A treatment contrast uses

SE⁡(C^)=MSEb∑ici2,\operatorname{SE}(\widehat C)=\sqrt{\frac{MSE}{b}\sum_i c_i^2},

with the block-model residual df. For two treatments, the treatment FF test equals the squared paired tt statistic.

The mean-difference estimates and simple orthogonal SS formulas above rely on the complete balanced layout. Missing cells or unequal replication require fitting the appropriate linear model; marginal mean subtraction is not generally enough.

Observed and batch-adjusted responses for three treatments across four batches. Adjustment reduces within-treatment spread while preserving the treatment means.

The right panel subtracts each estimated batch effect: Yij−β^jY_{ij}-\widehat\beta_j. The treatment means stay the same in this balanced design, while the spread around each treatment mean shrinks. These adjusted responses illustrate the model; uncertainty still uses the block-model MSE and residual degrees of freedom.

Balanced Incomplete Block Designs

When each block can hold only k<vk<v treatments, a balanced incomplete block design (BIBD) spreads comparisons evenly.

SymbolMeaning
vvNumber of treatments.
bbNumber of blocks.
kkTreatments per block, each occurring once in that block.
rrBlocks containing each treatment.
λ\lambdaBlocks containing each pair of distinct treatments.

Counting all assignments and treatment co-occurrences gives

bk=vr,r(k−1)=λ(v−1).bk=vr,\qquad r(k-1)=\lambda(v-1).

These are necessary conditions, not a guarantee that a design exists for arbitrary parameters. Under the usual additive model, balance makes treatment pair comparisons equally precise.

An incomplete block is incomplete by design, not a convenient description for uncontrolled missing observations. Allocate treatments and run order randomly within the design’s restrictions.

Latin Squares: Two Nuisance Factors

A p×pp\times p Latin square assigns pp treatments across two nuisance factors, each with pp levels. Every treatment appears once in each row and once in each column.

Column 1Column 2Column 3Column 4
Row 1ABCD
Row 2BCDA
Row 3CDAB
Row 4DABC

Rows might be days and columns time windows. A letter tells us which treatment to apply at that row-column combination. There are p2p^2 runs, rather than all p3p^3 row-column-treatment combinations.

Randomly permute row assignments, column assignments, and treatment labels within an appropriate Latin-square randomization scheme. The displayed square is a layout template, not a substitute for randomization.

Let k(i,j)k(i,j) identify the treatment in cell (i,j)(i,j):

Yij=μ+ρi+γj+τk(i,j)+εij.Y_{ij}=\mu+\rho_i+\gamma_j+\tau_{k(i,j)}+\varepsilon_{ij}.

Under the balanced additive model, row, column, and treatment effects have sum-to-zero constraints. With Yˉk(Tr)\bar Y_k^{(\mathrm{Tr})} the mean of the pp observations receiving treatment kk,

SSR=p∑i(Yˉi⋅−Yˉ⋅⋅)2,SSC=p∑j(Yˉ⋅j−Yˉ⋅⋅)2,SSTr=p∑k(Yˉk(Tr)−Yˉ⋅⋅)2,SSE=SST−SSR−SSC−SSTr.\begin{aligned} SS_R&=p\sum_i(\bar Y_{i\cdot}-\bar Y_{\cdot\cdot})^2,\\ SS_C&=p\sum_j(\bar Y_{\cdot j}-\bar Y_{\cdot\cdot})^2,\\ SS_{\mathrm{Tr}}&=p\sum_k(\bar Y_k^{(\mathrm{Tr})}-\bar Y_{\cdot\cdot})^2,\\ SS_E&=SS_T-SS_R-SS_C-SS_{\mathrm{Tr}}. \end{aligned}
SourcedfTreatment test
Rowsp−1p-1
Columnsp−1p-1
Treatmentp−1p-1F=[SSTr/(p−1)]/MSEF=[SS_{\mathrm{Tr}}/(p-1)]/MSE
Error(p−1)(p−2)(p-1)(p-2)MSE=SSE/[(p−1)(p−2)]MSE=SS_E/[(p-1)(p-2)]
Totalp2−1p^2-1

Under the treatment null, F∼Fp−1,(p−1)(p−2)F\sim F_{p-1,(p-1)(p-2)} under independent normal common-variance errors and additivity. For the 4×44\times4 square, error df is 6. A 2×22\times2 square has zero error df and cannot supply this error estimate.

The basic design cannot separately estimate general row-column, row-treatment, and column-treatment interactions. Strong interactions can invalidate the additive analysis.

Choosing the Analysis

Design or questionAnalysisEssential check
Two independent quantitative groupsPooled or Welch ttIndependent units; appropriate variance model.
Two matched conditionsPaired tt or within-pair randomizationGenuine pairing and independent pairs.
Several independent meansOne-way ANOVACommon variance and residual assumptions.
Specific mean combinationContrast in the fitted modelCoefficients, SE, residual df, and testing family.
All pairwise mean differencesTukey or another planned family procedureSimultaneous rather than individual inference.
One nuisance factor; every treatment per blockRCBDRandomization within blocks and additivity.
One nuisance factor; limited block capacityIncomplete-block modelConnectivity, balance, and block-adjusted comparisons.
Two suitable nuisance factorsLatin squareOne occurrence per row/column and negligible interactions.