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, p(x)=1Z∏CψC(xC), so it needs the partition function Z.

Steps

  1. Bayesian network: a directed acyclic graph where each node stores p(xi∣parents), and the joint is the product of these tables. Every factor is a probability, so the product already sums to 1.
  2. MRF: an undirected graph. For each clique C (a set of nodes that are all connected to each other) we choose a potential ψC(xC)≥0 that scores how compatible the values are. The joint is p(x)=1Z∏CψC(xC).
  3. Potentials are scores, not probabilities, so the product does not sum to 1. The partition function Z=∑x∏CψC(xC) fixes this. It sums over all joint states, which is exponentially many, so Z is the hard part of learning and inference.
  4. Independence: in an MRF, A⊥B∣S if every path from A to B passes through S. This is simple graph separation. A Bayesian network needs d-separation, which has the extra collider rule.
  5. 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

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 A→C←B, C→D, is A⊥B? Is A⊥B∣D?
Next in Probabilistic models: What is a factor graph, and why is it the natural structure on which to run message passing?