Probability & Statistics · Lecture 5 of 5

Causal inference

Which comparison answers the question “what if we intervene?”

1 Effects and selection2 Designs3 Adjustment

i Yᵢ(1)Yᵢ(0) treateduntreatedobservedmissing: ?
  1. 1Probability theoryWhat can happen, and how does information change it?
  2. 2Data, variables & momentsHow do measurements vary?
  3. 3StatisticsWhat can one sample tell us about a population?
  4. 4Time seriesWhat changes when observations depend on their past?
  5. 5Causal inferenceWhich comparison identifies an effect?

Developed from Ian Crawford’s lecture material. Notes, slides and PDF: fatih.ai/probabilityandstatistics

Opening question

The treated score 16.67 points lower. Did the treatment hurt them?

Seven people, outcomes in invented points. People 1, 3 and 4 were treated.

Person1234567
Treated?yesnoyesyesnonono
Outcome30304654607080treated mean 43.33,43.33\text{,} others 6060

Your answerVote now. Part 1 answers it.

AYes, by 16.67
BNo
CCannot tell yet

Why start here

Programme evaluations, university premiums and pay gaps all start from a comparison like this one. The question is what else differs between the groups.

Lecture 5 · Causal inference2 / 25

Lecture 5 · The route

Define the effect, then find a comparison that identifies it

Part 1

The effect we want and the gap we see

What is a causal effect, and why does a difference in group averages not measure it?

potential outcomesATEATTselection bias

Notes 5.1–5.2

Part 2

Designs that remove selection

How can the way treatment is assigned make selection bias zero, and for whom is the answer then valid?

random assignmentITTcompliersLATEexternal validity

Notes 5.3, 5.4, 5.7

Part 3

Adjusting for covariates

Without randomisation, when does comparing like with like recover the effect, and when does “controlling for” make things worse?

CIAoverlaptarget weightsbad control

Notes 5.5–5.6

By the end of this lecture you can

  • Define potential outcomes, ATE and ATT, and explain why one potential outcome per person is always missing.
  • Derive Δ=ATT+B\Delta=\mathrm{ATT}+B and argue the likely sign of selection bias in an economic comparison.
  • Explain what random assignment identifies, and compute ITT and the Wald ratio for compliers.
  • Judge an adjusted comparison: CIA, overlap, the right weights, and why occupation is a bad control for pay.
Lecture 5 · Causal inference3 / 25

Part 1 of 3

The effect we want and the gap we see

What is a causal effect, and why does a difference in group averages not measure it?

Key terms

potential outcomesATEATTselection bias

Notes 5.1–5.2 ↗

Why it matters

People choose programmes, universities and jobs partly on their prospects, so participants differ from non-participants before any treatment. A naive comparison could close a helpful programme, or credit a university with earnings its students would have had anyway.

In this part

  1. 5.1Potential outcomes: one person, two outcomes, one observed
  2. 5.1ATE and ATT: whose effect?
  3. 5.2Every observed gap is ATT plus selection bias
  4. ▶Animation: how selection bias can hide a positive effect
  5. 5.2Selection can push a comparison either way
Lecture 5 · Causal inference4 / 25

5.1Two worlds for one person

Each person has two potential outcomes; we only ever see one

Definition

Potential outcomes

For unit ii and treatment Di∈{0,1}:D_i\in\{0,1\}\text{:} Yi(1)Y_i(1) is the outcome under treatment, Yi(0)Y_i(0) without it. The individual effect is τi=Yi(1)−Yi(0)\tau_i=Y_i(1)-Y_i(0). The outcome not realised is the counterfactual.

Key formula Identity (1)

The observed outcome

Yi=DiYi(1)+(1−Di)Yi(0)Y_i=D_iY_i(1)+(1-D_i)Y_i(0)

In words we observe Yi(1)Y_i(1) if treated and Yi(0)Y_i(0) if not, never both.

Needs a well-defined treatment, and no effect of one person’s treatment on another’s outcome.

One person, two possible outcomes, one observation

Person
Yi(1)Y_i(1)
Yi(0)Y_i(0)
Di=1D_i=1
Di=0D_i=0

So τi\tau_i is never observed for anyone: causal inference is a missing-data problem.

5.1Average effects

ATE and ATT average the same effects over different people

Key formula Definition (2)

Average treatment effects

