p. 1/31
Introduction
Text Reference: Introduction to Probability and Its
Applications, Chapter 7.
Reading Assignment: Sections 7.1-7.6, April 27
Introduction
Let X1 , X2 , , Xn denote a random sample. A
statistic U = h(X1 , X2 , , Xn ) is computed from the
sample.
Question :
How to find the probability distribution of the
random variable U ?
The solution is centered around three basic ideas:
The distribution function method
The transformation method
The moment generating function method
Functions of Random Variables
p. 3/31
p. 4/31
Solution:
FX (y) =
x
0
u1
=
FU (u) = P (U u) = P (2X + 1 u) = P X
2
2
3
u1
u1
3
2
2
2
for 1 < u < 3.
2
u1
3
u1
3
= (u 1)(3 u)
fU (u) = 3
2
2
4
Functions of Random Variables
for 1 < u < 3.
p. 5/31
Solution:
ub
FU (u) = P (U u) = P (aX + b u) = P X
=
a
ub
FX
a
1
ub
0
fU (u) = FU (u) = fX
a
a
Remember to calculate the two endpoints where fU (u) integrate
to 1.
1
In general, fU (u) = fX
|a|
ub
a
for any a 6= 0
p. 6/31
3 x2 (4 x) , 0 x 4
64
f (x) =
0,
elsewhere
Find the distribution of U = 1 X/4.
Solution:
fU (u) = 4fX 4(1 u) . Thus,
(
12 u (1 u)2 , 0 u 1
fU (u) =
0,
elsewhere
Hence, U Beta ( = 2, = 3)
p. 7/31
Solution:
FU (u) = P
fu (u) =
m
2
FU0 (u)
X2
u =P
1
=
fX
2mu
X
r
2u
m
2u
m
= FX
2u
m
a 2u 2bu/m
=
e
=
2mu m
p. 8/31
Joke
p. 9/31
Solution:
For u 0, FU (u) = P (U U ) = P (Y 2 u) = 0.
For u > 0, FU (u) = P (U u) = P (X 2 u) =
P ( u X u) = FX ( u) FX ( u)
1
0
fU (u) = FU (u) = fX ( u) + fX ( u)
2 u
for u > 0 and
zero elsewhere.
1
u+1 u+1
1
fU (u) =
+
=
2
2
2 u
2 u
Functions of Random Variables
for 0 < u 1
p. 10/31
Solution:
The random variable U takes positive real values.
We have:
Z u Z ux
1 x1 / 1 x2 /
FU (u) = P (X1 + X2 u) =
e
e
dx1 dx2
0
0
Z u
1
x2 / (ux2 )/
e
=
e
dx1
2 0
1
1 21 u/
21 u/
=
u
e
=
u
e
2
(2) 2
2
Hence, U Gam( = 2, ).
p. 11/31
Solution:
Let X1 and X2 represents each persons arrival time in
(0, 1). Then due to independence, we have:
1 , 0 x ,x 1
1 2
fX1 ,X2 (x1 , x2 ) = fX1 (x1 )fX2 (x2 ) =
0 , elsewhere
Functions of Random Variables
p. 12/31
1
u
1 Z x1 u
dx1 dx2
(x1 u) dx1
= 1 (1 u)2
2
7
1
3
=1
= .
Hence, P U
4
4
16
There is less than 50-50 chance that the two friends will
meet under this rule.
p. 13/31
Solution:
The random variable U takes integer values from 0
to n + m.
We have:
n x1
m x2
p (1 p)nx1
p (1 p)mx2
x1
x2
x1 +x2 =u
X n m
px1 +x2 (1 p)n+m(x1 +x2 )
=
x1
x2
x1 +x2 =u
n+m u
=
p (1 p)n+mu
u
P (U = u) =
p. 14/31
Solution:
Let X denote the number of good items sampled prior to the rth
defective one and U the number of trials required to get r defective
items. We have U = X + r. Assuming that the probability p of
obtaining a defective item is constant from trial to trial, we have:
X NB(r, p)
Let u = r, r + 1, . . . . We have,
P (U = u) = P (X + r = u) = P (X = u r) =
u 1 r ur
p q
r1
p. 15/31
Joke
p. 16/31
p. 17/31
p. 18/31
Solution:
1
d h (u)
1
2
= 2u
h(u) = u so h (u) = u and
du
1
d h (u)
2u u2 /
1
fU (u) = fX h (u)
e
, u>0
=
du
p. 19/31
p. 20/31
P (U u) = P h(X1 , X2 ) u =
P h(x1 , X2 ) u|X1 = y1 fX1 (x1 ) d
Z Z u
=
fU (t|X1 = x1 ) dt fX1 (x1 ) dx1
Hence,
Z
0
fU (t|X1 = x1 ) dt fX1 (x1 ) dx1
d P (U u)
=
du
Z
=
fU (u|X1 = x1 )fX1 (x1 ) dx1
Z
fU (u) =
p. 21/31
Solution:
1
d h (u)
?
1
=1
h (u) = x1 + u so h (u) = u x1 and
du
1
d h (u)
1
fU (u|X1 = x1 ) = fX2 h (u)
=
du
1 (ux1 )/
e
for 0 < x1 < u
Z u
1 (ux1 )/ 1 x1 /
1 21 u/
fU (u) =
e
e
dx1 = 2 u e
0
Functions of Random Variables
p. 22/31
Joke
p. 23/31
p. 24/31
Solution:
mU (t) = E(etU ) = E(et ln(X) ) = E(X t )
Z 1
1
B( t, 1)
t 1
=
x x
dx =
B(, 1) 0
B(, 1)
1
=
=
t
1 t/
Hence, U Exp(1/).
Functions of Random Variables
p. 25/31
Example 7.13:
Suppose that X1 , X2 , , Xn are independent and
identically distributed as an exponential distribution with
mean , then find the distribution function of
U = X1 + X2 + + Xn .
Solution:
mU (t) =
1
1
1
1
=
1 t 1 t
1 t
(1 t)n
Hence, U Gam( = n, ).
p. 26/31
Solution:
mU (t) =
1
1
1
1
=
(1 t)1 (1 t)2
(1 t)n
(1 t)1 +2 ++n
Hence, U Gam( = 1 + 2 + + n , ).
mU (t) = pe + q
n
pe + q
m
= pe + q
n+m
p. 27/31
n
X
i=1
ai Xi = a1 X1 + a2 X2 + + an Xn ,
n
X
ai i = a1 1 + a2 2 + + an n ,
n
X
i=1
and variance
Var(U ) =
i=1
p. 28/31
p. 29/31
Theorem 7.3:
Let X1 , X2 , , Xn be independent normally distributed random variables with E(Xi ) = i and Var(Xi ) = 2 , for i = 1, 2, , n, and
define
X i i
Zi =
, i = 1, 2, , n .
i
Then
n
X
i=1
n
a Gamma distribution with parameters = and = 2.
2
p. 30/31
Joke
p. 31/31