Causal Graphs
Let be a finite set. A directed graph on is a pair where is a set of ordered pairs. The elements of are the vertices or nodes of and the elements of are its directed edges. The edge is written
Let be a directed graph and The vertex is a parent of and is a child of if and only if The set of parents of is written
Let be a directed graph. A path in is a sequence of distinct vertices such that consecutive vertices are joined by an edge in either direction. A directed path from to is a path in which every edge points from to A directed cycle is a directed path from a vertex to itself.
Let be a directed graph and The vertex is an ancestor of and is a descendant of if and only if there is a directed path from to The set of descendants of is written
A directed acyclic graph (DAG) is a directed graph with no directed cycles. In a DAG the vertices can be ordered so that every edge points from an earlier vertex to a later one.
Let be a DAG and or be consecutive vertices on a path. The vertex is a chain on the path. Let be consecutive vertices on a path. The vertex is a fork on the path. Let be consecutive vertices on a path. The vertex is a collider on the path. Every non-endpoint vertex of a path is exactly one of a chain, a fork or a collider on that path.
Let be a set of endogenous variables, be a set of exogenous variables with a joint probability distribution and for each let and be a function. A structural causal model (SCM) is the collection of structural equations that determine each endogenous variable from its parents and its exogenous variable, together with
The structural equations are assignments rather than algebraic equalities: the left-hand side is determined by the right-hand side and not conversely.
Let be a structural causal model. The causal graph of is the directed graph on with an edge from each element of to The model is recursive if and only if its causal graph is a DAG. A recursive structural causal model has the following properties:
- the exogenous variables determine the endogenous variables uniquely, so induces a joint distribution of the endogenous variables, the observational distribution;
- if the exogenous variables are mutually independent then the model is Markovian, and otherwise it is semi-Markovian.
Let be a DAG on and be a joint distribution of with pmf or pdf The distribution is Markov with respect to if and only if it factorises into the conditional distributions of each variable given its parents.
The observational distribution of a Markovian structural causal model is Markov with respect to its causal graph.
The causal Markov condition is the assumption that every variable is independent of its non-descendants given its parents in the causal graph. The causal Markov condition is equivalent to the Markov factorisation.
Let be a DAG, be a path in and be a set of vertices. The path is blocked by if and only if at least one of the following holds:
- contains a chain or a fork whose middle vertex is in
- contains a collider such that neither the collider nor any of its descendants is in
A path that is not blocked by is open given
Let be a DAG and be disjoint sets of vertices. The sets and are d-separated by in written if and only if every path from a vertex in to a vertex in is blocked by
Let be a DAG and be Markov with respect to The global Markov property states that d-separation implies conditional independence.
The converse need not hold: a distribution can have conditional independences that are not implied by d-separation. Conditioning on a collider, or on a descendant of a collider, opens a path between its parents and can create dependence between variables that are marginally independent.
Let be a structural causal model, and be a value of The intervention is the operation that replaces the structural equation of by the constant assignment and leaves every other structural equation and unchanged. The intervened model is written and its causal graph is with every edge into removed.
Let be a structural causal model and The interventional distribution of under written or is the distribution of in the intervened model Interventional distributions have the following properties:
- conditioning on selects the units with whereas intervening with sets for every unit, so in general;
- the interventional distribution is Markov with respect to the intervened graph;
- the potential outcome is the value of in so and
Let be a Markovian structural causal model with observational pmf or pdf and The truncated factorisation states that the interventional distribution of the remaining variables is the Markov factorisation with the factor of removed and fixed at
Let be a structural causal model, and be values of The average causal effect of changing from to on is the difference of the interventional means.
For a binary treatment this is the average treatment effect
Let be a structural causal model with exogenous variables and be an observed event. The counterfactual distribution of given is the distribution of in with replaced by the conditional distribution of given The counterfactual distribution is computed in three steps:
- abduction: update the distribution of to its conditional distribution given
- action: replace the structural equation of by
- prediction: compute the distribution of in the modified model.
Counterfactual quantities such as depend on the structural equations and not only on the interventional distributions.
Let be a causal graph with treatment and outcome A confounder of and is a common cause of and that is, an ancestor of both. A mediator of and is a vertex on a directed path from to A collider between and is a common effect of and or of their causes.
Let be a causal graph with treatment and outcome A backdoor path from to is a path from to that starts with an edge into Backdoor paths carry the association between and that is not due to the causal effect of on Confounding is the presence of an open backdoor path.
Selection is conditioning on a variable, by design or by the way the data are collected. Collider bias is the spurious association between and created by selection on a collider or on a descendant of a collider between them. Conditioning on a mediator blocks part of the causal effect, and conditioning on a confounder blocks a backdoor path.