Summary
A probabilistic graphical model pairs a graph with factors defining a joint probability distribution. Nodes represent variables, not necessarily causal mechanisms. The graph constrains independence; probability tables or densities supply the numerical parameters.
Ask whether observing a middle node blocks or opens information between two endpoints. Our teaching fixture uses independent fair binary variables and their common effect .
Two main families
Bayesian networks (directed acyclic graphs)
Each node has a conditional distribution given its parents. The joint factorizes as
The local Markov property makes each node independent of its non-descendants given its parents. For our collider, . The last factor is one when , zero otherwise.
Markov random fields (undirected graphs)
The joint factorizes over cliques :
Potentials are nonnegative; require finite, positive . For continuous variables, replace the sum defining with an integral. An undirected separator blocks every path between the sets whose independence it establishes. Strict positivity is required for the general equivalence between undirected Markov properties and clique factorization.
d-separation (Bayesian networks)
A path is blocked by an observation set if either:
- A non-collider on that path is observed.
- A collider and all its descendants are unobserved.
At a collider, both path arrows point toward the middle node. All paths must be blocked for d-separation to imply conditional independence. Chains and forks both close when is observed.
An observed collider or its descendant instead opens that path. An open path permits association; it does not guarantee association for every choice of parameters.
Learning objective
Conditioning can close a chain while opening a collider
Derivation
| A | B | C | Joint mass | Mass given C=1 |
|---|---|---|---|---|
| 0 | 0 | 0 | 1/4 | 0 |
| 0 | 1 | 1 | 1/4 | 1/3 |
| 1 | 0 | 1 | 1/4 | 1/3 |
| 1 | 1 | 1 | 1/4 | 1/3 |
Does observing the middle node always block the path?
Normalize the collider
The four input pairs each have probability . Observing excludes only , so . The three remaining pairs each receive conditional mass :
Further observing leaves two equally likely pairs, giving . Observing instead forces . This is explaining away within the specified model, not an observational proof of causation.
Observe a non-collider
New task: use , with fair and binary copying probabilities , then .
Picture and change: replace the common effect with a middle transition. Before observing ,
Check: given , the probability of is regardless of . Conditioning blocks this path rather than opening it.
Use when: the observed middle node is a non-collider on the relevant path.
Observe a collider’s descendant
New task: add with deterministic and observe .
Picture and change: evidence arrives downstream instead of at directly.
Check: the same three OR cases survive, so .
Use when: selection or measurement depends on a common effect’s descendant.
An active path need not produce association
Keep the collider graph, but set for every input pair. Observing then leaves independent. This parameterization is Markov to the graph but not faithful: it has extra independence beyond graphical separation.
Inference tasks
Marginalization sums out variables; conditioning renormalizes evidence-compatible cases; joint MAP finds the most probable assignment. Separate marginal modes need not form the joint MAP assignment.
Variable elimination exploits factors; exact cost depends on variable domains and induced treewidth. Sum-product is exact on trees; junction trees cluster variables for exact general-graph inference. Large cliques can make that impractical. MCMC, variational inference, and expectation propagation instead require approximation or convergence checks.
Special cases that became their own fields
| Graphical model | Modern name |
|---|---|
| Latent variable Bayesian network | VAE with approximate amortized inference |
| Linear-Gaussian state space | Kalman filter |
| Discrete latent chain | HMM |
| Conditional MRF | CRF |
| Boltzmann machine | RBM, deep belief net (historical) |
| Topic model (Bayesian doc-topic) | LDA |
| Naive Bayes | Naive Bayes (still used) |
Relevance in 2026
Neural conditional distributions can parameterize a graphical model; they do not generally replace inference. Probabilistic programming, state-space models, and structured prediction still require explicit distributions and conditioning operations.
Common pitfalls
Does a missing - edge always imply marginal independence?
Answer
No: a chain can connect them through another variable. Use the graph-specific separation rule and actual conditioning set. Causal interpretations additionally require a causal model and identifying assumptions.
Related
- Markov chains. Simplest sequential PGM.
- Bayes’ rule and the posterior. Foundation for PGM inference.