Trans Lect
Trans Lect
Frequently in Statistics, one encounters the need to derive the probability distribution of a function of one
Theorem#1: Suppose that X is a continuous random variable with probability distribution f (x). Let
Y = u(X) define a one-to-one correspondence between the values of X and Y so that the equation y = u(x)
can be uniquely solved for x in terms of y, say x = w(y). Then the probability distribution of Y is
Solution: The inverse solution of y = 2x − 3 yields x = (y + 3)/2, from which we obtain J = w′ (y) =
(y + 3) /2 1 (y + 3)
g (y) = = , −1 < y < 7.
12 2 48
Question#2: If X has the exponential distribution given by f (x) = e−x , x > 0, find the probability
√
density of the random variable Y = X.
√
Solution: The inverse solution of y = x yields x = y 2 , from which we obtain J = dx/dy = 2y. Therefore,
2 2
g (y) = e−y |2y| = 2ye−y , y > 0.
Question#3: Let X have the probability distribution f (x) = 1, 0 < x < 1. Show that the random variable
Y = −2 ln X has a chi-squared distribution with 2 degrees of freedom. Or If X has a uniform density with
α = 0 and β = 1, show that the random variable Y = −2 ln X has a gamma distribution. What are its
parameters?
Solution: The inverse solution of y = −2 ln x yields x = e−y/2 , from which we obtain J = dx/dy = − 21 e−y/2 .
1 1
g (y) = 1. − e−y/2 = e−y/2 , y > 0.
2 2
Question#4: If, D, the diameter of a circle is selected at random from the density function
d
f (d) = k 1 − , 0 < d < 5,
5
(a) find the value of k so that f (d) is a probability density; (b) find the density function of the areas of the
circles so selected.
Solution: (a) Find k such that fD (d) is a valid PDF, it must satisfy:
Z ∞
fD (d) dd = 1
−∞
Solve for k
1 2
2.5k = 1 =⇒ k = =
2.5 5
π 2
A= D
4
q
4a
Now, substitute d = π into fD (d):
q
√
r ! 4a
4a 2 π
= 2 1− 2 a
fD = 1− √
π 5 5 5 5 π
√
2 2 a 1 2 4
fA (a) = 1− √ ·√ = √ −
5 5 π πa 5 πa 25π
Question#5: If X = ln Y has a normal distribution with the mean µ and the standard deviation σ, find
(x − µ)2
1
fX (x) = √ exp −
σ 2π 2σ 2
(ln y − µ)2
1 1
fY (y) = √ exp − ·
σ 2π 2σ 2 y
(ln y − µ)2
1
fY (y) = exp −√ , y > 0.
yσ 2π 2σ 2
Question#6: According to the Maxwell–Boltzmann law of theoretical physics, the probability density of
where β depends on its mass and the absolute temperature and k is an appropriate constant. Show that
1 2
the kinetic energy U = 2 mV , where m the mass of the molecule is a random variable having a gamma
distribution.
Solution: First, we’ll determine the normalization constant k. The PDF must satisfy:
Z ∞
2
k v 2 e−βv dv = 1.
0
dt
Let t = βv 2 , then dv = √
2 βt
, we get:
Z ∞ Z ∞
t −t du k k 3
k e · √ = t1/2 e−t dt = Γ =1
0 β 2 βt 2β 3/2 0 2β 3/2 2
2β 3/2
=⇒ k = .
Γ 32
r !
2u dv
fU (u) = fV · .
m du
2β 3/2
2u 1
e−β ( m ) · √
2u
fU (u) = , u > 0.
Γ 23
m 2mu
3/2
1 2β 2βu
fU (u) = u1/2 e− m , u > 0.
Γ(3/2) m
3 m
This confirms that U follows a gamma distribution with shape 2 and scale 2β .
Theorem#2: Suppose that X1 and X2 are continuous random variables with joint probability distribution
f (x1 , x2 ). Let Y1 = u1 (X1 , X2 ) and Y2 = u2 (X1 , X2 ) define a one-to one transformation between the points
(x1 , x2 ) and (y1 , y2 ) so that the equations y1 = u1 (x1 , x2 ) and y2 = u2 (x1 , x2 ) may be uniquely solved for x1
and x2 in terms of y1 and y2 , say x1 = w1 (yl , y2 ) and x2 = w2 (y1 , y2 ). Then the joint probability distribution
of Y1 and Y2 is
∂x1 ∂x1
∂y1 ∂y2
J=
∂x2 ∂x2
∂y1 ∂y2
∂x1
and ∂y1 is simply the derivative of x1 = w1 (yl , y2 ) with respect to y1 with y2 held constant, referred to in
calculus as the partial derivative of x1 with respect to y1 . The other partial derivatives are defined in a
similar manner.
Question#:7 Let X1 and X2 be two continuous random variables with joint probability distribution
f (x1 , x2 ) = 4x1 x2 , 0 < x1 < 1, 0 < x2 < 1. Find the joint probability distribution of Y1 = X12 and
Y2 = X1 X2 .
√ √
Solution: The inverse solutions of y1 = x21 and y2 = x1 x2 are x1 = y1 and x2 = y2 / y1 , from which we
obtained
√
1/ 2 y1 0 1
J= = .
3/2 √ 2y1
−y2 /2y1 1/ y1
To determine the set B of points in the y1 y2 plane into which the set A of points in the x1 x2 plane is mapped,
√ √
we write x1 = y1 and x2 = y2 / y1 .
√ y2 1 2y2 √
g (y1 , y2 ) = 4 ( y1 ) √ = , 0 < y1 < 1, 0 < y2 < y1 .
y1 2y1 y1
Question#8: If the joint density of X1 and X2 is given by f (x1 , x2 ) = 1, 0 < x1 < 1, 0 < x2 < 1. Find (a)
Solution: (a) The inverse solutions of y1 = x1 + x2 and y2 = x2 are x1 = y1 − y2 and x2 = y2 , from which
we obtained
1 −1
J= = 1.
0 1
Support of (Y1 , Y2 ):
From the original support 0 < x1 < 1 and 0 < x2 < 1, we derive:
Additionally, since y1 = x1 + x2 and 0 < x1 , x2 < 1, the range for y1 is: 0 < y1 < 2.
Figure 4.3:
1. For 0 < y1 ≤ 1:
Z y1
h(y1 ) = 1 dy2 = y1 .
0
X1
Find (a) the joint probability distribution of Y1 = X1 + X2 and Y2 = X1 +X2 , (b) the marginal density of Y2 .
x1
Solution: (a) The inverse solutions of y1 = x1 + x2 and y2 = x1 +x2 are x1 = y1 y2 and x2 = y1 (1 − y2 ),
Since the transformation is one-to-one, mapping the region x1 > 0 and x2 > 0 in the x1 x2 -plane into the
region y1 > 0 and 0 < y2 < 1 in the y1 y2 -plane, we can use Theorem 2 and it follows that
(b) Using the joint density obtained in part (a) and integrating out y1 , we get
Z ∞
h (y2 ) = y1 e−y1 dy1 = Γ2 = 1
0
Question#10: Let X1 be the amount of premium gasoline (in 1,000 gallons) that a service station has in
its tanks at the beginning of a day, and X2 the amount that the service station sells during that day. If the
(a) Find the probability density of the amount that the service station has left in its tanks at the end of the
day. (b) Find the Expected amount that the service station has left in its tanks at the end of the day.
Solution: The amount left in the tanks at the end of the day (Y = X1 − X2 ).
1 1
g(y, w) = f (y + w, w) · |J| = ·1= .
200 200
20−y
20 − y 20 − y
Z
1
h(y) = dw = = , 0 < y < 20.
0 200 200 200
20 20
20 − y
Z Z
1
E[Y ] = y· dy = (20y − y 2 ) dy.
0 200 200 0
20 20
y3
Z
2 2 8000 8000 4000
(20y − y ) dy = 10y − = 10(400) − = 4000 − = .
0 3 0 3 3 3
1 4000 4000 20
E[Y ] = · = = ≈ 6.6.
200 3 600 3
20
(thousand gallons)
3
This makes sense: since the initial amount X1 is uniformly distributed up to 20,000 gallons and the sales
X2 are constrained by X1 , the average leftover is about one-third of the maximum capacity.
Question#11: The percentages of copper and iron in a certain kind of ore are, respectively, X1 and X2 .
(a) Find the probability density of Y1 = X1 + X2 . (b) Find E(Y1 ), the expected total percentage of copper
Solution: Let: Y2 = X2
1. x1 = y1 − y2 > 0 =⇒ y1 > y2 ,
2. x2 = y2 > 0,
3 3
fY1 ,Y2 (y1 , y2 ) = fX1 ,X2 (y1 − y2 , y2 ) · |J| = (5(y1 − y2 ) + y2 ) = (5y1 − 4y2 )
11 11
Case 2: 1 ≤ y1 < 2
Here, y1 ≥ 2 − y1 , so y2 ∈ (0, 2 − y1 ).
Z y1
3 3 y1 3 9 2
fY1 (y1 ) = (5y1 − 4y2 ) dy2 = 5y1 y2 − 2y22 0 = (5y12 − 2y12 ) = y
0 11 11 11 11 1
For 1 ≤ y1 < 2:
Z 2−y1
3 3 2−y1 3
5y1 y2 − 2y22 0 5y1 (2 − y1 ) − 2(2 − y1 )2
fY1 (y1 ) = (5y1 − 4y2 ) dy2 = =
0 11 11 11
Simplify:
3 3
10y1 − 5y12 − 8 + 8y1 − 2y12 = −7y12 + 18y1 − 8
=
11 11
Final PDF of Y1 :
9 2
y , 0 < y1 < 1
11 1
fY1 (y1 ) = 3 2
11 (−7y1 + 18y1 − 8), 1 ≤ y1 < 2
0,
otherwise
(b)
Z 2
E(Y1 ) = y1 fY1 (y1 ) dy1
0
2. For 1 ≤ y1 < 2:
Z 2 Z 2
3 2 3
y1 (−7y1 + 18y1 − 8) dy1 = (−7y13 + 18y12 − 8y1 )dy1
1 11 11 1
Z Z Z
7
−7y13 dy1 = − y14 , 18y12 dy1 = 6y13 , −8y1 dy1 = −4y12
4
Evaluate from 1 to 2:
2
7 7 1 17
− y14 + 6y13 − 4y12 = (−28 + 48 − 16) − − + 6 − 4 = 4 − − =
4 1 4 4 4
3 17 51
· =
11 4 44
9 51 60 15
E(Y1 ) = + = = ≈ 1.36
44 44 44 11
Question# 12. The random variables X and Y, representing the weights of creams and toffees, respectively,
in 1-kilogram boxes of chocolates containing a mixture of creams, toffees, and cordials, have the joint density
function
f (x, y) = 24xy, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, x + y ≤ 1.
(a) Find the probability density function of the random variable Z = X + Y . (b) Using the density function
of Z, find the probability that, in a given box, the sum of the weights of creams and toffees accounts for at
Solution: (a) We’ll use the transformation method with an auxiliary variable. Let’s choose W = Y . The
inverse solutions of z = x + y and w = y are x = z − w and y = w from which we obtained Jacobian of the
transformation:
∂x ∂x
∂z ∂w 1 −1
J = =
∂y ∂y
∂z ∂w 0 1
The marginal density of Z is obtained after integrating out W over its range 0 ≤ w ≤ z:
Z z Z z
fZ (z) = 24w(z − w) dw = 24 (zw − w2 ) dw
0 0
fZ (z) = 4z 3 , 0≤z≤1
1
(b) The probability that the sum of weights is at least 2 but less than 43 :
3/4 3/4 4 4
z4
Z
1 3 3 1 81 1 65
P ≤Z< = 4z 3 dz = 4 = − = − =
2 4 1/2 4 1/2 4 2 256 16 256