Causal diagram

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Statistical inference.

In causal inference, a causal diagram is a directed acyclic graph whose arrows assert direct causal effects and whose missing arrows assert their absence, from which d-separation and the backdoor criterion determine which variables to condition on so that an association can be read as an effect. A causal diagram is a drawing of assumptions. Its nodes are variables, its arrows are claimed direct causes, and — just as importantly — its missing arrows are claimed absences of direct causation. Hernán and Robins introduce causal diagrams as the tool for making qualitative expert knowledge and prior assumptions about a causal structure explicit, on the principle that investigators should draw their assumptions before they draw their conclusions .[1]

The payoff is discipline about a question associational reasoning answers badly: given an exposure AA and an outcome YY, which other variables should be conditioned on — stratified on, adjusted for, or restricted on — so that the remaining AA–YY association can be read as an effect of AA on YY? The traditional answer, to adjust for whatever is associated with both exposure and outcome and is not itself affected by exposure, is demonstrably inadequate: it misses associations that adjustment itself creates, and can direct the analyst to condition on exactly the variable that manufactures bias. This article defines the object, states the rules in words, and works two numerical examples: a common cause that makes a null effect look large, and a common effect that makes two independent causes look associated once the analysis conditions on their effect.

Causal diagram

Causal diagram
Fact Value
Topic Statistical inference
Listed on Statistical inference

Definition

A causal diagram, in the sense used here, is a directed acyclic graph, or DAG. It consists of nodes and directed edges. Each node represents a variable — an exposure, an outcome, a covariate, or a variable nobody has measured. Each directed edge is an arrow from one node to another, written here as X→AX \rightarrow A and read as “XX is a direct cause of AA”, where “direct” means direct relative to the other variables on the graph: the effect is not mediated through any other variable the diagram includes. A variable with an arrow into another is its parent; the variable at the head of the arrow is its child

The graph is directed because every edge has a direction, and acyclic because no directed path forms a closed loop: following arrows in their direction, one can never return to a node already visited — no variable can cause itself at an instantaneous moment, and the future cannot cause the past .[2]

Acyclicity restricts the representation, not nature. Where two variables genuinely influence each other over time — pain worsening depression, depression worsening pain — the acyclic representation expands each construct into time-indexed copies: depression at time 1, pain at time 1, depression at time 2 and pain at time 2 are distinct nodes, and every arrow runs from an earlier copy to a later one, as Shrier and Platt note for repeated measures of one construct .[3] A cyclic graph is in general shorthand for such an acyclic graph with time-specific measurements .[4]

Formally, Hernán and Robins define a DAG as a graph whose nodes are random variables V=(V1,…,VM)V = (V_1, \dots, V_M) with directed edges and no directed cycles, and a causal DAG by three further conditions: the lack of an arrow is interpreted as the absence of a direct causal effect, relative to the other variables on the graph; all common causes of any pair of variables on the graph, even unmeasured ones, are themselves on the graph; and any variable is a cause of its descendants .[1] The second condition is easy to miss: an unmeasured common cause belongs on the diagram, drawn as an unmeasured node, because leaving it off would assert falsely that the variables it causes share no such cause.

Reading an arrow, and reading a missing arrow

An arrow and a missing arrow assert very different strengths of claim. The presence of an arrow X→YX \rightarrow Y asserts that XX has a direct causal effect on YY — an effect not mediated through any other variable on the graph — for at least one individual .[1] It asserts nothing else: not whether the effect is harmful or protective, large or negligible, linear or nonlinear, and not how XX interacts with any other cause of YY, since a standard causal diagram does not distinguish whether an arrow represents a harmful or a protective effect and does not encode how two causes of one variable interact .[1]

The absence of an arrow asserts much more: that XX has no direct causal effect on YY for any unit. Every absence of a single-headed arrow is a basic null, or no-direct-effect, assumption encoded by the graph, and implies the absence of every effect that would have been transmitted through that arrow .[4] Tennant and colleagues state the asymmetry as a reporting rule: omitting an arc implies precisely no causal effect, a much stronger assumption than including an arc, which allows an effect of any sign, magnitude or parametric form, including a very small one .[2] A sparse diagram is therefore not a modest diagram: it makes one strong null claim for every ordered pair of nodes it declines to connect, whereas a dense diagram makes few claims at all.

