How does a Markov random field (an undirected graphical model) differ from a Bayesian network, and what is the partition function?
Probabilistic models, Markov random fields
Level L2 Elementary. Length Short. Nature Th Theoretical.
What's being asked
Whether you can contrast directed and undirected models and explain why undirected models need a normalising constant.
Key idea
A Bayesian network multiplies conditional probabilities, so it is normalised automatically. An MRF multiplies non-negative clique potentials, , so it needs the partition function .
Steps
- Bayesian network: a directed acyclic graph where each node stores , and the joint is the product of these tables. Every factor is a probability, so the product already sums to 1.
- MRF: an undirected graph. For each clique (a set of nodes that are all connected to each other) we choose a potential that scores how compatible the values are. The joint is .
- Potentials are scores, not probabilities, so the product does not sum to 1. The partition function fixes this. It sums over all joint states, which is exponentially many, so is the hard part of learning and inference.
- Independence: in an MRF, if every path from to passes through . This is simple graph separation. A Bayesian network needs d-separation, which has the extra collider rule.
- Use a Bayesian network when there is a natural order or causal direction. Use an MRF for symmetric relations, such as neighbouring pixels in an image or the Ising model.
Common mistakes
- Saying potentials are probabilities or that each is a marginal of the joint. It is not.
- Forgetting that depends on the parameters, which makes maximum-likelihood learning of MRFs harder than for Bayesian networks.
- Thinking an MRF can represent every independence a Bayesian network can. Neither class contains the other.
How long your answer should be
One short paragraph (under 2 minutes), with the MRF factorisation formula.
Read this
Previous in Probabilistic models: Explain the three basic connections in a Bayesian network (chain, fork, collider) and when each one blocks a path. In the graph , , is ? Is ?
Next in Probabilistic models: What is a factor graph, and why is it the natural structure on which to run message passing?