Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Drawing what causes what
Draw a dot for each quantity and an arrow from a cause to its effect. Rough terrain slows the rover and makes its wheels slip. Wheel slip ruins the odometry. That picture is a causal graph. It has no loops, because nothing can cause itself.
The picture is powerful. Just by looking at arrows, you can tell which things should be unrelated, and when learning one thing tells you about another.
- Terrain → Speed ← Cmd: blocked at Speed (collider, not conditioned)
- Terrain → Slip ← Speed ← Cmd: blocked at Slip (collider, not conditioned)
Fault-diagnosis systems on spacecraft, Bayesian networks for robot perception, and causal analyses of fleet data all start with a graph of what affects what. The graph tells you which sensors carry independent evidence and which variables you must (or must not) control for.
- 1. An arrow A → B in a causal graph means…
- 2. A DAG cannot contain…
- 3. Graphs let you predict which variables are…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Three junctions
| Junction | Shape | marginally | Given |
|---|---|---|---|
| Chain | dependent | independent | |
| Fork | dependent | independent | |
| Collider | independent | dependent |
The collider is the surprise. Terrain and motor command both affect speed. They’re independent, but if you know the rover is slow, learning that the terrain was smooth makes a low command more likely. This is explaining away.
Markov factorization
A DAG says the joint distribution factorizes as
Each variable depends directly only on its parents. Equivalently, each variable is independent of its non-descendants given its parents (the local Markov property).
- 1. In A → B → C, conditioning on B makes A and C…
- 2. In A → B ← C, conditioning on B makes A and C…
- 3. The DAG factorization uses P(xᵢ | …)
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.d-separation (Pearl, 1988)
A path between and is blocked by a set if it contains either
- a chain or fork with , or
- a collider with neither nor any descendant of in .
and are d-separated by if every path is blocked. Then in every distribution that factorizes over the graph. If they’re not d-separated, they’re dependent in almost every such distribution (faithfulness).
An algorithm
Lauritzen’s moralization criterion:
- Keep only the ancestors of .
- “Marry” parents of common children and drop directions.
- Delete .
and are d-separated by exactly when they’re disconnected in what remains. It runs in linear time.
- 1. Conditioning on a descendant of a collider…
- 2. d-separation implies conditional independence in…
- 3. Faithfulness assumes…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Why colliders open when conditioned
Collider with . By the factorization, . This doesn’t factor into unless does. So in general. ∎ For a chain, , which gives independence. ∎
M-bias: a “pre-treatment” variable you shouldn’t adjust for
, with unobserved. occurs before treatment and is associated with both and , so it looks like a confounder. But the only path through it is closed at the collider . Adjusting for opens it and creates bias (Greenland, Pearl and Robins, 1999).
Markov equivalence
DAGs with the same skeleton and the same v-structures (colliders with non-adjacent) imply the same independences (Verma and Pearl, 1990). , and are indistinguishable from observational data. This limits causal discovery (A5.3-7).
Exercise 3.1: How many DAGs are Markov equivalent to A → B → C?
Three: the two chains and the fork. The collider has a v-structure, so it’s different.
- 1. Markov-equivalent DAGs share…
- 2. In M-bias, adjusting for M…
- 3. A chain A → B → C and fork A ← B → C are…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Testing a rover causal model against data
Write down the graph (Terrain → Speed ← Cmd, Terrain → Slip ← Speed, Slip → OdomErr). The graph predicts which partial correlations vanish. Simulating a linear-Gaussian structural model and checking every pair with conditioning sets of size 0 and 1, d-separation predicts every independence. On real logs, failed predictions falsify the graph. That is a practical model check (Textor et al., 2016, the dagitty tool).
DAGs in AI, robotics and aerospace
- Bayesian networks for diagnosis and perception (Pearl, 1988; Koller and Friedman, 2009). NASA’s spacecraft diagnosis systems use model-based reasoning over component dependency graphs (Williams and Nayak, 1996, Livingstone).
- Factor graphs in SLAM and state estimation: GTSAM-style smoothing encodes exactly a conditional-independence structure (Dellaert and Kaess, 2017).
- Causal representation learning: learning variables and graphs from pixels (Schölkopf et al., 2021).
- Fairness and robustness audits: path-specific effects through a DAG (Kusner et al., 2017).
References
- J. Pearl (1988). Probabilistic Reasoning in Intelligent Systems. Morgan Kaufmann.
- J. Pearl (2009). Causality, 2nd ed. Cambridge University Press.
- S. Lauritzen, A. P. Dawid, B. Larsen, H.-G. Leimer (1990). “Independence properties of directed Markov fields.” Networks, 20(5).
- T. Verma, J. Pearl (1990). “Equivalence and synthesis of causal models.” UAI.
- S. Greenland, J. Pearl, J. Robins (1999). “Causal diagrams for epidemiologic research.” Epidemiology, 10(1).
- D. Koller, N. Friedman (2009). Probabilistic Graphical Models. MIT Press.
- J. Textor et al. (2016). “Robust causal inference using directed acyclic graphs: the R package ‘dagitty’.” International Journal of Epidemiology, 45(6).
- B. Williams, P. Nayak (1996). “A model-based approach to reactive self-configuring systems.” AAAI.
- F. Dellaert, M. Kaess (2017). “Factor graphs for robot perception.” Foundations and Trends in Robotics, 6(1–2).
- B. Schölkopf et al. (2021). “Toward causal representation learning.” Proceedings of the IEEE, 109(5).