1
Applied Data Analysis (CS401)
Maria Brbic / Robert West
Lecture 6
Causal analysis of observational data
16 Oct 2024
Announcements
2
Course evaluation
3
Feedback
4
Give us feedback on this lecture here: https://go.epfl.ch/ada2024-lec6-feedback
Dr. Maria’s smoking cure
5
Goals of this lecture
6
Dr. Maria’s “experiment” as a causal diagram
7
Motivation to quit smoking etc.
Take Dr. Maria’s medicine
Quit smoking
“Confounder”💀💀💀
“Treatment”
“Outcome”
Dr. Maria’s “experiment” as a causal diagram
8
Motivation to quit smoking etc.
Quit smoking
“Confounder”💀💀💀
“Treatment”
“Outcome”
Take Dr. Maria’s medicine
Ideal setting as a causal diagram
9
Motivation to quit smoking etc.
Take Dr. Maria’s medicine
Quit smoking
Randomized controlled experiments
10
Randomized controlled experiments
11
Randomized controlled experiment as a causal diagram
12
12
Motivation to quit smoking etc.
Take Dr. Maria’s medicine
Quit smoking
Randomized controlled experiment as a causal diagram
13
13
Motivation to quit smoking etc.
Take Dr. Maria’s medicine
Quit smoking
Randomized controlled experiment as a causal diagram
14
14
Motivation to quit smoking etc.
Take Dr. Maria’s medicine
Quit smoking
Coin
Limits of randomization
15
Alternative: observational studies
16
Example: seat belts revisited
17
18
THINK FOR A MINUTE!
(Feel free to discuss with your neighbor.)
As a causal diagram
19
Driver’s cautiousness
Seat belt
Survival
Severity of crash
?
A matched observational study
20
As a causal diagram
21
21
Driver’s cautiousness
Seat belt
Survival
Severity of crash
Settling the seat-belt question
22
Natural experiments
23
24
Nature didn’t flip a coin for me – should I just go home and weep?
25
Commercial break
26
Don’t go home and weep!
Nature didn’t flip a coin for me – should I go home and weep?
27
Matching
28
Problem 1: Unobserved covariates
29
Let’s ignore Problem 1 (for now)!
Addressing Problem 1 by ignoring it:�A naive model
30
“People who look comparable are comparable”
“Only observed covariates determine treatment assignment”
or equivalently:
Naive model as a causal diagram
31
Observed covariates
Treatment
Outcome
Unobserved covariates
If the naive model was true…
32
Problem 2!
Problem 2: Combinatorial explosion
33
Addressing Problem 2: Propensity score
34
Propensity score as a causal diagram
35
Propensity score
Treatment
Outcome
Observed covariates
…
Balancing property of propensity score
36
Balancing property is propensity score’s reason to be
37
Assessing covariate balance
38
Before matching
After matching
Matching algorithms
39
Ok, so are we done?
40
Let’s ignore Problem 1!
Problem 1: Unobserved covariates:�You usually can’t even know if two people are identical
“Only observed variables determine treatment assignment”
We’ve been assuming the naive model:
If the naive model isn’t true...
41
have this
need this
Violated naive model as a causal diagram
42
Treatment
Outcome
Observed covariates
…
Unobserved covariates
Propensity score
If the naive model isn’t true...
… you may end up matching
King
The naive model is easily attacked
44
The sensitivity analysis model
45
The sensitivity analysis model
46
subject ℓ’s (true) probability to treat
Example: smoking and lung cancer
47
Example: smoking and lung cancer
48
Two parts: mechanical vs. scientific
49
Summary
50
Feedback
51
Give us feedback on this lecture here: https://go.epfl.ch/ada2024-lec6-feedback
Credits
52