Skip to content
GabineteTools for thinking

No. 2524Customers and sales

Causal graphs (directed acyclic graphs, DAGs) for causal inference

Judea Pearl (building on Sew… · 1995

Waterfall of wooden cups joined by brass channels: a gate stops the red beads, a free low blue count and a lower cup is still sealed.

The table / Model card · No. 2524 · Customers and sales

Causal graphs (directed acyclic graphs, DAGs) for causal inference

A diagram of cause-and-effect arrows that tells you which variables to control for when you estimate an effect from non-experimental data.

The essentials

What it is

What it solves

How do you estimate whether X really causes Y when you cannot run an experiment, and how do you avoid controlling for the wrong variables?

When to use it

Use it when you must estimate the effect of a decision, price, feature or programme from observational data. It also helps when a team argues about which variables belong in a regression, when results flip after adding controls, or when you suspect selection effects.

Where it comes from

Causal graphs were first used by the geneticist Sewall Wright as 'path diagrams' and later adopted by social scientists and economists, initially for linear models. Judea Pearl extended them to non-parametric analysis; his paper 'Causal diagrams for empirical research' appeared in Biometrika in 1995 and his book Causality in 2000. Greenland, Pearl and Robins brought the method to epidemiology in 1999. The year 1995 marks the modern formulation, not the first use of path diagrams.

Judea Pearl · 1995

How it works

The graph states assumptions about the data-generating process: an arrow from A to B means A is a direct cause of B, and a missing arrow means no direct effect. Association between two variables flows along paths. A path through a common cause (a fork) creates a spurious link and should be blocked by adjusting for that cause. A path through a mediator (a chain) carries part of the effect and should usually be left open. A path through a common effect (a collider) is blocked by default and opens if you adjust for it, which creates false links. The back-door criterion turns these rules into a test: find a set of variables that blocks every non-causal path from X to Y without blocking causal ones. The graph does not prove anything; it makes your assumptions explicit so others can challenge them.

You need

A clearly defined cause and outcome; a list of candidate variables; domain knowledge about which variables influence which; observational data.

You get

A causal diagram, an explicit adjustment set (what to control for and what not to), a list of untestable assumptions, and an effect estimate under those assumptions.

Case

Illustrative case

Harbor Insurance wants to know whether its new 'smart renewal' email (E) reduces churn (C). Customers who opened the email churned 4% against 11% for the rest. A naive analyst concludes the email cuts churn by 7 points. The team draws a DAG: customer engagement (G) causes both opening emails and staying; the email causes opens; opens cause retention. Engagement is a confounder, so they adjust for a pre-email engagement score. The adjusted gap falls to 1.5 points. They also drop 'called support after the email' from the model: it is a collider of email and an unrelated billing problem, and controlling for it had inflated the effect. The company keeps the email, cuts the budget for a planned upgrade and runs an A/B test to confirm the 1.5 points.

A fictional company used to explain the model.

Caution

When to avoid it

  • Skip it when a randomised experiment or A/B test is feasible and cheap, since randomisation removes confounding by design.
  • Do not use it for pure prediction, where causal structure does not matter, or when nobody can defend the arrows because the domain is unknown.

Common mistakes

  • Controlling for everything available; adjusting for colliders or mediators; drawing the graph after seeing the data and fitting it to the results; treating the diagram as proof instead of a set of assumptions; leaving out an unmeasured common cause and still claiming a causal effect.

Known weaknesses

  • The result is only as good as the arrows, which come from judgement, not from the data.
  • Unmeasured confounders cannot be fixed by the graph alone.
  • Large graphs become hard to draw and defend.
  • Needs training in the rules; misapplied graphs give false confidence.

How to apply it in 7 steps

How to apply it

Causal graphs (directed acyclic graphs, DAGs) for causal inference

7 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 7 steps
  1. Define the question

    State the cause (treatment) and the outcome precisely, with the population and time window.

  2. List relevant variables

    Include measured and unmeasured variables that plausibly affect the treatment, the outcome or both, using domain knowledge and interviews.

  3. Draw the arrows

    Add an arrow only where you believe a direct cause exists. Check that there are no cycles; split variables over time if needed.

  4. Classify the paths

    Mark forks, chains and colliders between treatment and outcome, and note which paths are causal and which are spurious.

  5. Choose the adjustment set

    Apply the back-door criterion: block every spurious path, keep causal paths open, and never adjust for colliders or their descendants.

  6. Estimate and stress-test

    Run the regression or matching on that set, then test how the result changes if an unmeasured variable or a different arrow is added.

  7. Share and revise

    Show the graph to subject experts, record the assumptions, and replace it with an experiment where one becomes possible.

Which decisions it helps with

Decision profile

A map or diagram to understand what is happening on any subject.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Map or diagram
Decision stage
Understand what’s happening
What it applies to
Any subjectGeneral technique: independent of the subject
Discipline
Systems thinking
What it produces
A map of relationships, flows or causes

IIIResources required

  • TimeOne session (half a day or a full day)
  • PeopleA small group (2 to 8)
  • DataQuantitative analysis
  • ExpertiseWorks best with a facilitator
  • Time horizonA few months
  • ScopeOne team
  • FrequencyOccasionally
The team’s own knowledge is enough

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsmixedA flexible framework
  • Protect what we haveTake a risk
  • Improve what we havemixedFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstAct now

IVUseful when

  • We may be fooling ourselves

Applicable traits

  • What it helps you understandWhy a problem occurred
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Customers and sales

Listen to customers, map their journey and guide sales conversations using SPIN, journey maps and sales discovery.

Membership: 27 % · also “Product discovery and validation” (11 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Pearl, J. (1995). Causal diagrams for empirical research. Biometrika 82(4), 669-688.Crossref record lists Pearl as author, 1995, Biometrika. The doi.org page itself returned 403 (Cloudflare), so verification rests on the Crossref API; page range not checked.View source: Causal diagrams for empirical research (opens in a new tab) ↗
  2. Pearl, J. (2009). Causality: Models, Reasoning, and Inference. Cambridge University Press.doi.org returned 200 with the title 'Causality' and Crossref lists Pearl as author. This is the second edition (2009); the first edition appeared in 2000.View source: Causality: Models, Reasoning, and Inference (opens in a new tab) ↗

Key development

  1. Greenland, S., Pearl, J. and Robins, J. M. (1999). Causal Diagrams for Epidemiologic Research. Epidemiology 10(1), 37-48.doi.org returned 200 and Crossref confirms title, three authors, Epidemiology, January 1999, pages 37-48. Introduces the method to applied researchers.View source: Causal Diagrams for Epidemiologic Research (opens in a new tab) ↗

Critique

  1. Krieger, N. and Smith, G. D. (2016). The tale wagged by the DAG: broadening the scope of causal inference and explanation for epidemiology. International Journal of Epidemiology.Objects that DAG/potential-outcome methods should not alone 'wag the causal tale': they can narrow who and what counts as a cause and lead to erroneous inference when the biological and social assumptions behind the graph are poorly conceived; proposes inference to the best explanation.View source: The tale wagged by the DAG: broadening the scope of causal inference and explanation for epidemiology (opens in a new tab) ↗
  2. Imbens, G. W. (2020). Potential Outcome and Directed Acyclic Graph Approaches to Causality: Relevance for Empirical Practice in Economics. Journal of Economic Literature, 58(4), 1129-1179.Assesses the relative merits of DAGs versus potential outcomes and argues why most empirical work in economics remains closer to the potential-outcome framework than to graphical models.View source: Potential Outcome and Directed Acyclic Graph Approaches to Causality: Relevance for Empirical Practice in Economics (opens in a new tab) ↗

Practical guide

  1. Pearl, J. (2009). Causal inference in statistics: An overview. Statistics Surveys.doi.org returned 200 and Crossref lists Pearl as author, Statistics Surveys, 2009. A shorter tour of the graph-based approach.View source: Causal inference in statistics: An overview (opens in a new tab) ↗

Wikipedia article (opens in a new tab) ↗