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.2 Distribution Function Method

The distribution function (cdf) method for evaluating the distribution of a transformation arises from the observation that

FY(y)=𝖯(Yy)=𝖯(g(X)y).

It proceeds as follows.

  1. 1.

    find the values of X which correspond to the event g(X)y, let this correspond to the event XAy say,

  2. 2.

    evaluate the probability 𝖯(Yy)=𝖯(XAy),

  3. 3.

    differentiate to obtain the pdf of Y.

The figures illustrate the sets Ay for various transformations Y=g(X). When g() is monotonically increasing or decreasing Ay will always be an interval of the form (-,x] or [x,) and the method is particularly easy to apply in these cases. The method, however, holds whatever the properties of the transformation g(). It is best explained through examples.

Figure 4.1: First Link, Second Link, Caption: The set Ay for two different transformations g() (the curves).
Figure 4.2: First Link, Second Link, Caption: The set Ay for two more different transformations g() (the curves).
Example 4.2.1.

Let X𝖴𝗇𝗂𝖿(0,2); what are the densities of

  1. (a)

    Y=X2, and

  2. (b)

    V=(X-1)2?

Solution. 

𝖯(Xx)=FX(x)={0x0x/20<x21x>2
  1. (a)

    Clearly 0<Y4. For y in this range (and, hence, y1/2 between 0 and 2),

    FY(y) =𝖯(Yy)=𝖯(X2y)
    =𝖯(Xy1/2)
    =y1/2/2.

    So

    fY(y)={0y014y0<y400<y4
  2. (b)

    0V1. For v in this range (hence, both 1-v1/2 and 1+v1/2 between 0 and 2),

    FV(v) =𝖯(Vv)=𝖯((X-1)2v)
    =𝖯(-v1/2X-1v1/2)
    =𝖯(1-v1/2X1+v1/2)
    =1+v1/22-1-v1/22

    So

    fV(v)={0v<012v0<v10v>1
Example 4.2.2.

A classic: XUniform(0,1). Show that

Y=-1βlog(1-X)

has an 𝖤𝗑𝗉(β) distribution, where β>0.

Solution. 

FY(y)=𝖯(Yy) =𝖯(-β-1log(1-X)y)
=𝖯(log(1-X)-βy)
=𝖯(X1-exp(-βy))
=1-exp(-βy)

for y>0. This is the cdf of an 𝖤𝗑𝗉(β) random variable.

Example 4.2.3.

If X𝖤𝗑𝗉(β), show that Y=βX has an Exponential(1) distribution.

Solution. 

FY(y) =𝖯(Yy)=𝖯(βXy)
=𝖯(Xy/β)
=1-exp{-β(y/β)}
=1-exp(-y)

for y>0. This is the cdf of an Exponential(1) random variable.

Example 4.2.4.

XN(0,1). Show that Y=X2 has a 𝖦𝖺𝗆(1/2,1/2) distribution. Note: this is also a χ12 distribution – see Section 11.1.

Solution. 

FY(y) =𝖯(Yy)=𝖯(X2y)
=𝖯(-yXy)
=FX(y)-FX(-y).

To obtain the pdf we differentiate and use the chain rule:

fY(y) =12y-1/2fX(y)+12y-1/2fX(-y)
=12y-1/212πexp(-y/2)+12y-1/212πexp(-y/2)
=y-1/212πexp(-y/2)

for y>0, which matches the Gamma pdf equation (3.1) when α=1/2 and β=1/2 since Γ(1/2)=π.

Example 4.2.5.

When X𝖤𝗑𝗉(1) show that for α>0,

Y=X1/α

has a 𝖶𝖾𝗂𝖻(α,1) distribution. Hence use Example 4.2.2 to find the transformation of a 𝖴𝗇𝗂𝖿(0,1) random variable required to achieve a 𝖶𝖾𝗂𝖻(α,1) random variable.

Solution.  X>0 so Y=X1/α is real and so is a random variable, with 0<Y<; also, for x>0,FX(x)=1-exp(-x).

FY(y) =𝖯(Yy)=𝖯(X1/αy)
=𝖯(Xyα)
=1-exp(-yα),

which is the cdf of an 𝖶𝖾𝗂𝖻(α,1) random variable. From Example 4.2.2, X can be written as X=-log(1-U), where U𝖴𝗇𝗂𝖿(0,1), hence Y=(-log(1-U))1/α.