Pset3 Solutions
Pset3 Solutions
Solutions
Exercise 11 (K&T 2.5 p.105) A Markov chain Xn ∈ {0, 1, 2}, starting from X0 = 0, has
the transition probability matrix
0.7 0.2 0.1
P = 0.3 0.5 0.2
0 0 1
Let T = inf{n ≥ 0| Xn = 2} be the first time that the process reaches state 2, where it is
absorbed. If in some experiment we observed such a process and noted that absorption
has not taken place yet, we might be interested in the conditional probability that the
process is in state 0 (or 1), given that absorption has not taken place. Determine
P [ X3 = 0 | T > 3 ] .
We first calculate
0.457 0.23 0.313
P3 = 0.345 0.227 0.428 .
0 0 1
Since T > 3, we know that X3 = 0 or X3 = 1. We are given that X0 = 0. Thus,
(3)
P [ X3 = 0 ] p .457 457
P [ X3 = 0 | T > 3 ] = = (3) 00 (3) = = .
P [ X3 = 0 ] + P [ X3 = 1 ] p00 + p01 .457 + .23 687
1
Exercise 12 (K&T 3.8 p.115) Two urns A and B contain a total of n balls. Assume that
at time t there were exactly k balls in A. At time t + 1 an urn is selected at random in
proportion to its content (i.e. A is selected with probability nk and B with probability
n−k
n ). Then a ball is selected from A with probability p and from B with probability
q = 1 − p and placed in the previously chosen urn. Determine the transition probability
matrix for the Markov chain Xt = number of balls in urn A at time t.
1. If A is picked to receive and A is picked to give, Xt+1 = k. This occurs with proba-
bility nk · p.
4. If B is picked to receive and B is picked to give, Xt+1 = k. This occurs with proba-
bility n− k
n · q.
Clearly, k = 0 is an absorbing state since you select A to gain a ball with probability
0; likewise, k = n is an absorbing state since you always select A to gain a ball, but the
ball comes from A, so there is no change. From the above probabilities, we have that
kq (n−k) p
P[ Xt+1 = k + 1| Xt = k] = n . Also, P[ Xt+1 = k + 1| Xt = k − 1] = n . Finally,
kp (n−k)q kp+(n−k)q
P [ X t +1 = k | X t = k ] = n + n = n . Putting this into a matrix gives:
1 0 0 0 0 0 ··· 0
(n−k) p kp+(n−k)q kq
n n n 0 0 0 ··· 0
(n−k) p kp+(n−k)q kq
0 n n n 0 0 ··· 0
(n−k) p kp+(n−k)q
kq
0 0 n n n 0 ··· 0
P= .
(n−k) p kp+(n−k)q kq
0 0 0 n n n ··· 0
.. .. .. .. .. .. .. ..
. . . . . . . .
(n−k) p kp+(n−k)q kq
0 0 0 0 0 n n n
0 0 0 0 0 0 0 1
2
Exercise 13 (K&T 4.4 p.131) Consider the Markov chain Xn ∈ {0, 1, 2, 3} starting with
state X0 = 1 and with the following transition probability matrix:
1 0 0 0
0.1 0.2 0.5 0.2
P= 0.1 0.2 0.6 0.1 .
Because 0 is an absorbing state, the process will eventually end up in state 0. What we
want to know is whether or not the process visits state 2 before that point. To do this, we
will stop the process if it visits state 2 by pretending that state 2 is an absorbing state:
1 0 0 0
0.1 0.2 0.5 0.2
P∗ = 0
.
0 1 0
0.2 0.2 0.3 0.3
Then, after infinitely long time, the system will either be absorbed into state 0 or state 2.
The desired probability that the process never visits state 2 is the probability that this new
process is absorbed into state 0. We compute this using a first step analysis.
11
u1 = .
52
3
Exercise 14 (K&T 4.15 p.134) A simplified model for the spread of a rumor goes this
way: there are N = 5 people in a group of friends, of which some have heard the rumor
and others have not. During any single period of time two people are selected at random
from the group and assumed to interact. The selection is such that an encounter between
any pair of friend is just as likely as any other pair. If one of these persons has heard the
rumor and the other has not, then with probability α = 0.1 the rumor is transmitted. Let
Xn be the number of friends who have heard the rumor at time n. Assuming that the
process begins at time 0 with a single person knowing the rumor, what is the mean time
that it takes for everyone to hear it?
If k = 1, 2, 3, 4 people know the rumor, and an interaction occurs, the number of people
who will know the rumor will be either k or k + 1. The only way that a new person will
learn the rumor is if, of the two people chosen to interact, one knows the rumor and one
does not, and the person who knows the rumor transmits it (α = 0.1 probability). Since
there are k people who know the rumor and 5 − k people who do not, the number of
ways to choose such a pair is k (5 − k ), and there are a total of (52) = 10 pairs. Thus, this
probability is precisely
k (5 − k ) k (5 − k )
P [ X n +1 = k + 1 | X n = k ] = · (0.1) =
10 100
k (5− k )
for k = 1, 2, 3, 4. Then, P[ Xn+1 = k + 1| Xn = k ] = 1 − 100 . We know that k = 5 is an
absorbing state, since if everyone knows the rumor, no more people can learn it. Thus,
we have the transition probability matrix
24 1
25 25 0 0 0
0 47 3 0 0
50 50
P= 47 3
0 0 50 50 0 .
0 0 0 24 1
25 25
0 0 0 0 1
We then calculate
24 1 1 1
25 − 25
1 0 0 0 25 25 0 0 0 0
47 3 3 3
0 1 0 − 0
0
50 50 0 0
50 − 50 0
I−Q = 47 3 =
3 3
.
0 0 1 0 0 0 50 50 0 0 50 − 50
0 0 0 1 24 1
0 0 0 25 0 0 0 25
Since we begin in state 1 (one person knows the rumor), the expected time until ab-
sorption (when everyone has heard the rumor) is the sum of the elements in row 1 of
4
( I − Q ) −1 :
50 50 250
25 + + + 25 = .
3 3 3
Remark: We could also solve this by considering the first step analysis equations
v1 = 1 + P11 v1 + P12 v2
v2 = 1 + P22 v2 + P23 v3
v3 = 1 + P33 v3 + P34 v4
v4 = 1 + P44 v4 + P45 v5
where vi = E[ T | X0 = i ] where T = min{n ≥ 0| Xn = 5}. Noting that v5 = 0, we can
solve this system to obtain v1 = 250
3 .
5
Exercise 15 (K&T 4.17 p.134) The damage Xn ∈ {0, 1, 2} of a system subjected to wear
is a Markov chain with transition probability matrix
0.7 0.3 0
P = 0 0.6 0.4 .
0 0 1
The system starts in state 0 and it fails when it first reaches state 2. Let
T = min{n ≥ 0| Xn = 2}
u ( s ) = E[ s T ]