The same logic governs whole routes. A directed path from XX to YY is a sequence of arrows all pointing the same way, such as X→M→YX \rightarrow M \rightarrow Y; it is also called a causal path. If a directed path runs from XX to YY, then XX is an ancestor of YY and YY is a descendant of XX. Producing an effect requires a causal path, so the absence of any directed path from XX to YY is the assumption that XX has no effect on YY through any route the diagram contains .[4] “Direct” is relative to the variable set drawn: adding a mediator would split one arrow into two without changing the underlying claim .[4]

Paths, and the three elementary structures

A path between two nodes is any unbroken route traced along edges, whether with or against the arrows — A←X→YA \leftarrow X \rightarrow Y, for example. Paths, not individual arrows, are the unit of associational reasoning. Every path is built from three elementary three-node structures.

The first is the chain, A→M→YA \rightarrow M \rightarrow Y, in which MM lies on a causal path from AA to YY and is a mediator of the effect of AA on YY. Association flows along the chain, and conditioning on the middle node interrupts the flow: within a stratum of MM, the part of the AA–YY association transmitted through MM is removed, because MM no longer varies to carry it. The second is the fork, A←X→YA \leftarrow X \rightarrow Y, in which XX is a common cause of AA and YY. Association flows along the fork for a non-causal reason — units with high XX tend to have both higher AA and higher YY — which is the graphical form of a confounding variable. Conditioning on the middle node, the common cause itself, blocks the flow: within strata of XX the fork transmits no association. The third is the collider, A→C←YA \rightarrow C \leftarrow Y, in which CC is a common effect of AA and YY and the two arrows collide at CC. The collider behaves in exactly the opposite way. Unconditionally it transmits no association at all: the path through CC is blocked by default, and AA and YY may be perfectly independent marginally. Conditioning on the collider — or on any descendant of it — opens the path and creates an association between its causes that was not there before.

Hernán and Robins summarise the three structures in one sentence: two variables may be associated because one causes the other, because they share common causes, or because they share a common effect and the analysis is restricted to some level of that effect or of its descendants .[1] Chance is a fourth, non-structural reason, set aside here.

d-separation: when a path is blocked

The rules generalise to paths of any length through d-separation, where the “d” stands for directional .[4] Fix two variables and a set SS being conditioned on. A path between them is blocked by SS if either of two things happens along it. The path contains a chain or a fork whose middle node is in SS: conditioning on a non-collider blocks the path, because within strata of that node the segment transmits no further association. Or the path contains a collider that is not in SS and has no descendant in SS: an unconditioned collider blocks by default. If neither happens — every non-collider on the path is unconditioned, and every collider is conditioned on, directly or through a descendant — the path is open and can transmit association. Two variables are d-separated by SS if every path between them is blocked by SS. Hernán and Robins state the four component rules explicitly: a path with an unconditioned collider is blocked; a path with a conditioned non-collider is blocked; a conditioned collider does not block; and a collider with a conditioned descendant does not block — in sum, a path is blocked if and only if it contains a conditioned non-collider, or a collider that has not been conditioned on and has no conditioned descendants .[1]

D-separation is the graphical counterpart of conditional independence: if SS d-separates two variables, then under the diagram’s assumptions they are unassociated within strata of SS .[4] The converse needs care. An open path allows association but does not guarantee it, because associations along different open paths can in principle cancel — an effect hidden by confounding of the opposite sign is the standard example .[4] Logically, d-separation implies independence, while independence in data does not imply d-separation in the true diagram.

Colliders, conditioning, and selection bias

Return to A→C←YA \rightarrow C \leftarrow Y, with AA and YY marginally independent, and now condition on CC — restrict to one level of it, stratify on it, match on it, or model it. Shrier and Platt’s homely version is rain and sprinklers, which both cause a wet field: conditional on the field being wet, knowing the sprinklers were off raises the probability that it rained .[3] The child in such a structure is called a collider because the two arrows collide at the node .[3] Conditioning on the collider, or on a descendant of it, removes that collider as a block on the path. The path is open only if no other block remains.

