Textbook
Textbook
Lecture 19
Long Range Predictions with Markov Chains
1
© m j winter, 2002
To 0.2
1 2 1 2
1 0.8 0.2 0.8 0.4 0.6
From
2 0.4 0.6
.
from state 2
2
to state 1
1
Markov System (Chain)
If p is the initial
probability matrix, then
•pT is the probability
matrix after one step
2
(Jaz) probability (distribution) after n steps
Steady State
LT = L.
3
Systems with non-unique solutions
Example 1 Example 2
in matrix form
3x + y = 5
AX = X
6x + 2y = 10
Singular Matrix
4
A closer look at this singular matrix
Let L = [ x y ] ; know x + y = 1
(0.8 − 1) x + 0.4 y = 0
0.2 x + (0.6 − 1) y = 0
Then LT=L becomes
.8 .2
[x y] = [ x y] −0.2 x + 0.4 y = 0
.4 .6
0.2 x − 0.4 y = 0
or
0.8x + 0.4y = x
This is really only one equation.
0.2x + 0.6y = y
Use the fact that x + y = 1
10
5
Solving for L
The system
L is sometimes called the (a)
x+y=1 steady-state probability matrix.
2x - 4y = 0
Technique: we used the fact that P
becomes
is a probability matrix to replace
x+y=1 one of the equations.
-6y = -2
or
x = 2/3; y = 1/3
L = [ 2/3 1/3 ] = [ .6666… .3333…. ]
11
Bookbuying Problem
12
6
Transition Diagram & Matrix
States
1 History
2 Biography
0 .50 .50
3 Mystery
.75 0 .25
1 0 0
0 .75 0
1 2
.50
1.0 .25
.50
3
0
13
Solution - by solving LT = L
L = [x y z] Calculate solution:
LT = L
use calculator
0 .50 .50
[x y z] .75 0 .25 = [x y z]
x = .47… History
1 0 0 y = .23… Biography
z = .29… Mystery
-1x +.75y + 1z = 0
.50x - 1y + 0z = 0
.5x +.25y -1z = 0
x + y + z =1
14
7
Long Term Transition Matrix
Assume
We can use T to find the
(1) that some power of the steady-state probability
transition matrix T has no zero
entries matrix.
(2) The powers of T approach a
fixed matrix T.
T is called the
steady-state transition matrix
or the
long-term transition matrix.
15
8
Solution- bookbuying - by taking powers of T
17