Chapter 4

Representing conditional independence

A graphical model encodes a joint distribution using local factors. Graph structure gives independence statements that hold for every compatible parameter choice; particular numerical tables can produce additional independences.

4.1 Conditional independence

Independence is symmetric. Conditional independence does not imply marginal independence, and marginal independence need not survive conditioning. Pairwise independence alone need not imply mutual independence. A zero-probability conditioning event does not define an ordinary conditional distribution.

4.2 Bayesian-network factorisation

Past papers · DA 2024–2026 (3 papers): 1 question, 2 marks

A Bayesian network (BN) is a directed acyclic graph (DAG) plus one conditional probability table (CPT) per node. Roots have prior distributions. Each CPT row sums to one over the child variable for a fixed assignment of its parents. An arrow permits statistical dependence; it is not automatically a causal claim.

For A→BA\to B, A→CA\to C, and B,C→DB,C\to D, the factors are P(A)P(B∣A)P(C∣A)P(D∣B,C)P(A)P(B\mid A)P(C\mid A)P(D\mid B,C). A requested complete assignment uses four entries; a marginal of DD sums over the eight assignments of binary A,B,CA,B,C.

4.3 Counting probability parameters

4.4 D-separation

Past papers · DA 2024–2026 (3 papers): 1 question, 1 mark

To test X⊥Y∣ZX\perp Y\mid Z from a DAG, inspect all paths between XX and YY, ignoring arrow direction while finding paths. Then use arrow direction to identify each internal node as a collider or a non-collider on that path.

Internal pattern on a pathPath passes whenPath is blocked when
Chain A→B→CA\to B\to C or its reversalBB is unobservedBB is observed
Fork A←B→CA\leftarrow B\to CBB is unobservedBB is observed
Collider A→B←CA\to B\leftarrow CBB or a descendant of BB is observedNeither BB nor any descendant is observed

A path is active if every non-collider is outside ZZ and every collider has itself or a descendant in ZZ. The disjoint endpoint sets are d-separated given ZZ if no path between them is active; observed endpoints are excluded from this test. D-separation guarantees conditional independence in every distribution factorising over the DAG. An active path means dependence is possible, not compulsory for every CPT choice.

Chain, fork and collider: blue marks the middle variable whose observation changes the path rule.Chain, fork and collider: blue marks the middle variable whose observation changes the path rule.

For A→C←BA\to C\leftarrow B and C→DC\to D, the path from AA to BB is blocked without observations. Observing CC or DD opens it. Adding more evidence therefore does not always create more independence. In a larger graph, check every alternate path before declaring independence.

4.5 Markov blanket

Conditioning only on parents screens off non-descendants, but not generally descendants. Including the children and their other parents gives the local information needed for a Gibbs update. For edges A→C←BA\to C\leftarrow B, C→DC\to D, the blanket of AA is {C,B}\{C,B\} and that of CC is {A,B,D}\{A,B,D\}.

4.6 Undirected representation

An undirected graphical model uses nonnegative compatibility factors. Graph separation replaces d-separation: if removing the observed set disconnects two sets of nodes, those sets are conditionally independent. There is no collider activation rule. This is an alternative representation of independence, not a rule for removing arrows from a BN without adjustment.

To obtain the undirected interaction graph of a BN's CPT scopes, connect every pair of parents of the same child and remove arrow directions: this is moralisation. It is useful for elimination-width calculations. It can hide independences that the original DAG expresses.

Last-minute recall

  • A BN is a DAG and a collection of normalised CPT rows.
  • Multiply one CPT entry per node for a complete assignment.
  • Sum over unobserved variables for a marginal.
  • Free probabilities per CPT row are one fewer than stored entries.
  • Chains and forks close when their middle node is observed.
  • Colliders open when they or their descendants are observed.
  • Every path must be blocked to infer d-separation.
  • An active path permits dependence; it does not prove it for every parameter choice.
  • The BN blanket includes co-parents of children.
  • Undirected potentials require a global normaliser.

Revise offline: the whole Artificial Intelligence handbook as one PDF

37 pages · 1.8 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections