Chapter 5 Markov Chains Lecture
Chapter 5 Markov Chains Lecture
ps1 ps 2 pss
• The steady-state probabilities are average probabilities that
the system will be in a certain state after a large number of
transition periods.
• This does not mean the system stays in one state.
p
j 1
ij 1
A C D
B
0.95 0.95 0 0.05 0
A
0.2 0.5 0 0.3
0.2 0.5 B
A B 0 0.2 0 0.8
C
0.05 0.2 0.3 0 0 1 0
D
0.8
C D
1
• Given that a person’s last cola purchase was Coke, there is a 90%
chance that his next cola purchase will also be Coke.
• If a person’s last cola purchase was Pepsi, there is an 80% chance
that his next cola purchase will also be Pepsi.
transition matrix:
C P
C
0.9 0.1
P
0.9 0.1
0.8
P 0 . 2 0. 8 coke pepsi
coke 0.2
pepsi
20
Markov Process
Coke vs. Pepsi Example (cont)
Given that a person is currently a Pepsi purchaser, what is the probability that he
will purchase Coke two purchases from now?
Pr[ Pepsi?Coke ] =
Pr[ PepsiCokeCoke ] + Pr[ Pepsi Pepsi Coke ] =
0.2 * 0.9 + 0.8 * 0.2 = 0.34
Pepsi ? ? Coke
21
Coke vs. Pepsi Example (cont)
New generation
State 1 2 3
Current 1 0.65 0.28 0.07
generation 2 0.15 0.67 0.18
3 0.12 0.36 0.52
• The symbol Pij will be used for the probability of
transition from state i to state j in one generation.
• For example, represents the probability that a person in
state 2 will have offspring in state 3; from the table
above.
P23 = 0.18; P31= 0.12; P22= 0.67 and so on
• The information from Table 1 can be written in other
forms.
• The next figure is a transition diagram that shows the
three states and the probabilities of going from one state
to another.
• Transition Diagram
0.65
1
0.28
0.07
0.12
0.15
0.36
2
3
0.18
0.67
0.52
A transition matrix has several features:
• P.P = P2
New generation
State 1 2 3
Current 1 0.47 0.39 0.13
generation
2 0.22 0.56 0.22
3 0.19 0.46 0.34
• The entry in row 3, column 2 of P2 gives the probability
that a person in state 3 will have a grandchild in state 2;
that is, that an upper-class person will have a middle-class
grandchild.
• This number, 0.46, is the result (rounded to two decimal
places) found through using the tree diagram.
• Row 1, column 3 of P*P= P2 gives the number 0.13, the
probability that a person in state 1 will have a grandchild
in state 3; that is, that a lower-class person will have an
upper-class grandchild. How would the entry 0.47 be
interpreted?
Thank you