Lecture11 Handout
Lecture11 Handout
wi4525TU
Monte Carlo Simulation and Stochastic Processes
L.E. Meester
1/ 37
Definition Transition probabilities Limit behavior Wrap-up
2/ 37
Definition Transition probabilities Limit behavior Wrap-up
Today’s program
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
3 Limiting behavior of Markov chains
Communicating classes
Transience and recurrence
Periodicity
The limit theorem
Implications (for the repair shop analysis)
4/ 37
Definition Transition probabilities Limit behavior Wrap-up
X = {Xn : n = 0, 1, 2, . . .}:
a stochastic process with finite or countable state space S.
Default assumption: states labeled so that S = {0, 1, 2, . . .}.
Markov chain
If, for any state sequence i0 , . . . , in−1 , any i, j, and any n ≥ 0,
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
6/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
Transition probabilities
pij = P(Xn+1 = j | Xn = i)
7/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
A banker walks from her home to the bank in the morning; and in
the afternoon she walks back. She owns 3 umbrellas. Upon leaving
(her home or the bank) she takes an umbrella with her whenever it
rains, if one is available.
Suppose, on every departure instant, independent of what happens
on other departure instances, the probability of rain is p = 1/3.
Let Xn be the number of umbrellas at home early morning of day n.
Exercise:
1 Suppose Xn = 1. What are the possible values of Xn+1 and
their probabilities? Hint: draw a tree.
2 Repeat for Xn = i and the other values of i.
3 Is {Xn : n ≥ 0} a Markov chain?
8/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
10/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
11/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
12/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
X
P(Xn+2 = j | Xn = i ) = P(Xn+2 = j , Xn+1 = k | Xn = i ).
| {z } | {z } | {z } | {z } | {z }
A C k∈S A Bk C
LTP
X
P(Xn+2 = j | Xn = i) = P(Xn+2 = j, Xn+1 = k | Xn = i)
k∈S
X
= P(Xn+1 = k | Xn = i) · P(Xn+2 = j | Xn+1 = k)
k∈S
X
= pik pkj .
k∈S
13/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
P (2) = P · P = P 2 .
14/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
15/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
16/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
N.B. As for ℓ = 2, this can also be shown from the LTP by conditioning on Xℓ , and
then proceeding as with ℓ = 2;
m
X
P(Xn+ℓ = j | X0 = i) = P(Xn+ℓ = j, Xℓ = k | X0 = i).
k=0
17/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
18/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
(n)
Equation (3) can be written as P(Xn = j) = m
P
k=0 αk Pkj : the
vector-matrix product α · P n represents the distribution of Xn .
19/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
That of X2 :
0.5185 0.4074 0.0741 0
2
0.2716 0.4321 0.2469 0.0494
α · P = (0, 0, 0, 1)
0.0494 0.2469 0.4074
0.2963
0 0.0494 0.2963 0.6543
= (0, 0.0494, 0.2963, 0.6543).
20/ 37
Definition Transition probabilities Limit behavior Wrap-up Example 2-step Chapman-Kolmogorov Initial distribution
Wow!: all the rows are remarkably close to the probability vector
2 3 3 3
( 11 , 11 , 11 , 11 ) = (0.1818, 0.2727, 0.2727, 0.2727).
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
22/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
23/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
24/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
Example 1:
S = {0, 1, 2, 3} and
0.9 0 0.1 0
P1 = 0.6 0 0.4 0 0 1
0 0.5 0 0.5 .
0 0.3 0 0.7
Definitions
(n)
1 State j is called accessible from state i if pij > 0 for some n.
Notation: i ⇝ j.
2 States i and j are said to communicate if i ⇝ j and j ⇝ i.
3 A subset of S of which all members communicate with
eachother is called a communicating class.
4 A Markov chain is called irreducible if it has a single
communicating class: all states communicate with eachother.
Notes:
(m)
Note that i ⇝ j and j ⇝ k imply i ⇝ k: if pij > 0 and
(n) (n+m)
pjk > 0, then pik > 0.
The state space partitions into communicating classes.
26/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
27/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
Example 2
Exercise:
Draw the transition diagram.
Determine the communicating classes.
For each i find or guess the return probability
28/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
30/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
Example 3
1 1
0 2
0 2
1 1
0 0
P3 = 0 2
1
2
0 1
2 2
1 1
2
0 2
0
Exercise:
Draw a transition diagram. Check that the chain is irreducible.
In how many steps it is feasible to return to 2 when X0 = 2?
The same for the other states.
For every i ∈ S it is only possible to return to i after an even
number of steps. The chain is periodic with period 2.
Replace first row by ( 13 , 13 , 0, 13 ) and repeat.
Then returns to 2 are possible after 2, 4, 5, 6, . . . steps; period is 1.
31/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
Periodicity—formal definition
32/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
2 Transition probabilities
Example: extracting a Markov chain from a description
Two-step transition probabilities
The Chapman-Kolmogorov equations
Initial distribution and the distribution of Xn
33/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
Limit theorem
π = πP, π0 + · · · + πm = 1.
Related results
i.e., the long term average cost per unit time equals the expected
cost under the stationary distribution.
35/ 37
Definition Transition probabilities Limit behavior Wrap-up Irreducibility Recurrence Periodicity Limit Implications
where
m
X
c(i) = E [C (X0 , X1 ) | X0 = i] = pij C (i, j).
j=0
i.e., the long term average cost per unit time equals the expected
cost under the stationary distribution.
36/ 37
Definition Transition probabilities Limit behavior Wrap-up
37/ 37