Identify · Chapter 5 of 12
Randomized experiments
Objective: Construct a randomized comparison, distinguish its estimand from uptake effects, and inspect the design threats.
What would the firm have to randomize to learn whether training works?
Experiments · Randomization · Potential outcomes
Before you begin: Conditional expectation (chapter 2), sample means, and confidence intervals (chapter 4).
About 30 minutes, plus the exercises.
Treatment and comparison groups
The assignment process determines which treatment comparisons the data can support.
Suppose 100 employees are eligible for the same four-hour training session. Before enrollment, the firm randomly selects 50 to receive it this month; the others receive it later. Output is measured for everyone over the same following month. The intervention, eligibility rule, outcome window, and assignment mechanism have now become concrete.
Define as employee ‘s output under training and as output without it during that window. The individual effect is . Only one outcome is observed:
where indicates assigned and delivered training in this initial, perfect-compliance example. This equation is the consistency assumption: the observed outcome equals the potential outcome under the treatment actually received. It is a causal restriction, distinct from the consistency of an estimator defined in chapter 1.
These definitions assume that each treatment condition has a specified version and that another employee’s assignment does not affect ‘s outcome. These are the usual no-hidden-versions and no-interference components associated with SUTVA. If trained employees teach their colleagues, the second assumption is doubtful. The intervention and analysis may need to move to teams.
Why random assignment identifies a comparison
For a population formulation, suppose
and observed outcomes satisfy the consistency relation above. Then
The first equality uses consistency. The second uses random assignment. Writing both steps makes it possible to see which part fails when training is optional.
For a fixed set of employees, complete randomization selects exactly for treatment and for control. The difference in observed group means,
is unbiased over the randomization for the finite-population average effect
Randomization balances the potential outcomes in expectation. It does not guarantee perfect balance in every realized assignment.
The exact randomization variance
Let be the finite-population variance of , using denominator , and let be the corresponding variance of individual effects. Under complete randomization,
The random subscript emphasizes that assignments vary while potential outcomes remain fixed. A single realized assignment reveals only one potential outcome per employee, so generally cannot be calculated from it without additional restrictions. The usual estimator has expectation at least as large as the true variance. This is a statement about conservative variance estimation, not a guarantee of exact coverage for a normal-approximation interval in a tiny experiment.
An experiment small enough to enumerate
Consider four employees with observed outputs . Exactly two were randomized to training; the employees with outputs 5 and 7 received it. The observed difference in means is .
Test the sharp null that training affects nobody: for every . Under that null, each employee’s observed output would remain the same under any assignment. All six possible treated pairs are equally likely. Their differences in means are
The exact two-sided randomization -value, using absolute difference as the statistic, is . A large observed difference can coexist with weak evidence when the design permits very few distinct comparisons.
from itertools import combinations
y = [1, 3, 5, 7]
statistics = []
for treated in combinations(range(4), 2):
controls = [i for i in range(4) if i not in treated]
stat = (sum(y[i] for i in treated)/2
- sum(y[i] for i in controls)/2)
statistics.append(stat)
print(sorted(statistics))
print(sum(abs(t) >= 4 for t in statistics) / len(statistics))
This test targets the sharp null. A null of zero average effect permits positive and negative individual effects and does not reveal every missing potential outcome. The same enumeration cannot be carried over without justification.
Noncompliance and attrition
Covariates. Measure experience before assignment. Blocking randomization by experience can improve balance. Prespecified regression adjustment can improve precision too. A useful large-sample approach includes centered baseline covariates and their treatment interactions, with appropriate robust uncertainty. It does not make finite-sample bias impossible, and a large search over adjustments compromises the advertised analysis.
Uptake. If some assigned employees skip training, preserve assignment in the main comparison. Randomization then identifies the effect of offering or assigning training, the intention-to-treat effect. Comparing attendees with nonattendees reintroduces selection. Moving from assignment to receipt requires additional assumptions, developed in the instruments chapter.
Attrition. Collect outcomes for both groups whether employees attend or not. Randomizing assignment does not randomize which outcomes go missing afterward. If disappointed participants stop reporting output, complete-case analysis can break the original comparison.
Power. Under an independent, equal-variance approximation, 200 people in each arm with outcome standard deviation 4 give a difference-in-means standard error of . Approximate 80% power for a two-sided 5% test requires an effect of . Clustering, attrition, unequal allocation, and baseline adjustment alter this planning calculation.
Exercises
1. In the four-person example, what is the exact one-sided -value for a prespecified positive-effect alternative?
Work through the solution
Only one of the six assignments yields a statistic at least as large as 4, so the value is . Choosing the direction after seeing the sign would not justify reporting this as a prespecified one-sided test.
2. Twenty employees were assigned treatment. Eighteen report an average outcome of 8; two outcomes are missing. Outcomes are bounded between 0 and 10. All 20 controls report an average of 7. Bound the full-assignment difference in observed group means.
Work through the solution
The full treatment mean lies between and . Subtracting 7 gives . These bounds address the missing outcomes for this realized assignment. Randomization uncertainty about the causal average is an additional issue.
Further reading
Cunningham’s Potential Outcomes and Randomization develops the design-based argument. Winston Lin’s Agnostic Notes on Regression Adjustments to Experimental Data supplies the formal basis and qualifications for fully interacted adjustment.
Write the claim and the assumption doing the most work. Saved only in this browser on this device; avoid sensitive information. Private browsing or clearing site data can erase it.
Notes are optional.
“Explored” records your choice, not a score or a claim of mastery.