ATE=E[Y(1)−Y(0)],ATT=E[Y(1)−Y(0)∣D=1]\begin{aligned}\mathrm{ATE}&=E[Y(1)-Y(0)],\\ \mathrm{ATT}&=E[Y(1)-Y(0)\mid D=1]\end{aligned}

In words the average effect over everyone, and over the treated. Both terms of an effect average over the same people.

ATE and ATT differ when effects vary and the treated are not typical: ATE=P(D=1) ATT+P(D=0) ATU.\mathrm{ATE}=P(D=1)\,\mathrm{ATT}+P(D=0)\,\mathrm{ATU}\text{.}

The notes’ toy population (invented points); bold = observed
PersonDDY(0)Y(0)Y(1)Y(1)τ\tau
11203010
2030322
3140466
4150544
5060644
60708010
708078−2

ATE=34/7≈4.86;\mathrm{ATE}=34/7\approx4.86\text{;} ATT=(10+6+4)/3≈6.67.\mathrm{ATT}=(10+6+4)/3\approx6.67\text{.}

ATT subtracts the treated people’s own no-treatment outcomes, not the control group’s observed mean.

5.2An identity, not an assumption

Every observed gap is the effect plus selection bias

Key formula Identity (3)

Observed difference = effect + selection

Δ=E[Y∣D=1]−E[Y∣D=0]=ATT+B\begin{aligned}\Delta&=E[Y\mid D=1]-E[Y\mid D=0]\\&=\mathrm{ATT}+B\end{aligned}

In words add and subtract E[Y(0)∣D=1],E[Y(0)\mid D=1]\text{,} the treated group’s unseen no-treatment mean.

Definition

Selection bias

B=E[Y(0)∣D=1]−E[Y(0)∣D=0]:B=E[Y(0)\mid D=1]-E[Y(0)\mid D=0]\text{:} how the treated would have fared untreated, compared with the untreated.

Worked example the toy population

The treated would have averaged 110/3110/3 untreated; the controls average 60.60\text{.}

B=110/3−60=−70/3≈−23.33Δ=20/3−70/3=−50/3≈−16.67\begin{aligned}B&=110/3-60=-70/3\approx-23.33\\ \Delta&=20/3-70/3=-50/3\approx-16.67\end{aligned}

Common mistake

Selection bias is not sampling bias. It arises even when the whole population is observed.

Identification is whatever justifies learning the unseen E[Y(0)∣D=1].E[Y(0)\mid D=1]\text{.}

Final frame: seven people on one outcome axis. Treated people 1, 3 and 4 have observed outcomes 30, 46 and 54 and revealed no-treatment outcomes 20, 40 and 50, joined by green arrows of +10, +6 and +4; control people 2, 5, 6 and 7 have observed outcomes 30, 60, 70 and 80, with their treated outcomes unknown. Group means: treated observed 43.33, treated without treatment 36.67 (dashed), control 60. Below the axis, three arrows: Δ ≈ −16.67 from 60 to 43.33; B ≈ −23.33 from 60 to 36.67; ATT ≈ +6.67 from 36.67 to 43.33. Beside it: observed treated 130/3 ≈ 43.33, control 60; Δ = 130/3 − 60 = −50/3 ≈ −16.67; revealed Y(0) = 20, 40, 50 for the treated; ATT = (10 + 6 + 4)/3 = 20/3 ≈ 6.67; Δ = ATT + B, −16.67 = 6.67 + (−23.33); B = 110/3 − 60, lower baselines, not harm. A negative comparison can hide a positive effect; recovering ATT needs evidence about B.

Before it plays Before playing, predict: the treated group scores 16.6716.67 points below the controls. Does that mean treatment hurt them?

5.2Reading the sign of B

Selection can push a comparison either way

Worked example a university premium (illustration)

Graduates of university O earn £4,000£4{,}000 more than those of X: Δ=ATT+B.\Delta=\mathrm{ATT}+B\text{.} If O’s students would have earned more even at X, then B>0B>0 and ATT<£4,000;\mathrm{ATT}<£4{,}000\text{;} B=£3,000B=£3{,}000 would leave £1,000.£1{,}000\text{.}

Worked example a training programme (illustration)

Participants earn £8.80£8.80 a week less: Δ=−£8.80.\Delta=-£8.80\text{.} If participant selection contributes −£12,-£12\text{,} then

ATT=−8.80−(−12)=+£3.20 a week.\mathrm{ATT}=-8.80-(-12)=+£3.20\text{ a week.}

Why economists care

