Docsity

Probability and Stochastic Processes Assignment 7: Conditional Probability and Expectation, Assignments of Probability and Statistics

Toggle sidebar
bg1
ECE 541 Probability and Stochastic Processes; Fall 2008
Assignment 7; Due date: Thursday, Nov. 6, 2008
Text problems: Chapter 3: 22–24, 28; Chapter 4: 2, 6, 23, 26, 30(a); Chapter 5: 11, 14, 17;
Chapter 7: 26, 27, 34
3-22: We first write for m≥0, P{X=k|Z=m}=P{X=k, Z =m}/P{Z=m}. But
{X=k, Z =m}={X=k, X +Y=m}={X=k, Y =m−X}={X=k, Y =m−k}, and by
the independence of Xand Y,P{X=k, Z =m}=P{Y=m−k}P{X=k}=³µm−ke−µI{i:i≥0}(m−
k)/(m−k)!´³λke−λI{i:i≥0}(k)/(k)!´. From example 3.18, P{Z=m}= (µ+λ)me−(µ+λ)I{i:i≥0}(m)/m!.
And, for m≥0,
P{X=k|Z=m}=³µm−ke−µI{i:i≥0}(m−k)/(m−k)!´³λke−λI{i:i≥0}(k)/k!´
(µ+λ)me−(µ+λ)/m!
=Ãm
k!(µ
µ+λ)m−k(λ
µ+λ)kI{i:i≥0}(m−k).
Interestingly, conditional on Z=m,Xis a binomial random variable with success probability λ
µ+λ
and size m. As such, its mean is the success parameter multiplied by the size. More explicitly, we write
E[X|Z=m] = ∞
X
k=−∞
kP{X=k|Z=m}
=
m
X
k=1
kÃm
k!(µ
µ+λ)m−k(λ
µ+λ)k
=
m−1
X
k=0
mλ
µ+λÃm−1
k!(µ
µ+λ)(m−1)−k(λ
µ+λ)k
=mλ
µ+λ
m−1
X
k=0 Ãm−1
k!(µ
µ+λ)(m−1)−k(λ
µ+λ)k
=mλ
µ+λ,
where the last equality follows from the fact Pn
k=0 pk(1 −p)n−k= 1 for any p∈[0,1]. (Prove this.)
Similarly, we can calculate E[Y|Z=m] to be mµ
µ+λ.
Finally, note that if Xand Ywere identically distributed, then it is easy to prove that E[X|Z] =
E[Y|Z] a.s. without calculating these conditional means directly but instead by verifying the 2 defining
properties of conditional expectations. Moreover, we can write E[Y|Z] = E[Z−X|Z] = Z−E[X|Z],
which with E[X|Z] = E[Y|Z] together imply E[Y|Z]=0.5Z. This is in agreement with the earlier
solution if we assume µ=λ. Thus, the properties of conditional expectation (as a random variable)
can come very handy in simplifying certain problems.
3-23: The problem statement implies P{Y=k|X=i}=¡n
k¢pk
i(1 −pi)n−kfor k∈ {0, . . . , n}and
zero otherwise. So, P{Y > 2|X=i}= 1 −(1 −pi)n−npi(1 −pi)n−1−0.5n(n−1)p2
i(1 −pi)n−2.
3-24: The problem statement implies P{X=k|Y=i}=λk
ie−λi/k! for k∈ {0,1, . . .}. So,
P{X > 2|X=j}= 1 −e−λi−e−λiλi−e−λiλ2
i/2.
1
pf3

Partial preview of the text

Download Probability and Stochastic Processes Assignment 7: Conditional Probability and Expectation and more Assignments Probability and Statistics in PDF only on Docsity!

ECE 541 Probability and Stochastic Processes; Fall 2008 Assignment 7; Due date: Thursday, Nov. 6, 2008

Text problems: Chapter 3: 22–24, 28; Chapter 4: 2, 6, 23, 26, 30(a); Chapter 5: 11, 14, 17; Chapter 7: 26, 27, 34

