FACTOID # 66: Australians have a huge 380,000 sq m of land per person - and yet 91% live in urban areas.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Gibbs sampling

In mathematics and physics, Gibbs sampling is an algorithm to generate a sequence of samples from the joint probability distribution of two or more random variables. The purpose of such a sequence is to approximate the joint distribution (as with a histogram), or to compute an integral (such as an expected value). Gibbs sampling is a special case of the Metropolis-Hastings algorithm, and thus an example of a Markov chain Monte Carlo algorithm. The algorithm is named after the physicist J. W. Gibbs, in reference to an analogy between the sampling algorithm and statistical physics. The algorithm was devised by Geman and Geman (citation below), some eight decades after the passing of Gibbs, and is also called the Gibbs sampler. Wikibooks Wikiversity has more about this subject: School of Mathematics Wikiquote has a collection of quotations related to: Mathematics Look up Mathematics on Wiktionary, the free dictionary Wikimedia Commons has media related to: Mathematics Bogomolny, Alexander: Interactive Mathematics Miscellany and Puzzles. ... Since antiquity, people have tried to understand the behavior of matter: why unsupported objects drop to the ground, why different materials have different properties, and so forth. ... Flowcharts are often used to represent algorithms. ... This article defines some terms which characterize probability distributions of two or more variables. ... A random variable can be thought of as the numeric result of operating a non-deterministic mechanism or performing a non-deterministic experiment to generate a random result. ... In statistics, a histogram is a graphical display of tabulated frequencies. ... In calculus, the integral of a function is a generalization of area, mass, volume, sum, and total. ... In probability theory (and especially gambling), the expected value (or mathematical expectation) of a random variable is the sum of the probability of each possible outcome of the experiment multiplied by its payoff (value). Thus, it represents the average amount one expects to win per bet if bets with identical... The Sampling distribution Q determines the next point to move to in the random walk. ... Markov chain Monte Carlo (MCMC) methods, sometimes called random walk Monte Carlo methods, are a class of algorithms for sampling from probability distributions based on constructing a Markov chain that has the desired distribution as its stationary distribution. ... Josiah Willard Gibbs (February 11, 1839 – April 28, 1903) was an American mathematical physicist who contributed much of the theoretical foundation that led to the development of chemical thermodynamics and was one of the founders of vector analysis. ... Statistical physics, one of the fundamental theories of physics, uses methods of statistics in solving physical problems. ...


Gibbs sampling is applicable when the joint distribution is not known explicitly, but the conditional distribution of each variable is known. The Gibbs sampling algorithm is to generate an instance from the distribution of each variable in turn, conditional on the current values of the other variables. It can be shown (see, for example, Gelman et al.) that the sequence of samples comprises a Markov chain, and the stationary distribution of that Markov chain is just the sought-after joint distribution. Given two jointly distributed random variables X and Y, the conditional probability distribution of Y given X (written Y | X) is the probability distribution of Y when X is known to be a particular value. ... In mathematics, a (discrete-time) Markov chain, named after Andrei Markov, is a discrete-time stochastic process with the Markov property. ...


Gibbs sampling is particularly well-adapted to sampling the posterior distribution of a Bayesian network, since Bayesian networks are typically specified as a collection of conditional distributions. BUGS (link below) is a program for carrying out Gibbs sampling on Bayesian networks. The posterior probability can be calculated by Bayes theorem from the prior probability and the likelihood function. ... A Bayesian network or Bayesian belief network or just belief network is a directed acyclic graph of nodes representing variables and arcs representing dependence relations among the variables. ...

Contents


Implementation

Suppose that a sample X is taken from a distribution depending on a parameter theta in Theta, with prior distribution g(theta_1, ldots , theta_d) where |Theta| = d <infty. It may be that d is very large and numerical integration to find the marginal densities of the θi will be too computationally expensive. Instead a Markov chain is created on the space Θ as follows:

  1. Pick a random suffix 1 leq j leq d
  2. Pick a new value for θj according to g(theta_1, ldots , theta_{j-1} , , cdot , , theta_{j+1} , ldots , theta_d )

Then it can be shown that this is a reversible markov chain with invariant distribution g as follows. Define x sim_j y if xi = yi for all j not = i and let pxy denote the probability of a jump from x in Theta to y in Theta. Then This page meets Wikipedias criteria for speedy deletion. ...

p_{xy} = frac{1}{d}frac{g(y)}{sum_{z in Theta: z sim_j y} g(z) }

so

begin{matrix} g(x) p_{xy} & = & frac{1}{d}frac{ g(x) g(y)}{sum_{z in Theta: z sim_j y} g(z) }  & = & frac{1}{d}frac{ g(y) g(x)}{sum_{z in Theta: z sim_j x} g(z) }  & = & g(y) p_{yx}  end{matrix}

so the detailed balance equations are satisfied showing that the chain is reversible, and that it has invariant distribution g. In mathematics, and in statistical mechanics in physics, a Markov process is said to show detailed balance if the transition rates between each pair of states i and j in the state space obey where P is the Markov transition matrix, ie Pij = P( Xt =i | Xt-1 =j ); and...


In practice, the suffix j is not chosen at random, and the chain cycles through the suffices in order. In general this gives a non-reversible chain, but it will still have the desired invariant distribution (as long as the chain can access all states under the fixed ordering).


See also

A Gibbs state in probability theory and statistical mechanics is an equilibrium probability distribution which remains invariant under future evolution of the system (for example, a stationary or steady-state distribution of a Markov chain, such as that achieved by running a Markov Chain Monte Carlo iteration for a sufficiently...

References

  • George Casella and Edward I. George. "Explaining the Gibbs sampler". The American Statistician, 46:167-174, 1992. (Basic summary and many references.)
  • A.E. Gelfand and A.F.M. Smith. "Sampling-Based Approaches to Calculating Marginal Densities". J. American Statistical Association, 85:398-409, 1990.
  • Andrew Gelman, John B. Carlin, Hal S. Stern, and Donald B. Rubin. Bayesian Data Analysis. London: Chapman and Hall. First edition, 1995. (See Chapter 11.)
  • S. Geman and D. Geman. "Stochastic Relaxation, Gibbs Distributions, and the Bayesian Restoration of Images". IEEE Transactions on Pattern Analysis and Machine Intelligence, 6:721-741, 1984.
  • C.P. Robert and G. Casella. "Monte Carlo Statistical Methods" (second edition). New York: Springer-Verlag, 2004.

External links

  • The BUGS Project - Bayesian inference Using Gibbs Sampling

  Results from FactBites:
 
Gibbs Sampling (821 words)
Gibbs sampling is well suited to coping with incomplete information and is often suggested for such applications.
Geman and Geman [1984] place the idea of Gibbs sampling in a general setting in which the collection of variables is structured in a graphical model and each variable has a neighborhood corresponding to a local region of the graphical structure.
Gibbs sampling can be used to learn Bayesian networks with missing data.
Gibbs sampling - Wikipedia, the free encyclopedia (436 words)
Gibbs sampling is a special case of the Metropolis-Hastings algorithm, and thus an example of a Markov chain Monte Carlo algorithm.
Gibbs sampling is applicable when the joint distribution is not known explicitly, but the conditional distribution of each variable is known.
Gibbs sampling is particularly well-adapted to sampling the posterior distribution of a Bayesian network, since Bayesian networks are typically specified as a collection of conditional distributions.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.