An open path permits association but does not guarantee it. The graphical rules do not rank the strength of any association induced by conditioning on the collider versus its descendant. Hernán and Robins add a medication caused by heart disease to their collider diagram: the two causes of heart disease are associated within levels of the medication too, because conditioning on a variable affected by a collider also opens the path .[1] Hence “we did not adjust for the collider itself” is no defence: selection into a study, response, or survival to recruitment is typically a descendant of its causes, and analysing the selected sample at all can be conditioning on such a descendant.

That observation reorganises the taxonomy of bias. In the structural approach Shrier and Platt adopt, biases divide into two graphical kinds: confounding bias, from failing to condition on a common cause, and selection bias, from conditioning on a common effect .[3] Berkson’s bias is the canonical instance: two diseases independent in the general population both affect hospital admission, so among admitted patients — the stratum defined by the common effect — the diseases are associated, and an inpatient-only study may mistake that association for a fact about the diseases. Recognising it as biased requires the diagram for the entire population; nothing in the hospital data alone announces that selection manufactured it .[4]

The symmetric failure also exists: where exposure and outcome share no common cause, conditioning on a common effect of the two biases a clean comparison — Greenland, Pearl and Robins’ instance is stratifying on uterine bleeding, caused by both oestrogen and endometrial cancer, in studies of oestrogen and endometrial cancer, where adjustment for the common effect was irremediably harmful .[4]

Backdoor paths and the backdoor criterion

Fix an exposure AA, an outcome YY, and the total effect of AA on YY — the effect transmitted along all directed paths from AA to YY, the contrast at the heart of causality and the average treatment effect. Any other path between AA and YY is a potential source of non-causal association. A backdoor path from AA to YY is a path between them that begins with an arrow into AA: its first step, leaving AA, travels against an arrowhead, along an edge of the form A←⋯A \leftarrow \cdots. Greenland, Pearl and Robins define it in exactly those terms — a path connecting XX to YY is a backdoor path from XX to YY if it has an arrowhead pointing to XX .[4] The causal effect leaves AA through the front door, along arrows out of AA; a backdoor path sneaks association into AA from behind, through whatever causes AA, and carries it on to YY.

The simplest backdoor path is the fork A←X→YA \leftarrow X \rightarrow Y. Longer ones thread through several variables and may contain colliders, which is why some backdoor paths are already blocked — by an unconditioned collider on them — and transmit nothing unless the analyst conditions on that collider or its descendant and opens them. Confounding, in graphical language, is the presence of an open backdoor path: in Hernán and Robins’ heart transplant example there is confounding because treatment and outcome share the cause LL, disease severity — an open backdoor path through LL, blocked by conditioning on LL .[1]

The backdoor criterion states precisely when a set of variables removes the problem. Let SS be a set of variables, and the target the total effect of AA on YY. Then SS satisfies the backdoor criterion for (A,Y)(A, Y) if: (i) no variable in SS is a descendant of AA; and (ii) SS blocks every backdoor path from AA to YY — every path beginning with an arrow into AA is blocked given SS, counting both paths blocked by conditioning on non-colliders in SS and any paths opened by conditioning on colliders in SS or their descendants. When SS satisfies the criterion, conditioning on SS makes the treated and untreated exchangeable within levels of SS, and the conditional association, standardised over the distribution of SS, gives the effect — provided two further conditions hold, which no diagram can supply. The first is consistency: a unit observed with A=aA = a shows the outcome it would show under the intervention that sets A=aA = a, so the observed outcome is the relevant counterfactual outcome. The second is positivity, or overlap: within every level of SS that occurs in the population, both treatment values actually occur, so the conditional associations being standardised are defined by observation rather than by extrapolation. The backdoor criterion settles which set to condition on; consistency and positivity are what allow the standardised conditional association to be read as an effect at all. This qualification applies at the first adjustment result in this article and at every later use of the criterion. Hernán and Robins state the sufficient-set version: a set of measured non-descendants of AA is a sufficient set for confounding adjustment when conditioning on it blocks all backdoor paths, so that the treated and the untreated are exchangeable within its levels .[1]

