ARTIFICIAL INTELLIGENCE/Student Engineering Notebook
Page 09·notes
PROBABILISTIC REASONING & BAYESIAN NETWORKS—~30 MIN READ

Bayesian Networks, Conditional Independence & D-Separation

“DAG factorization, d-separation over chains/forks/colliders, and Markov blanket boundaries.”

1.Bayesian Networks & Joint Probability Factorization

A full joint probability distribution over n Boolean variables requires 2^n - 1 parameters, which is computationally intractable for large domains. Bayesian Networks (Belief Networks) exploit local conditional independence to represent distributions compactly.

Structure of a Bayesian Network:

1. A Directed Acyclic Graph (DAG) where nodes represent random variables X_i and directed edges represent direct statistical dependencies.

2. A Conditional Probability Table (CPT) for each node, specifying P(X_i \mid Parents(X_i)).

The Chain Rule of Bayesian Networks:

$P(X_1, X_2, ..., X_n) = \prod_{i=1}^n P(X_i \mid Parents(X_i))$

Parameter Efficiency: If a network has n Boolean variables and each node has at most k parents, the total number of parameters is at most n \cdot 2^k, scaling linearly with n instead of exponentially (2^n).

2. The Three Canonical Motifs of D-Separation

Conditional independence behavior across the three fundamental 3-node connection topologies in a Bayesian Network:

Feature / AspectConnection MotifTopology
Causal Chain (Serial)X -> Y -> ZDependent: Information flows along the directed path
Common Cause (Fork)X <- Y -> ZDependent: Common parent creates statistical correlation
Common Effect (Collider / V-Structure)X -> Y <- ZINDEPENDENT: No information flows (P(X, Z) = P(X) P(Z))

3.D-Separation (Directional Separation) Formal Algorithm

Two disjoint sets of nodes A and B are d-separated by conditioning set E (denoted A \perp B \mid E) if every undirected path between any node in A and any node in B is blocked.

A path is blocked by evidence set E if it contains at least one node V such that either:

1. V is a non-collider (chain X \to V \to Z or fork X ≤ftarrow V \to Z) and V \in E (i.e. V is observed), OR

2. V is a collider (X \to V ≤ftarrow Z) and neither V nor any descendant of V is in E (V \notin E and Descendants(V) \cap E = \emptyset).

Theorem: If A and B are d-separated by E, then A and B are conditionally independent given E: P(A, B \mid E) = P(A \mid E) P(B \mid E).

4.The Markov Blanket of a Node

In a Bayesian Network, a node X is conditionally independent of all other nodes in the entire network given its Markov Blanket MB(X).

$MB(X) = Parents(X) \cup Children(X) \cup Spouses(X)$

Where Spouses are the other parents of X's children.

Why Spouses are Mandatory:

If child Y is in the conditioning set, the collider X \to Y ≤ftarrow Z is opened! Therefore, X and Z become dependent via 'explaining away'. To shield X completely from Z, spouse Z must also be conditioned on.

WORKED EXAM ANALYSIS · STEP-BY-STEP DERIVATION2 Marks (High Frequency in GATE DA)

5. GATE DA Worked Numerical: D-Separation & Independence Testing

⚠️ Pitfall Warning:

Remember: conditioning on a collider OPENS the path, while conditioning on a non-collider BLOCKS the path!

Problem (Original Practice Problem · Modeled on GATE DA Pattern):

Consider a Bayesian Network with 5 nodes and directed edges:

A -> B

C -> B

B -> D

B -> E

Determine whether the following conditional independence statements are True or False using d-separation:

(a) Is A independent of C given empty set {}?

(b) Is A independent of C given {B}?

(c) Is D independent of E given {B}?

(d) What is the Markov Blanket of node C?

Step 1: Evaluate (a) A _|_ C | {}:

Path: A -> B <- C. Node B is a COLLIDER on this path.

Neither B nor its descendants (D, E) are observed (evidence set is empty).

Therefore, the collider B is BLOCKED.

The only path between A and C is blocked => A _|_ C | {} is TRUE!

Step 2: Evaluate (b) A _|_ C | {B}:

Path: A -> B <- C. Node B is a COLLIDER.

Node B IS OBSERVED in conditioning set {B}.

Observing a collider OPENS the path!

The path is now active => A _|_ C | {B} is FALSE (A and C become dependent via explaining away).

Step 3: Evaluate (c) D _|_ E | {B}:

Path: D <- B -> E. Node B is a FORK (common cause).

Node B IS OBSERVED in conditioning set {B}.

Observing a fork BLOCKS the path.

No other paths exist => D _|_ E | {B} is TRUE!

Step 4: Find Markov Blanket of Node C: MB(C):

• Parents(C) = {}

• Children(C) = { B }

• Spouses(C) (other parents of C's children B) = { A }

MB(C) = { B, A }.

Conclusion: (a) True, (b) False, (c) True, (d) MB(C) = {A, B}.

SOURCE TRANSPARENCY & CITATIONS

Primary Academic References & Exam Sources

Every concept in Notes From a B.Tech Brain is synthesized from authoritative academic texts, seminal peer-reviewed research, verified exam archives, and renowned university lectures.

Curated University Lecture Series
Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference ·
LECTURE SERIES
Artificial Intelligence: A Modern Approach (4th Edition) ·
LECTURE SERIES