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 , , and , the factors are . A requested complete assignment uses four entries; a marginal of sums over the eight assignments of binary .
4.3 Counting probability parameters
4.4 D-separation
Past papers · DA 2024–2026 (3 papers): 1 question, 1 mark
To test from a DAG, inspect all paths between and , 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 path | Path passes when | Path is blocked when |
|---|---|---|
| Chain or its reversal | is unobserved | is observed |
| Fork | is unobserved | is observed |
| Collider | or a descendant of is observed | Neither nor any descendant is observed |
A path is active if every non-collider is outside and every collider has itself or a descendant in . The disjoint endpoint sets are d-separated given 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.
For and , the path from to is blocked without observations. Observing or 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 , , the blanket of is and that of is .
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.