Docsity

Characterizing Probabilities of Random Walks and Sequences - Prof. Majeed M. Hayat, Assignments of Probability and Statistics

Toggle sidebar
bg1
ECE 541 Probability and Stochastic Processes; Fall 2008
Assignment 6; Due date: Tuesday, Oct. 30, 2008
1. Suppose that you start with an initial fortune of x0dollars, and you bet one dollar each time. The
probability of winning each hand is p. You quit if you reach your goal of Ldollars or when you go broke.
Let Q(x0) denote that probability that you eventually win. We need to characterize this probability.
Next we give a more mathematical description of the problem.
Let Ω 4
=X∞
i=1Ωi, where for each i, Ωi={H, T }. Let Yi=I{ωi=H}be a {0,1}-valued random variable,
and define Yon X∞
i=1Ωias Y4
= (Y1, Y2, . . .). Finally, we define Pon Ω cylinders with measurable bases
(as done in the notes) by forming the product of the probabilities of the coordinates while enforcing
independence. For each (Ωi,Fi), define Pi{H}=pand q= 1 −p.
Now define your fortune at time n≥1 by
Xn=Xn−1+I{Yn=1}−I{Yn=0}
with the initial condition X0=x0≥0. Let L∈IN be given, and define T4
= inf{k:Xk= 0 or Xk=L}.
Finally, let Q(x0)4
=P{XT=L}.
a) Use conditional expectations to prove that
Q(x) = pQ(x+ 1) + (1 −p)Q(x−1), x = 1, . . . , L −1,(1)
with Q(0) = 0 and Q(L) = 1.
b) Solve the difference equation in (1) analytically.
c) let P(x0)4
=P{XT= 0}. Determine P(x) directly and show that P(x) + Q(x) = 1.
d) Use the above results to describe in which sense Xnis convergent and characterize its limit X.
2. Consider the following sequence:
Bn=ρBn−1+W(n), n > 0,0<|ρ|<1,
where the initial state B0is a random variable uniformly distributed in [0,32]. Assume that W(1), W (2), . . . ,
are iid, and let the constants µWand σ2
Wdenote the mean and variance of the sequence W(n), respec-
tively. Finally, let µB(n)4
=E[Bn] and σ2
B(n)4
= var(Bn).
a) Calculate µB(0) and σ2
B(0)
b) Find an expression for µB(n) that explicitly shows the dependence on µB(0) and µW. Show
that µB(n) is a constant if we select µW= (1 −ρ)µB(0). What is the constant mean µB?
c) Find an expression for σ2
B(n), for the case when µW= (1 −ρ)µB(0). Show that σ2
B(n) is a
constant if we select σ2
W= (1 −ρ2)σ2
B(0). What is the constant variance σ2
B.
d) Use Matlab to generate 100 realizations, each of length 1000, of the process Bnusing the
conditions µW= (1 −ρ)µB(0) and σ2
W= (1 −ρ2)σ2
B(0). Find the sample mean for each
realization of the process (i.e., for each of the 100 sequences), and plot five of such sample
means as a function of n. Assume that ρ= 0.8.
e) Now average the above 100 sample means to obtain an estimate of the true mean of the
process Bn. Plot it as a function of n. Is it a constant? Compare its value with the
theoretical mean µB.
f) Repeat the calculations to generate and sample estimate of the variance instead of the mean.
Plot the estimate of σ2
Bas a function of nand compare it to the theoretical variance σ2
B.
1

Partial preview of the text

Download Characterizing Probabilities of Random Walks and Sequences - Prof. Majeed M. Hayat and more Assignments Probability and Statistics in PDF only on Docsity!

ECE 541 Probability and Stochastic Processes; Fall 2008 Assignment 6; Due date: Tuesday, Oct. 30, 2008

  1. Suppose that you start with an initial fortune of x 0 dollars, and you bet one dollar each time. The probability of winning each hand is p. You quit if you reach your goal of L dollars or when you go broke. Let Q(x 0 ) denote that probability that you eventually win. We need to characterize this probability. Next we give a more mathematical description of the problem.

Let Ω =^4 X

∞ i=1Ωi, where for each^ i, Ωi^ =^ {H, T^ }. Let^ Yi^ =^ I{ωi=H}^ be a^ {^0 ,^1 }-valued random variable,

and define Y on X

∞ i=1Ωi^ as^ Y^

4 = (Y 1 , Y 2 ,.. .). Finally, we define P on Ω cylinders with measurable bases (as done in the notes) by forming the product of the probabilities of the coordinates while enforcing independence. For each (Ωi, Fi), define Pi{H} = p and q = 1 − p. Now define your fortune at time n ≥ 1 by

Xn = Xn− 1 + I{Yn=1} − I{Yn=0}

with the initial condition X 0 = x 0 ≥ 0. Let L ∈ IN be given, and define T = inf^4 {k : Xk = 0 or Xk = L}.

Finally, let Q(x 0 ) =^4 P{XT = L}.

a) Use conditional expectations to prove that

Q(x) = pQ(x + 1) + (1 − p)Q(x − 1), x = 1,... , L − 1 , (1)

with Q(0) = 0 and Q(L) = 1. b) Solve the difference equation in (1) analytically. c) let P (x 0 )

4 = P{XT = 0}. Determine P (x) directly and show that P (x) + Q(x) = 1. d) Use the above results to describe in which sense Xn is convergent and characterize its limit X.

  1. Consider the following sequence:

Bn = ρBn− 1 + W (n), n > 0 , 0 < |ρ| < 1 ,

where the initial state B 0 is a random variable uniformly distributed in [0, 32]. Assume that W (1), W (2),... , are iid, and let the constants μW and σ W^2 denote the mean and variance of the sequence W (n), respec-

tively. Finally, let μB (n)

4 = E[Bn] and σ B^2 (n)

4 = var(Bn). a) Calculate μB (0) and σ^2 B (0) b) Find an expression for μB (n) that explicitly shows the dependence on μB (0) and μW. Show that μB (n) is a constant if we select μW = (1 − ρ)μB (0). What is the constant mean μB? c) Find an expression for σ B^2 (n), for the case when μW = (1 − ρ)μB (0). Show that σ^2 B (n) is a constant if we select σ W^2 = (1 − ρ^2 )σ B^2 (0). What is the constant variance σ^2 B. d) Use Matlab to generate 100 realizations, each of length 1000, of the process Bn using the conditions μW = (1 − ρ)μB (0) and σ^2 W = (1 − ρ^2 )σ B^2 (0). Find the sample mean for each realization of the process (i.e., for each of the 100 sequences), and plot five of such sample means as a function of n. Assume that ρ = 0.8. e) Now average the above 100 sample means to obtain an estimate of the true mean of the process Bn. Plot it as a function of n. Is it a constant? Compare its value with the theoretical mean μB. f) Repeat the calculations to generate and sample estimate of the variance instead of the mean. Plot the estimate of σ B^2 as a function of n and compare it to the theoretical variance σ^2 B.