Вы находитесь на странице: 1из 4

MTH6141 Random Processes, Spring 2012 Solutions to Exercise Sheet 2

1. (a) States 1 and 4 are absorbing (because p11 = p44 = 1). (b) To do this we use rst step analysis. Let T be the time of absorption. Dene ai = P(XT = 1 | X0 = i). The question asks us to nd a2 . Plainly a1 = 1 and a4 = 0. Now using rst step analysis (that is conditioning on the rst step the chain takes) we obtain the equations: 1 1 + a2 + 4 4 1 1 a3 = + a2 + 6 6 a2 = Solving these gives P(XT = 1) = a2 = 3 . 7 2. (a) Let the state space be S = {0, 1, 2, 3} where state i represents I have i you have (3 i). The transition probabilities are: p00 = p33 = 1, p12 = p23 = p, p10 = p21 = 1 p 1 a3 4 1 a3 . 6

with all other transitions having probability 0. The Markov chain with these transition probabilities and X0 = 1 describes the game. (b) Let T be the time of absorption. The event I end up with no money is equivalent to the event XT = 0. The event you end up with no money is equivalent to the event XT = 3. Let ai = P(XT = 0 | X0 = i), and bi = P(XT = 3 | X0 = i). Our task is to nd the p for which a1 = b1 . First, lets calculate a1 and b1 using rst step analysis: a1 = (1 p) + pa2 a2 = (1 p)a1 .

Solving these gives a1 =

1p . p2 p+1

Also,

b1 = pb2 b2 = p + (1 p)b1 .
p Solving these gives b1 = p2 . (You could also have worked out b1 p+1 by noting that since we are certainly absorbed eventually we must have b1 = 1 a1 ). Hence if a1 = b1 we have that.
2

p2 + p 1 = 0 . 1 5 p= . 2 Since p is a probability we take the positive solution 1 + 5 p= . 2 3. (a) State 4. (States 4 and 5 are absorbing (because p44 = p55 = 1).) (b) Let T be the time of absorption and dene ai = P(XT = 5 | X0 = i). By rst-step analysis we have a1 = a3 a +1 a + a2 = 2 3 2 6 3 a3 = 3 a. 4 2
1 6

This equation has solutions

. These are easily solved to give P(XT = 5 | X0 = 1) = a1 = 3 5 (c) Let ui = E(T | X0 = i). By rst step analysis we have u1 = 1 + u3 1 u +6 u3 u2 = 1 + 2 3 2 3 u3 = 1 + 4 u2 . These are easily solved to give E(T ) = u1 = 31 . 5 (d) Let V = |{n : 0 n T 1, Xn = 2}|. Let vi = E(V | X0 = i) be the expected number of visits to state 2 before absorption starting from state i. By rst step analysis we have v1 = v3 2 v2 = 1 + 3 v2 + 1 v 6 3 3 v3 = 4 v2 . These are easily solved to give E(V ) = v1 = 2
18 . 5

(e) Let w(1) = 0, w(2) = 5 and w(3) = 10. Your gain is


T 1

G=
i=0

w(Xi ).

Let gi = E(G | X0 = i) be your expected gain up to absorption starting from state i. By rst step analysis g1 = g3 2 g2 = 5 + 3 g2 + 1 g 6 3 3 g3 = 10 + 4 g2 . These are easily solved to give E(G) = g1 = 2. (The gain is negative, i.e., a loss.) (f) Noticing that the process spends exactly T 1 steps in states 2 and 3 and that V of them are in state 2 we have that G = 5V + 10(T 1 V ). By linearity of expectation E(G) = 5 E(V ) + 10 E(T ) 10 10 E(V ) = 15 E(V ) + 10 E(T ) 10. Putting in the numbers calculated in parts (c) and (d) we get E(G) = + 10 31 10 = 2 as before. 15 18 5 5 4. (a) For all ordered pairs ij with 1 i, j 6 take state ij to mean that the last roll was j and the previous roll was i. We set states 13, 22, 31 to be absorbing since if we reach one of these the process ends. For all other states ab we set P(Xt+1 = cd | Xt = ab) = 1/6 0 if b = c otherwise

Remark: we actually need to decide how to start the Markov chain. In fact it works if we set, say, 66 to be the start state. But a more natural solution would be to have additional states to denote the rst throw was i and another to serve as the starting state. (b) We only need to know whether the previous roll was 1, 2, 3 or something else to decide whether our next roll ends the process. So take states 0, 1, 2, 3 with state 0 meaning that the last roll was 4,5 or 6 and for i = 1, 2, 3 state i meaning that the last roll was i. Finally we take an absorbing state 4 to signify that the process ends. If the last roll was a

1 then the process will end if the next roll is a 3 so p14 = 1/6. Similarly p24 = p34 = 1/6. The other non-zero transition probabilities are p01 = p02 = p03 = p11 = p12 = p21 = p23 = p32 = p33 = 1/6 p10 = p20 = p30 = 1/2. If we set X0 = 0 then the number of rolls the process lasts is equal to the time of absorption. (c) If ui = E(T | X0 = i) we have that 1 1 1 u0 = 1 + u1 + u2 + u3 6 6 6 1 1 1 u1 = 1 + u1 + u2 + u0 6 6 2 1 1 1 u2 = 1 + u1 + u3 + u0 6 6 2 1 1 1 u3 = 1 + u2 + u3 + u0 6 6 2 Solving these gives E(T ) = u0 = 14 5. The simplest example is probably to take two absorbing states and a pair of states which are not absorbing which the chain can never leave. For instance take S = {0, 1, 2, 3, 4}, X0 = 0 and transition matrix 0 1/3 1/3 1/3 0 0 1 0 0 0 0 0 1 0 0 P = 0 0 0 1/2 1/2 0 0 0 1/2 1/2 (Draw the transition graph to see what is going on). The rst step analysis equations for ai = P(XT = 1|X0 = i) are a1 = 1, a2 = 0 and 1 1 a0 = + a3 3 3 1 1 a3 = a3 + a4 2 2 1 1 a4 = a3 + a4 2 2 These do not have a unique solution; we could set a3 = a4 to be anything. Of course in this example since it is impossible to get from state 3 or state 4 to state 1 we would put a3 = a4 = 0 and get a0 = 1/3. You will get similar behaviour to this whatever example you found. 4

Вам также может понравиться