Lably
Skip to content

Belief propagation

Algorithm for statistical inference on graphical models

  • 10 min read
  • 9 chapters

Related on Lably

Through Algorithm, Statistical inference and Artificial intelligence

The algorithm was first proposed by Judea Pearl in 1982, who formulated it as an exact inference algorithm on trees, later extended to polytrees. While the algorithm is not exact on general graphs, it has been shown to be a useful approximate algorithm.

Motivation

Given a finite set of discrete random variables X1,…,Xn with joint probability mass function p, a common task is to compute the marginal distributions of the Xi. The marginal of a single Xi is defined to be

pXi(xi)=∑x′:xi′=xip(x′)

where x′=(x1′,…,xn′) is a vector of possible values for the Xi, and the notation x′:xi′=xi means that the sum is taken over those x′ whose ith coordinate is equal to xi.

Computing marginal distributions using this formula quickly becomes computationally prohibitive as the number of variables grows. For example, given 100 binary variables X1,…,X100, computing a single marginal Xi using p and the above formula would involve summing over 299≈6.34×1029 possible values for x′. If it is known that the probability mass function p factors in a convenient way, belief propagation allows the marginals to be computed much more efficiently.

Sign in to keep reading

8 more chapters are free with a Lably account.

More in Topics in mathematics