D-separation is a criterion in graph theory for determining which conditional independence relations are implied by a directed acyclic graph (DAG). It is fundamental to Bayesian networks and other probabilistic graphical models, where vertices represent random variables. The criterion uses the arrangement and orientation of edges, rather than numerical probabilities, to identify independences that hold for every distribution factorizing according to the graph. The “d” denotes directional: arrow orientations affect whether a path is blocked. (bayes.cs.ucla.edu)
Graphical definition
Let be a DAG, and let be pairwise disjoint sets of vertices. A path between vertices in and is considered without requiring its traversal to follow arrow directions. However, the directions determine the status of each internal vertex. An internal vertex is a collider on the path when both adjacent edges point toward it:
Otherwise, it is a non-collider. These classifications are relative to a particular path, not permanent properties of a vertex. (cs.cmu.edu)
A path is active, or open, given precisely when:
- Every internal non-collider lies outside .
- Every internal collider either belongs to or has a descendant in .
A descendant is reachable by following one or more directed edges. If no active path connects any vertex in to any vertex in , then and are d-separated by , written
Otherwise, they are d-connected. Establishing separation requires blocking every connecting path; finding one blocked path is insufficient. (bayes.cs.ucla.edu)
Chains, forks, and colliders
Three elementary configurations explain the criterion:
- Chain: , or its reversal. The path is open without conditioning on , but conditioning on blocks it.
- Fork: . The common-parent path is likewise blocked by conditioning on .
- Collider: . This path is blocked unless , or one of its descendants, is conditioned on.
For an isolated chain or fork, or follows. For an isolated collider, follows before conditioning, whereas conditioning on the common effect can introduce dependence. (bayes.cs.ucla.edu)
Consequently, adding conditioning variables does not necessarily preserve d-separation. A larger conditioning set may block a non-collider while simultaneously opening a collider elsewhere. This distinguishes d-separation from ordinary vertex separation in an undirected graph and explains why indiscriminately conditioning on additional variables can change independence relations. (bayes.cs.ucla.edu)
Probabilistic interpretation
Suppose a joint probability distribution factorizes over :
where denotes the parents of vertex . The factors describe conditional probabilities. D-separation then entails
This is the global Markov property of the DAG. With an empty conditioning set, it yields ordinary statistical independence. (ftp.cs.ucla.edu)
The criterion is sound because every independence it identifies holds in all distributions factorizing over the graph. It is also complete for graph-implied independences: if two sets are d-connected, there exists a compatible distribution in which they are conditionally dependent. Completeness does not assert dependence in every compatible distribution. Particular parameter choices may generate additional independences not encoded by the graph. (ftp.cs.ucla.edu)
Faithfulness and causal interpretation
A distribution is faithful to a DAG when its conditional independences coincide exactly with the graph’s d-separation relations. Under faithfulness, d-connection implies dependence in that distribution. Without it, independence can arise through parameter cancellations or other special choices. Faithfulness is therefore an additional assumption, not part of the graphical definition. (cs.cmu.edu)
D-separation alone does not establish causation. A Bayesian network can represent probabilistic relationships without its arrows being causal. In causal inference, causal interpretations require additional assumptions about the mechanisms represented by the graph. Independence-based discovery can also leave several candidate graphs indistinguishable: graphs in the same Markov equivalence class encode the same independence relations. (cs.cmu.edu)
Computational methods
Explicitly enumerating connecting paths is unnecessary. The Bayes-ball algorithm explores the graph using traversal rules determined by whether a vertex is observed and whether it is approached from a parent or child. By recording traversal states, it avoids repeated work. Its time complexity is linear in the graph’s size, , and it can identify variables irrelevant to an inference query. (web.stanford.edu)
An alternative uses a moralized ancestral graph. First retain and all their ancestors. Next connect every pair of parents sharing a child, and replace directed edges with undirected edges. D-separation holds exactly when removing from this graph leaves no connection between and . Restricting to the ancestral subgraph before moralization is essential. (cs.cmu.edu)
Role in causal adjustment
Within a structural causal model, blocking rules help distinguish causal paths from paths producing confounding. The back-door criterion requires an adjustment set containing no descendants of the exposure and blocking every path that enters the exposure through an incoming arrow. Collider activation matters here: conditioning can create an unwanted association rather than remove one. (cs.cmu.edu)
D-separation also supplies graphical implications used by constraint-based causal-discovery procedures. Such procedures compare conditional independences in data with those predicted by candidate graphs, typically assuming the causal Markov condition and faithfulness. Their output need not identify a unique causal DAG. (cs.cmu.edu)
References
- d-Separation Without Tearsbayes.cs.ucla.edu
- d-Separation: From Theorems to Algorithmsftp.cs.ucla.edu
- Bayes-Ball: The Rational Pastimeweb.stanford.edu
- 10-708 PGM: Lecture 2—Bayesian Networkscs.cmu.edu
- 10-708 PGM: Lecture 8—Causal Discovery and Inferencecs.cmu.edu
- The Intuition Behind the Back-Door Criterionbayes.cs.ucla.edu