Inverse transform sampling

Inverse transform sampling

Inverse transform sampling, also known as the probability integral transform, is a method of generating sample numbers at random from any probability distribution given its cumulative distribution function (cdf). This method is generally applicable, but may be too computationally expensive in practice for some probability distributions. See Box-Muller transform for an example of an algorithm which is less general but more computationally efficient.

Definition

The "probability integral transform" states that if "X" is a continuous random variable with a strictly increasing cumulative distribution function "F""X", and if "Y" = "F""X"("X"), then "Y" has a uniform distribution on [0, 1] .

The method

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 "F".
*We want to generate values of "X" which are distributed according to this distribution.

Many programming languages have the ability to generate pseudo-random numbers 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:
#Generate a random number from the standard uniform distribution; call this "u".
#Compute the value "x" such that F(x) = u; call this "x"chosen.
#Take "x"chosen to be the random number drawn from the distribution described by "F".

Expressed differently, given a continuous uniform variable "U" in [0, 1] and an invertible distribution function "F", the random variable "X" = "F" −1("U") has distribution "F" (or, "X" is distributed "F").

A treatment of such inverse functions as objects satisfying differential equations can be given. [Steinbrecher, G., Shaw, W.T. (2008). Quantile mechanics. "European Journal of Applied Mathematics" 19 (2): 87-112.] Some such differential equations admit explicit power series solutions, despite their non-linearity.

Proof of correctness

Let "F" be a continuous cumulative distribution function, and let F^{-1} be its inverse function: [Luc Devroye. "Non-Uniform Random Variate Generation". New York: Springer-Verlag, 1986. ( [http://cg.scs.carleton.ca/~luc/rnbookindex.html online] ) "See [http://cg.scs.carleton.ca/~luc/chapter_two.pdf chapter 2] , section 2, p. 28."]

:F^{-1}(u) = inf;{x mid F(x)=u, 0

"Claim:" If "U" is a uniform random variable on (0, 1) then F^{-1}(U) follows the distribution "F".

"Proof:"

:egin{align}& Pr(F^{-1}(U) leq x) \& {} = Pr(inf;{x mid F(x)=U} leq x)quad ext{(by definition of }F^{-1}) \& {} = Pr(U leq F(x)) quad ext{(applying }F, ext{ which is monotonic, to both sides)} \& {} = F(x)quad ext{(because }Pr(U leq y) = y, ext{ since }U ext{ is uniform on the unit interval)}end{align}

See also

* Copula, defined by means of probability integral transform.
* Quantile function, for the explicit construction of inverse CDFs.
* Inverse distribution function for a precise mathematical definition for distributions with discrete components.
* Rejection sampling

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Inverse (mathematics) — Inverse is the opposite of something. This word and its derivatives are used greatly in mathematics, as illustrated below. * Inverse element of an element x with respect to a binary operation * with identity element e is an element y such that x… …   Wikipedia

  • Inverse method — The inverse method can refer to:* The inverse transform sampling method. * The inverse method in automated reasoning …   Wikipedia

  • Box-Muller transform — A Box Muller transform (by George Edward Pelham Box and Mervin Edgar Muller 1958) [ [http://projecteuclid.org/DPubS/Repository/1.0/Disseminate?view=body id=pdf 1 handle=euclid.aoms/1177706645 G. E. P. Box and Mervin E. Muller, A Note on the… …   Wikipedia

  • Inverse synthetic aperture radar — (ISAR) is a technique to generate a two dimensional high resolution image of a target.In situations where other radars display only a single unidentifiable bright moving pixel, the ISAR image is often adequate to discriminate between various… …   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

  • Discrete Fourier transform — Fourier transforms Continuous Fourier transform Fourier series Discrete Fourier transform Discrete time Fourier transform Related transforms In mathematics, the discrete Fourier transform (DFT) is a specific kind of discrete transform, used in… …   Wikipedia

  • Discrete-time Fourier transform — In mathematics, the discrete time Fourier transform (DTFT) is one of the specific forms of Fourier analysis. As such, it transforms one function into another, which is called the frequency domain representation, or simply the DTFT , of the… …   Wikipedia

  • A derivation of the discrete Fourier transform — In mathematics, computer science, and electrical engineering, the discrete Fourier transform (DFT), occasionally called the finite Fourier transform, is a transform for Fourier analysis of finite domain discrete time signals. As with most Fourier …   Wikipedia

  • Nyquist–Shannon sampling theorem — Fig.1: Hypothetical spectrum of a bandlimited signal as a function of frequency The Nyquist–Shannon sampling theorem, after Harry Nyquist and Claude Shannon, is a fundamental result in the field of information theory, in particular… …   Wikipedia

  • Fourier transform — Fourier transforms Continuous Fourier transform Fourier series Discrete Fourier transform Discrete time Fourier transform Related transforms The Fourier transform is a mathematical operation that decomposes a function into its constituent… …   Wikipedia

Share the article and excerpts

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