Neither clause is redundant. Clause (i) excludes mediators, such as MM in A→M→YA \rightarrow M \rightarrow Y — conditioning on a mediator blocks part of the very effect being estimated — and post-exposure colliders whose conditioning can open non-causal paths. Clause (ii) is stronger than “block the confounders”: it requires blocking every backdoor path, including paths that conditioning itself would open. Greenland, Pearl and Robins give the equivalent criteria in their earlier form: a set SS of non-descendants of exposure and outcome is sufficient if every unblocked backdoor path is intercepted by a variable in SS, and every unblocked path induced by adjustment for SS is also intercepted by a variable in SS .[4] The second criterion is the addition naive reasoning misses; their central example is a set — adjustment for an intermediate variable alone — that intercepts the original paths but fails, because conditioning on it associates two previously independent causes and creates a new open backdoor path around it .[4]

A sufficient set need not be unique, and minimally sufficient sets — sufficient sets no proper subset of which is sufficient — need not overlap at all :[4] “the confounders”, as a canonical list, is not a notion the theory supports. Bigger is not safer either: adding a variable to a sufficient set can destroy its sufficiency, by opening a collider path or blocking a causal path .[4] And the criterion is silent about magnitude: an unblocked path may be weak, and several strong paths may bias in opposite directions and nearly cancel .[1] It settles identification, not the importance of getting it wrong.

When no measured set satisfies the criterion, the effect is not identified by adjustment: the honest options are to measure more, change the design, or use a method built on a different assumption. An instrumental variable replaces blocking every backdoor path with an exclusion and independence structure of its own. A second route, mentioned briefly because its conditions are rarely available, is the front-door criterion. It applies when a mediator MM meets three path conditions: MM intercepts every directed path from AA to YY, so the whole effect of AA on YY runs through MM; no backdoor path from AA to MM is open, so the effect of AA on MM is itself unconfounded; and AA blocks every backdoor path from MM to YY, so the effect of MM on YY is identified once AA is conditioned on. Under those conditions — with consistency, and the support requirement that every combination the formula sums over occurs with positive probability, a condition stated for the discrete formula (with continuous variables, the values the formula integrates over must instead lie in the relevant supports, with positive density there) — the effect of AA on YY is identified by the front-door formula even though AA and YY share an unmeasured cause whose backdoor path cannot be blocked, because identification runs forwards through the mediator rather than backwards through the confounder .[1] The conditions are conditions on the whole graph, not on MM alone: a measured common cause of AA and MM, left unadjusted, opens a backdoor path from AA to MM and defeats the simple formula as stated, however well MM itself is measured.

Using a diagram

At the design stage the diagram decides what to measure: any variable on a backdoor path the analyst hopes to block must be measured, or identification fails before the data arrive. At the analysis stage it decides what to condition on, through the backdoor criterion applied to the stated estimand — the total effect, or a direct effect, whose adjustment set is a different and deliberate object, as mediation analysis discusses. A propensity score is not an alternative to the diagram but an implementation of it: whether conditioning on a score recovers an effect depends on whether the set it is built from satisfies the backdoor criterion, a question the score cannot answer.

Counterfactual graphs — SWIGs

A single-world intervention graph, or SWIG, is obtained from a causal DAG by splitting the treatment node into the treatment actually received and the fixed value to which treatment is set, and relabelling every descendant of treatment with its counterfactual version under that intervention, so the graph displays counterfactual variables directly. Hernán and Robins introduce SWIGs as the device unifying the counterfactual and graphical approaches, with the equivalence that a counterfactual outcome is d-separated from treatment given LL on the SWIG if and only if LL is a non-descendant of treatment blocking all backdoor paths in the original DAG .[1]

A fork that fakes an effect, and a collider that fakes an association

Both examples use populations, not samples, so every proportion is exact and no sampling variation obscures the arithmetic.