Closing a programme or justifying higher fees needs ATT, not Δ.\Delta\text{.} Economists expect selection wherever people choose treatment on their prospects.

Check

Δ=12.\Delta=12\text{.} Decompose it with ATT=5,\mathrm{ATT}=5\text{,} and with ATT=15.\mathrm{ATT}=15\text{.}

Answer

B=7B=7 and B=−3.B=-3\text{.} Both satisfy the identity; the data alone cannot choose.

Part 2 of 3

Designs that remove selection

How can the way treatment is assigned make selection bias zero, and for whom is the answer then valid?

Key terms

random assignmentITTcompliersLATEexternal validity

Notes 5.3, 5.4, 5.7 ↗

So far Δ=ATT+B\Delta=\mathrm{ATT}+B always holds, and the data alone cannot say how large BB is.

Why it matters

Randomised trials, offers and eligibility rules are the economist’s main evaluation tools. But people decline offers, effects spill over at scale and studies are short; each changes what is identified, and whether it carries over to a national policy.

In this part

  1. 5.3Random assignment: B = 0 on average
  2. 5.3, 5.7Compare by the offer: ITT, then LATE for compliers
  3. ▶Animation: the Wald ratio recovers the effect for compliers
  4. 5.4A credible trial need not transport
  5. 5.4Natural experiments and a threshold rule
Lecture 5 · Causal inference10 / 25

5.3Random assignment

Random assignment sets selection bias to zero on average, not in every draw

Key formula Assumption (4)

Random assignment

D⊥ ⁣ ⁣ ⁣⊥{Y(0),Y(1)}D\perp\!\!\!\perp\{Y(0),Y(1)\}

In words assignment is independent of the pair of potential outcomes; then B=0B=0 and Δ=ATT=ATE.\Delta=\mathrm{ATT}=\mathrm{ATE}\text{.}

Needs the design assigns treatment with the same positive probability to every unit.

Common mistake

It does not make the observed YY independent of D:D\text{:} a treatment effect is exactly how assignment changes Y.Y\text{.}

All 35 ways to treat three of the seven people:

-30-20-10010203040 average 34/7 ≈ 4.86 = ATE actual {1, 3, 4}: −16.67

Unbiased over allocations; one draw can still be far off. Inference (Lecture 3) measures that chance variation.

5.3, 5.7Offers and take-up

People refuse offers: compare by the offer, then rescale for compliers

Key formula Definition (5)

Intention to treat

ITT=E[Y∣Z=1]−E[Y∣Z=0]\mathrm{ITT}=E[Y\mid Z=1]-E[Y\mid Z=0]

In words ZZ is the randomised offer, DD the treatment received. ITT is the effect of offering, take-up included.

Types by receipt without and with the offer, (D(0),D(1))(D(0),D(1))
never-taker (0,0)(0,0)complier (0,1)(0,1)
always-taker (1,1)(1,1)defier (1,0):(1,0)\text{:} ruled out

Common mistake

Comparing takers with non-takers: take-up selects on motivation, so it forfeits the randomisation.

Key formula Result (6)

The Wald ratio: LATE

LATE=E[Y∣Z=1]−E[Y∣Z=0]E[D∣Z=1]−E[D∣Z=0]\mathrm{LATE}=\frac{E[Y\mid Z=1]-E[Y\mid Z=0]}{E[D\mid Z=1]-E[D\mid Z=0]}

In words the offer’s effect on outcomes over its effect on take-up: the average effect for compliers.

Needs a random offer that affects YY only through DD (exclusion), changes take-up, and creates no defiers.

LATE is local: a different offer moves different people, and its compliers may gain more or less than everyone else.

Final frame: two bars of people, without the offer (Z = 0) and with it (Z = 1), each split into always-takers 20%, compliers 50% and never-takers 30%. Without the offer only always-takers receive treatment (receipt 0.20); with it, always-takers and compliers do (receipt 0.70); dashed arrows mark the compliers who switch. Below, the gain in points: a dashed rectangle 3 high across everyone (+3 on average) and a solid rectangle of the same area, 6 high, under the compliers alone (+6 per complier). Beside it: random offer, the same mix in both groups; receipt 0.20 → 0.70; Δ_D = 0.50, the complier share; Δ_Y = 3 points over everyone; only compliers switch, so 0.50 × LATE = 3; LATE = Δ_Y/Δ_D = 3/0.50 = 6, the effect for compliers, not for everyone.

