Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Processes: MGT-484
Introduction to Markov Chains
Examples:
• The daily closing price of a stock
• The yearly gross domestic product of a country
• The daily sales of a retail store
• The weekly temperature of lake Geneva
• The yearly rate of unemployment
• The number of hits of a website every minute
• etc.
Markov Chains
Put differently, the only part of the history of the process that affects
its future evolution is the current state.
Dynamics:1
(S − Dt+1 )+ if Xt ≤ s
Xt+1 =
(Xt − Dt+1 )+ if Xt > s
If the demands are independent, Xt+1 thus depends on the past
demands only through the current inventory level Xt .
s
t
If you want to know the distribution of the next state given the
current state, you gain no additional information if I tell you the
entire past history of the process.
P3(2,4)
1 2 3
X
P0(3,1)
t
0 1 2 3 4
Markov Chains: Formal Definition
Transition matrix: If Xt−1 = xt−1 , then Xt can take the values xt−1 or
xt−1 + 1 with probability 21 each. Thus,
1
2 if xt = xt−1 + 1,
1
P(Xt = xt |Xt−1 = xt−1 ) = if xt = xt−1 ,
2
0 otherwise.
We can write P as a matrix:
1 1
2 2 0 0 ···
0 1 1
0 · · ·
2 2
P = 0 0 1 1
· · ·
2 2
.. .. .. .. ..
. . . . .
Graphical Representation
Increase the state dimension: If we define Xt0 = (Xt , Xt−1 ) for all t,
then {Xt0 } is again a Markov chain!
State Space Explosion
This example shows that many (if not most) stochastic processes can
be converted to Markov chains if the state space is enlarged.
More generally:
pt = pt−1 P = pt−2 PP = · · · = γP t
The first row contains the numbers P(Xt = j|X0 = 0) for 0 ≤ j < ∞.
This is consistent with the binomial formula above.
Recipe for Computing Powers of P
Input: P ∈ RN×N diagonizable, t ∈ N; Output: P t .
Consider a virus with n > 1 possible strains. In each period, the virus
mutates with probability α, in which case it changes randomly to any
of the remaining n − 1 strains. What is P(Xt = i|X0 = i)?
1-α 1-α/(n-1)
Method 2: Use the previous ex- α
α
ample with β = n−1 :
strain i all other strains
α/(n-1)
t
1 n−1 n
=⇒ P(Xt = i|X0 = i) = + 1− α
n n n−1
A Trick for Computing P t