(a) The fork. A population of 400400 is divided by a binary variable XX into two groups of 200200. The diagram, in words, has nodes XX, AA and YY and edges X→AX \rightarrow A, X→YX \rightarrow Y and A→YA \rightarrow Y: XX is a common cause of exposure AA and outcome YY, and the question is the effect of AA on YY. The only backdoor path is A←X→YA \leftarrow X \rightarrow Y, and {X}\{X\} satisfies the backdoor criterion. The counts are constructed so that AA in fact has no effect. Where X=0X = 0, 5050 of the 200200 people have A=1A = 1 and 150150 have A=0A = 0; the outcome occurs in 1010 of the 5050 with A=1A = 1 and in 3030 of the 150150 with A=0A = 0, a risk of 1/51/5 in both groups. Where X=1X = 1, 150150 have A=1A = 1 and 5050 have A=0A = 0; the outcome occurs in 120120 of the 150150 with A=1A = 1 and in 4040 of the 5050 with A=0A = 0, a risk of 4/54/5 in both groups. Stratum by stratum the risk difference is 1/5−1/5=01/5 - 1/5 = 0 and 4/5−4/5=04/5 - 4/5 = 0. There is nothing to find.

Pool the groups and an effect appears. In total 200200 people have A=1A = 1, of whom 10+120=13010 + 120 = 130 have the outcome, a crude risk of 130/200=13/20130/200 = 13/20; 200200 people have A=0A = 0, of whom 30+40=7030 + 40 = 70 have the outcome, a crude risk of 70/200=7/2070/200 = 7/20. The crude risk difference is 13/20−7/20=3/1013/20 - 7/20 = 3/10. The entire 3/103/10 is the fork at work: the exposed group is drawn disproportionately from X=1X = 1 (150150 of its 200200 members), where the outcome is common for reasons unrelated to AA. Standardising over XX with weights 1/21/2 and 1/21/2 gives a risk under exposure of (1/2)(1/5)+(1/2)(4/5)=1/2(1/2)(1/5) + (1/2)(4/5) = 1/2 and under no exposure of (1/2)(1/5)+(1/2)(4/5)=1/2(1/2)(1/5) + (1/2)(4/5) = 1/2 — an adjusted difference of 00, the truth the backdoor criterion predicted before any numbers were computed.

(b) The collider. A population of 400400 has two binary causes, AA and BB, independent of each other: each combination (A,B)=(0,0)(A, B) = (0, 0), (1,0)(1, 0), (0,1)(0, 1) and (1,1)(1, 1) occurs in exactly 100100 people. Marginally, the risk of B=1B = 1 given A=1A = 1 is 100/200=1/2100/200 = 1/2 — of the 200200 people with A=1A = 1, 100100 have B=1B = 1 — and given A=0A = 0 it is likewise 100/200=1/2100/200 = 1/2, and the marginal odds ratio is 11. The diagram, in words, has nodes AA, BB and CC and edges A→CA \rightarrow C and B→CB \rightarrow C, with no edge between AA and BB: CC is a common effect, a collider on the only path between AA and BB. Let C=1C = 1 whenever at least one of AA and BB equals 11, and C=0C = 0 only when both equal 00 — admission, say, triggered by either of two independent conditions.

Condition on C=1C = 1, as a study recruited through admission would: only 300300 people remain. The table of AA against BB within C=1C = 1 is:

A fork that fakes an effect, and a collider that fakes an association: Total
B=1B = 1 B=0B = 0 Total
A=1A = 1 100100 100100 200200
A=0A = 0 100100 00 100100
Total 200200 100100 300300

The bottom-right cell is empty by construction: nobody with A=0A = 0 and B=0B = 0 has C=1C = 1. Within the selected population the risk of B=1B = 1 is 100/200=1/2100/200 = 1/2 given A=1A = 1 but 100/100=1100/100 = 1 given A=0A = 0, a risk difference of 1/2−1=−1/21/2 - 1 = -1/2, and the odds ratio is (100×0)/(100×100)=0(100 \times 0)/(100 \times 100) = 0. Two variables exactly independent in 400400 people are now negatively associated, but how extreme the association is depends on the scale on which it is measured. On the odds-ratio scale it is as extreme as possible: the odds ratio is 00, the smallest value an odds ratio can take. On the risk-difference scale the association is −1/2-1/2, and on the risk-ratio scale it is (1/2)/1=1/2(1/2)/1 = 1/2, not 00 — so a claim of maximal negative association is a statement about the odds ratio in this example, not a property the table has on every scale. What holds on every scale is the qualitative fact: among the selected, knowing A=0A = 0 settles B=1B = 1 with certainty. The association is a pure artefact of conditioning on their common effect — the arithmetic inside Berkson’s bias, with selection made deterministic so the fractions stay simple.

