Lecture #13: Conditional Expectation: Y - X X (Y X)
Lecture #13: Conditional Expectation: Y - X X (Y X)
October 7, 2015
(y x)
> 0 is a known constant. Determine the posterior density function fX|Y =y (x).
Solution. By definition,
fX|Y =y (x) =
(y x)
and
fX (x) = e x ,
We now compute
Z 1
Z
fY (y) =
fX,Y (x, y) dx =
1
1
1
0 < x < 1.
Z
= e
= e
=
y
0
e
Z
(y x)
(y x)
e
1
[1
e x
e (1
)y ]
(1
1
)e(
e(
(1
dx
)x
dx
1
1
y
x=y
(1
)x
x=0
(1
)y
1)x
1)y
Solution. Let X 2 U (0, 1) denote the position of the first random break, and let Y 2
U (0, X) denote the position of the second random break.
x
and
2
Var(Y |X = x) =
x2
.
12
Example (continued). We can now verify that E(Y |X = x) = x/2. This follows since
Z 1
Z x
1
x
E(Y |X = x) =
yfY |X=x (y) dy =
y dy =
x
2
1
0
as expected.
Note. The conditional expectation of Y given X = x depends on the value of x. That is,
E(Y |X = x) is a function of x, say
E(Y |X = x) = h(x).
132