Conditional Distributions and Transformations: Homework 9
Conditional Distributions and Transformations: Homework 9
Conditional Distributions and Transformations: Homework 9
Homework 9
Problems
1. Let X1 and X2 be uniform on the consecutive integers −n, −(n + 1), . . . , n − 1, n. Use convolution to
fins the mass function for X1 + X2 .
Let Z = X1 + X2 ,
P (Z = z) = P (X1 + X2 = z)
Xn
= P (X1 = i)P (X2 = z − i)
i=z−n
Xn
1 1 (1)
=
i=z−n
2n + 1 2n +1
2n + 1 − z
=
(2n + 1)2
P (Y1 ≤ y) = P (Z12 ≤ y)
p
= P (Z12 ≤ (y)) (2)
√
= FZ1 ( y)
√
fY1 (y) = FZ0 1 ( y)
√ 1
= fZ1 ( y) √
2 y (3)
1 y
= √ exp(− )
2 πy 2
1
Let Y2 = Z22 . Y1 and Y2 have the same distribution. Z12 + Z22 = Y1 + Y2 ,
Z y
P (Y1 + Y2 = y) = P (Y1 = s)P (Y2 = y − s)ds
0
Z y
1 s 1 y−s
= √ exp(− ) p exp(− )ds (4)
0 2 πs 2 2 π(y − s) 2
Z y
1 y 1
= exp(− ) p ds
4π 2 0 s(y − s)
Z y Z y
1 1
p ds = q ds
0 s(y − s) 0 y 2 y 2
4 − (s − 2 )
Z y2
1
= dz
(5)
q
y y 2
−2 − z 2
4
2s y2
= arcsin( )| y
y −2
= 2π
1 y
So f (y) = 2 exp(− 2 ).
(c) Show that Z1 + Z2 and Z1 − Z2 are independent and describe their distribution.
Challenging Problems
1. Let Xi , i = 1, 2, 3 be Γ(α, 1) random variables.
(a) Find the density of S = X! + X2 + X3
(b) Find the joint density of Yi = Xi /S, i = 1, 2.
(c) Find the density of Y1 + Y2
2. Let X ∼ Γ(α, β) and Y |X ∼ P ois(X)
(a) Find E[Y |X] and Var(Y |X).
Since Y |X ∼ P ois(X), E[Y |X] = Var(Y |X) = X
(b) Find Var(Y ).
V ar(Y ) = E(V ar(Y |X)) + V ar(E(Y |X))
= EX + V ar(X) (7)
α α
= + 2
β β
2
Figure 1: rho=-2/3
Figure 2: rho=-1/3
3
Figure 3: rho=0
Figure 4: rho=1/3
4
Figure 5: rho=2/3
Figure 6: rho=1
5
Figure 7: codes