Your turn

A second fork, with a genuine effect. A population of 400400 is divided by a common cause XX into two groups of 200200, with edges X→AX \rightarrow A, X→YX \rightarrow Y and A→YA \rightarrow Y. Where X=0X = 0, 4040 people have A=1A = 1, of whom 2020 have the outcome, and 160160 have A=0A = 0, of whom 4040 have the outcome. Where X=1X = 1, 160160 people have A=1A = 1, of whom 120120 have the outcome, and 4040 have A=0A = 0, of whom 2020 have the outcome. Compute the risk difference within each stratum of XX, the crude risk difference, and the risk difference standardised over XX with weights 1/21/2 and 1/21/2. Which number is the effect of AA on YY?

Within X=0X = 0 the risks are 20/40=1/220/40 = 1/2 under A=1A = 1 and 40/160=1/440/160 = 1/4 under A=0A = 0, a difference of 1/41/4. Within X=1X = 1 the risks are 120/160=3/4120/160 = 3/4 and 20/40=1/220/40 = 1/2, again 1/41/4. Crudely, 200200 people have A=1A = 1 with 20+120=14020 + 120 = 140 outcomes, a risk of 140/200=7/10140/200 = 7/10, and 200200 have A=0A = 0 with 40+20=6040 + 20 = 60 outcomes, a risk of 60/200=3/1060/200 = 3/10, so the crude difference is 7/10−3/10=2/57/10 - 3/10 = 2/5. Standardising gives (1/2)(1/2)+(1/2)(3/4)=5/8(1/2)(1/2) + (1/2)(3/4) = 5/8 under A=1A = 1 and (1/2)(1/4)+(1/2)(1/2)=3/8(1/2)(1/4) + (1/2)(1/2) = 3/8 under A=0A = 0, a difference of 1/41/4. The standardised difference is the effect: it agrees with both within-stratum differences, as it must when {X}\{X\} satisfies the backdoor criterion. The crude 2/52/5 overstates the effect by 2/5−1/4=3/202/5 - 1/4 = 3/20.

Common misconceptions

“Adjust for everything associated with exposure and outcome.” Association does not reveal position. A variable associated with both may be a confounder that must be conditioned on, a mediator that must not be (for a total effect), or a collider whose conditioning creates the association it is meant to remove. Position, not association, decides.

“If adding a variable changes the estimate, it was a confounder.” Change in estimate is neither necessary nor sufficient: conditioning on a collider changes an estimate by manufacturing bias, and genuine confounding can leave an estimate nearly unchanged when opposing paths cancel.

“The diagram was learned from the data.” The diagrams here encode assumptions supplied by the analyst. Algorithms that search for graphs compatible with observed independencies rest on further assumptions and deliver at best a class of compatible diagrams; Greenland, Pearl and Robins caution that such structure-inference methods are controversial .[4]

A diagram is an assumption, not a discovery

Everything above is conditional on the diagram itself. A DAG does not summarise data; it states, in advance of the data, what the analyst is prepared to assume about the structure that generated them. Greenland, Pearl and Robins are explicit that no approach solves the problem of inferring causation from observational data, because all causal inference rests on assumptions that cannot be derived from observations alone; graphs can only convey those assumptions and indicate what measurements are sufficient for adjustment, given them .[4] Shrier and Platt answer the obvious objection — how can one know the true structure in order to draw the DAG? — by noting that the structure exists whether or not it is drawn, and that the DAG approach simply makes the assumptions explicit .[3]

