Gibbs sampling

From Cohen Courses
Revision as of 13:53, 30 September 2011 by Dkulkarn (talk | contribs)
Jump to navigationJump to search

Under modification by User:dkulkarn

Gibbs sampling is used to sample from the stable joint distribution of two or more random variables when accurate computation of the integral or a marginal is intractable. Usually some variables in this set of random variables are the actual observables and hence there values need not be sampled in the Gibbs sampling iterations. This form of approximate inference method is generally used when doing posterior probability inference in probabilistic graphical models where computation of marginals are intractable.

Motivation

Gibbs sampling was introduced in the context of image processing by Geman and Geman[1]. The Gibbs sampler is a technique for generating random variables from a (marginal) distribution indirectly, without having to calculate the density[2]. Thus, if we are given with conditional densities , we can use Gibbs sampling to calculate the marginal distributions or any other function of .

Algorithm

1. Take some initial values

2. Repeat for :

 For 

3. Continue step 2 until joint distribution of doesn't change.


A Simple proof of Convergence

Burnout

Relation to EM

Used In

References

1. Geman and Geman

2. http://biostat.jhsph.edu/~mmccall/articles/casella_1992.pdf