Docsity

Solutions to Homework Set 4 - Probability and Random Process | ECE 153, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
UCSD ECE 153 Handout #16
Prof. Young-Han Kim Thursday, October 30, 2008
Solutions to Homework Set #4
(Prepared by TA Halyun Jeong)
1. Read Sections 4.3, 4.6, 5.7, 5.9, 6.5 in the text. Try to work on all examples.
2. Two envelopes. An amount Ais placed in one envelope and the amount 2Ais placed in
another envelope. The amount Ais fixed but unknown to you. The envelopes are shuffled
and you are given one of the envelopes at random. Let Xdenote the amount you observe in
this envelope. Designate by Ythe amount in the other envelope. Thus
(X, Y ) = ((A, 2A),with probability 1
2,
(2A, A),with probability 1
2.
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¡X
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∈X
xpX(x)
=1
2A+1
2(2A)
=3
2A.
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) = 3
2A.
(b) The expected factor by which the amount in the second envelope exceeds the amount in
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Solutions to Homework Set 4 - Probability and Random Process | ECE 153 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

UCSD ECE 153 Handout # Prof. Young-Han Kim Thursday, October 30, 2008

Solutions to Homework Set # (Prepared by TA Halyun Jeong)

  1. Read Sections 4.3, 4.6, 5.7, 5.9, 6.5 in the text. Try to work on all examples.
  2. Two envelopes. An amount A is placed in one envelope and the amount 2A is placed in another envelope. The amount A is fixed but unknown to you. The envelopes are shuffled and you are given one of the envelopes at random. Let X denote the amount you observe in this envelope. Designate by Y the amount in the other envelope. Thus

(X, Y ) =

(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

( X

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)

2 A^ +

2 (2A)

2 A.

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

Y

X

(x,y)∈X ×Y

( (^) y x

pXY (x, y)

A

2 A

+^1

2 A

A

(c) If you switch, the expected amount you will receive is E(Y ) = 32 A.

  1. Tall trees. Suppose that the average height of trees on campus is 20 feet. Argue that no more than half of the tree population is taller than 40 feet.

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.

  1. Let Λ and X be two random variables with

Λ ∼ 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 ].

  1. Let X and Y be two random variables with joint pdf

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

E[X|Y ] =

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

3 +^

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

Z = E[X|Y ] =

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).

  1. Additive shot noise channel. Consider an additive noise channel Y = X + Z, where the signal X ∼ N (0, 1), and the noise Z|{X = x} ∼ N (0, |x|), i.e., the variance of the noise increases linearly with the absolute value of the signal. (a) Find E(Z^2 ). We are expecting a numerical answer here. (b) Find the best linear MSE estimate of X given Y.

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)) =

√^1

2 π

−∞

|x|e−^

x 22 dx

= √^2

2 π

0

|x|e−^ x

2 (^2) dx = −

√^2

π

e−^ x

2 (^2) |∞ 0 =

π

(b) From the the best linear estimate formula,

Xˆ = Cov(X, Y^ ) σ Y^2

(Y − E(Y )) + E(X).

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 π

Y.

  1. Jointly Gaussian random variables. Let X and Y be jointly Gaussian random variables with pdf fX,Y (x, y) = 1 π

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

  1. Consider a channel with the observation Y = XZ, where the signal X and the noise Z are uncorrelated Gaussian random variables. Let E(X) = 1, E(Z) = 3, σ X^2 = 3, and σ^2 Z = 8. (a) Find the best MSE linear estimate of X given Y. (b) Suppose your friend from Caltech tells you that he was able to derive an estimator with a lower MSE. Your friend from UCLA disagrees, saying that this is not possible because the signal and the noise are Gaussian, and hence the linear MSE estimator will also be the best MSE estimator. Could your UCLA friend be wrong?

Solution:

(a) We know that the best linear estimate is given by the formula

Xˆ = Cov(X, Y^ ) σ Y^2

(Y − E(Y )) + E(X).

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^ =^

E(XY ) − E(X)E(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.