






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







UCSD ECE 153 Handout # Prof. Young-Han Kim Thursday, October 30, 2008
Solutions to Homework Set # (Prepared by TA Halyun Jeong)
(A, 2 A), with probability 12 , (2A, A), with probability 12.
You may keep the envelope you are given, or you can switch envelopes and receive the amount in the other envelope.
(a) Find E(X) and E(Y ). (b) Find E
Y
(c) Suppose you switch. What is the expected amount you receive?
Solution: (a) The expected amount in the first envelope is
E(X) =
x∈X
xpX (x)
Since you are given one of the envelopes at random, the expectation is the same for the envelope you are not given. Thus the expected amount in the second envelope is E(Y ) = 32 A. (b) The expected factor by which the amount in the second envelope exceeds the amount in
the first is
E
(x,y)∈X ×Y
( (^) y x
pXY (x, y)
(c) If you switch, the expected amount you will receive is E(Y ) = 32 A.
Solution: The average height of the trees in the population is 20 feet. So (^1) n
∑n i=1 hi^ = 20, where n is the population size and hi is the height of the i-th tree. If more than half of the population is at least 40 feet tall, then the average will be greater than 12 · 40 = 20 feet since each person is at least 0 feet tall. Thus no more than half of the population is 40 feet tall. Alternatively, we can use the Markov inequality with respect to the fraction of population to obtain the same result.
Λ ∼ fΛ(λ) =
3 λ^
(^23) , 0 ≤ λ ≤ 1 0 , otherwise,
and X|{Λ = λ} ∼ Exp(λ). Find E(X).
Solution: Since X|(Λ = λ) ∼ Exp(λ), we have
E(X|Λ = λ) =
λ.
By following the same steps as in the unconditional case, we may write:
Var(X|Y ) = E(X^2 |Y ) − (E(X|Y ))^2
and by taking expectations:
E[Var(X|Y )] = E[E(X^2 |Y )] − E[(E(X|Y ))^2 ] = E(X^2 ) − E[(E(X|Y ))^2 ]
Also by the definition of the variance:
Var(E(X|Y )) = E[(E(X|Y ))^2 ] − (EX)^2
since EX = E[E(X|Y )]. By adding the previous two expressions:
Var(X) = Var(E(X|Y )) + E[Var(X|Y )]
(d) From above, we know that Var(X) ≥ Var(E(X|Y )). But Var(X) = E(X^2 ) − (EX)^2 and Var(E(X|Y )) = E[(E(X|Y ))^2 ] − (EX)^2 , so we have
E(X^2 ) − (EX)^2 ≥ E[(E(X|Y ))^2 ] − (EX)^2 ,
which implies E(X^2 ) ≥ E[(E(X|Y ))^2 ].
f (x, y) =
x + y, 0 ≤ x ≤ 1 , 0 ≤ y ≤ 1 , 0 , otherwise.
(a) Find the MMSE estimator of X given Y. (b) Find the corresponding MSE. (c) Find the pdf of Z = E(X|Y ).
Solution: (a) We first calculate the marginal pdf of Y , by a direct integration. For y < 0 or y > 1, we integrate over 0. For 0 ≤ y ≤ 1,
fY (y) =
0
(x + y) dx
= y +^12
Please note the limits of the integration, which are derived from the definition of the joint pdf. Thus,
fY (y) =
y + 12 , 0 ≤ y ≤ 1 0 , otherwise.
Now we can calculate the conditional pdf:
fX|Y (x|y) =
fXY (x, y) fY (y) =
x + y 1 2 +^ y for 0 ≤ x, y ≤ 1. Therefore, for 0 ≤ y ≤ 1:
E[X|Y = y] =
0
xfX|Y (x|y) dx
0
x^2 + yx y + (^12)
dx
1 3 +^
y 2 1 2 +^ y
hence
1 3 +^
Y 2 1 2 +^ Y
(b) The MSE is given by
E(Var(X|Y )) = EX^2 − E((E(X|Y ))^2 )
=
0
x^2
x +^1 2
dx −
0
y 2 1 2 +^ y
y +^1 2
dy
ln(3) 144
− ln(3) 144
(c) Since E[X|Y = y] =
(^13) + y 2 (^12) +y =^12 +^ 6(1+2^1 y) , we have 5 9 ≤^ E[X|Y^ =^ y]^ ≤^
2 3 for 0^ ≤^ y^ ≤^ 1. From the part (a), we know
1 3 +^
Y 2 1 2 +^ Y
Thus, 59 ≤ Z ≤ 23.
(b) First we write
E(Var(X|Y )) = E(X^2 ) − E((E(X|Y ))^2 ),
and
Var(E(X|Y )) = E((E(X|Y ))^2 ) − (E(E(X|Y )))^2 = E((E(X|Y ))^2 ) − (E(X))^2.
Adding the two terms completes the proof.
Interpretation:√ If we view X, E(X|Y ), and X − E(X|Y ) as vectors with “norms” Var(X),
Var(E(X|Y )), and
E(Var(X|Y )), respectively, then this result is a “Pythago- ras theorem”, where the signal, the error and the estimate are the sides of a right triangle (estimate and error being orthogonal).
Solution: (a) Since Z|{X = x} ∼ N (0, |x|),
E(Z|X) = 0 Var(Z|X = x) = E(Z^2 |X = x) − E(Z|X = x)^2 = |x|.
Therefore,
E(Z^2 ) = E(E(Z^2 |X)) =
2 π
−∞
|x|e−^
x 22 dx
2 π
0
|x|e−^ x
2 (^2) dx = −
π
e−^ x
2 (^2) |∞ 0 =
π
(b) From the the best linear estimate formula,
Xˆ = Cov(X, Y^ ) σ Y^2
We only need to determine the various values. Therefore,
E(X) = 0 , σX 2 = 1 , E(Y ) = E(X + Z) = E(X) + E(Z) = E(X) + E(E(Z|X)) = 0 + E(0) = 0, E(XZ) = E(E(XZ|X)) = E(XE(Z|X)) = E(X · 0) = E(0) = 0,
σY 2 = E(Y 2 ) − (E(Y ))^2 = E((X + Z)^2 ) − 02 = E(X^2 ) + E(Z^2 ) + 2E(XZ) − 0
= 1 +
π + 2^ ×^0 −^ 0 = 1 +
π ,
Cov(X, Y ) = E((X − E(X))(Y − E(Y ))) = E(XY ) = E(X(X + Z)) = E(X^2 ) + E(XZ) = 1 + 0 = 1.
Using all of the above, we get Xˆ = 1 1 +
2 π
e−^2 x^2 −^8 y^2 −^4 xy+12x+24y−^24.
(a) Find E(X), E(Y ), Var(X), Var(Y ), and Cov(X, Y ). (b) Find the minimum MSE estimate of X given Y and its MSE.
Solution:
(a) We can write the joint pdf for X and Y jointly Gaussian as
fX,Y (x, y) =
exp
a (x − μX )^2 + b (y − μY )^2 + c (x − μX ) (y − μY )
2 πσX σY
1 − ρ^2 X,Y
where
a = 1 2(1 − ρ^2 X,Y )σ X^2
b = 1 2(1 − ρ^2 X,Y )σ Y^2
c = −^2 ρX,Y 2(1 − ρ^2 X,Y )σX σY
Solution:
(a) We know that the best linear estimate is given by the formula
Xˆ = Cov(X, Y^ ) σ Y^2
We only need to determine the various values. Note that X and Z Gaussian and uncor- related implies they are independent. Therefore,
E(Y ) = E(XZ) = E(X)E(Z) = 3 E(XY ) = E(X^2 Z) = E(X^2 )E(Z) = (σ^2 X + E^2 (X))E(Z) = 12 E(Y 2 ) = E(X^2 Z^2 ) = E(X^2 )E(Z^2 ) = (σ X^2 + E^2 (X))(σ Z^2 + E^2 (Z)) = 68 σ Y^2 = E(Y 2 ) − E^2 (Y ) = 59 Cov(X, Y ) σ^2 Y^ =^
σ^2 Y^ =^
Using all of the above, we get Xˆ = 9 59 Y^ +
(b) The fact that the best linear estimate equals the best MMSE estimate when input and noise are independent Gaussians is only known to be true for additive channels. For multiplicative channels this need not be the case in general. Therefore, your UCLA friend could be wrong.