Beruflich Dokumente
Kultur Dokumente
000000
0000
1111
2 111111
000000
111111
000000
111111
000000
111111
000000
111111
000000
111111
000000
1 111111
0
1
000000
111111
0
1
000000
111111
0
1
000000
111111
0
1
000000
111111
0
1
000000
111111
0
1
000000
111111
1
fX (x) =
x1
1
1
dx = (2 x).
2
2
c) (10 points) Find the mean(or expectation) of the random variable g(Y ) =
E[X|Y ]. You can leave the answer as an integral. You dont need to
evaluate it.
Solution:
1
x (x + 1)dx +
2
E[E[X|Y ]] = E[X] =
0
1
x (2 x)dx.
2
1/2
1
=
,
1/2(x + 1)
x+1
0 < y < x + 1.
1
1/2
=
. x 1 < y < 1.
1/2(2 x)
2x
x+1
E[Y |X = x] =
y
0
x+1
1
dx =
.
x+1
2
E[Y |X = x] =
y
x1
1
x
dx = .
2x
2
Problem 2. Let both X and Y be uniformly distributed in the interval [1, 1].
Assume that X and Y are independent. Let
Z1 = XY, and Z2 = X + Y.
a) (13 points) Find P [Z1 z] when z > 0.
Solutions:
1
f (x, y) = , 1 < x < 1, 1 < y < 1.
4
1
xy = z
z
z
1
z
xy = z
y
Figure 2: Problem 2a)
Assuming 1 > z > 0, we should integrate the joint pdf over the shaded
region in the above figure in order to obtain the result.
1 1
1 1
1
1
dydx = + z z ln(z).
P [Z1 z] = 1 2
2 2
2
z
z/x 4
1
z+1
z+1
z
1
z
1
x+y = z
1
2/3
1/3
1/3
1
1/3
1/3 2/3 1
Shaded RegionI
Shaded RegionII
Problem 3. A fair coin is thrown. The random variables X and Y have the
conditional joint pdf
{
K1 (x + y) if 0 < x < 1, 0 < y < 1
fX,Y (x, y | Coin = T ail) =
0
o.w.
{
fX,Y (x, y | Coin = Head) =
a) Find K1 , K2 such that fX,Y (x, y | Coin = head) and fX,Y (x, y | Coin =
tail) are a valid conditional pdfs.
Solution: Conditional pdfs should integrate to 1:
1 1
K1 (x + y)dxdy = 1 = K1 = 1.
0
K2 xdydx = 1 = K2 = 1/6.
0
b) Find the joint pdf fX,Y (x, y). Sketch the sample space.
Solution:
fX,Y (x, y) = fX,Y (x, y | Coin = Heads)P (Coin = Heads) +
fX,Y (x, y | Coin = T ails)P (Coin = T ails).
= fX,Y (x, y | Coin = Heads)0.5 + fX,Y (x, y | Coin = T ails)0.5.
{
(x + y)/2
0 < x < 1, 0 < y < x
=
(7x + y)/2 0 < x < 1, x < y < 1
y
f(x,y) = 7x/2+y/2
1
f(x,y) = x/2+y/2
1
Figure 5: Problem-1b
fX (x) =
f (x, y)dy
1
x
(7x + y)/2 dy
(x + y)/2 dy +
=
(1)
(2)
(3)
fX,Y (x, y)
.
fX (x)
(x+y)/2
(1/4+7x/23x2 )
(7x+y)/2
(1/4+7x/23x2 )
z E[Z1 ]
V ar[Z1 ]
(
=1Q
z8
109
)
.
10
f (x, y)dxdy
1/3
1/3
1/3
1/3
e0.5[X
2 |KX,Y |
1
Y ]KX,Y
[X
Y ]T
dxdy,
1/3
1/3 2
e0.5[X Y ]KX,Y [X
(
)
23/3
Q
109
|KX,Y |
Y ]T
dxdy
.
11
1111111111111111
0000000000000000
0000000000000000
1111111111111111
00000000000
11111111111
0000000000000000
1111111111111111
00000000000
11111111111
0000000000000000
1111111111111111
00000000000
11111111111
0000000000000000
1111111111111111
00000000000
11111111111
0000000000000000
1111111111111111
00000000000
11111111111
0000000000000000
1111111111111111
00000000000
11111111111
0000000000000000
1111111111111111
0000000000000000
1111111111111111
0000000000000000
1111111111111111
mi
n(x
1/3
1/3
x
2x
111111
000000
000000
111111
000000
111111
000000
111111
2x
+3
y=
1/3
Figure 6: Problem-2c
+3
y>
1/3
,y)
>1
/3
12
d) Find a such that Z1 , Z2 are independent. What can you say about the
joint distribution of Z1 , Z2 for a given a?
Solution: If two Gaussian random variables are uncorrelated, then they
are also independent. For Z1 , Z2 to be uncorrelated then the following
equation should be satisfied
E[Z1 Z2 ] = E[Z1 ]E[Z2 ].
This implies
16a 47 = 8(a 2) = 8a = 31 = a =
31
.
8
13
Cdydx +
0
Cdydx = 1.
x1
Then,
C = 1/2.
Find fX (x)
Solution:
fX (x) =
f (x, y)dy.
{ 1
0.5dy = 0.5 0 x 1
fX (x) = x0
0.5dy = 0.5 1 < x 2
x1
Then,
fX (x) = 0.5,
Find fY |X (y|x)
Solution:
fY |X (y|x) =
0 x 2.
f (x, y)
.
fX (x)
(5)
14
If 0 x 1, then
fY |X (y|x) = 0.5/0.5 = 1
0 y 1.
If 1 x 2, then
fY |X (y|x) = 0.5/0.5 = 1
Find E[Y |X = x]
Solution:
x 1 y x.
E[Y |X = x] =
yfY |X (y|x)dy.
If 0 x 1, then
E[Y |X = x] =
y1dy = 1/2.
0
If 1 x 2, then
E[Y |X = x] =
y1dy = x 1/2.
x1
Hence,
{
E[Y |X = x] =
1/2
0x1
x 1/2 1 x 2