Print this page and work through it on paper. Revealed answers are never printed, so you can check one question and still print a clean sheet.

  1. Show the solution to question 1

    (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. Show the solution to question 2

    (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. Show the solution to question 3

    (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. Show the solution to question 4

    (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. Show the solution to question 5

    (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. Show the solution to question 6

    (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. Show the solution to question 7

    (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. Show the solution to question 8

    (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. Show the solution to question 9

    (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. Show the solution to question 10

    (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. Show the solution to question 11

    (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. Show the solution to question 12

    (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.

Full solutions sheet →