Regression Foundations
A reading guide — how random assignment zeroes one term of the bias formula, and what it still leaves untouched.
Section one
The claim the deck makes, and the picture behind it.
Key concepts
The observational problem.
In a study of caffeine and heart rate, stress and sleep are omitted variables — and they are connected to both caffeine consumption and heart rate.
If we can’t measure stress and sleep quality to include in our study it will cause bias: we can’t confidently say caffeine is the factor driving the increase in heart rate, or if it co-occurs with the other factors that are actually increasing heart rate.
What randomization does.
Randomization breaks the correlations between the variable that has been randomized and the rest of the variables in the study — except the outcome, if the relationship is in fact causal.
Assigning caffeine doses at random severs the arrows from stress and sleep into caffeine. They may still affect heart rate; they no longer travel through the treatment.
The test this creates.
If the relationship was spurious then caffeine dosage no longer predicts heart rate.
A relationship that survives randomization is causal. A relationship that disappears was riding on the omitted variables all along.
In Venn terms.
Randomization moves every other variable from the first picture to the second.
The same logic applies to program participation.
Whoever chooses to participate in a program differs from those who do not, on things you cannot measure. Randomizing participants into treatment groups breaks those correlations exactly as it does for a dose.
Section two
The mental map. How the pieces connect, and how to read the deck.
This deck is short because it only needs one line from p-07:
where α1 is the slope of the omitted variable regressed on the treatment. Randomization makes the treatment independent of everything that was determined before assignment, so α1 = 0 for every such variable, and therefore bias = 0 · β2 = 0.
Note what it does not do. It does not make β2 zero — stress still affects heart rate, and sleep still affects heart rate. Those variables remain in the residual, where they inflate your standard errors. Randomization buys you accuracy, not precision.
That is why randomized studies still use control variables: type-A controls (uncorrelated with the treatment, which after randomization means all of them) shrink the residual and tighten the interval. Under randomization, every control is a type-A control.
An observed association between caffeine and heart rate could be either:
The naïve regression cannot tell these apart, because both produce the same correlation. Randomization can, and the mechanism is worth stating carefully: once dose is assigned by a coin flip, stressed people are no more likely to get a high dose than anyone else. Any remaining association cannot be running through stress.
Hence the deck’s sharpest slide: if the relationship was spurious then caffeine dosage no longer predicts heart rate. Randomization does not merely reduce bias — it converts the study into a test that a spurious relationship fails.
p-07 ended in an uncomfortable place. Observational studies always omit something; you can sometimes sign the bias but rarely remove it; and the correlated controls that would fix it are expensive and never provably complete.
Randomization sidesteps the entire problem rather than solving it case by case. You do not need to know what the confounders are, or measure them, or even be able to name them. Whatever they are — measured, unmeasured, unmeasurable — random assignment breaks their correlation with the treatment simultaneously.
That is a qualitatively different kind of guarantee from “we controlled for everything we could think of,” and it is the reason experiments sit at the top of the evidence hierarchy.
Worth being clear about the limits, since the deck focuses on the win:
| Slides | What they are doing | What to take away |
|---|---|---|
| 2–4 | Setup: is a relationship causal? | The question randomization answers. |
| 5 | The observational case | Stress and sleep connect to both caffeine and heart rate. |
| 6 | The key claim | Randomization severs correlations with the treatment. |
| 7 | The consequence | A spurious relationship disappears after randomization. |
| 8–9 | Venn versions | Overlap with X1 → bias; no overlap → no bias. |
| 10–11 | Program participation | The same logic for who enrols, not just how much. |
Section three
Four things to be able to answer without notes.