A diagram should therefore be argued about, varied and reported. Where evidence does not settle a contested arrow, Shrier and Platt recommend drawing each plausible diagram, checking whether the same adjustment set is sufficient under each, and reporting each interpretation if they differ .[3] Tennant and colleagues turn the same obligations into reporting standards: state the estimand, make the diagram available, state the adjustment set the diagram implies — including variables with no available measurement — and report alternative adjustment sets separately .[2] What a diagram cannot show is as important as what it can. It cannot show an effect size, a sign, or a functional form: the assumptions are qualitative and nonparametric, implying nothing about the form of the relations among the variables, which may be discrete or continuous with dose–response relations of any shape .[4] It cannot show interaction between two causes of one node .[3] It cannot show sampling variation or association strength; a negligible arrow and a decisive one are drawn identically. And it cannot show an unmeasured variable the analyst has not thought of. One that is thought of can and should be drawn — Tennant and colleagues recommend including all plausible confounding variables regardless of whether measurements are available, because depicting unobserved variables highlights potential sources of unobserved confounding [2] — but its presence does not make adjustment for it possible; it makes the resulting non-identification visible, which is the next best thing.

Nor is a diagram a statistical technique: it yields no estimate, only guidance on which covariates stratification and regression should condition on .[3] Estimation still requires potential outcomes, standardisation or weighting, and positivity and consistency conditions no diagram can supply.

The assumptions, collected

The assumptions, collected, are: the diagram is right in its arrows and, more demandingly, in its missing arrows; all common causes are on the graph; nothing is conditioned on without checking what that conditioning does to every path it touches; and the temporal order is the real one. None is testable from the data being analysed, although the independencies implied by a diagram’s d-separations are testable implications whose failure is evidence against it.

Connections

  • Confounding variable — the common cause: the fork, and the open backdoor path that conditioning on XX blocks.
  • Causality — the contrast a diagram serves: which conditional association, if any, equals the causal contrast.
  • Average treatment effect — a common target estimand, identified by adjustment when the backdoor criterion holds.
  • Potential outcomes — the counterfactual formulation that SWIGs merge with the graphical one.
  • Propensity score — a dimension-reduction device built from an adjustment set the diagram must first license.
  • Instrumental variable — identification when no measured set satisfies the backdoor criterion.
  • Mediation analysis — the deliberate conditioning on a mediator that the total-effect criterion forbids.
  • Structural equation modelling — the older path-diagram tradition, and the nonparametric structural equations whose qualitative skeleton a causal diagram is.

Check yourself

  1. A diagram contains only the edges A→MA \rightarrow M, M→YM \rightarrow Y and A→YA \rightarrow Y. A colleague proposes estimating the total effect of AA on YY by conditioning on MM, because MM is strongly associated with both AA and YY. What is wrong with the proposal?

MM is a mediator: it lies on the directed path A→M→YA \rightarrow M \rightarrow Y, so it is a descendant of AA. The backdoor criterion forbids descendants of AA in an adjustment set for the total effect, and conditioning on MM blocks the part of the effect transmitted through MM, leaving at most a direct-effect contrast. No path from AA to YY in this diagram begins with an arrow into AA, so the empty set satisfies the backdoor criterion and the crude association is the total effect.

  1. Two variables AA and BB are independent in a population. Both cause CC, and a study is restricted to people with C=1C = 1. In the worked collider example, what were the risks of B=1B = 1 given A=1A = 1 and given A=0A = 0 within C=1C = 1, and what created the difference?

Within C=1C = 1 the risk of B=1B = 1 was 100/200=1/2100/200 = 1/2 given A=1A = 1 and 100/100=1100/100 = 1 given A=0A = 0. Conditioning on the collider CC opened the path A→C←BA \rightarrow C \leftarrow B, which is blocked when CC is not conditioned on. Because C=1C = 1 requires at least one of its causes to be present, the absence of AA forces the presence of BB in that example; the association is created entirely by the restriction, and is an instance of selection, or Berkson-type, bias.

  1. An analyst draws the fork diagram of the worked example, with common cause XX, and adjusts for XX. A reviewer objects that the diagram might be wrong, so the adjustment proves nothing. Is the reviewer right?

