Professional Documents
Culture Documents
causation?
And why should we bother being formal about it?
1/92
2/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
3/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
4/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
5/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
6/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
7/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
A simple example
8/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Arianrhod
Blodeuwedd
Caswallawn
Dylan
Efnisien
Gwydion
Hafgan
Lleu
Matholwch
Pwyll
Rhiannon
Teyrnon
X
(potion
taken?)
0
1
1
0
0
1
1
0
0
0
0
1
Y
(headache
disappeared?)
0
0
1
0
1
0
0
0
1
0
1
1
9/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Arianrhod
Blodeuwedd
Caswallawn
Dylan
Efnisien
Gwydion
Hafgan
Lleu
Matholwch
Pwyll
Rhiannon
Teyrnon
X
(potion
taken?)
0
1
1
0
0
1
1
0
0
0
0
1
Y
(headache
disappeared?)
0
0
1
0
1
0
0
0
1
0
1
1
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
11/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Y1
0
0
1
0
1
0
0
0
0
0
1
1
12/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Y1
0
0
1
0
1
0
0
0
0
0
1
1
Causal effect?
No
Yes, harmful
Yes, protective
No
No
No
No
No
Yes, harmful
No
No
Yes, protective
An individual-level
causal effect is
defined for each
subject and is given
by
Y1 Y0
These need not all be
the same.
13/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Y1
?
0
1
?
?
0
0
?
?
?
?
1
X
0
1
1
0
0
1
1
0
0
0
0
1
Y
0
0
1
0
1
0
0
0
1
0
1
1
14/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
15/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Arianrhod
Blodeuwedd
Caswallawn
Dylan
Efnisien
Gwydion
Hafgan
Lleu
Matholwch
Pwyll
Rhiannon
Teyrnon
Y0
0
1
0
0
1
0
0
0
1
0
1
0
Y1
0
0
1
0
1
0
0
0
0
0
1
1
Causal effect?
No
Yes, harmful
Yes, protective
No
No
No
No
No
Yes, harmful
No
No
Yes, protective
4
P Y0 = 1 =
12
4
P Y1 = 1 =
12
1
0
P Y = 1 P Y = 1 = 0
i.e. no causal effect at the
population level.
16/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
17/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
What might be a good substitute for P Y 1 = 1 ?
What about P (Y = 1 |X = 1 )?
This is the proportion whose headache disappeared among
those who actually took the potion.
Is this the same as P Y 1 = 1 ?
Only if those who took the potion are exchangeable with
those who didnt.
This would be the case if the choice to take the potion was
made at random.
This is why ideal randomised experiments are the gold
standard for inferring causal effects.
18/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Arianrhod
Blodeuwedd
Caswallawn
Dylan
Efnisien
Gwydion
Hafgan
Lleu
Matholwch
Pwyll
Rhiannon
Teyrnon
Y0
0
?
?
0
1
?
?
0
1
0
1
?
Y1
?
0
1
?
?
0
0
?
?
?
?
1
X
0
1
1
0
0
1
1
0
0
0
0
1
Y
0
0
1
0
1
0
0
0
1
0
1
1
2
5
3
P (Y = 1 |X = 0 ) =
7
P (Y = 1 |X = 1 ) =
P (Y = 1 |X = 1 )
1
P (Y = 1 |X = 0 ) = 35
If we assumed that association =
causation, we would conclude
that the potion was, on average,
slightly harmful.
19/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Arianrhod
Blodeuwedd
Caswallawn
Dylan
Efnisien
Gwydion
Hafgan
Lleu
Matholwch
Pwyll
Rhiannon
Teyrnon
Y0
0
1
0
0
1
0
0
0
1
0
1
0
Y1
0
0
1
0
1
0
0
0
0
0
1
1
X
0
1
1
0
0
1
1
0
0
0
0
1
Y
0
0
1
0
1
0
0
0
1
0
1
1
20/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
21/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Stratifying on severity
In the stratum Z = 0:
Arianrhod
Blodeuwedd
Caswallawn
Dylan
Efnisien
Gwydion
Hafgan
Lleu
Matholwch
Pwyll
Rhiannon
Teyrnon
Y0
Y1
0
1
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
0
1
1
X
0
1
1
0
0
1
1
0
0
0
0
1
Y
0
0
1
0
1
0
0
0
1
0
1
1
Z
1
0
0
1
0
1
1
0
1
0
0
1
P (Y = 1 |X = 1 ) =
1
2
P (Y = 1 |X = 0 ) =
2
4
In the stratum Z = 1:
P (Y = 1 |X = 1 ) =
1
3
1
3
i.e. within strata of Z we find
no association between X and
Y.
P (Y = 1 |X = 0 ) =
22/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
X
Association vs. causation/ESRC Research Methods Festival 2012
Y
23/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
X
Association vs. causation/ESRC Research Methods Festival 2012
Y
24/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
25/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
26/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
27/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
28/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
29/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
30/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
31/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Z
Suppose that Z is an effect of both X and Y .
Then X and Y will be associated within strata of Z , even if
they are independent in the population.
X and Y will be conditionally associated (given Z ), even if
they are marginally independent.
The box around Z denotes that we are stratifying
(conditioning) on it.
The dashed line denotes the induced conditional association.
Association vs. causation/ESRC Research Methods Festival 2012
32/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Sporting
ability
Academic
ability
School
33/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Summary so far
34/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
35/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
An example
B
C
36/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (1)
B
C
Parents and children
A is a parent of C .
C is a child of A.
F
Association vs. causation/ESRC Research Methods Festival 2012
37/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (2)
C
[NB:
A is also an ancestor of C .
C is also a descendant of A.
i.e. parents are ancestors,
and children are
descendants.]
F
Association vs. causation/ESRC Research Methods Festival 2012
38/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (3)
B
C
Path
This is a path from E to B.
F
Association vs. causation/ESRC Research Methods Festival 2012
39/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (4)
B
C
Directed path
This is a directed path from
A to F (since all arrows
point forwards).
F
Association vs. causation/ESRC Research Methods Festival 2012
40/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (5)
B
C
Back-door path
This is a back-door path
from E to D, since it starts
with an arrow into E .
F
Association vs. causation/ESRC Research Methods Festival 2012
41/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (6)
B
C
Collider
F is a collider since two
arrow-heads meet at F .
F
Association vs. causation/ESRC Research Methods Festival 2012
42/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (7)
B
C
Note
Note that C is a collider on
the path A C B . . .
F
Association vs. causation/ESRC Research Methods Festival 2012
43/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (8)
B
Note
but C is NOT a collider on
the path E C D.
F
Association vs. causation/ESRC Research Methods Festival 2012
44/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (9)
B
C
Blocked path
The path E F D is
blocked since it contains a
collider (F ).
F
Association vs. causation/ESRC Research Methods Festival 2012
45/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (10)
B
C
Blocked path
F
Association vs. causation/ESRC Research Methods Festival 2012
46/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (11)
B
C
Open path
A path which does not
contain a collider is open.
Here is an example. . .
F
Association vs. causation/ESRC Research Methods Festival 2012
47/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (12)
B
C
Open path
. . . and another . . .
F
Association vs. causation/ESRC Research Methods Festival 2012
48/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Terminology (13)
B
C
Open path
. . . and another.
F
Association vs. causation/ESRC Research Methods Festival 2012
49/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Step 1
The first step in
constructing a causal
diagram for a particular
problem is to write down the
exposure and outcome (e.g.
disease) of interest, with an
arrow from the exposure to
the outcome.
This arrow represents the
causal effect we aim to
estimate.
50/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Step 2
If there is any common
cause C of E and D, we
must write it in the diagram,
with arrows from C to E
and C to D.
51/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
A
C
Step 2
We continue in this way,
adding to the diagram any
variable (observed or
unobserved) which is a
common cause of two or
more variables already in the
diagram.
52/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step 2
We continue in this way,
adding to the diagram any
variable (observed or
unobserved) which is a
common cause of two or
more variables already in the
diagram.
53/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step 3
If we choose, we can also
include other variables, even
if they are not common
causes of other variables in
the diagram.
For example, F .
F
Association vs. causation/ESRC Research Methods Festival 2012
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
G
A
B
C
F
Association vs. causation/ESRC Research Methods Festival 2012
55/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
H
A
B
What are our assumptions?
And that there is no
common cause H of A and
D.
F
Association vs. causation/ESRC Research Methods Festival 2012
56/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
J
A
B
C
F
Association vs. causation/ESRC Research Methods Festival 2012
57/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
K
A
B
What are our assumptions?
And that there is no
additional common cause K
of F and D.
F
Association vs. causation/ESRC Research Methods Festival 2012
58/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
F
Association vs. causation/ESRC Research Methods Festival 2012
59/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
F
Association vs. causation/ESRC Research Methods Festival 2012
60/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step 1
First we remove all arrows
emanating from the
exposure.
F
Association vs. causation/ESRC Research Methods Festival 2012
61/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
Step 2
Then we look for any open
paths from the exposure to
the outcome.
F
Association vs. causation/ESRC Research Methods Festival 2012
62/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step 2
Is this an open path?
Yes.
F
Association vs. causation/ESRC Research Methods Festival 2012
63/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step 2
Is this an open path?
Yes.
F
Association vs. causation/ESRC Research Methods Festival 2012
64/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step 2
Is this an open path?
Yes.
F
Association vs. causation/ESRC Research Methods Festival 2012
65/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step 2
Is this an open path?
No!
F
Association vs. causation/ESRC Research Methods Festival 2012
66/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Is there confounding?
So, we have identified three
open back-door paths from E to
D. Thus, there is confounding.
Next question: can we use some
or all of A, B, C , F to control
for this confounding?
F
Association vs. causation/ESRC Research Methods Festival 2012
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
68/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
The back-door criterion: steps (i)
and (ii)
Is C sufficient?
C is not a descendant of E ,
so step (i) is satisfied.
F
Association vs. causation/ESRC Research Methods Festival 2012
69/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
Step (iii)
F
Association vs. causation/ESRC Research Methods Festival 2012
70/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step (iv)
F
Association vs. causation/ESRC Research Methods Festival 2012
71/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step (iv)
So is this one.
F
Association vs. causation/ESRC Research Methods Festival 2012
72/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Step (iv)
So is this one.
F
Association vs. causation/ESRC Research Methods Festival 2012
73/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
Step (iv)
F
Association vs. causation/ESRC Research Methods Festival 2012
74/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
F
Association vs. causation/ESRC Research Methods Festival 2012
75/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
Whats the solution?
. . . or B . . .
F
Association vs. causation/ESRC Research Methods Festival 2012
76/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
B
C
F
Association vs. causation/ESRC Research Methods Festival 2012
77/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
78/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Why bother?
What has causal inference research (since Rubin 1978) given us? (1)
79/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Why bother?
What has causal inference research (since Rubin 1978) given us? (2)
80/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
81/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
82/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
1,000
Smokers
100
10
1
1,
00
0
1,
25
0
1,
50
0
1,
75
0
2,
00
0
2,
25
0
2,
50
0
2,
75
0
3,
00
0
3,
25
0
3,
50
0
3,
75
0
4,
00
0
4,
25
0
4,
50
0
4,
75
0
Nonsmokers
E 2. Birth-weight-specic infant mortality curves for infants born to smokers and nonsmokers, United States, 1991 (national linked
eath Association
data, National
Center for Health
Statistics).
vs. causation/ESRC
Research
Methods Festival 2012
83/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Maternal smoking
Death of infant
84/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Confounders
Congenital
birth defect
Birthweight
Maternal smoking
Death of infant
85/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Confounders
Congenital
birth defect
Birthweight
Maternal smoking
Death of infant
86/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Confounders
Congenital
birth defect
Birthweight
Maternal smoking
Death of infant
87/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Confounders
Congenital
birth defect
Birthweight
Maternal smoking
Death of infant
88/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
U1
Confounders
Congenital
birth defect
Birthweight
Maternal smoking
U2
Death of infant
89/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Outline
90/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Why bother?
In conclusion. . .
91/92
Introduction Association/causation Building blocks Causal diagrams Why bother? Example Final thoughts
Final thought
92/92