Slice sampling

Slice sampling

In mathematics and physics, Slice sampling is a type of Markov chain Monte Carlo sampling algorithm based on the observation that to sample a random variable one can sample uniformly from the region under the graph of its density function.

Implementation

To sample a random variable "X" with density f(x) we introduce an auxiliary variable Y and iterate as follows: Given a sample "x" we choose "y" uniformly at random from the interval [0, f(x)] ; given "y" we choose "x" uniformly at random from the set f^{-1} [y, f(x)] . The sample of "x" is obtained by ignoring the "y" values.

Example

To sample from the normal distribution N(0,1) we first choose an initial "x" -- say 0. After each sample of "x" we choose "y" uniformly at random from [0, e^{-x^2/2}/sqrt{2pi}] ; after each "y" sample we choose "x" uniformly at random from [-alpha, alpha] where alpha = sqrt{-2ln(ysqrt{2pi})}.

An implementation in the Macsyma language is:

slice(x):=block( [y,alpha] , y:random( exp(-x^2/2.0)/sqrt(2.0*dfloat(%pi))), alpha:sqrt(-2.0*ln(y*sqrt(2.0*dfloat(%pi)))), x:signum(random())*random(alpha));

See also

* Sampling (statistics)
* Markov chain Monte Carlo

References

* Radford M. Neal, "Slice Sampling". "The Annals of Statistics", 31(3):705-767, 2003.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Slice — may refer to:Food*A portion of bread, cake, or meat that is cut flat and thin, cf. sliced bread *Slice (soft drink), a line of fruit flavored drinks *Vanilla slice, a dessert *Mr. Slice, the mascot of Papa John s pizza restaurantports*Backspin,… …   Wikipedia

  • Slice of SciFi — Infobox Podcast title = Slice of SciFi caption = host = Michael R. Mennenga Brian Brown Summer Brooks Sam Roberts Tim Adamec CA Sizemore url = [http://www.sliceofscifi.com Slice of SciFi] status = Weekly began = ended = genre = SciFi Newscast… …   Wikipedia

  • Gibbs sampling — In statistics and in statistical physics, Gibbs sampling or a Gibbs sampler 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… …   Wikipedia

  • Pseudo-random number sampling — or non uniform pseudo random variate generation is the numerical practice of generating pseudo random numbers that are distributed according to a given probability distribution. Methods of sampling a non uniform distribution are typically based… …   Wikipedia

  • Markov chain Monte Carlo — MCMC redirects here. For the organization, see Malaysian Communications and Multimedia Commission. Markov chain Monte Carlo (MCMC) methods (which include random walk Monte Carlo methods) are a class of algorithms for sampling from probability… …   Wikipedia

  • List of mathematics articles (S) — NOTOC S S duality S matrix S plane S transform S unit S.O.S. Mathematics SA subgroup Saccheri quadrilateral Sacks spiral Sacred geometry Saddle node bifurcation Saddle point Saddle surface Sadleirian Professor of Pure Mathematics Safe prime Safe… …   Wikipedia

  • List of statistics topics — Please add any Wikipedia articles related to statistics that are not already on this list.The Related changes link in the margin of this page (below search) leads to a list of the most recent changes to the articles listed below. To see the most… …   Wikipedia

  • Выборка по уровням — Связать? На эту статью не ссылаются другие статьи Википедии …   Википедия

  • smack — I n 1. taste, flavor, savor; sniff, scent, tang, tincture, pungency, aroma; relish, sapor, sapidity; essence, character, zest, piquancy, poignancy. 2. trace, hint, idea, tinge, suspicion, soupcon; touch, speck, sprinkling, dusting, dash. 3.… …   A Note on the Style of the synonym finder

  • analysis — /euh nal euh sis/, n., pl. analyses / seez /. 1. the separating of any material or abstract entity into its constituent elements (opposed to synthesis). 2. this process as a method of studying the nature of something or of determining its… …   Universalium

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”