3-22: We first write for m ≥ 0, P{X = k|Z = m} = P{X = k, Z = m}/P{Z = m}. But {X = k, Z = m} = {X = k, X + Y = m} = {X = k, Y = m − X} = {X = k, Y = m − k}, and by

the independence of X and Y , P{X = k, Z = m} = P{Y = m − k}P{X = k} =

( μm−ke−μI{i:i≥ 0 }(m −

k)/(m − k)!

)( λke−λI{i:i≥ 0 }(k)/(k)!

)

. From example 3.18, P{Z = m} = (μ + λ)me−(μ+λ)I{i:i≥ 0 }(m)/m!. And, for m ≥ 0,

P{X = k|Z = m} =

( μm−ke−μI{i:i≥ 0 }(m − k)/(m − k)!

)( λke−λI{i:i≥ 0 }(k)/k!

)

(μ + λ)me−(μ+λ)/m!

=

( m k

) ( μ μ + λ )m−k( λ μ + λ )kI{i:i≥ 0 }(m − k).

Interestingly, conditional on Z = m, X is a binomial random variable with success probability (^) μ+λλ and size m. As such, its mean is the success parameter multiplied by the size. More explicitly, we write

E[X|Z = m] =

∑^ ∞

k=−∞

kP{X = k|Z = m}

∑^ m

k=

k

( m k

) ( μ μ + λ

)m−k( λ μ + λ

)k

m∑− 1

k=

m λ μ + λ

( m − 1 k

) ( μ μ + λ

)(m−1)−k( λ μ + λ

)k

= m

λ μ + λ

m∑− 1

k=

( m − 1 k

) (

μ μ + λ )(m−1)−k(

λ μ + λ )k

= m λ μ + λ

where the last equality follows from the fact

∑n k=0 p k(1 − p)n−k (^) = 1 for any p ∈ [0, 1]. (Prove this.) Similarly, we can calculate E[Y |Z = m] to be m (^) μ+μλ. Finally, note that if X and Y were identically distributed, then it is easy to prove that E[X|Z] = E[Y |Z] a.s. without calculating these conditional means directly but instead by verifying the 2 defining properties of conditional expectations. Moreover, we can write E[Y |Z] = E[Z − X|Z] = Z − E[X|Z], which with E[X|Z] = E[Y |Z] together imply E[Y |Z] = 0. 5 Z. This is in agreement with the earlier solution if we assume μ = λ. Thus, the properties of conditional expectation (as a random variable) can come very handy in simplifying certain problems.

3-23: The problem statement implies P{Y = k|X = i} =

(n k

) pki (1 − pi)n−k^ for k ∈ { 0 ,... , n} and zero otherwise. So, P{Y > 2 |X = i} = 1 − (1 − pi)n^ − npi(1 − pi)n−^1 − 0. 5 n(n − 1)p^2 i (1 − pi)n−^2.

3-24: The problem statement implies P{X = k|Y = i} = λki e−λi^ /k! for k ∈ { 0 , 1 ,.. .}. So, P{X > 2 |X = j} = 1 − e−λi^ − e−λi^ λi − e−λi^ λ^2 i /2.

3-28: Let X be a { 0 , 1 }-valued random variable representing the sent message. It is given that for k = 0, 1 , 2 ,.. ., P{Y = k|X = 0} = p(1 − p)k−^1 and P{Y = k|X = 1} = q(1 − q)k−^1. It is also known that P{X = 0} = P{X = 1} = 0.5. What is needed is P{X = 1|Y = j}. From Bayes rule and the law of total probability,

P{X = 1|Y = j} = P{Y = j|X = 1}P{X = 1} P{Y = j}

=

P{Y = j|X = 1}P{X = 1} P{Y = j|X = 0}P{X = 0} + P{Y = j|X = 1}P{X = 1}

which can be directly evaluated using the given information.

