Markov Chains in Communication Networks
Markov Chains in Communication Networks
Gonzalo Mateos
Dept. of ECE and Goergen Institute for Data Science
University of Rochester
gmateosb@[Link]
[Link]
Chapman-Kolmogorov equations
Classes of states
I From the Markov property, can show that for arbitrary m > 0
P Xn+m = j Xn = i, Xn−1 = x = P Xn+m = j Xn = i
... i −1 i i +1 ...
0.8 0.7
0.2
0.8 0.2
P=
0.3 0.7 H S
0.3
I Inertia ⇒ happy or sad today, likely to stay happy or sad tomorrow
I But when sad, a little less likely so (P00 > P11 )
0.8 HH 0.2 HS
0.8 0.2 0 0
0 0 0.3 0.7
P=
0.8 0.2 0
0.8 0.7
0
0 0 0.3 0.7
0.3
SH SS 0.7
0.3
I Key: can capture longer time memory via state augmentation
Introduction to Random Processes Markov Chains 8
Random (drunkard’s) walk
p p p p
... i −1 i i +1 ...
I States are 0, ±1, ±2, . . . (state space is Z), infinite number of states
Pi,i+1 = p, Pi,i−1 = 1 − p
80 80 80
60 60 60
40 40 40
position (in steps)
0 0 0
40
30
Latitude (North−South)
20
10
−5
1
East: P Xn+1 = i +1, Yn+1 = j Xn = i, Yn = j = 50
4 40
1 30
Latitude (North−South)
4 20
1 10
4 −30
−45 −40 −35 −30 −25 −20 −15 −10 −5 0
Longitude (East−West)
Theorem
Suppose YN = Y1 , Y2 , . . . , Yn , . . . are i.i.d. and independent of X0 .
Consider the random process XN = X1 , X2 , . . . , Xn , . . . of the form
Xn = f (Xn−1 , Yn ), n≥1
Pij = P (f (i, Y1 ) = j)
0 ... i −1 i i +1 ... J
1−p 1−p
Chapman-Kolmogorov equations
Classes of states
Pij2 = P Xm+2 = j Xm = i
Pijn = P Xm+n = j Xm = i
P(2) = PP = P2
Theorem
The matrix of n-step transition probabilities P(n) is given by the n-th
power of the transition probability matrix P, i.e.,
P(n) = Pn
Henceforth we write Pn
I All probabilities so far are conditional, i.e., Pijn = P Xn = j X0 = i
⇒ May want unconditional probabilities pj (n) = P (Xn = j)
0.8 0.2
I Transition probability matrix ⇒ P =
0.3 0.7
p(0) = [1, 0]T p(0) = [0, 1]T
1 1
P(Happy) P(Happy)
0.9 P(Sad) 0.9 P(Sad)
0.8 0.8
0.7 0.7
0.6 0.6
Probabilities
Probabilities
0.5 0.5
0.4 0.4
0.3 0.3
0.2 0.2
0.1 0.1
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Time (days) Time (days)
Chapman-Kolmogorov equations
Classes of states
0 ... i −1 i i +1 ... N
q q
1 − αN 1−α
1 = SN = S1 ⇒ S1 =
1−α 1 − αN
I Substitute S1 above into expression for probability of SBR Si
1 − αi
Si = , α 6= 1
1 − αN
i
I For α = 1 ⇒ Si = iS1 , 1 = SN = NS1 , ⇒ Si = N
I Recall
(1 − αi )/(1 − αN ),
α 6= 1,
Si =
i/N, α=1
Chapman-Kolmogorov equations
Classes of states
Qn+1 = Qn + An , if Qn = 0
Qn+1 = Qn + An − Dn , if Qn > 0
P (An = 1) = λ, P (Dn = 1) = µ
0 ... i −1 i i +1 ...
µ µ µ µ
0
10
queue length 0
queue length 10
queue length 20
I Propagate probabilities (Pn )T p(0)
I Probabilities obtained are
−1
10
Probabilities
P Qn = i Q0 = 0 = pi (n)
−2
10 I A few i’s (0, 10, 20) shown
I Probability of empty queue ≈ 0.1
−3
10
I Occupancy decreases with i
0 100 200 300 400 500 600 700 800 900 1000
Time
Chapman-Kolmogorov equations
Classes of states
1 0.2 0.2
T1 R1 0.3
T2 R2 0.4
0.2 0.2
I State i is recurrent if fi = 1
⇒ Process reenters i again and again (a.s.). Infinitely often
I State R3 is recurrent because it is absorbing P X1 = R3 X0 = R3 = 1
1 0.2 0.2
T1 R1 0.3
I State R1 is recurrent because
R3 0.6 0.6 0.6 0.7
P X1 = R1 X0 = R1 = 0.3 T2 R2 0.4
0.2 0.2
P X2 = R1 , X1 6= R1 X0 = R1 = (0.7)(0.6)
P X3 = R1 , X2 6= R1 , X1 6= R1 X0 = R1 = (0.7)(0.4)(0.6)
..
.
P Xn = R1 , Xn−1 6= R1 , . . . , X1 6= R1 X0 = R1 = (0.7)(0.4)n−2 (0.6)
∞
X
I Sum up: fi = P Xn = R1 , Xn−1 6= R1 , . . . , X1 6= R1 X0 = R1
n=1
∞
!
X n−2 1
= 0.3 + 0.7 0.4 0.6 = 0.3 + 0.7 0.6 = 1
n=2
1 − 0.4
1 0.2 0.2
T1 R1 0.3
T2 R2 0.4
0.2 0.2
P (Ni = n) = fi n (1 − fi )
Theorem
P∞
I State i is transient if and only if Piin < ∞
Pn=1
∞
I State i is recurrent if and only if n=1 Piin = ∞
1 0.2 0.2
T1 R1 0.3
T2 R2 0.4
0.2 0.2
I Partitions set of states into disjoint classes (as all equivalences do)
⇒ What are these classes?
Theorem
If state i is recurrent and i ↔ j, then j is recurrent
Proof.
I If i ↔ j then there are l, m such that Pjil > 0 and Pijm > 0
P∞
I Sum for all n. Note that since i is recurrent n=1 Piin = ∞
∞ ∞ ∞
!
X X X
Pjjl+n+m ≥ Pjil Piin Pijm = Pjil Piin Pijm = ∞
n=1 n=1 n=1
Corollary
If state i is transient and i ↔ j, then j is transient
Proof.
I If j were recurrent, then i would be recurrent from previous theorem
1 0.2 0.2
T1 R1 0.3
T2 R2 0.4
0.2 0.2
I Three classes
⇒ T := {T1 , T2 }, class with transient states
⇒ R1 := {R1 , R2 }, class with recurrent states
⇒ R2 := {R3 }, class with recurrent state
p p p p
... i −1 i i +1 ...
2n (2n)! n n (4pq)n
P00 = p q ≈ √
n!n! nπ
p p p p
... i −1 i i +1 ...
Pn
I Write current position of random walker as Xn = k=1 Yk
⇒ Yk are the i.i.d. steps: E [Yk ] = 2p − 1, var [Yk ] = 4p(1 − p)
√
I Choose a = √n(1−2p) < 0, use Chernoff bound Φ(a) ≤ exp(−a2 /2)
4p(1−p)
n
! √ !
n(1 − 2p) n(1−2p)2
< e − 8p(1−p) → 0
X
P (Xn ≤ 0) = P Yk ≤ 0 →Φ p
k=1
4p(1 − p)
n
I Since P00 ≤ P (Xn ≤ 0), sum over n
∞ ∞ ∞
n(1−2p)2
e − 8p(1−p) < ∞
X X X
n
P00 ≤ P (Xn ≤ 0) <
n=1 n=1 n=1