Home page for accesible maths 4 Univariate Transformations

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.3 The Probability Integral Transform

The probability integral transformation is one of the most useful results in the theory of random variables. It provides a transformation for moving between 𝖴𝗇𝗂𝖿(0,1) distributed random variables and any continuous random variable (in either direction). By repeated use, the probability integral transformation can be used to transform any continuous random variable to any other continuous random variable. This property makes the result invaluable for simulation of random variables.

Example 4.2.2 is a special case of the probability integral transform, in that example the probability integral transform provided a transformation from a Uniform(0,1) to an Exponential(β) random variable. Example 4.2.5 (Uniform to Weibull) is another.

For simplicity of notation in the statement and proof of the theorem we use F instead of FY.

Theorem 4.3.1.

(Probability Integral Transformation) Let Y be a continuous random variable with cdf F(y) and inverse cdf F-1 and let U be a Uniform(0,1) random variable. Then

  1. 1.

    F(Y) is a Uniform(0,1) random variable, and

  2. 2.

    F-1(U) is a random variable with distribution function F.

Proof.

Set W=F(Y). Then for all 0<w<1

𝖯(Ww) =𝖯(F(Y)w)
=𝖯(YF-1(w))
=F{F-1(w)}
=w.

So the cdf of W is that of a 𝖴𝗇𝗂𝖿(0,1) distribution, i.e. F(Y)𝖴𝗇𝗂𝖿(0,1).

Now set V=F-1(U). Then for all -<v<,

𝖯(Vv) =𝖯(F-1(U)v)
=𝖯(UF(v))
=F(v),

since F(v)[0,1]. So the cdf of V is F. Equivalently, the cdf of F-1(U) is F. ∎

The transformation F-1(U) with F=Φ is illustrated on Figure 4.3 (First Link, Second Link).

Figure 4.3: First Link, Second Link, Caption: Left: The distribution function F=Φ for a standard normal distribution. The vertical crosses are 100 replicates of U and the horizontal crosses are the corresponding transformed values, Y=F-1(U). Right: A histogram of the 100 replicates of Y with the pdf for a standard normal distribution superimposed.
Example 4.3.1.

Use the probability integral transformation from first principles to construct the transformation from X𝖴𝗇𝗂𝖿(0,1) to Y𝖤𝗑𝗉(β) in Example 4.2.2.

Solution.  By the PIT Theorem, if X𝖴𝗇𝗂𝖿(0,1), FY(y) is the CDF of an 𝖤𝗑𝗉(β) random variable and Y=FY-1(X) then Y𝖤𝗑𝗉(β).

So we must find FY-1(x):

x =FY(y)
=1-exp(-βy)

for y>0, if and only if

y=-β-1log(1-x)=FY-1(x).
Example 4.3.2.

If U𝖴𝗇𝗂𝖿(0,1) what is the distribution of the random variables

  1. (a)

    Φ-1(U),

  2. (b)

    μ+σΦ-1(U).

Solution. 

  1. (a)

    Φ-1(U)𝖭(0,1).

  2. (b)

    μ+σΦ-1(U)𝖭(μ,σ2).

Example 4.3.3.

If U𝖴𝗇𝗂𝖿(0,1) construct the probability integral transformation of Y=g(U) so that Y has distribution

  1. (a)

    𝖴𝗇𝗂𝖿(a,b),

  2. (b)

    𝖶𝖾𝗂𝖻(α,β)

Solution.  U𝖴𝗇𝗂𝖿(0,1)

  1. (a)

    Require Y𝖴𝗇𝗂𝖿(a,b), so set Y=FY-1(U) where FY is the cdf of a 𝖴𝗇𝗂𝖿(a,b) random variable.

    U=FY(Y)=Y-ab-a

    for aYb, so

    Y=a+(b-a)U.
  2. (b)

    Want Y𝖶𝖾𝗂𝖻(α,β), so set Y=FY-1(U) where FY is the cdf of a 𝖶𝖾𝗂𝖻(α,β) random variable.

    U=FY(Y)=1-exp{-(βY)α}

    for Y>0, so

    Y=1β{-log(1-U)}1/α.

Discrete random variables

The PIT can transform any continuous random variable to a 𝖴𝗇𝗂𝖿(0,1) random variable, however it is not possible to transform any discrete random variable to a 𝖴𝗇𝗂𝖿(0,1) random variable. To see why, consider a 𝖡𝖾𝗋𝗇(p) random variable, which is 1 with a probability of p and 0 otherwise. There is no function from {0,1} which has all real numbers between 0 and 1 as its output. More generally, the statespace of a discrete rv is countable whereas that of a continuous rv is uncountable, so there cannot possibly be a map from the former to the latter.

However, the PIT can be used to transform from 𝖴𝗇𝗂𝖿(0,1) to a continuous random variable and this can be extended to discrete random variables. One could proceed via the general definition of FY-1 given in Chapter 2, but there is a more intuitive approach through dividing up the area under the 𝖴𝗇𝗂𝖿(0,1) density appropriately.

Example 4.3.4.

If U𝖴𝗇𝗂𝖿(0,1) construct the probability integral transformation of Y=g(U) so that Y has the distribution that is: discrete on {0,1,2,3} with probabilities 0.3, 0.5, 0.1 and 0.1.

Solution.  The area under the density of the 𝖴𝗇𝗂𝖿(0,1) is 1; so we partition it in to regions with areas of 0.3, 0.5, 0.1 and 0.1 respectively.

Unnumbered Figure: Link

Writing this out

y={00<u0.310.3<u0.820.8<u0.930.9<u1.0
Example 4.3.5.

If U𝖴𝗇𝗂𝖿(0,1) construct the probability integral transformation of Y=g(U) so that Y has distribution 𝖡𝗂𝗇(2,θ).

Solution.  Y𝖡𝗂𝗇(2,θ) is discrete on r=0,1,2, with probabilities (1-θ)2, 2θ(1-θ) and θ2 respectively. So

y={00<u(1-θ)21(1-θ)2<u(1-θ)2+2θ(1-θ)2(1-θ)2+2θ(1-θ)<u1