4-2: Note that for x ≥ 1, FX (x) =

∫ (^) x 1 (2/t

(^3) ) dt = 1 − 1 /x (^2). Set FX (x) = 0.5 to conclude that the

median of this Pareto random variable is

(^ 4-6:^ Let^ Y^ = max(^4 X^1 ,... , Xn).^ Note that^ {Y^ ≤^ y}^ =^ {X^1 ≤^ y,... , Xn^ ≤^ y}.^ So,^ FY^ (y) = FX 1 (y)

)n and P{Y > 2 } = 1 −

( FX 1 (2)

)n = 1 −

( 1 − e−λ

)n .

( Similarly, Let^ Z^ = min(^4 X^1 ,... , Xn). Note that^ {Z > z}^ =^ {X^1 > z,... , Xn^ > z}. So, 1^ −^ FZ^ (z) = 1 − FX 1 (z)

)n and P{Z > 2 } =

( 1 − FX 1 (2)

)n = e−nλ.

4-23: E[X] =

∫ (^) ∞ 1 t(2/t

(^3) ) dt = 2.

4-26: E[X^2 ] =

∫ (^) ∞ 1 t

(^2) (2/t (^3) ) dt ≥ 2 ∑∞ i=1 i − (^1) = ∞. Hence, E[X (^2) ] = ∞.

4-30(a): E[X] =

∫ (^) ∞ 0 t(te

−t^2 / (^2) ) dt = (t (^2) [−e−t^2 / (^2) ])|t=∞ t=0 +^

∫ (^) ∞ 0 (e

−t^2 / (^2) ) dt. The first term is zero. The

second term is

√ π/2.

5-11: FY (y) = P{X^2 ≤ y} = P{X ≤

y}+P{X ≥ −

y} =

∫ √y −∞ e −t^2 / (^2) /(√ 2 π) dt+∫^ ∞ −√y e −t^2 / (^2) /(√ 2 π) dt.

Now differentiate with respect to t to obtain fY.

5-14: From Problem 4-6, if Z = max(X, Y ), then FZ (z) = ([1 − e−λz^ ]u(z))^2. So, fZ (z) = 2 λe−λz^ (1 − e−λz^ )u(z). E[Z] = 2λ−^1 −

∫ (^) ∞ 0 2 λe

− 2 λz (^) dz = 2λ− (^1) − (2λ)− (^1) = 3/ 2 λ.

Problem 1. For 1 ≤ p < ∞, prove that convergence in Lp implies convergence in probability.

We apply Markov’s inequality to |Xn − X| with φ(·) = (·)p^ and obtain P{|Xn − X| > ≤} ≤ E[|Xn − X|p]/≤p. Thus, if E[|Xn − X|p] converges to 0 as n → ∞, so dose P{|Xn − X| > ≤}.

Problem 2. Let X 1 , X 2... , be an iid sequence with E[X 12 ] < ∞. For n ≥ 1, let ˆθn = n−^1

∑n i=1 Xi. Calculate the mean and variance of θˆn.

E[ θˆn] = E[n−^1

∑n i=1 Xi] =^ E[X^1 ] =^ θ. Next, E[ θˆn 2 ] = E[(n−^1

∑n i=1 Xi) (^2) ] = E[n− 2 ∑n j=1 Xj

∑n i=1 Xi] =^ n

− 1 E[X 2

1 ] +^ n − (^2) (n (^2) − n)E[X 1 ] (^2) =

n−^1 E[X 12 ] + (1 − n−^1 )E[X 1 ]^2 = n−^1 E[X 12 ] + (θ^2 − n−^1 θ^2 ). Hence, E[| θˆn − θ|^2 ] = E[ θˆn

2 ] − θ^2 = n−^1 var(X 1 ).

Problem 3. Continuing from the previous problem, show that θˆn converges to θ in the mean-square sense (or in L 2 ). Provide a practical example to which this result can be applied to.