Docsity

4 Solved Problems on Applied Stochastic Processes - Midterm Exam | MATH 564, Exams of Stochastic Processes

Toggle sidebar
bg1
Applied Stochastic Processes – Math 564
Fall 2010
Midterm Solutions
1. For each of the following statements, either give an example of a Markov chain with these properties
(and prove it has the property) or prove that a Markov chain cannot exist with these properties.
(a) finite Markov chain with multiple invariant distributions
(b) irreducible Markov chain with two invariant distributions
(c) irreducible Markov chain with no invariant distributions
(d) Markov chain with a unique invariant distribution
(e) Markov chain with five states and with invariant distribution π= (0,0,0,1/2,1/2).
Solution:
(a) This is possible, but of course we need the MC to not be irreducible. One specific example is the
four state MC with I={1,2,3,4}and p12 =p21 =p34 =p44 = 1/2 and all other pij = 0 for
i6=j. This gives a transition matrix of
P=
1/2 1/2 0 0
1/2 1/2 0 0
0 0 1/2 1/2
0 0 1/2 1/2
,
and we see that both π1= (1/2,1/2,0,0) and π2= (0,0,1/2,1/2) are invariant distributions (as
is any convex combination of the two).
(b) Not possible; as we have proved in class, any irreducible MC has at most one invariant distribution.
(c) Possible, for example consider the random walk on Zwith pi,i+1 =pi,i−1= 1/2 for all i.
(d) The Markov chain with transition matrix
P=1−α α
β1−β
and 0 < α, β < 1 has a unique invariant distribution. We know it has one since we can solve for
it; we know this must be unique since the chain is irreducible.
(e) Consider the Markov chain with transition matrix
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0001/2 1/2
0001/2 1/2
.
2. Consider the Markov chain given by
'&%$
!"#
2
1/2
>
>
>
>
>
>
>
'&%$
!"#
1
p
>
>
>
>
>
>
>
1−p@@
'&%$
!"#
4
'&%$
!"#
3
q
OO
1−q
@@
1
pf3
pf4

Partial preview of the text

Download 4 Solved Problems on Applied Stochastic Processes - Midterm Exam | MATH 564 and more Exams Stochastic Processes in PDF only on Docsity!

Applied Stochastic Processes – Math 564

Fall 2010

Midterm Solutions

  1. For each of the following statements, either give an example of a Markov chain with these properties (and prove it has the property) or prove that a Markov chain cannot exist with these properties.

(a) finite Markov chain with multiple invariant distributions (b) irreducible Markov chain with two invariant distributions (c) irreducible Markov chain with no invariant distributions (d) Markov chain with a unique invariant distribution (e) Markov chain with five states and with invariant distribution π = (0, 0 , 0 , 1 / 2 , 1 /2).

Solution:

(a) This is possible, but of course we need the MC to not be irreducible. One specific example is the four state MC with I = { 1 , 2 , 3 , 4 } and p 12 = p 21 = p 34 = p 44 = 1/2 and all other pij = 0 for i 6 = j. This gives a transition matrix of

P =

and we see that both π 1 = (1/ 2 , 1 / 2 , 0 , 0) and π 2 = (0, 0 , 1 / 2 , 1 /2) are invariant distributions (as is any convex combination of the two). (b) Not possible; as we have proved in class, any irreducible MC has at most one invariant distribution. (c) Possible, for example consider the random walk on Z with pi,i+1 = pi,i− 1 = 1/2 for all i. (d) The Markov chain with transition matrix

P =

1 − α α β 1 − β

and 0 < α, β < 1 has a unique invariant distribution. We know it has one since we can solve for it; we know this must be unique since the chain is irreducible. (e) Consider the Markov chain with transition matrix       0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 / 2 1 / 2 0 0 0 1 / 2 1 / 2

  1. Consider the Markov chain given by '&%$!"# 2 1 / 2 >  

p  

1 −p

q

O O

1 −q

^ @^ @

where we assume 0 ≤ p, q ≤ 1. First prove that P 1 (T 4 < ∞) = 1, i.e. that we must reach 4 if we start at 1. Determine which points are recurrent and which points are transient.

We are posed with the following problem: we want to start in state 1 and get to state 4 as quickly as possible, and q is fixed. How do we choose p so as to minimize the average time to reach 4?

Solution: There are several ways to prove P 1 (T 4 < ∞) = 1. One way in particular is to notice that after two steps of the Markov chain, we must be at either 2 or 4, i.e.

P(X 2 ∈ { 2 , 4 }) = 1.

Since state 4 is absorbing, P 4 (T 4 < ∞) = 1 (in fact, P 4 (T 4 = 1) = 1). Now we simply need to show that P 2 (T 4 < ∞) = 1. However, notice that

P 2 (T 4 ≥ n) = P 2 (X 0 = X 1 = X 2 = · · · = Xn = 2) = 2−n,

so P 2 (T 4 = ∞) = lim n→∞ P 2 (T 4 ≥ n) = 0.

By the Markov property, this proves that Pi(T 4 < ∞) = 1 for all i; in particular, choose i = 1.

A completely different approach is to solve the system for h{^4 }^ and show h{ 14 }= 1. The previous argument also shows that every state but 4 is transient, but of course 4 is recurrent.

To obtain the mean time to hit 4, we need to form the system for k, i.e.

k 4 = 0, k 3 = 1 + (1 − q)k 4 + qk 2 ,

k 2 = 1 +

k 4 +

k 2 ,

k 1 = 1 + (1 − p)k 2 + pk 3.

The third equation gives k 2 = 2 directly. From this we have k 3 = 1 + 2q, and then

k 1 = 1 + 2(1 − p) + (1 + 2q)p = 3 + (2q − 1)p.

Once q is chosen, this is a linear function of p and thus has no critical points in [0, 1], so it must take its maximum and minimum on the boundaries. Clearly which boundary is higher depends on the slope of the line, so we take p = 0 if the slope is positive (2q − 1 > 0) and p = 0 if it is negative (2q − 1 < 0). Said differently, the optimal value of p is given by

p∗(q) :=

1 , q < 1 / 2 , 0 , q > 1 / 2.

In the boundary case q = 1/2, we can of course choose any p to get the same time. And thus we have the optimal time as

k∗ 1 (p, q) =

2 q + 2, q < 1 / 2 , 3 , q ≥ 1 / 2.

The interpretation is clear: if q < 1 /2, then 3 gets to 4 more quickly than 2 gets to 4 (since 1−q > 1 /2), so our best bet is getting to 3 as quickly as possible. When q > 1 /2, the roles are reversed.

and therefore P 0 (T 0 = ∞) = lim n→∞ P 0 (T 0 ≥ n) = 0,

so P 0 (T 0 < ∞) = 1 and 0 is recurrent.