Encyclopedia > Inverse transform sampling method

  Article Content

Inverse transform sampling method

The Inverse transform sampling method is a method of sampling a number at random from any probability distribution, given its cumulative distribution function (cdf).

The problem that the Inverse transform sampling method solves is as follows:

  • Let X be a random variable whose distribution can be described by the cdf d(x).
  • We want to generate values of x which are distributed according to this distribution.

Many programming languages have the ability to generate pseudo-randomnumbers which are effectively distributed according to the standard uniform distribution. If a random variable has that distribution, then the probability of its falling within any subinterval (a, b) of the interval from 0 to 1 is just the length b - a of that subinterval.

The Inverse transform sampling method works as follows:

  1. Generate a random number from the standard uniform distribution; call this u.
  2. Compute the value for x which has the associated cdf value u; call this xchosen.
  3. Take xchosen to be the random number drawn from the distribution described by d(x).

The following diagram may help the reader to visualise how the method works:

Sampling using the Inverse transform method

See also

The Rejection sampling method[?].



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Canadian Music Hall of Fame

... 1987 The Guess Who[?] 1989 The Band 1990 Maureen Forrester[?] 1991 Leonard Cohen 1992 Ian and Sylvia[?] 1993 Anne Murray 1994 Rush 1995 Buffy ...

 
 
 
This page was created in 35.7 ms