Statistics · Solutions
Design of Experiments
Work this sheet on paper and show every step — the reasoning is what is being tested, and the solutions are written so you can check your route, not just your answer. Name each result you use (“by the theorem Randomisation identifies the average treatment effect”, “by Variance reduction from blocking”) and state the assumption it needs before you apply it; where a question asks for a proof, a sketch or a critique, the argument itself is the answer. No calculator is needed anywhere, and full worked solutions are on a separate page with a reveal for each question, so you can check one answer without seeing the rest.
- 1.Computation
A population of six units has the potential outcomes below — both columns written out, which an experimenter never sees, and which is exactly why the table is useful for checking what an estimator does.
- (a)Compute every individual treatment effect and the average treatment effect . Then explain why no experiment on these six units, however large or carefully run, could ever compute a single .
- (b)A clinician assigns the treatment to units , and — “the strongest candidates”. Compute the naive difference in observed group means, then decompose it into the effect on the treated plus the selection bias, checking that the two pieces add up.
- (c)Instead, three of the six units are chosen for treatment uniformly at random, all subsets equally likely. Without listing the twenty assignments, show that the expected value of the naive difference is exactly . Then compute the naive difference for the particular draw and say what its disagreement with does and does not mean.
Solution
(a) Subtract the columns. gives , so
No experiment can compute a because each unit reveals only one column: once unit is treated it shows and becomes counterfactual, and if it is left untreated the reverse. Observing the unit more often, or more precisely, produces more copies of the same column. This is the fundamental problem of causal inference, and it is why the rest of the question works with the average , which only needs each column to be observed on some units.
(b) Naive difference, then decompose. Units are treated and reveal , mean . Units are controls and reveal , mean . The naive difference is
Effect on the treated: the mean of over units is .
Selection bias: is the mean of over the treated, , minus the mean over the controls, ; that is .
Check: . ✓
The naive figure is almost three times the truth . Most of the gap is selection — the chosen units would have scored higher than the others under no treatment at all — and even the effect on the treated, , exceeds because the strongest units also happen to have the largest .
(c) Expectation without enumeration. Fix unit . It is in the treated set exactly when the other two treated units are chosen from the remaining five, so it is treated in of the assignments and for every . The treated mean is , and since the table is fixed and only is random,
using . Identically . Hence . This is the theorem Randomisation identifies the average treatment effect in its smallest case: the random draw does not consult the table, so every unit's enters at the same weight .
For the draw : treated values , mean ; controls with , mean ; naive difference . Decomposing as in (b): effect on the treated , selection bias , and . ✓
What this means: a single randomised draw is not free of selection bias — here it is , and the estimate is half the truth. Randomisation promises that the bias is zero on average across draws, which is what “unbiased” says, and the spread of that bias term from draw to draw is exactly what a standard error measures. What it does not mean is that this experiment went wrong: nothing about the draw could have been checked against a truth the experimenter never sees.
- 2.Critique
The passage below is the methods-and-conclusions section of a trial report. Every sentence after the first contains at least one error of design or of reasoning.
1. Eighty volunteers aged to were assigned to drug or no drug by a coin flip for each volunteer.
2. The first allocation produced groups whose mean ages differed by four years, so the allocation was re-drawn until the balance table showed no significant difference on any of the fifteen baseline variables.
3. The groups were then identical at baseline, so any later difference in pain scores must be the effect of the drug.
4. The clinicians who scored each patient's pain knew which group the patient was in.
5. The drug reduced pain scores, so we recommend it for elderly patients, in whom the condition is most common.
- (a)For each of sentences 2 to 5, state what is wrong, name the concept it violates, and give the procedure that should have been used instead.
- (b)Suppose every flaw were repaired. State precisely the strongest claim the trial could then support.
Solution
(a) Sentence 2 — re-randomising until the table looks balanced. The theorem Randomisation identifies the average treatment effect needs . Discarding every allocation in which age is unbalanced makes the final assignment a function of the covariates: allocations that put older volunteers in one arm are systematically thrown away, so the mechanism is no longer independent of anything correlated with age — and pain is. The imbalance was expected, not a failure: testing fifteen baseline variables at gives a probability of at least one “significant” difference by chance alone, which is roughly even odds (about ). Correct procedure: keep the first allocation. If age is known to matter, block on it in advance — randomise within age strata — or pre-specify an adjustment for age in the analysis.
Sentence 3 — “identical”. Randomisation never promises identical groups; with forty per arm they will visibly differ on something. It promises that any difference is accidental, hence governed by known probability, hence exactly what the standard error measures. “No significant difference” is a statement about a test's power, not about equality. And “any later difference must be the drug” ignores everything that happens after assignment, which is the next sentence's problem.
Sentence 4 — unblinded assessment, and no placebo. Randomisation makes the groups comparable before treatment; blinding keeps them comparable afterwards. Pain is reported by the patient and scored by the clinician, so a patient who knows they received the drug reports differently and a clinician who knows the assignment scores differently, and the comparison is contaminated even though the randomisation was sound. Correct procedure: the no-drug arm receives a placebo indistinguishable from the drug (single-blind), and the assessors do not know assignments (double-blind).
Sentence 5 — extrapolation. The population randomised was volunteers aged to . Randomisation buys internal validity — the comparison inside the study is sound — and buys external validity not at all; nothing in the trial speaks to the elderly, whose physiology, dosing and baseline pain differ. Correct procedure: state the conclusion for the population studied, and run a trial in the elderly if they are the population of interest.
(b) The strongest defensible claim. With one allocation kept as drawn, a placebo arm, double-blind assessment, and the analysis pre-specified: the difference in mean pain score between arms is an unbiased estimate of the average effect of the drug relative to placebo, in volunteers aged to of the kind who enrolled, with a standard error that the randomisation licenses. That is a causal claim about that population — and about no other.
- 3.Computation
Two irrigation schedules are to be compared on field plots. Each plot's yield has variance . Two plots on the same terrace have yields correlated at ; plots on different terraces are independent. Twenty plots are available.
- (a)Design U takes one plot from each of twenty different terraces and assigns ten to each schedule at random. Find , stating the independence you use.
- (b)Design B uses ten terraces, two plots on each, and randomises which plot on a terrace gets which schedule. Find for the mean within-terrace difference, and the ratio of the two variances.
- (c)How many plots would Design U need to match the precision of Design B's twenty? And what within-terrace correlation would Design B need for a fourfold variance reduction over Design U?
- (d)Suppose the terraces turn out to be irrelevant, . Compare the two designs' variances and error degrees of freedom, and say which is now the better design and why.
Solution
(a) Independent plots, so variances add. Every plot is on its own terrace, so all twenty yields are independent. Each arm's mean is a mean of ten independent plots with variance , and the two arm means are independent of each other, so
(b) Difference within a terrace. For terrace let . Then
The ten terraces are independent, so . The ratio is , as the theorem Variance reduction from blocking predicts.
(c) Matching precision, and a fourfold gain. With plots per schedule Design U has variance . Setting gives per schedule, so plots — twice Design B's twenty. For a fourfold reduction we need , that is .
(d) Blocking on nothing. With , , the same as Design U. But the analyses differ in degrees of freedom: Design U is a two-sample comparison of against , with error degrees of freedom, while Design B is a paired comparison of ten differences with . The critical value on degrees of freedom is larger than on , so Design B is slightly less powerful for the same variance: the degrees of freedom spent on terrace effects bought nothing. Design U is now the better design. Blocking is only worth doing on a variable genuinely related to the outcome — and whichever design is run, it must be analysed as designed: paired data analysed as two independent samples is invalid, not merely inefficient.
- 4.Computation
Three tyre compounds , , are to be compared for wear. Three test cars are available on each of three days, giving nine runs. Both the car and the day are believed to affect wear, but neither is of interest in itself.
- (a)Lay out a Latin square for the nine runs, and say which property of the layout guarantees that neither the car effect nor the day effect can be confounded with the compound comparison.
- (b)Count the degrees of freedom for the mean, cars, days, compounds and error. How many runs would a full factorial crossing all three factors require?
- (c)A colleague proposes running compound on car 1, on car 2 and on car 3 on every day, arguing that this also uses nine runs and balances the days. Explain exactly what goes wrong.
- (d)State the assumption the Latin square makes that the full factorial does not, and explain why the nine runs cannot be used to check it.
Solution
(a) One square, and the property that matters. Index rows by day and columns by car:
Each compound appears exactly once in every row and exactly once in every column. So the three runs of any one compound cover each day once and each car once, and a day effect (or a car effect) adds the same total to every compound. It therefore cancels in every difference between compounds, which is what “cannot be confounded” means. Any other cyclic shift of the rows works equally well.
(b) Degrees of freedom. Nine runs give degrees of freedom in total: for the mean, for cars, for days, for compounds, leaving
for error. A full factorial crossing three factors at three levels needs runs, three times the budget.
(c) The proposal confounds compound with car. The colleague's grid has every row . Rows are fine — each compound once per day — but the columns fail: appears three times in the car 1 column and never elsewhere. Compound is only ever observed on car 1, only on car 2, only on car 3, so the compound-to-compound difference is inseparable from the car-to-car difference . Any car effect looks like a compound effect and nothing in the nine numbers can tell them apart. The layout controls one nuisance (days) and aliases the compound comparison with the other. That is a one-way blocking, not a Latin square.
(d) Additivity, and why it cannot be checked. The Latin square assumes there are no interactions among day, car and compound — that each acts additively. All non-mean degrees of freedom are spent on the three sets of main effects and the error degrees of freedom; there is no run left over to estimate any interaction, so a car-by-compound interaction, if present, is silently absorbed into the error and the compound estimates. The -run factorial has degrees of freedom for interactions and can test them; the square cannot. It buys its efficiency by assuming what the factorial would have measured.
- 5.Computation
A experiment on the drying time of a coating varies temperature () and airflow (), each at a low level () and a high level (), with runs per cell. The cell means are , , , , where the first index is the level of and the second of , and the error mean square is . Use .
- (a)Estimate the main effect of , the main effect of , and the interaction. Compute the interaction two ways — from 's effect at each level of , and from 's effect at each level of — and confirm they agree.
- (b)Find the standard error common to the three estimates and the error degrees of freedom, and test each estimate at the level.
- (c)In the light of (b), is it legitimate to report “raising the temperature changes drying time by ” as a single number? Say what the data show about 's effect at each level of and how you would word the report.
- (d)A one-factor-at-a-time study with the same runs puts at and at . Find the variance of its estimate of 's effect, compare with the factorial's, and list what it cannot estimate.
Solution
(a) Effects from the cell means. 's effect at low is and at high is , so the main effect of is the average, . 's effect at low is and at high is , so the main effect of is .
Interaction from 's two effects: . From 's two effects: . ✓ Both are the same contrast , which is why they had to agree.
(b) One standard error for all three. Each estimate is a contrast in the four independent cell means with coefficients , so
Error degrees of freedom: four cells each contribute , so . The statistics are , , . Against : temperature is significant; airflow and the interaction are not.
(c) Reporting. Because the interaction is not significant, the main effect of is a legitimate one-number summary: the data do not establish that 's effect depends on . But the point estimates do differ — at low airflow, at high — and the test had little power to see it (an estimate of against a standard error of ). Not significant is not the same as zero. Word it honestly: “Raising the temperature increased drying time by on average (SE ). The increase appeared larger at low airflow ( against ), but the difference was not significant ( on degrees of freedom).”
(d) The one-factor-at-a-time study. Its estimate is with runs at each condition, so
exactly the factorial's. That is the theorem Factorial designs estimate more from the same runs with : both designs give for . The difference is what else is learned. The one-factor study estimates , valid only at low airflow; it cannot estimate 's effect, cannot estimate the interaction, and cannot discover that the shrinks to when airflow is high. The factorial got at the same precision and and for free.
- 6.Sketch
Two experiments on the same two factors returned the following cell means (first index , second ).
Experiment I: , , , .
Experiment II: , , , .
An interaction plot puts the level of on the horizontal axis (low at the left, high at the right) and the cell mean on the vertical axis, and joins the two cells at each level of by a straight segment — one segment for low, one for high.
- (a)For each experiment compute the main effect of , the main effect of , and the interaction.
- (b)Draw the interaction plot for each experiment on its own axes, labelling every endpoint with its value. Then say which geometric feature of the plot displays each of the three effects, and what “zero interaction” looks like.
- (c)In Experiment II the two segments cross. Find the crossing point exactly — how far along from low to high, and at what height. Then explain why an experimenter who tested only at low would report the same conclusion for both experiments, and what the factorial reports instead for Experiment II.
Solution
(a) The three effects. Experiment I: , , .
Experiment II: , , .
(b) The two plots. Experiment I: the -low segment runs from to and the -high segment from to . Both rise by ; they are parallel, with a vertical gap of at each end. Experiment II: the -low segment again runs from up to , but the -high segment runs from down to . The picture is an X.
What each feature shows. The slope of a segment is 's effect at that level of , so the main effect of is the average slope: in I; in II, where one segment rises by exactly what the other falls. The main effect of is the average vertical distance from the -low segment up to the -high segment: in I; in II it is at the left end and at the right, averaging . The interaction is half the difference of the slopes: and . Zero interaction therefore looks like parallel segments, as in I: does the same thing whatever is. Crossing segments, as in II, mean the interaction is so large that 's effect reverses sign.
(c) The crossing, and the one-factor report. Let measure the way across from low to high. The -low segment has height and the -high segment ; they meet when , so , at height . The segments cross one third of the way across, at . (The horizontal axis is categorical, so this is a feature of the drawing, not a prediction about an intermediate temperature.)
An experimenter who tests at low sees in both experiments and reports “raising adds ” for both. In Experiment I that is the whole truth. In Experiment II it is true only at low; at high, raising subtracts , and the one-factor design never ran the cell that would have shown it. The factorial's main effect of is , which quoted alone would be equally misleading — “ does nothing” is false at both levels of . The honest report is conditional: adds at low and removes at high , the interaction is , and no single number for 's effect exists.
- 7.Proof
Throughout, each unit has potential outcomes and , a treatment indicator with , and observed outcome . Write for the average treatment effect and for the average effect on the treated.
- (a)Prove, with no assumption whatsoever about how was assigned, the identity and say in words what each term on the right measures.
- (b)Now assume . Prove that the bracketed term is zero and that , and conclude that the difference in group means is unbiased for . Mark the exact step at which independence is used.
- (c)Suppose treatment is assigned by independent coin flips with for every unit, where need not equal . Does the conclusion of (b) survive? Identify where could have entered the argument, and say what does affect.
Solution
(a) An identity that holds for every design. On the event the observed outcome is , and on it is . Both events have positive probability, so the conditional expectations exist and
Now add and subtract :
By linearity of conditional expectation the first bracket is , which is the identity.
In words: is the average effect of the treatment on the units that were actually treated. The second bracket is selection bias — how the treated units would have differed from the controls had nobody been treated, a pure baseline difference. Nothing was assumed, so every design faces this identity; a design can only hope to make the second bracket vanish.
(b) Randomisation kills the bracket. Independence says the conditional distribution of given is its unconditional distribution. Therefore
so the bracket is . By the same fact and , so
Putting these into (a): . The group mean averages over the treated units, and for each of them by independence, so whenever the treated group is non-empty; likewise . Hence .
This is the theorem Randomisation identifies the average treatment effect, reached through (a) so that one can see what randomisation is removing: a selection term that is otherwise present and invisible.
(c) A biased coin is still a coin. The conclusion survives. The proof used one hypothesis — — and a coin with bias satisfies it for every , because the coin does not consult the potential outcomes. The only place could have entered is the marked step: the claim says the conditional distribution given equals the marginal, and that is true whatever is, provided it is positive so that the conditioning makes sense. The same holds for the side, which is why is needed too.
What does affect is precision, not bias. The group sizes are about and , so the variance of is about , which for equal variances is smallest at and grows without bound as approaches or . Unbiasedness is a property of independence; efficiency is a property of balance.
- 8.Computation
Two protective coatings are to be compared on steel test panels. A difference in mean lifetime of months is worth detecting, the panel-to-panel standard deviation is months, and the test is two-sided at with power . Use and .
- (a)Find the number of replicates per coating and the total number of panels from the theorem Replicates needed to detect an effect, showing the substitution.
- (b)Panels can be cut in pairs from the same steel sheet, and paired panels have lifetimes correlated at . Redo the calculation for a paired design, and check that the ratio of the two totals is what the theorem Variance reduction from blocking predicts.
- (c)The engineers now decide that a difference of months matters. Without repeating the full substitution, state the new numbers for both designs and justify the shortcut.
- (d)A colleague suggests running the first ten panels, estimating from them, and then choosing . Say which quantities in the formula must be fixed before data collection, and what is wrong with the suggestion.
Solution
(a) Unpaired. , so . The theorem gives, per coating,
so replicates per coating and panels in total. (Check the arithmetic: , times is , and with remainder , so .)
(b) Paired. Blocking multiplies the error variance by , so the effective is , and
so pairs, panels. The bounds before rounding are in the ratio exactly; after rounding, , which is up to the rounding to whole panels. The pairing has cut the experiment to a quarter of its size, which is the factor applied to the variance.
(c) Halving the effect. enters the bound only through in the denominator, so halving multiplies the bound by : unpaired , so per coating and panels; paired , so pairs and panels. Round the bound, not the rounded — would be one panel too many. The standardised effect has gone from to , and small effects are expensive.
(d) What must be fixed in advance. Everything on the right-hand side: , the power , the effect worth detecting, and . None of them comes from the data being collected. The suggestion goes wrong in two ways. First, an estimate of from ten panels is itself very noisy — its own sampling error is large — so the chosen will be badly wrong in one direction or the other, and a design sized by a lucky low estimate will be underpowered. Second, if those ten panels are also part of the final analysis, then the sample size — and so the analysis — was chosen after looking at outcomes, and the test's stated level is no longer guaranteed. The value of should come from earlier work or from a separate pilot that is not part of the experiment being analysed, and from a judgement about what matters, settled before the first panel is cut.
- 9.Computation
A registry records the outcome of two treatments for an infection, split by whether the case was mild or severe at presentation. Each entry is successes out of patients treated.
- (a)Compute all six success rates and confirm that the comparison reverses between the strata and the totals.
- (b)Explain the reversal. Identify the confounder, and show from the allocation numbers that it is associated with both the treatment and the outcome.
- (c)Compute the adjusted success rate of each drug by stratification, weighting each stratum by its share of all patients, and state the adjusted difference. Compare it with the unadjusted difference.
- (d)State exactly the assumption under which the adjusted difference in (c) is the causal effect. Then give an example of a recorded variable for which the same stratification arithmetic would be an error rather than a correction, and say why.
Solution
(a) Six rates. New drug: mild , severe , overall . Standard drug: mild , severe , overall . The totals are consistent: of , and of .
The new drug is better in mild cases ( against ) and better in severe cases ( against ), by ten points each time — and worse overall ( against ). That is Simpson's paradox.
(b) Severity is the confounder. It is associated with treatment: the new drug went to severe cases times out of (), while the standard drug went to mild cases times out of (). It is associated with outcome under either drug: severe cases succeed at or against or for mild. And it is not on the causal pathway — severity was assessed at presentation, before any drug was given.
The overall rates are therefore weighted averages with different weights. New drug: . Standard: . The new drug's overall figure is dragged down by carrying three quarters of its patients in the hard stratum. The reversal is the case mix, not the drug.
(c) Adjust by stratification. Stratum sizes over both drugs: mild , severe , so both weights are .
The adjusted difference is : the new drug is ten points better, agreeing with both strata. The unadjusted difference was . Adjustment has moved the estimate by and flipped its sign; that is the size of the confounding by severity.
(d) The assumption, and a variable that must not be adjusted for. The adjusted equals the average treatment effect if — no unmeasured confounding: within a severity stratum, which drug a patient got is unrelated to how they would have fared under either. That is the hypothesis of the theorem Adjustment identifies the effect only under no unmeasured confounding, and the table cannot check it. If, say, doctors also gave the new drug to the sicker patients within the severe stratum, the adjusted figure still understates the new drug, and nothing in these numbers reveals it.
A variable for which the arithmetic would be an error: “fever resolved within hours of starting treatment”. That is a consequence of the drug, on the pathway from drug to cure. Stratifying on it compares patients whose fever did resolve with each other, and those whose fever did not with each other, which removes the part of the drug's effect that operates through resolving fever; the adjusted difference would be pushed toward zero and could vanish for a drug that works. Whether to condition on a variable is a causal question — a pre-treatment confounder yes, a post-treatment consequence no — and the weighting arithmetic is the same either way, so it cannot decide.
- 10.Critique
An analyst's memo on an observational study of a voluntary job-training programme reads as follows.
Step 1. Enrolment was voluntary, but we recorded forty covariates, so we adjusted for all of them — including age, years of schooling, earnings in the two years before the programme, region, earnings in the year after the programme, and whether the participant was promoted in the following year.
Step 2. After adjustment, participants and non-participants are balanced on every one of the forty variables, so the assumption of no unmeasured confounding has been verified.
Step 3. The adjusted difference in earnings three years after the programme is therefore the causal effect of training.
Step 4. It is unbiased in the same sense as a randomised trial's estimate, by the theorem that adjustment identifies the effect.
Step 5. Should further variables become available we will add them, since adjusting for more can only reduce bias.
- (a)Find every error in Steps 1 to 5. For each, name the concept involved and say precisely what the error does to the estimate.
- (b)Rewrite the conclusion correctly: what the study can claim, under which assumption, and what would have to be true of the enrolment decision for that assumption to fail.
- (c)Name one design-based strategy that could replace the untestable assumption with a different one, and state the assumption it would rely on instead.
Solution
(a) The errors, step by step.
Step 1 — adjusting for post-treatment variables. Two of the forty are consequences of the treatment. Earnings in the year after the programme lie on the causal pathway from training to earnings three years later: a mediator. Conditioning on it compares participants and non-participants who had the same early earnings, which removes the part of training's effect that works through an early earnings gain, and biases the estimate toward zero. Promotion in the following year is caused by training and by the earning-related ability that also drives later earnings: a variable caused by both treatment and outcome is a collider, and conditioning on it manufactures an association between training and earnings that does not exist, in a direction the memo cannot know. Both must be dropped. An adjustment set is a set of pre-treatment confounders, chosen from knowledge of the causal structure before the analysis.
Step 2 — “verified”. Balance on the measured variables is produced by the adjustment itself; that is what adjusting does, so it is not evidence of anything. The assumption concerns the variables not in , and it is untestable from the data precisely because those variables were not recorded. No balance table can verify it.
Step 3 — “therefore”. The causal reading follows only under the assumption of Step 2, which was assumed, not established. With voluntary enrolment the obvious unmeasured confounder is motivation, which raises both the chance of enrolling and later earnings, whatever the training does; the adjusted difference then contains a selection term of unknown size.
Step 4 — “in the same sense”. A randomised trial earns by construction; the theorem Adjustment identifies the effect only under no unmeasured confounding takes the conditional version as a hypothesis. One estimate is unbiased because of the design, the other only if an unverifiable assumption happens to hold. The theorem is true; the memo has used it as if its hypothesis were free.
Step 5 — “can only reduce bias”. Step 1 already shows why this is false: adding a mediator removes part of the effect and adding a collider creates a spurious one. More adjustment is not uniformly safer; which variables to adjust for is a causal question, not a statistical one, and “everything available” is not a safe default.
(b) A corrected conclusion. Dropping the two post-programme variables and adjusting for the pre-enrolment covariates — age, schooling, prior earnings, region and the other variables measured before enrolment — the adjusted difference estimates the average effect of training on earnings three years later under the assumption that, among people with the same values of those covariates, the decision to enrol is independent of what they would have earned with and without training. This assumption cannot be checked from the data. It fails if, among people alike on every recorded variable, those who enrolled were systematically more likely to earn more anyway (the more motivated, the better connected) or systematically less likely (the recently laid off, enrolling out of need); either direction is possible, and the sign of the resulting bias is unknown.
(c) A design that changes the assumption. If the programme was oversubscribed and places were allocated by lottery among applicants, the lottery is a natural experiment: within the applicant pool, assignment is independent of the potential outcomes by construction, and the comparison of winners against losers is a randomised comparison. The assumption it relies on is that the lottery really was random and its outcome is what determined participation (with non-compliance, the comparison by lottery result remains valid as an intention-to-treat estimate). Alternatively, if eligibility was decided by a threshold — prior earnings below a cutoff — a regression discontinuity compares people just either side of it, under the assumption that they are comparable in everything except eligibility. Each replaces “no unmeasured confounding” with a different assumption, not with none; the gain is that these assumptions can be argued from how the allocation actually worked, rather than hoped for.
- 11.Proof
An experiment applies each of two temperature settings to growth chambers, and plants are measured in every chamber. Model the height of plant in chamber as
where is the setting applied to chamber ; the chamber effects are independent with mean and variance ; the plant errors are independent with mean and variance ; and every is independent of every . Write for the variance of a single plant's height and .
- (a)Prove that the chamber mean has variance , and that two plants in the same chamber have correlation .
- (b)Let be the difference between the two settings' means, each taken over all of its plants. Prove that its true variance is , while an analyst who treats the plants as independent units would compute .
- (c)Prove that the ratio of the true variance to the analyst's is . Deduce that the reported standard error is too small by a factor between and , and identify exactly when each extreme is attained.
- (d)With , , and , find both variances and the factor. Then find the limit of the true variance as with fixed, and use it to decide the better use of thirty extra plants per setting: three more chambers of ten, or ten more plants in each of the three existing chambers.
Solution
(a) Averaging within a chamber. Averaging the model over ,
The are independent with common variance, so . The constants have no variance, and is independent of , so the variances add: .
For two plants in the same chamber, , since every cross term involves two independent mean-zero variables and vanishes. Each plant has variance , so the correlation is .
(b) The true variance and the analyst's. Because every chamber holds the same number of plants, the mean over all plants at one setting equals the mean of its chamber means: . Different chambers share no and no , so the chamber means are independent, and by (a)
The two settings use disjoint chambers, so and are independent and .
The analyst who takes the plants as independent units of variance computes and hence for the difference. That is pseudoreplication: the treatment was applied to chambers, so the experimental unit is the chamber and there are of them per setting, not .
(c) The ratio. Divide:
Since the ratio of variances lies in , so the ratio of standard errors — true to reported — lies in .
The lower extreme is attained exactly when , that is : no chamber effect, so plants really are independent units and the analyst was right. The upper extreme is attained exactly when , that is : plants in a chamber are identical, so measurements carry one unit's worth of information. The rule of thumb “too small by about ” is the worst case; the exact factor is .
(d) Numbers, the limit, and the budget. Here and . True variance: . Analyst's: . Ratio , and agrees. ✓ The reported standard error is too small by a factor of : a reported is really , and on degrees of freedom rather than .
As with fixed, and the true variance tends to , not to zero. More plants average away the plant error but never the chamber effect, which is shared by every plant in the chamber.
Thirty extra plants per setting. Three more chambers of ten: , , variance — halved. Ten more plants in each existing chamber: , , variance — down from by one part in twelve, and no number of extra plants could take it below . The chambers win by a wide margin. Replication means more experimental units, and the experimental unit is whatever the treatment was applied to.
- 12.Proof
In a factorial with replicates per cell, the four cell means (first index , second ) are independent, each with variance . The estimates are
and the grand mean is .
- (a)Write each of , and as a contrast over the four cells, giving the coefficient vector in the order , and check that each vector sums to zero.
- (b)Prove that each of the three estimates has variance , and that with runs in total this equals — the precision a one-factor-at-a-time study would get for a single factor with all runs devoted to it.
- (c)Prove that , and are pairwise uncorrelated, and explain what this says about “hidden replication”.
- (d)Prove that , and write down, with a sign rule, the corresponding expression for each of the other three cells. Explain why this shows the design estimates exactly effects and no more.
Solution
(a) Coefficient vectors. Expanding the brackets,
so in the order the vectors are
Each has two entries and two , so each sums to zero. Pattern: is where is high, is where is high, and is the entrywise product of the two. Summing to zero makes each a contrast: adding the same constant to all four cells changes none of them, which is why the overall level never enters an effect.
(b) Variance. The cell means are independent, so for any coefficient vector
For each of the three vectors , so the variance is . With this is . A one-factor-at-a-time study with runs at each of two conditions estimates its one effect as a difference of two means, with variance — the same. This is the theorem Factorial designs estimate more from the same runs: the factorial reaches that precision for all three effects at once.
(c) Orthogonality. For two coefficient vectors and , bilinearity of covariance and independence of the cells give
since every cross-cell covariance is zero. The three inner products, in the order :
All three covariances vanish.
This is hidden replication made precise. No coefficient in any vector is zero, so every run enters every estimate — nothing is set aside for that is then unavailable for . And yet the estimates do not compete for information: they are orthogonal, so estimating costs nothing in precision, and estimating costs neither. Each effect is estimated exactly as well as if it were the only thing the experiment was for.
(d) Recovering the cells. Write out and collect the coefficient of each cell mean; every term contributes .
: . : . : . : .
So the expression equals . The sign rule: give each factor the sign at its high level and at its low level; then
the interaction carrying the product of the signs. Explicitly , , and ; each checks by the same coefficient count (for the four contributions to its own coefficient are , and every other cell's cancel in pairs).
Sanity check with cell means : , , , , and , . ✓
Why exactly three effects: the map from the four cell means to is invertible — part (d) is its inverse — so the four numbers on each side carry the same information. The four coefficient vectors, and the three contrasts, are mutually orthogonal and so form a basis of the four-dimensional space of cell-mean combinations. One dimension is the overall level; the remaining are the effects. Any further contrast is a linear combination of , and , so a “fourth effect” would be a relabelling of these three, not new information. This is the proposition How many effects a two-level factorial estimates in the case , with the dimension count made explicit.