Before it plays Before playing, predict: a random offer raises average outcomes by 33 points and moves receipt from 20%20\% to 70%.70\%\text{.} How large is the treatment’s effect for those who switch?

5.4Internal and external validity

A credible trial need not transport to another setting

Definition

Internal validity

Does the study credibly identify its stated effect for the units and treatment actually studied? Check assignment, take-up, measurement, missing outcomes, interference.

Definition

External validity

Does the result transport to another population, setting, implementation or time horizon? Check people, institutions, scale, follow-up.

Why a good trial may not carry over

  • Spillovers. If treating one person affects others, outcomes are Yi(di,d−i):Y_i(d_i,\mathbf d_{-i})\text{:} a pilot and a national policy are different interventions.
  • Surrogates. An exam score next term is not earnings in ten years.
  • Being observed. Hawthorne and placebo effects: define the comparison; blind where possible.

Good random assignment supports internal validity without establishing external validity.

5.4Natural experiments

A natural experiment is an argument, not a label

Definition

Natural and quasi-experiments

Variation from outside the researcher’s control that resembles random allocation in the relevant respect. Name the source of variation, the comparison, the competing pathways and the local target.

Common mistake

“The weather was random.” A storm’s exposure varies with location and housing, and it can hit income directly, not only through moving house.

Worked example a class-size threshold rule

With classes capped at 40, enrolment nn predicts class size

q(n)=n⌈n/40⌉q(n)=\frac{n}{\lceil n/40\rceil}
n=40n=404040n=80n=804040
n=41n=4120.520.5n=81n=812727

One more pupil drops the predicted size by 13. Compare schools just either side, if nothing else jumps at 40 and schools cannot sort.

Part 3 of 3

Adjusting for covariates

Without randomisation, when does comparing like with like recover the effect, and when does “controlling for” make things worse?

Key terms

CIAoverlaptarget weightsbad control

Notes 5.5–5.6 ↗

So far randomisation sets B=0B=0 by design; a random offer identifies ITT and, under conditions, LATE for compliers.

Why it matters

Most economic data are observational, and adding controls is routine. Whether the gender pay gap “disappears within occupations” turns on exactly this question.

In this part

  1. 5.5CIA: as good as random within covariate cells
  2. 5.5Same cell effects, different targets
  3. 5.5No comparison without overlap
  4. 5.6Composition and the pay gap
  5. 5.6Control for confounders, not for outcomes of treatment
  6. ▶Animation: equal pay within a profession can hide a negative effect
Lecture 5 · Causal inference16 / 25

5.5Selection on observables

Conditional independence: within covariate cells, assignment is as good as random

Key formula Assumption (7)

Conditional independence (CIA)

D⊥ ⁣ ⁣ ⁣⊥{Y(0),Y(1)}∣XD\perp\!\!\!\perp\{Y(0),Y(1)\}\mid X

In words within each group of pre-treatment covariates X,X\text{,} assignment is independent of the potential outcomes.

Needs an argument about how treatment was assigned. Then τ(x)=m1(x)−m0(x),\tau(x)=m_1(x)-m_0(x)\text{,} the within-cell difference of observed means.

What CIA does not say

  • CIA does not say potential outcomes are constant within a cell.
  • No number of controls makes it true, and balance on observed variables does not test it.

Worked example military service and earnings

Compare applicants who enlisted with applicants who did not, holding recorded screening characteristics fixed. Threat: persistence or reliable attendance may drive both enlistment and later earnings.

5.5Averaging cell effects

The same cell effects give different answers for different targets

Key formula Result (8)

Target weights

ATE=∑xτ(x) P(X=x)ATT=∑xτ(x) P(X=x∣D=1)\begin{aligned}\mathrm{ATE}&=\textstyle\sum_x\tau(x)\,P(X=x)\\ \mathrm{ATT}&=\textstyle\sum_x\tau(x)\,P(X=x\mid D=1)\end{aligned}

In words ATE weights cells by the population; ATT by the treated.

Check

Cell effects 3 and 9; population shares 0.7 and 0.3; treated shares 0.2 and 0.8. ATE and ATT?

Answer

ATE=4.8,\mathrm{ATE}=4.8\text{,} ATT=7.8.\mathrm{ATT}=7.8\text{.}

Worked example two cells, half the population each

Treatment probability 0.20.2 in cell X=0,X=0\text{,} 0.80.8 in cell X=1.X=1\text{.}

