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)=𝖯⁡(Y≤y)=𝖯⁡(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 X∈Ay say,

  2. 2.

    evaluate the probability 𝖯⁡(Y≤y)=𝖯⁡(X∈Ay),

  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. 

𝖯⁡(X≤x)=FX⁢(x)={0x≤0x/20<x≤21x>2
  1. (a)

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

    FY⁢(y) =𝖯⁡(Y≤y)=𝖯⁡(X2≤y)
    =𝖯⁡(X≤y1/2)
    =y1/2/2.

    So

    fY⁢(y)={0y≤014⁢y0<y≤400<y≤4
  2. (b)

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

    FV⁢(v) =𝖯⁡(V≤v)=𝖯⁡((X-1)2≤v)
    =𝖯⁡(-v1/2≤X-1≤v1/2)
    =𝖯⁡(1-v1/2≤X≤1+v1/2)
    =1+v1/22-1-v1/22

    So

    fV⁢(v)={0v<012⁢v0<v≤10v>1
Example 4.2.2.

A classic: X∼Uniform⁡(0,1). Show that

Y=-1β⁢log⁡(1-X)

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

Solution. 

FY⁢(y)=𝖯⁡(Y≤y) =𝖯⁡(-β-1⁢log⁡(1-X)≤y)
=𝖯⁡(log⁡(1-X)≥-β⁢y)
=𝖯⁡(X≤1-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) =𝖯⁡(Y≤y)=𝖯⁡(β⁢X≤y)
=𝖯⁡(X≤y/β)
=1-exp⁡{-β⁢(y/β)}
=1-exp⁡(-y)

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

Example 4.2.4.

X∼N⁢(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) =𝖯⁡(Y≤y)=𝖯⁡(X2≤y)
=𝖯⁡(-y≤X≤y)
=FX⁢(y)-FX⁢(-y).

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

fY⁢(y) =12⁢y-1/2⁢fX⁢(y)+12⁢y-1/2⁢fX⁢(-y)
=12⁢y-1/2⁢12⁢π⁢exp⁡(-y/2)+12⁢y-1/2⁢12⁢π⁢exp⁡(-y/2)
=y-1/2⁢12⁢π⁢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) =𝖯⁡(Y≤y)=𝖯⁡(X1/α≤y)
=𝖯⁡(X≤yα)
=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/α.