Professional Documents
Culture Documents
Example 1
Let X have a normal distribution with mean 0, and
variance 1. (standard normal distribution)
1
f x
e
2
Let W = X2.
Find the distribution of W.
x2
First step
Find the distribution function of W
G(w) = P[W w] = P[ X2 w]
P w X w
w
F
where
1
e
2
x2
if w 0
dx
w F w
1
F x f x
e
2
x2
Second step
Find the density function of W
g(w) = G'(w).
d w
d w
w
F w
dw
dw
1 12
1 12
w w f w w
2
2
w
2
1
2
1
1
1
e
w
e
2
2
2
1
w
w 2 e 2 if w 0.
2
w
2
1
w
2
1
2
2
2
1
g w
w e
2
if w 0.
Example 2
Suppose that X and Y are independent random
variables each having an exponential distribution
with parameter (mean 1/)
f1 x e x for x 0
f 2 y e y for y 0
f x, y f1 x f 2 y
2 x y
Let W = X + Y.
Find the distribution of W.
for x 0, y 0
First step
Find the distribution function of W = X + Y
G(w) = P[W w] = P[ X + Y w]
w w x
P X Y w
0
f x f y dydx
1
0
w w x
2 x y
dydx
w w x
P X Y w
f x f y dydx
1
w w x
2 x y
dydx
e
w
e
0
w x
dy dx
w x
dx
0
w x
0
e
2
x
e
dx
w x
0
e
2
x
P X Y w e
dx
e x e w dx
0
e
w
xe
ew
w
we
1 e w we w
e 0
Second step
Find the density function of W
g(w) = G'(w).
d
1 e w we w
dw
dw
de
w
w
e
e w
dw
dw
w
w
2
w
e e we
2 we w
for w 0
g w 2 we w
for w 0
Z
t
U
1
f z
e
2
The density of U is:
z2
h u
u2 e 2
2
f z, u f z h u
1
2
2
2
z 2 u
1
2
2
Z
t
G t PT t P
t P Z
U
U
Therefore:
t
G t P T t P Z
1
2
2
2
z 2 u
1
2
2
dzdu
Illustration of limits
t>0
t>0
U
Now:
t
G (t )
0
1
2
2
2
and:
d
g t G (t )
dt
0
z 2 u
1
2
2
1
2
2
2
dzdu
z u
1
2
2
u e
dz du
Using:
d
d
F ( x, t )dx F ( x, t )dx
dt a
dt
a
F ( x) f t dt
If
then
d
g t
dt
0
1
2
2
2
1
2
then
2
2
u
0
F ( x) f x
z u
1
2
2
u e
dz du
t 2u
1
2
2
2
e e
u
du
Hence
1
2
g (t )
1 x
1
x e dx
0
or
2
2
Using
x
0
1 x
dx
t2
1
u
du
Hence
t2
1
1
2
du
t2
1
and
2
2
1
2
1
2
1
1
1
t2 2
2
2
g (t )
1
2
2
or
g (t )
2
where
t2
1
K
2
t2
K
1
Students t distribution
t2
g (t ) K
1
where
K
2
t distribution
standard normal distribution
Hence
f ( x)
0 x
elsewhere
0
x
F ( x) P X x
1
x0
0 x
x
G (t ) P M t P max xi t
P x1 t ,L , xn t
P x1 t L P xn t
t0
t
1
0 t
t
nt n 1
g t G t n
0
f(x)
0 t
otherwise
g(t)
G (t ) P m t P min xi t
1 P x1 t ,L , xn t
1 P x1 t L P xn t
t0
t
1 1
0 t
t
0
otherwise
f(x)
g(t)
1 0 u 1
g (u )
elsewhere
F
(U )
Let
Find the distribution of X.
1
G x P X x P F (U ) x
P U F x
F x
Hence.
g x G x F x f x
X F (U )
has density f(x).
X F 1 (U )
Proof
Use the distribution function method.
Step 1 Find the distribution function, G(u)
Step 2 Differentiate G (u ) to find the
probability density function g(u)
G u P U u P h X u
h strictly increasing
P X h (u )
h strictly decreasing
P X h 1 (u )
F h (u )
h strictly increasing
1 F h (u )
h strictly decreasing
hence
g u G u
dh
F h
F h 1 u
du
1
dh u
du
h strictly increasing
h strictly decreasing
or
1
dh
(u )
dx
1
g u f h (u )
f x
du
du
Example
Suppose that X has a Normal distribution
with mean and variance 2.
Find the distribution of U = h(x) = eX.
Solution:
2
x
1
2 2
f x
e
2
1
dh u d ln u 1
1
h u ln u and
du
du
u
hence
1
dh
(u )
dx
1
g u f h (u )
f x
du
du
1 1
e
2 u
ln u
2 2
for u 0
log-normal distribution
(many variables)
g u1 ,L , un f x1 ,L , xn
d x1 ,L , xn
d u1 ,L , un
f x1 ,L , xn J
J
d x1 ,L , xn
dx1
du
1
det M
d u1 ,L , un
dxn K
du1
Jacobian of the transformation
where
dx1
dun
dxn
dun
Example
u1 u2
x1
2
u1 u2
x2
2
dx1
du
1
d x1 , x2 det
J
dx2
d u1 , u2
du
1
1
2
det
1
2
dx1
du2
dx2
du2
1
2 1 1
1
2
2
1
1 1
2
2 2
u1 u2 u1 u2 1
f1
f 2
2
2
2
From
g u1 , u2
u1 u2 u1 u2 1
f1
f 2
2
2
2
g1 u1
g u , u du
1
u1 u2 u1 u2 1
f1
f 2
du2
2
2
2
u1 u2
u1 u2
dv 1
put v
then
u1 v,
2
2
du2 2
Hence
g1 u1
u1 u2 u1 u2 1
f1
f 2
du2
2
2
2
f v f u
1
v dv
Now
e x
f1 x
x0
x0
2
x
1
2 2
f2 y
e
2
The density of U = X + Y is :.
g u
f v f u v dv
1
e
0
1
e
2
2
u v
2 2
dv
or
g u
e
2 0
2
u v
2 0
2 2
2
u v 2 2 v
2 2
2 0
e
2
dv
dv
v 2 2 u v u 2 2 v
2
2 2
2
u
e
0
dv
v 2 2 u 2 v
2 2
dv
or
e
2
e
2
u
2
v 2 2 u 2 v
2 2
dv
v 2 2 u 2 v u 2
2 2
dv
u u 2
2 2
1
e
2
u u 2
2 2
2
u u 2
2 2
v 2 2 u 2 v u 2
P V 0
2 2
dv
V u
2
and variance 2.
Hence
g u e
2
u
2 u
g(u)
Definition
Let X denote a random variable with probability
density function f(x) if continuous (probability mass
function p(x) if discrete)
Then
mX(t) = the moment generating function of X
E etX
etx f x dx if X is continuous
e p x
tx
if X is discrete
Properties
1. mX(0) = 1
2. mXk 0 k th derivative of mX t at t 0.
k E X
k E X
3.
x f x dx
x p x
k
X continuous
X discrete
k k
2 2 3 3
mX t 1 1t t t L t L .
2!
3!
k!
mX t E etX
tx
e
f x dx
where
1 x
x e
f x
x0
x0
e f x dx
mX t E e
tX
tx
1 x
e
x e dx
0
1 t x
x e
dx
0
tx
using
or
b a a 1 bx
0 a x e dx 1
a
a 1 bx
0 x e dx ba
then
1 t x
mX t
x e
dx
mX t E etX
where
tx
e
f x dx
1
f x
e
2
x2
thus
mX t
tx
1
e
2
x2
dx
1
e
2
x2
tx
2
dx
We will use
mX t
t2
2
1
e
2
1
e
2 b
1
e
2
x2
tx
2
x 2 2 tx
1
e
2
2
xa
2 b2
dx 1
dx
dx
x 2 2 tx t 2
t2
2
e dx e
t2
2
1
e
2
2
x t
dx
Note:
2
3
4
x
x
x
e x 1 x L
2! 3! 4!
2
t t
t2
2
2 2
t
2
mX t e 1
L
2
2!
3!
2
2m
t
t
t
t
1 2 3 L m L
2 2 2! 2 3!
2 m!
Also
2 2 3 3
mX t 1 1t t t L
2!
3!
Note:
2
3
4
x
x
x
e x 1 x L
2! 3! 4!
2
t t
t2
2
2 2
t
2
mX t e 1
L
2
2!
3!
2
Also
2m
t
t
t
t
1 2 3 L m L
2 2 2! 2 3!
2 m!
2 2 3 3
mX t 1 1t t t L
2! 3!
k k th moment
x k f x dx
k 0 if k is odd and
2 m
1
for k 2m then m
2 m ! 2m !
hence 1 0, 2 1, 3 0, 4 3
Example
Suppose that X has a normal distribution with
mean and standard deviation .
Find the distribution of Y = aX + b
Solution:
2t 2
t
mX t e 2
2
2 at
maX b t e mX at e e
bt
bt
at
2 a 2t 2
a b t
2
X 1
Z
X
aX b
1
Z a b
0
2
1
2
2 2
Z a 2 1
Thus Z has a standard normal distribution .
Example
Suppose that X and Y are independent each having a
normal distribution with means X and Y , standard
deviations X and Y
Find the distribution of S = X + Y
Solution:
mX t e
mY t e
X2 t 2
X t
2
Y2 t 2
Y t
2
Now
mX Y t mX t mY t e
X2 t 2
X t
2
Y2 t 2
Y t
2
or
m X Y t e
X Y
2
X
Y2 t 2
2
Example
Suppose that X and Y are independent each having a
normal distribution with means X and Y , standard
deviations X and Y
Find the distribution of L = aX + bY
Solution:
mX t e
X t
X2 t 2
mY t e
Now
Y2 t 2
Y t
2
X2 at
X at
2
Y2 bt
Y bt
2
or
t
2
maX bY t e
a X bY
2
X
b 2 Y2 t 2
2
Special Case:
a = +1 and b = -1.
Thus Y = X - Y has a normal distribution
with mean X - Y and variance
X 1 Y X Y
2
Solution:
mX i t e
Now
i2t 2
i t
2
(for i = 1, 2, , n)
12 a1t
1 a1t
2
L e
n2 an t
n an t
2
or
ma1 X1 L an X n t e
a11 ... an n
2 2
2 2
1 1 ... an n
+
+
a
and
1
1
n
n
2
2 2
a1 1 ... an n
variance
Special case:
1
a1 a2 L an
n
1 2 L n
12 12 L 12 2
In this case X1, X2, , Xn is a sample from a
normal distribution with mean , and standard
deviations and
1
L X1 X 2 L X n
n
Thus
Y x a1 x1 ... an xn
n x
x1 ... 1
2
...
n
1
1
2
n
n
n
2
n
Summary
If x1, x2, , xn is a sample from a normal
distribution with mean , and standard
deviations then x the sample mean
has a normal distribution with mean
x
and variance
n
2
x
standard deviation x
n
Sampling distribution
of x
Population
P x 1 as n for all 0
Proof: Previously we used Tchebychevs Theorem.
This assumes (2) is finite.
x1 x2 L xn S n
now x
n
n
t
t
or mx t m 1 t mSn m
Sn
n
n
n
t
now ln mx t ln m
n
t ln m u
u
t
n ln m
n
t
where u
n
t ln m u
Thus lim ln mx t lim
n
u 0
u
m u
t
m
u
m 0
lim
t
t
u 0
1
m 0
Thus lim mx t m t et
n
m t et is the moment generating function of
0 x
and distribution function F x
and
1 x
and lim Fx x F x for all values of x.
n
Now
P x P x
Fx Fx
F F 1 if 0
as n
0 x
since F x
and
1 x
Q.E.D.
n
2
x
standard deviation x
n
x1 x2 L xn S n
now x
n
n
t
t
or mx t m 1 t mSn m
Sn
n
n
n
x
n
n
Let z
then mz t e
and ln mz t
nt
mx
nt
m
t
n
t n ln m
t
t2
Let u
or n
and n 2 2
u
u
n
t
Then ln mz t
t
n
t n ln m
n
t 2
t2
2 2 2 ln m u
u u
t 2 ln m u u
2
u2
lim ln
Now lim ln mz t
n
u 0
mz t
ln m u u
t2
2 lim
u 0
u2
t2
2 lim
u 0
m u
m u
2u
m u m u m u
2
t
2 lim
u 0
m u
2
m u m u m u
m u
t
2 lim
u 0
t m 0 m 0
2
t E x E xi
2
2
2
2
i
thus lim ln mz t
n
t2
2
2
and lim mz t e
n
2
t2
2
Now m t e
t2
2
1
e
2
u2
du
Q.E.D.
n
2
x
standard deviation x
n
Now
G s P S s P x1 x2 s
s0
s2
1 2 s
0 s 1
2
2
1 s 2
s 1
g s G s
s
0 s 1
2 s 1 s 2
0
otherwise
Now:
S
x 12 S aS
2
dS
h x g S
g 2x 2
dx
2x
0 2x 1
2x
2 2 x 1 2 x 2 2 1 x
0
otherwise
0
0 x 12
1
2 x 1
otherwise
n=1
0
n=2
n=3
0
Distributions of functions of
Random Variables
Gamma distribution, c2 distribution,
Exponential distribution
Therorem
Let X and Y denote a independent random variables
each having a gamma distribution with parameters
(,1) and (,2). Then W = X + Y has a gamma
distribution with parameters (, 1 + 2).
Proof:
mX t
and mY t
Therefore mX Y t mX t mY t
1
t
t t
1 2
mxi t
i 1, 2..., n
Therefore
...
t
t t
1 2 ... n
Therorem
Suppose that x is a random variable having a
gamma distribution with parameters (,).
Then W = ax has a gamma distribution with
parameters (/a, ).
Proof:
mx t
then max t mx at
t
at
a
Special Cases
1. Let X and Y be independent random variables
having an exponential distribution with parameter
then X + Y has a gamma distribution with = 2
and
2. Let x1, x2,, xn, be independent random variables
having a exponential distribution with parameter
then S = x1+ x2 ++ xn has a gamma distribution
with = n and
S x1 K xn
x
has a gammandistributionnwith = n and n
Distribution of x
population Exponential distribution
Recall
If z has a Standard Normal distribution then z2 has a
2 distribution with 1 degree of freedom.
Thus if z1, z2,, z are independent random variables
each having Standard Normal distribution then
U z z ... z
2
1
2
2
Therorem
Suppose that U1 and U2 are independent random variables and
that U = U1 + U2 Suppose that U1 and U have a 2 distribution
with degrees of freedom 1and respectively. (1 < )
Then U2 has a 2 distribution with degrees of freedom 2 = -1
Proof:
Now mU1 t 1
2 t
1
2
v1
2
and mU t 1
2 t
1
2
v
2
Also mU t mU1 t mU 2 t
Hence mU 2 t
mU t
mU1 t
1 t
2
1
2
v
2
1 t
2
1
2
v
1
2
1
2 t
1
2
Q.E.D.
v
v
1
2 2