Search: in
Slice sampling
Slice sampling Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
Slice_sampling Email this to a friend      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.

Contents


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{2\pi}]; after each y sample we choose x uniformly at random from [-\alpha, \alpha] where \alpha = \sqrt{-2\ln(y\sqrt{2\pi})}.

An implementation in the Macsyma language is:

See also

References

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

ru:??????? ?? ???????





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Related Links in Slice sampling

Search for Slice sampling in Tutorials
Search for Slice sampling in Encyclopedia
Search for Slice sampling in Dictionary
Search for Slice sampling in Open Directory
Search for Slice sampling in Store
Search for Slice sampling in PriceGig



Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



Slice sampling
Slice_sampling top Slice_sampling

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement