Академический Документы
Профессиональный Документы
Культура Документы
.
.
.
.
.
.
.
P= .
Example
Suppose whether it will rain tomorrow depends on
past weather condition ony through whether it rains
today. Consider the stochastic process {Xn, n = 1, 2, ...}
0 rain on day n
Xn =
1 not rain on day n
P (Xn+1|Xn, Xn1, ..., X1) = P (Xn+1 | Xn)
State space {0, 1}.
Transition matrix:
P0,0 P0,1
P1,0 P1,1
Transition matrix:
1
1
2
1
Yn =
2
Xn
Xn
Xn
Xn
= 0, Xn1 = 0
= 0, Xn1 = 1
= 1, Xn1 = 0
= 1, Xn1 = 1
RR
NR
RN
NN
P0,0 0 P0,2 0
P0,0 0 1 P0,0
0
P1,0 0 P1,2 0 P1,0 0 1 P1,0
Chapman-Kolmogorov Equations
Transition after nth steps:
n
= P (Xn+m = j | Xm = i).
Pi,j
Chapman-Kolmogorov Equations:
n+m
Pi,j
=
n
m
Pi,k
Pk,j
,
k=0
n, m 0 for all i, j.
n+m
Pi,j
= P (Xn+m = j|X0 = i)
X
=
P (Xn+m = j, Xn = k|X0 = i)
k=0
X
k=0
P (Xn = k|X0 = i)
P (Xn+m = j|Xn = k, X0 = i)
X
n
m
=
Pi,k
Pk,j
k=0
Chapman-Kolmogorov Equations:
P(n+m) = P(n) P(m),
..
..
P(n) = Pn.
Weather example:
1
0.7 0.3
P=
=
1
0.4 0.6
Find P (rain on Tuesday | rain on Sunday) and
P (rain on Tuesday and rain on Wednesday | rain on Sunday).
Solution:
P(2)
2
P (rain on Tuesday | rain on Sunday) = P0,0
0.7 0.3
0.7 0.3
= PP=
0.4 0.6
0.4 0.6
0.61 0.39
=
0.52 0.48
P (rain on Tuesday | rain on Sunday) = 0.61
=
=
=
=
=
Classification of States
n
>
Accessible: State j is accessible from state i if Pi,j
0 for some n 0.
i j.
Equivalent to: P (ever enter j |start in i) > 0.
P (ever enter j |start in i)
= P (
n=0{Xn = j}|X0 = i)
P (Xn = j | X0 = i)
=
n=0
n
Pi,j
n=0
n
= 0 for all n, P (ever enter j |start in i) =
Hence if Pi,j
0. On the other hand,
n
n
>0
i j = Pi,j
> 0 and Pj,i
m
m
>0
j k = Pj,k
> 0 and Pk,j
X
n+m
m
=
Pi,k
Pi,ln Pl,k
Chapman-Kolmogorov Eq.
l=0
n
Pi,j
>
> 0
m
Pj,k
n +m
Pk,i
> 0. Hence i
1 1
0 0
2 2
1 1 0 0
2 2
P=
1 1 1 1
4 4 4 4
0 0 0 1
Three classes: {0, 1}, {2}, {3}.
10
Starting from i, the MC will be in state i for exactly n times (including the starting state) is
fin1(1 fi) , n = 1, 2, ...
This is a geometric distribution with parameter 1
fi. The expected number of times spent in state i
is 1/(1 fi).
11
X
=
E(In|X0 = i)
=
=
=
n=0
n=0
n=0
P (In = 1|X0 = i)
P (Xn = i|X0 = i)
n
Pi,i
n=0
12
n
n=0 Pi,i
Corollary 4.2: If state i is recurrent and state i communicates with state j, then state j is recurrent.
Corollary 4.3: A finite state Markov chain cannot
have all transient states.
For any irreducible and finite-state Markov chain,
all states are recurrent.
13
Consider a MC with
1 1
2 2
0
1
P=
0
0
0
0 0 0
1 0 0
1 0 0
1
2
1
2
1
2
1
2
0 0 0
0 0 0
1 1
P=0 0 2 2 0
0 0 1 1 0
2 2
1
1 1
4 4 0 0 2
14
Random Walk
A Markov chain with state space i = 0, 1, 2, ....
Transition probability: Pi,i+1 = p = 1 Pi,i1.
15
recurrent
n
P0,0
=
finite transient
n=1
m
Only for even m, P0,0
> 0.
(2n)!
2n
2n
n
n
(p(1 p))n
P0,0 =
p (1 p) =
n
n!n!
n = 1, 2, 3, ...
By Stirlings approximation
n! n
2n
P0,0
e
2
n+1/2 n
(4p(1p))n
.
n
X
(4p(1 p))n X 1
,
=
n
n
n=0
n=0
Limiting Probabilities
Weather example
P=
0.7 0.3
0.4 0.6
0.5749 0.4251
0.5668 0.4332
0.572 0.428
P(8) = P(4)P(4) =
0.570 0.430
P(4) = P4 =
P(4) and P(8) are close. The rows in P(8) are close.
Limiting probabilities?
17
n
= 0 whenever n is not
Period d: For state i, if Pi,i
divisible by d and d is the largest integer with this
property, d is the period of state i.
Positive recurrent: If a state i is recurrent and the expected time until the process returns to state i is finite.
If i j and i is positive recurrent, then j is positive recurrent.
For a finite-state MC, a recurrent state is also positive recurrent.
A finite-state irreducible MC contains all positive
recurrent states.
Ergodic: A positive recurrent and aperiodic state is
an ergodic state.
A Markov chain is ergodic if all its states are ergodic.
18
X
j =
iPi,j j 0
i=0
j = 1 .
j=0
19
,
1+
1 =
1
.
1+
20
Changing forms:
(p + q)Pi = pPi+1 + qPi1
q(Pi Pi1) = p(Pi+1 Pi)
q
Pi+1 Pi = (Pi Pi1)
p
Recursion:
P0 = 0
q
q
P2 P1 = (P1 P0) = P1
p
p
2
q
q
P3 P2 = (P2 P1) =
P1
p
p
..
i1
q
q
P1
Pi Pi1 = (Pi1 Pi2) =
p
p
Add up the equations:
q i1
q
Pi = P1[1 + + + ( ) ]
p
p
1( pq )i
P1 1 q if pq 6= 1
p
=
iP1
if q = 1
p
We know PN = 1
1( pq )N
P1 1 q if
p
PN =
N P1
if
21
q
p
q
p
6= 1
=1
Hence,
P1 =
1 pq
1( pq )N
1/N
if p 6= 1/2
if p = 1/2
In summary,
Pi =
Note, if N ,
Pi =
1( pq )i
1( pq )N
i/N
if p 6= 1/2
if p = 1/2
1 ( pq )i if p > 1/2
0
if p 1/2
22