Professional Documents
Culture Documents
Transforms Random Variable Numbers
Transforms Random Variable Numbers
P(a < X b) =
f (x)dx
a
(1)
is contained in D.
d 1
h (y) 1 {y h(D)} ,
dy
fX (x)dx
d 1
h (z)dz
dy
y
d 1
h (z) dz
=
fX (h1 (z))
dy
fX (h1 (z))
by change of variables
since h is increasing .
Now suppose that y is such that h1 (y) is a point of continuity for fX . Then
by the Fundamental Theorem of Calculus, FY is differentiable at y with
derivative
fY (y) =
d
d 1
FY (y) = fX (h1 (y))
h (y) .
dy
dy
Now we consider the case where h is not one-to-one. We will assume the
following: For each y h(D), the set h1 ({y}) = {x : h(x) = y} is a finite
set.
We recall the following theorem from calculus:
Theorem (Inverse Function Theorem). Let h : D R be a differentiable
function. Let y = f (x) for some x D. Suppose that f (x) = 0. Then
there is an open interval I containing x and an open interval J containing
y, so that h restricted to I is one-to-one, and there is a differentiable inverse
h1
x : J I.
Thus, for each x h1 ({y}), there is a function gx defined in a neighborhood of x so that h gi (y ) = y for all y in a neighborhood of y, and
gi h(x ) = x for all x in a neighborhood of x.
Assume that for each x h1({y}), we have h (x) = 0. Now, since
1
h ({y}) is finite, say equal to {x1 , . . . , xr }, letting gi = gxi there is an interval J containing y on which each of the gi is defined. We can take J small
enough so that {gi (J)} are disjoint intervals.
We have for a y b with a < b and a, b J,
P(a Y b) = P
{X gx([a, b])}
xh1 ({y})
xh1 ({y})
f (u)du
=
xh
({y}) a
a xh1({y})
x1
x2
x3
fY (y) =
xh1({y})
if 0 < x 13
3x
8
h(x) = 1 5 x 13
if 13 < x < 15
2 x 8
8
if x 15
.
15
The reader should graph this function. Let 0 < y < 1. The there are three x
so that h(x) = y. Namely,
1
x= y
3
1
4
x = y+
5
15
1
8
x = y+ .
2
15
The three functions on the right of the above equation are then g1(x), g2 (x)
and g3 (x). Thus we have
ey/3 ey/54/15 ey/28/15
+
+
.
3
5
2
Here is another example. Suppose that X has the density
x
f (x) = 2 1 {0 < x < 2} ,
2
fY (y) =
and consider the random variable Y = sin X. We will now find the density
of Y .
First take y > 0. Then
sin1({y}) (0, 2) = {arcsin(y), arcsin(y) + /2} .
This follows since, by convention, arcsin(y) is defined to take values in
[ 2 , 2 ] for y [1, 1].
Thus using the notation as above, we have
g1 (y) = arcsin(y) ,
g2 (y) = arcsin(y) +
.
2
Thus we have
fY (y) =
arcsin(y)
22
1
1 y2
arcsin(y) + 2
22
1
1 y2
=
arcsin(y) + 4
2
1 y2
h
1
1
1
(x) h
(x) h
(x)
x1
x2
xn
h2
h2
2
x (x) h
x2 (x) xn (x)
1
Dh(x) = .
.
.
.
..
..
..
..
hn
x1 (x)
hn
x2 (x)
hn
xn (x)
(4)
h1 (E)
f (h(x))|Jh (x)|dx .
Now we can state the formula for finding the density of Y = h(X), where
X is a random vector in Rn , and h is a one-to-one function defined on D
Rn , where the support of fX is contained in D.
|Jh1 (y)| =
1
|Jh (h1 (y)|
We have
Dh1(d, ) =
cos
2 d
1
sin
2 d
d sin
d cos
Thus
1
1
1
cos2 + sin2 = .
2
2
2
Then we have for d > 0 and [0, 2):
|Jh1 (d, )| =
1 1 (d cos2 +d sin2 ) 1 1 d 1
e 2
= e 2
2
2 2
2
This shows that D and are independent, and D is exponential(1/2), and
is Uniform[0, 2). [Why?]
Note we could run this in reverse: Suppose we start with D an exponential(1/2)
random variable, and an independent Uniform[0, 2) random variable.
Then let
Then g1 (x, y) = h(x, y), where h is defined as above. Now finding the
Jacobian of g1 itself can be done, but it is perhaps easier to use (5):
1
1
=
= 2.
Jg1 (x, y) = Jh (x, y) =
Jh1 (h(x, y)) 1/2
Thus,
2
2
2
2
1
1
1
fX,Y (x, y) = e(x +y )/2 2 = e(x +y )/2 .
2
2
2
Thus g(D, ) gives a pair of independent standard normal random variables.
[Why?]