CellPopulationTreatedτ(x)\tau(x)
X=0X=00.50.22
X=1X=10.50.86
ATE=0.5(2)+0.5(6)=4ATT=0.2(2)+0.8(6)=5.2\begin{aligned}\mathrm{ATE}&=0.5(2)+0.5(6)=4\\ \mathrm{ATT}&=0.2(2)+0.8(6)=5.2\end{aligned}

The raw gap, 23.2−12=11.2,23.2-12=11.2\text{,} adds baseline selection of 6.6\text{.}

5.5Overlap and sparse cells

No comparison without overlap, and fine cells empty fast

Key formula Assumption (9)

Overlap (common support)

0<P(D=1∣X=x)<10<P(D=1\mid X=x)<1

In words at every covariate value in the target, some units are treated and some are not.

Needs for ATT, untreated comparisons wherever treated people are. It can be checked in the data.

Common mistake

If everyone with X=1X=1 is treated, τ(1)\tau(1) is not identified: a fitted model fills the cell only by extrapolation, and trimming changes the estimand.

Worked example 100 points spread evenly over kk variables

Expected count in a cell of side 0.20.2 of each range:

kk12345
count2040.80.160.032

To expect 5 points with k=5,k=5\text{,} each side must be (0.05)1/5≈0.55(0.05)^{1/5}\approx0.55 of its range.

5.6Composition

Composition alone can make the overall gap exceed every within-group gap

Published statistic ONS 2021, provisional, UK medians

Median hourly-pay gaps: 7.9%7.9\% full-time, −2.7%-2.7\% part-time, 15.4%15.4\% overall. They compare pay across jobs, not people in the same job.

Common mistake

Medians cannot be averaged across groups: the law of iterated expectations is about means.

Worked example a hypothetical mean model

MenWomenMen’s shareWomen’s share
Full-time14.8113.640.850.58
Part-time9.079.310.150.42

Means 13.94913.949 and 11.8214:11.8214\text{:} a gap of 15.25%,15.25\%\text{,} above both within-stratum gaps (7.90%7.90\% and −2.65%-2.65\%), because more women work in the lower-paid stratum.

5.6Bad controls

Control for confounders, not for outcomes of the treatment

A confounder: XX causes both DD and Y.Y\text{.} Conditioning on it can help.

A pre-treatment common cause

XX
DD
YY

A bad control: WW is caused by D.D\text{.} Holding it fixed changes who is compared.

Selection through an outcome

DD
UU
WW
YY

Key formula Identity (10)

Comparing within an occupation

ΔW=τW+BW\Delta_W=\tau_W+B_W

In words the gap among professionals = an effect for those who would be professional if treated + a difference in who becomes professional.

Needs DD independent of all potential earnings and occupations jointly.

Definition

Bad control

A variable caused by the treatment, such as occupation for pay. Conditioning on it can hide part of the effect or create selection.

Final frame: two columns of earnings, D = 0 and D = 1, for three types with shares 50%, 30% and 20%: type A earns 100 and 85, type B 60 and 45, type C 40 and 25, each pair joined by an arrow marked −15. Professional cells are ringed in gold: types A and B under D = 0, only type A under D = 1; the others are dimmed. Under each column: professionals, mean 85. Type A is outlined in both columns. Beside it: every type, Y(1) − Y(0) = −15; professional under D = 0: types A and B; under D = 1: type A only; D = 0: (0.5·100 + 0.3·60)/0.8 = 85; D = 1: 85, gap 85 − 85 = 0; τ_W = 85 − 100 = −15 for type A in both states; B_W = 100 − 85 = +15, because D = 0 adds type B; 0 = −15 + 15. Conditioning on a job changes who is compared.

Before it plays Before playing, predict: among professionals, both groups earn 85.85\text{.} Does that show the treatment has no effect on earnings?

Review · How the ideas connect

One identity, three ways to deal with selection

Part 1 · Effects

Part 2 · Designs that set B = 0

Part 3 · Adjustment

compare groups
Potential outcomes (1), targets ATE, ATT (2)
Δ=ATT+B\Delta=\mathrm{ATT}+B (3)
the selection-bias identity
B=0B=0 on averagepartial take-up÷ take-up changefor whom?
Random assignment (4)
Random offer: ITT (5)
Compliers: LATE (6)
Does it transport?
B=0B=0 in cellsreweight τ(x)\tau(x)needed in every cellre-creates selection
CIA given XX (7)
Weights for the target (8)
Overlap (9)
Bad control: ΔW=τW+BW\Delta_W=\tau_W+B_W (10)
Lecture 5 · Causal inference23 / 25

