






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
Material Type: Assignment; Professor: Hayat; Class: Probability Theory and Stochastic Processes; Subject: Electrical & Computer Engineer; University: University of New Mexico; Term: Fall 2008;
Typology: Assignments
1 / 10
This page cannot be seen from the preview
Don't miss anything!







ECE 541 Probability and Stochastic Processes; Fall 2008 Assignment 5; Due date: Tuesday, Oct. 21, 2008
Recall that E[X] = limn→∞ Sn, where Sn =
∑∞ i= i 2 n^ P{^
i 2 n^ < X^ ≤^
i+ 2 n^ }.^ Now note that for each i, there is a countable subset Ai of indices for which { 2 in < X ≤ i 2 +1n } = ∪j∈Ai {X = aj } and P{ 2 in < X ≤ i 2 +1n } =
∑ j∈Ai P{X^ =^ aj^ }.^ It is easy to see that the collection^ Ai,^ i^ = 1,^2 ,.. ., forms a partition of IN = ∑ { 1 , 2 ,.. .}; that is Ai ∩ Ai′ = ∅ when i 6 = i′^ while ∪iAi = IN. As such, ∞ i=
∑ j∈Ai aj^ P{X^ =^ aj^ }^ =^
∑∞ k=1 akP{X^ =^ ak}^ and^
∑∞ i=
∑ j∈Ai P{X^ =^ aj^ }^ =^
∑∞ k=1 P{X^ =^ ak}^ =
|Sn −
∑^ ∞
j=
aj P{X = aj }| = |
∑^ ∞
i=
i 2 n
∑
j∈Ai
P{X = aj } −
∑^ ∞
j=
aj P{X = aj }|
∑^ ∞
i=
( ∑
j∈Ai
[aj P{X = aj } + ( i 2 n^ − aj )P{X = aj }]
) −
∑^ ∞
j=
aj P{X = aj }|
∑^ ∞
k=
akP{X = ak} +
∑^ ∞
i=
∑
j∈Ai
i 2 n^ − aj )P{X = aj } −
∑^ ∞
j=
aj P{X = aj }|
∑^ ∞
i=
∑
j∈Ai
i 2 n^ − aj )P{X = aj }|
∑^ ∞
i=
∑
j∈Ai
i 2 n^ − aj |P{X = aj }
2 n
∑^ ∞
i=
∑
j∈Ai
P{X = aj } =
2 n
∑^ ∞
k=
P{X = ak} =
2 n^
This establishes limn→∞ Sn =
∑∞ j=1 aj^ P{X^ =^ aj^ }, which completes the proof.
Assume that E[X] < ∞. First recall that E[X ∧ M ] = ∑∞ i=1(ai^ ∧^ M^ )P{X^ =^ ai}. Note that since X ∧ M is increasing and bounded by X, E[X ∧ M ] is also increasing and bounded by E[X]; therefore, limM →∞ E[X ∧ M ] exists. Next, since E[X] =
∑∞ i=1 aiP{X^ =^ ai}, by definition of the convergent infinite series and the monotonicity of
∑n ∑ i=1^ aiP{X^ =^ ai}, for any^ ≤ >^ 0, there exists^ N^ ≥^ 1 such that 0^ ≤^ E[X]^ − n i=1 aiP{X^ =^ ai}^ < ≤^ for all^ n^ ≥^ N^.^ Equivalently, 0^ ≤^
∑∞ i=n+1 aiP{X^ =^ ai}^ < ≤^ for all^ n^ ≥^ N^. But it is also true that 0 ≤
∑∞ i=n+1(ai^ ∧^ M^ )P{X^ =^ ai} ≤^
∑∞ i=n+1 aiP{X^ =^ ai}^ < ≤^ for all^ n^ ≥^ N^ , from which we conclude 0 ≤ E[X ∧ M ] − ∑n i=1(ai^ ∧^ M^ )P{X^ =^ ai}^ < ≤^ for all^ n^ ≥^ N^.^ Since the latter statement is true for any M , we can take the limit as M → ∞ and obtain 0 ≤ limM →∞ E[X ∧ M ] − ∑n i=1 aiP{X^ =^ ai} ≤^ ≤. We now replace^ −^
∑n i=1 aiP{X^ =^ ai}^ in the last statement by its lower
bound −E[X] and obtain limM →∞ E[X ∧ M ] − E[X] ≤ ≤. We can also replace −
∑n i=1 aiP{X^ =^ ai} in the same statement by its upper bound ≤ − E[X] and obtain 0 ≤ limM →∞ E[X ∧ M ] − E[X] + ≤. By combining the two last inequalities we obtain −≤ ≤ limM →∞ E[X ∧ M ] − E[X] ≤ ≤. Since ≤ was arbitrary, we conclude limM →∞ E[X ∧ M ] = E[X]. Now assume E[X] = ∞. Then for any K > 0, there exists L ≥ 1 so that
∑i=1 aiP{X^ =^ ai}^ > K for all ≥ L. With this we can write limM →∞
∑` i=1(ai^ ∧^ M^ )P{X^ =^ ai}^ =^
∑i=1 aiP{X^ =^ ai}^ > K for all ≥ L; and hence, limM →∞
∑∞ i=1(ai^ ∧^ M^ )P{X^ =^ ai}^ > K. Since^ K^ can be chosen arbitrarily large, we conclude limM →∞
∑∞ i=1(ai^ ∧^ M^ )P{X^ =^ ai}^ =^ ∞, or^ E[X^ ∧^ M^ ]^ → ∞^ as^ M^ → ∞.
Recall that we can always approximate a random variable X monotonically from below by a discrete random variable. More precisely, define Xn =
∑∞ i= i 2 n^ I{ 2 in <X≤ i 2 +1n }, and recall that^ Xn^ ↑^ X and E[Xn] ↑ E[X] (from the definition of the expectation of X). From Problem 2 we know that limM →∞ E[Xn ∧ M ] = E[Xn]. Next, since E[X ∧ M ] is increasing, limM →∞ E[X ∧ M ] either exists or it is infinity. Now since Xn ∧ M ≤ X ∧ M ≤ X, we have
E[Xn] = lim M →∞ E[Xn ∧ M ] ≤ lim M →∞
Now take the limit as n → ∞ to obtain
E[X] ≤ lim M →∞
which completes the proof.
We need to show that (1) E[X] is square integrable and σ(Y ) measurable and that (2) E[XW ] = E
[ E[X]W
] for all square integrable and σ(Y ) measurable W. Clearly, (1) is trivial. To show (2),
note that E[XW ] = E[X]E[W ] by independence of W (being σ(Y ) measurable) and X.
a) Show that the average time till the first head is observed is y 1 = p−^1 , where p is the prob- ability of getting a head each time the coin is tossed. Then find a closed form explicit solution to yn, the average time till n consecutive heads are observed for the first time.
Let X 1 , X 2 ,... , be i.i.d., Xj ∈ { 0 , 1 } with P{Xj = 0} = p, j = 1, 2 ,.. .. Let T 1 = min{i : Xi = 1}. Now, P{T 1 = k} = P{X 1 = X 2 =... = Xk=1 = 0, Xk = 1} = (1 − p)k−^1 p. From the notes, E[T 1 ] = 1/p. In what follows we will characterize yk. Again, from the notes yk = p−^1 yk− 1 + p−^1 , k ≥ 2. (1)
Case 2: s = 1 (i.e. the T (k − 1) + 1st flip is a head) Note in this case XT (k−1)+1 = 1 and therefore the steak of k heads is achieved precisely at time t + 1. That is, h(t, 1 , Xt+2,.. .) = t + 1; and thus, w(1) = (t + 1)^2.
In summary, we can combine cases 1 and 2 compactly as follows: w(s) = (t + 1)^2 I{ 1 }(s) + {(t + 1)^2 + 2(t + 1)y(k) + y 2 (k)}I{ 0 }(s), where as usual, the indicator function of a set A, I{A}(s), is defined as 1 if s ∈ A and 0 otherwise. Thus, w(Xt+1) = (t+1)^2 I{ 1 }(Xt+1)+{(t+1)^2 +2(t+1)y(k)+y 2 (k)}I{ 0 }(Xt+1). We next calculate g(t). Recall that g(t) = E[w(Xt+1)] and by using the last expression for w(Xt+1), we have g(t) = (t + 1)^2 E[I{ 1 }(Xt+1)] + {(t + 1)^2 + 2(t + 1)y(k) + y 2 (k)}E[I{ 0 }(Xt+1)]. But E[I{ 1 }(Xt+1)] = p. Similarly, E[I{ 0 }(Xt+1)] = (1 − p) ≡ q. Hence, g(t) = (t + 1)^2 + {2(t + 1)y(k) + y 2 (k)}q.
Finally, y 2 (k) = E[g(T (k − 1))] = E[(T (k − 1) + 1)^2 p + {2(T (k − 1) + 1)y(k) + y 2 (k)}q]. By recognizing that E[T (k − 1)^2 ] = y 2 (k − 1) and E[T (k − 1)] = y(k − 1), we arrive at the final result,
y 2 (k) = p−^1 y 2 (k − 1) + 2p−^1 y(k − 1) + 2qp−^1 y(k − 1)y(k) + 2qp−^1 y(k) + p−^1.
Initial condition: y 2 (1) = ∑∞ i=1 i^2 pqi−^1 =^ p−^1 (1 + 2q/p)
e) Use the difference equation derived in part (a) to evaluate y 2 , 2 and y 2 , 3.
From above, p = q = 0. 5 y 2 (1) = 6, y 2 (2) = 58, y 2 (3) = 338.
f) Use simulation to estimate y 2 , 2 and y 2 , 3. Compare to your results in part (e). Comment on the comparison.
See attachment.
From the text: Chapter 2: 50; Chapter 3: 1, 2, 34.
∑n i=1 n − (^1) log n = log n;
when pn = δ(n − 1), say, then H(X) = − ∑n i=1 δ(i^ −^ 1) log^ δ(i^ −^ 1) = 0.