Home page for accesible maths 8 Bivariate Transformations

Style control - access keys in brackets

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

8.2 Use of Dummy Variables

Often we are interested in not two new variables, S and T, but in just one, S say. To obtain the pdf of S alone we have to create a dummy variable T, obtain the joint pdf of S and T, then integrate to get the marginal distribution of S.

  1. 1.

    Define a new variable T which makes a one-to-one bivariate transformation between (X,Y) and (S,T). The choice of T is essentially arbitrary and can be made for convenience. Sometimes some trial and error is required.

  2. 2.

    Find the joint pdf fST(s,t) of S and T.

  3. 3.

    Find the marginal pdf of S:

    fS(s)=fST(s,t)dt

    taking care with the range of integration.

Example 8.2.1.

Example 8.1.1 showed that if (X,Y) are independent 𝖭(0,1) then S=X+Y and T=X-Y are both marginally 𝖭(0,2) (also S and T are independent, but that is irrelevant to what follows). Ignoring T we see that S=X+Y𝖭(0,2).

Example 8.2.2.

If (X,Y) have joint pdf

fXY(x,y)=1x2y2

for x>1 and y>1, find the pdf of S=XY.

With S=XY put T=X. Clearly S>1 and T>1. However Y>1, so S/T>1, so S>T. So the joint range is S>T>1.

Unnumbered Figure: Link

The inverse is

  1. X=T,

  2. Y=SX=ST.

so that

[sxsytxty]=[yx10]

and |detJ|=1/x.

The joint pdf of (S,T) is

fST(s,t) =fXY(x,y)1/x|x=t,y=s/t
=1x3y2|x=t,y=s/t
=1s2t

for 1<t<s<. The marginal pdf of S is

fS(s) =t=1s1s2tdt
=[log(t)s2]t=1s
=log(s)s2

for 1<s<. To check this integrates to 1:

1log(s)s2ds =[-log(s)s]1+11s2ds
=[-1s]1=1.

Convolution

A transformation of general interest is S=X+Y. We use the dummy variable method to obtain the pdf of S. We make the transformation

  1. S=X+Y,

  2. T=X,

with T as the dummy variable. It follows that the inverse transformation is

  1. X=T,

  2. Y=S-T,

so

|det(x,y)(s,t)|=|det[011-1]|=-1=1.

Thus

fST(s,t)=fXY(t,s-t),

so the marginal pdf of S=X+Y is

fS(s)=-fXY(t,s-t)dt.

This formula is known as the convolution formula. It is finding the probability of S=X+Y by summing the probabilities, over all possible t, for the pairs (t,s-t) in (X,Y).

Example 8.2.3.

Let X𝖴𝗇𝗂𝖿(0,1) and Y𝖴𝗇𝗂𝖿(0,1), find the density of S=X+Y using the convolution formula.

Solution.  For 0x1, 0y1,

fXY(x,y)=1.

The range restrictions on x and y imply that fX,Y(t,s-t) is only non-zero when 0t1 and 0s-t1. The latter implies s-1ts. S can only be between 0 and 2. When s1 the restrictions simplify to 0ts, whereas when s>1 they simplify to s-1t1. Denote the lower and upper bounds for t by as and bs for now.

fS(s) =-fXY(t,s-t)dt
=asbs1dt
=bs-as
={0s0s0<s12-s1<s20s>2

The density is a triangle.

Example 8.2.4.

Exam2016 Let X𝖡𝖾𝗍𝖺(α,1) (α1) and Y𝖴𝗇𝗂𝖿(0,1) be independent of each other. The point (X,Y) defines the top-right corner of a rectangle whose bottom-left corner is at the origin, as shown in the figure below. Let 𝒜 be this rectangle, let A be its area and let V=X.

Unnumbered Figure: Link

  1. (a)

    Without performing any calculation, write down the conditional distribution of A given X=x.

    Solution.  A|X=x𝖴𝗇𝗂𝖿(0,x) (since A=XY and Y𝖴𝗇𝗂𝖿(0,1).)

  2. (b)

    Derive the joint density of A and V, fA,V(a,v); be sure to state clearly the joint range of A and V.

    Solution.  The range (which most students got wrong) is 0<a<v<1 since 0<y<1 but y=a/v. The inverse map is X=V, Y=A/V, so

    J=(x,y)(a,v)=[011/v-a/v2]

    Then |detJ|=1/v, so with the range as defined above,

    fA,V(a,v) =fX,Y(x,y)1v
    =αxα-11v
    =αvα-2.
  3. (c)

    Show that the marginal density of A is fA(a)=αα-1(1-aα-1) for (0<a<1) and 0 elsewhere.

    Solution.  For 0<a<1,

    fA(a)=a1αvα-2dv=αα-1[vα-1]a1,

    which simplifies to the required expression. A must be between 0 and 1 since it is the product of two rvs which have these bounds.

  4. (d)

    Find the conditional density of V given A=a.

    Solution. 

    fV|A(v|a)=αvα-2αα-1(1-aα-1)=α-11-aα-1vα-2

    for a<v<1.

  5. (e)

    A new co-ordinate pair (X,Y) is chosen, where X𝖴𝗇𝗂𝖿(0,1) and Y𝖴𝗇𝗂𝖿(0,1) are independent of each other and of X and Y. Show that the probability that (X,Y) is in the (random) rectangle 𝒜 is pα=α2(α+1).

    Solution.  The point (X,Y) has a uniform distribution in the unit square. So, conditional on knowing 𝒜, 𝖯((X,Y)𝒜|𝒜)=𝖯((X,Y)𝒜|A)=A, the area of 𝒜. Since for any event B, 𝖯(B,A(a,a+da])=𝖯(B|a)fA(a)da, exactly as for any joint probability, we can marginalise by integrating out a:

    𝖯((X,Y)𝒜) =a=01𝖯((X,Y)𝒜|a)fA(a)da
    =αα-101(a-aα)da
    =αα-1[12a2-aα+1α+1]01,

    which simplifies to the required expression.

  6. (f)

    Note that limα1pα=1/4. Provide a derivation of this particular value using simple probability calculations (i.e. without resorting to the calculations similar to those in Parts (b)-(e)).

    Solution.  When α=1, X and X have the same distribution, so 𝖯(X<X)=1/2. Similarly 𝖯(Y<Y)=1/2 thus

    𝖯((X,Y)𝒜)=𝖯(X<X,Y<Y)=𝖯(X<X)𝖯(Y<Y)

    by independence . So 𝖯((X,Y)𝒜)=1/4.