Review · Summary sheet

What to take away: the terms and the ten formulas

Key terms

1 Effects and selection

Potential outcomes Yi(1),Y_i(1)\text{,} Yi(0):Y_i(0)\text{:} one unit’s outcomes with and without treatment; one is always missing.

ATE the average effect over everyone.

ATT the average effect among the treated.

Selection bias the groups’ difference in no-treatment outcomes.

2 Designs

Random assignment assignment independent of the potential outcomes.

complier takes the treatment if and only if offered.

LATE the average effect for the compliers of one instrument.

Internal and external validity credible for the units studied; carries over to other settings.

3 Adjustment

CIA within covariate cells, assignment independent of potential outcomes.

Overlap treated and untreated units at every target covariate value.

Bad control a variable the treatment changes; conditioning on it alters who is compared.

Key formulas

1 Effects and selection

(1)The observed outcome IdentityYi=DiYi(1)+(1−Di)Yi(0)Y_i=D_iY_i(1)+(1-D_i)Y_i(0)binary treatment, consistency, no interference
(2)Average treatment effects DefinitionATE=E[τ],\mathrm{ATE}=E[\tau]\text{,} ATT=E[τ∣D=1]\mathrm{ATT}=E[\tau\mid D=1]each average over one stated population
(3)Observed difference = effect + selection IdentityΔ=ATT+B\Delta=\mathrm{ATT}+Balways true when both groups exist

2 Designs

(4)Random assignment AssumptionD⊥ ⁣ ⁣ ⁣⊥{Y(0),Y(1)}D\perp\!\!\!\perp\{Y(0),Y(1)\}gives B=0,B=0\text{,} Δ=ATT=ATE\Delta=\mathrm{ATT}=\mathrm{ATE} (population model)
(5)Intention to treat DefinitionITT=E[Y∣Z=1]−E[Y∣Z=0]\mathrm{ITT}=E[Y\mid Z=1]-E[Y\mid Z=0]identified when the offer ZZ is randomised
(6)The Wald ratio: LATE ResultLATE=ΔY/ΔD=E[Y(1)−Y(0)∣C]\mathrm{LATE}=\Delta_Y/\Delta_D=E[Y(1)-Y(0)\mid C]random offer, exclusion, nonzero take-up change, no defiers

3 Adjustment

(7)Conditional independence (CIA) AssumptionD⊥ ⁣ ⁣ ⁣⊥{Y(0),Y(1)}∣XD\perp\!\!\!\perp\{Y(0),Y(1)\}\mid Xthen τ(x)=m1(x)−m0(x)\tau(x)=m_1(x)-m_0(x) where both groups exist
(8)Target weights ResultATE=∑xτ(x) P(X=x)ATT=∑xτ(x) P(X=x∣D=1)\begin{aligned}\mathrm{ATE}&=\textstyle\sum_x\tau(x)\,P(X=x)\\ \mathrm{ATT}&=\textstyle\sum_x\tau(x)\,P(X=x\mid D=1)\end{aligned}CIA and overlap in every cell; discrete XX
(9)Overlap (common support) Assumption0<P(D=1∣X=x)<10<P(D=1\mid X=x)<1checkable; for every target covariate value
(10)Comparing within an occupation IdentityΔW=τW+BW\Delta_W=\tau_W+B_Wgiven joint independence of D
Lecture 5 · Causal inference24 / 25

Review · Before you report a causal estimate

Name the target, defend the assumption, then measure the uncertainty

Before you report a causal estimate

  1. The intervention, population, outcome and time horizon.
  2. How treatment was assigned.
  3. The identifying condition: randomisation, exclusion, or CIA with overlap.
  4. Only then, inference suited to the design. A confidence interval does not cover a failed assumption.

Result the opening question

From the data alone: cannot tell. In the model, every treated person gained (ATT ≈+6.67\approx+6.67); their lower baselines (B≈−23.33B\approx-23.33) produced the gap.

The course in one line

Probability defines uncertainty; distributions and moments describe measurements; statistics studies sampling variation; time series accounts for dependence over time; causal inference decides which comparison answers an intervention question.

Practise

Notes 5.1–5.7 with worked solutions; the five interactive figures (potential outcomes, selection, the 35 allocations, target weights, pay mixtures).

Lecture 5 · Causal inference25 / 25