Randomization, Replication and Blocking
An experiment changes inputs on purpose so you can see what they cause. Three habits make that work: shuffle the run order so slow drifts can't pose as effects, repeat runs so you know how big the noise is, and group runs into blocks so known nuisances, like batch differences, get taken out of that noise.
What the symbols mean
- Treatment effect
How far level i shifts the mean response from the overall mean μ.
- Random error
Run-to-run noise, with variance σ².
- Error mean square
The pooled variance within treatments. It estimates σ² whether or not the treatments differ.
- Number of treatments
Levels of the factor being compared.
- Total runs
a levels times n replicates each.
What the symbols mean
- Error variance
The run-to-run noise in the process.
- Replicates per treatment
Independent runs at each level.
What the symbols mean
- Block effect
The shift shared by every run in block j: one batch, one day, one machine.
- Block sum of squares
Variation between blocks, removed from what would otherwise be error.
Explanation
A designed experiment is simply a test you plan in advance so that, when something changes in the results, you know what caused it. All we're really saying in this lesson is: don't let anything except the factor you're testing line up with your treatments. The three principles each guard against one way that can happen: randomization (shuffle the order, so a drift over the day can't masquerade as an effect), replication (run each setting more than once, so you can measure the noise) and blocking (compare treatments within each batch or day, so batch differences drop out). No new formulas, just three sensible habits.
The scene. A team compares three plasma power settings for etching silicon wafers. The convenient plan, setting 1 in the morning, setting 2 at noon and setting 3 in the afternoon, has a flaw: the chamber walls slowly coat during the day and the etch rate drifts. Any difference they find could be the setting or the clock. Three principles turn a comparison into an experiment.
Randomization: cut the link to everything you didn't control. Assign the runs to a random order. A drift, a warming oven or a tiring operator then lands on all treatments alike, on average, instead of piling onto whichever came last. Randomization also makes the error term honest: the F test's assumption of independent errors is justified by the coin flips themselves. (The intro course's experimental design lesson made the same point for studies on people.)
Replication: measure the noise. A replicate is a complete, independent repeat of a run: a new wafer, the recipe set up again. Measuring the same wafer three times is not replication; it only measures the gauge, the repeatability of measurement error. Replicates estimate the error variance every effect must beat, and averaging of them shrinks a treatment mean's standard error to .
Blocking: remove a nuisance you know about. If raw material comes in batches that differ, run every treatment within each batch and compare treatments inside batches. The batch-to-batch differences cancel out of every comparison and leave the error term. The rule of thumb: block what you can, randomize what you can't.
The one-factor F test, and why it works. For treatments with replicates each, split the variation as in one-way ANOVA: between treatments and within them. Why compare their mean squares? Each treatment mean has variance . If the treatments are all alike, the treatment means scatter only that much, so times their sample variance, which is , estimates , exactly what estimates. Real effects spread the means further and add . So when nothing is going on and grows with the effects; reject when beats the critical value , the same F distribution as in the variance tests.
Blocking in the ANOVA. In a randomized complete block design each block contains every treatment once, in random order. The block sum of squares comes out of what would otherwise be error, which leaves error degrees of freedom for blocks. Blocking costs degrees of freedom, so it pays only when the blocks really differ; when they do, as the second picture shows, it can turn a hopeless test into a clear one.
A common mistake. It's tempting to measure one part three times and call that three replicates. It's one replicate measured three times: repeat measurements only show gauge noise, not the run-to-run variation the effects have to beat. Watch for the related slips too: running treatments in a convenient order, analyzing a blocked experiment as if it weren't blocked (or the reverse), and changing several things between runs while you're at it.
See it
Worked examples
Three plasma power settings are compared on four wafers each, run in random order. Etch rates (nm/min): setting 1: ; setting 2: ; setting 3: . Test for a difference at , with .
- 1
The setting means are 590, 598 and 604, and the grand mean is .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Why should the 12 wafers of the etch experiment be run in a random order, instead of all of setting 1, then all of setting 2, then all of setting 3?
An engineer etches four wafers per setting, measures each wafer three times on a profilometer, and analyzes the 12 readings per setting as 12 replicates. What's wrong?
A curing oven warms by 0.3 °C per run through the day, and bond strength rises 0.5 MPa per °C of cure temperature. An engineer runs 6 joints of adhesive A, then 6 of adhesive B. If the adhesives are really identical, what spurious difference does the drift create, in MPa?
Four cutting fluids are compared on tool wear with 5 bars each, in random order. The ANOVA gives and . Find , and decide at ().
Wafer-to-wafer variation in etch rate has nm/min. How many replicate wafers per setting are needed so that each setting's mean has a standard error of at most 1.5 nm/min?
Two adhesives are compared with 5 joints each: means 31.2 and 29.0 MPa, with pooled variance . Compute the one-factor ANOVA .
A study compares 4 coatings using 6 steel panels as blocks: each panel is cut into 4 pieces, one per coating, in random positions. How many degrees of freedom does the error term have?
The hardest one here. Get it, and you've got this lesson.
Three surface treatments for an adhesive joint are compared using four batches of adhesive; each batch makes one joint per treatment, in random order. Bond strengths (MPa) for batches 1 to 4: treatment 1: ; treatment 2: ; treatment 3: . Compute for treatments (a) ignoring the batches, as a one-way ANOVA, and (b) with batches as blocks. Enter both, to 2 decimal places. ( and .)
Where it's used
Semiconductor fabs randomize the order of wafers through a tool and block on wafer lots; pharmaceutical and food plants block on raw-material batches; agricultural trials, where these ideas began, block on fields. Test labs insist on true replicates (new specimen, new setup) because pseudo-replication is one of the most common reasons an experimental result fails to reproduce. One-factor ANOVA with an F test is the standard first analysis for comparing suppliers, machines or recipes.