Skip to content
PostBayesian Network / Lecture

Bayesian-02-Bayesian-Network-Representation

2025-10-23
Back to Blog

Bayesian Network Representation

D-separation

A method to determine if two nodes are conditionally independent given a set of other nodes in a directed graph.

The goal is to understand when can we guarantee that an independence XYZ holds in a distribution associated with a BN structure G.

Types of connections between X and Y

Direct connection: if X and Y are directly connected XY, they can always influence each other regardless of evidence Z. Information can transmit over the edge. This means that changes in X can directly cause changes in Y, and vice versa, without the need for any intermediate variables.

Indirect connection between X and Y: a simple three-node network, there are four cases:

SCM

Indirect Causal Effect

  • A. If G is observed, I and L are independent (ILG).
  • B. If G is not observed, I influences L through G.
  • Causal trail XZY is active if (if and only if) Z is NOT observed;

Indirect Evidential Effect

  • A. Observing L affects beliefs about I.
  • B. Observing G blocks the effect of L on I.
  • Evidential trail XZY is active iff Z is NOT observed;

Common Cause

  • A. G and S are correlated if I is not observed.
  • B. Observing I blocks the path between G and S.
  • Common cause XZY is active iff Z is NOT observed;

Common Effect

  • A. I and D are independent if G is not observed.
  • B. Observing G (hard evidence) makes I and D correlated.
  • C. Observing a descendant of G (like L) also makes I and D correlated.
  • D. Explaining away occurs: observing G or its descendant affects beliefs in both I and D.
  • Common effect XZY is active iff either Z or Z’s descendant is observed.

General Cases:

A longer trail X1Xn for influence flow from X1 to Xn:

a. X1 can influence Xn if every two-edge trail Xi1XnXn+1 along the trail allows the influence to flow. b. Definition: Let G be a BN structure and X1Xn a trail in G. Let Z be a subset of observed variables, the trail is active given Z (Z is the set of observations) if: i. Whenever we have a v-structure Xi1XiXi+1 when Xi itself or one of its descendants is in Z. ii. No other node along the trail is in Z. c. Examples: The trail DGIS is active or not given Z? i. If Z=, the trail is not active because G is not observed.
ii. If Z={G}, the trail is active.
iii. If Z={L}, the trail is active because L is the descendant of G.
iv. If Z={L,I}, it is not active because I blocks the diverging trail GIS.

A simpler definition: Two nodes X and Y are d-separated by a set of Z if all trails between X and Y are blocked by Z.

Intuition: If nodes X and Y are d-separated by a set of Z, then:

XYZ

Definition: Let X,Y,Z be three sets of nodes in a Bayesian network G, we say that X and Y are d-separated given Z denoted as d-sepG(X;YZ) if there is no active trail between any node XX and YY given Z.

We use I(G) to denote the set of independencies that correspond to d-separation:

I(G)={(XYZ):d-sepG(X;YZ)}

it is called the set of global Markov independencies.

D-separation is a condition/algorithm for answering the queries, a criterion that helps to decide given a graph, whether one set of variable is independent of another set of variables, given a third set.