The reviewer is right that the conclusion is conditional, and wrong if they mean the analysis is therefore empty. Every causal analysis rests on assumptions the data alone cannot supply; the diagram states them exactly — here, that XX is the only common cause and that no omitted arrow exists. Given the diagram, {X}\{X\} satisfies the backdoor criterion, so the adjusted association is the effect; if the diagram is wrong the conclusion can fail, and the diagram tells the reviewer precisely which missing arrow or omitted common cause to propose. The remedy is to argue about, vary and report the diagram, not to discard it for unstated assumptions of the same kind.

History

Path diagrams were an integral component of path analysis and structural equation modelling; the modern formal theory came from directed acyclic graphs in expert-systems research .[4] Greenland, Pearl and Robins’ 1999 paper carried the theory into epidemiology, showing where traditional criteria for confounding fail when several potential confounders are considered simultaneously, and supplying the graphical criteria — the backdoor test and d-separation — that repair them .[4] Shrier and Platt’s 2008 paper addressed usability, setting out a six-step algorithm, due to Pearl, for testing whether a proposed covariate set would reduce or increase bias .[3] Tennant and colleagues’ 2021 review of 234234 applied articles then documented wide variation in whether diagrams, estimands and implied adjustment sets were reported at all, and converted the theory’s obligations into eight recommendations for transparent reporting .[2]

See also

Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability

Glossary and index

References

  1. ^ a b c d e f g h i j k l a. (Ch. 6, §6.1, p. 75) b. (Ch. 6, Technical Point 6.1, p. 76) c. (Ch. 6, §6.1, p. 75) d. (Ch. 6, §6.1, p. 75) e. (Ch. 6, §6.3, pp. 80–81) f. (Ch. 6, Fine Point 6.1, p. 82) g. (Ch. 6, §6.3, p. 81) h. (Ch. 7, §7.3, p. 95) i. (Ch. 7, §7.3, p. 94) j. (Ch. 7, §7.3, p. 95) k. (Ch. 7, Technical Point 7.4, p. 107) l. (Ch. 7, §7.5, pp. 101–102) Hernán, M. A. & Robins, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC. https://miguelhernan.org/s/hernanrobins_WhatIf_19aug26.pdf
  2. ^ a b c d e a. (p. 622) b. (p. 629) c. (pp. 628–629) d. (p. 629) e. (pp. 620–621, 628–629) Tennant, P. W. G., Murray, E. J., Arnold, K. F., Berrie, L., Fox, M. P., Gadd, S. C., Harrison, W. J., Keeble, C., Ranker, L. R., Textor, J., Tomova, G. D., Gilthorpe, M. S. & Ellison, G. T. H. (2021). Use of directed acyclic graphs (DAGs) to identify confounders in applied health research: review and recommendations. International Journal of Epidemiology, 50(2), 620–632. https://doi.org/10.1093/ije/dyaa213
  3. ^ a b c d e f g h i a. (Background) b. (Step 4) c. (Step 4) d. (Discussion) e. (Limitations) f. (Discussion) g. (Discussion) h. (Discussion) i. (Background) Shrier, I. & Platt, R. W. (2008). Reducing bias through directed acyclic graphs. BMC Medical Research Methodology, 8(1), 70. https://doi.org/10.1186/1471-2288-8-70
  4. ^ a b c d e f g h i j k l m n o p q r s a. (pp. 46–47) b. (p. 39) c. (p. 39) d. (pp. 38–39) e. (p. 45) f. (p. 45) g. (p. 40) h. (p. 41) i. (pp. 42–43) j. (p. 39) k. (pp. 43–44) l. (pp. 40–41, 43–44) m. (p. 44) n. (p. 44) o. (p. 47) p. (p. 47) q. (p. 39) r. (p. 37) s. (pp. 37, 43–45) Greenland, S., Pearl, J. & Robins, J. M. (1999). Causal Diagrams for Epidemiologic Research. Epidemiology, 10(1), 37–48. https://doi.org/10.1097/00001648-199901000-00008
Cite this page
Plain text
StatWiki (2026). "Causal diagram." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/causal-diagram.html
BibTeX
@misc{statwiki_causal_diagram,
  author = {{StatWiki}},
  title = {{Causal diagram}},
  year = {2026},
  url = {https://www.statwiki.io/articles/causal-diagram.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}