

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to homework 3 for the university of illinois, urbana–champaign ece 313 course, focusing on the expected value and moment generating function for discrete random variables. It covers topics such as the definition of expected value, the relationship between expected value and moment generating functions, and the use of lotus's formula to calculate expected values.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


University of Illinois, Urbana–Champaign Fall 2007 ECE 313: Solutions to Homework 3
n=
n Pr(N = n)
= Pr(N = 1) + Pr(N = 2) + Pr(N = 2) + · · · + Pr(N = n) + · · · + Pr(N = n) ︸ ︷︷ ︸ n
n=
Pr(N = n) +
n=
Pr(N = n) + · · · +
n=i
Pr(N = n) + · · ·
= Pr(N ≥ 1) + Pr(N ≥ 2) + · · · + Pr(N ≥ i) + · · ·
n=
Pr(N ≥ n)
n=
n Pr(N > n) = Pr(N = 2) + Pr(N = 3) + Pr(N = 4) + · · · + Pr(N = n) + · · ·
= Pr(N = 2) + 3 Pr(N = 3) + · · · +
n(n − 1) 2
Pr(N = n) + · · ·
n=
(n^2 Pr(N = n) − n Pr(N = n)) + Pr(N = 1) − Pr(N = 1)
n=
n^2 Pr(N = n) −
n=
n Pr(N = n))
Using LOTUS, we have E[N 2 ] =
n=1 n
(^2) Pr(N = n), then
E[g(X)] = E[Y ] =
y
ypY (y)
g(x)
g(x)pY (g(x))
Since pY (g(x)) = pX (x) for all x, we have
x
g(x)pX (x)
(b) If g is a many-to-one function, for all x 1 , x 2 , · · · , xn such that y = g(x 1 ) = g(x 2 ) = · · · = g(xn), we have pY (y) =
xi pX^ (xi). The probability mass for these^ y’s that have many to one mappings is the sum of the mass of all inverse imagines. Therefore,
E[g(X)] = E[Y ] =
y
ypY (y)
y
xi,y=g(xi)
g(xi)pX (xi )
x
g(x)pX (x)
X − μ σ
E[X] − μ σ
We know that var(X) = E[X^2 ] − (E[X])^2. So E[X^2 ] = σ^2 + μ^2. By using this, we have
σ^2
(X^2 − 2 Xμ + μ^2 )] =
σ^2
(E[X^2 ] − 2 E[X]μ + μ^2 ) = 1
18 38
18 38 = 0.5918. (b) You have more than 50% chance to win the game. However the answer from (c) shows that you lose 11 cents on average when you play the game. (c) E[X] = 1838 + 203818381838 − 3 382020382038 − 203820381838 − 203818382038 = − 36139 = − 0. 1080
∑n k=1 pX^ (k) =^
2 n(n+1)
n(n+1) 2 = 1. Therefore,^ pX^ is a valid pmf. (b) The range of Y is all the inverse of integers from [1, n]. The pmf of Y is
pY (k) = Pr(Y = k) = Pr(1/X = k) = Pr(X = 1/k) =
kn(n + 1)
with k = 1/i where 1 ≤ i ≤ n is an integer. (c) E[Y ] =
k kpY^ (k) =^
2 n+1. Or by LOTUS,^ E[Y^ ] =^
k
1 k pX^ (k) leads to the same answer.