Graphical models

Draw which variables directly influence which, and a joint distribution over dozens of variables collapses into a product of small tables. Bayes nets and Markov random fields, reading independence off a graph, explaining away, factor graphs, and exact inference by variable elimination and belief propagation — and why loops make it hard.

60 min

After this lesson you can

  • Write the joint distribution of a Bayes net as a product of conditional probability tables and count its parameters
  • Decide conditional independence for chains, forks and colliders, and apply d-separation to small graphs
  • Explain explaining away with numbers
  • Write an undirected model as a normalised product of clique potentials, and convert either kind to a factor graph
  • Compute a marginal by variable elimination and by sum-product belief propagation, and say why exact inference is hard on loopy graphs

In this lesson

  1. Why structure is the whole game
  2. Bayesian networks: a joint distribution as a product of small tables
  3. Reading independence off the graph
  4. Undirected models: Markov random fields
  5. Factor graphs: one language for both
  6. Exact inference, part 1: variable elimination
  7. Exact inference, part 2: belief propagation on trees
  8. Why loops are hard
  9. In code

This lesson is part of Descent Pro

Descent Pro unlocks every lesson on the route, from base camp to the summit. Every plan starts with a free trial.

Descent Pro

Start your free trial to keep reading

This lesson, and every other lesson on the route, is part of Descent Pro. Every plan starts with a free trial, and students with a .edu email get longer. Cancel before the trial ends and you pay nothing.