


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Markov Chain lecture notes Math331, Fall 2008 Instructor: David Anderson
Markov chains are probability models for trials of random experiments of great variety, and their defining characteristic is that they allow us to consider situations where the future evolution of the process of interest depends on where it is at present, but not on how it got there. This contrasts with the independent trials models we have considered in the law of large numbers and the central limit theorem. For independent trial processes the possible outcomes of each trial of the experiment are the same and occur with the same probability. Furthermore, what happens on any trial is not affected by what happens on any other trial. With Markov chain models we can generalize this to the extent that we allow the future to depend on the present. We formulate this notion precisely in the following definition.
Definition 1. Let {Xn : n ≥ 0 } be a sequence of random variables with values in a finite or countably infinite set S. Furthermore, assume
(∗) P (Xn+1 = y | X 0 = x 0 , X 1 = x 1 ,... , Xn− 1 = xn− 1 , Xn = x) = P (Xn+1 = y|Xn = x) = p(x, y)
for all n ≥ 0 and all states x, y, x 0 , x 1 ,... , xn− 1 in S. Then {Xn | n ≥ 0 } is called a Markov chain with state space S and transition matrix P = [p(x, y)]. The property (∗) is called the Markov property.
The initial distribution for the Markov chain is the sequence of probabilities
π(x) = P {X 0 = x}, x ∈ S,
or, in vector form, π = [π(x) | x ∈ S].
Remarks:
(i) (∗) can be interpreted as stating that the conditional distribution of the random future state Xn+1 depends only on the present state Xn and is independent of the past states X 0 ,... , Xn− 1.
(ii) One can think of a Markov chain as a model for jumping from state to state of S and all jumps are governed by the jump probabilities p(i, j). A frog jumping from one pad to the next in a pond where the pads consist of the states of S and the jumps are taken according to the transition probabilities is a good picture to keep in mind.
(iii) Observe that p(x, y) ≥ 0 for all x, y ∈ S and ∑
y∈S
p(x, y) = 1.
(iv) If S has r elements, we will frequently denote S by { 1 , 2 ,... , r} or { 0 , 1 , ..., r − 1 }. This appears in the notation used, sometimes without explicit mention. Hence keep this in mind as you read.
Example 1. A colleague travels between four coffee shops located as follows:
Assume he/she chooses among the paths departing from a shop by treating each path as equally likely. If we model our colleague’s journey as a Markov chain, then a suitable state space would be S = { 1 , 2 , 3 , 4 } and the transition matrix is easily seen to be
Suppose this person has an initial distribution among the shops as follows:
π(x) = P (X 0 = x 0 ) = 1/ 4 , for x 0 ∈ { 1 , 2 , 3 , 4 }
or, in vector form,
π =
Show that
P (X 0 = 1, X 1 = 2, X 2 = 4, X 3 = 3) = π(1)p(1, 2)p(2, 4)p(4, 3) = 1/ 24.
Using conditioning and the Markov property we see that
P (X 0 = 1, X 1 = 2, X 2 = 4, X 3 = 3) = P (X 3 = 3 | X 0 = 1, X 1 = 2, X 2 = 4)P (X 0 = 1, X 1 = 2, X 2 = 4)
= p(4, 3)P (X 2 = 4|X 0 = 1, X 1 = 2)P (X 0 = 1, X 1 = 2) = p(4, 3)p(2, 4)P (X 1 = 2|X 0 = 1)P (X 0 = 1) = p(4, 3)p(2, 4)p(1, 2)π(1) = π(1)p(1, 2)p(2, 4)p(4, 3) = (1/4)(1)(1/3)(1/2) = 1/ 24.
Using similar reasoning, we have the general fact that
P (X 0 = x 0 , X 1 = x 1 ,... , Xn− 1 = xn− 1 , Xn = xn) = π(x 0 )p(x 0 , x 1 )p(x 1 , x 2 ) · · · p(xn− 1 , xn).
If π = [π(1),... , π(r)] with π(x) = 1 and π(y) = 0 if y 6 = x, then
πP n^ = [pn(x, 1),... , pn(x, r)]
where pn(x, y) = P (Xn = y|X 0 = x). But note that because of the special form of π, πP n^ is simply the xth^ row of P n, and so pn(x, y) is the xyth^ entry of P n.
Exercises: