6-3 Time-Reversed Markov Chains {Xn: n=0,1,…} irreducible aperiodic Markov chain with transition probabilities Pij Unique stationary distribution πj > 0 if and only if: Process in
Trang 1TCOM 501:
Networking Theory & Fundamentals
Lecture 6 February 19, 2003 Prof Yannis A Korilis
Trang 36-3 Time-Reversed Markov Chains
{Xn: n=0,1,…} irreducible aperiodic Markov chain with
transition probabilities Pij
Unique stationary distribution (πj > 0) if and only if:
Process in steady state:
How does {Xn} look “reversed” in time?
Trang 46-4 Time-Reversed Markov Chains
Define Yn=Xτ-n, for arbitrary τ>0
{Yn} is the reversed process.
Proposition 1:
{Yn} is a Markov chain with transition probabilities:
{Yn} has the same stationary distribution πj with the forward chain {Xn}
π
j ji ij
i
P
Trang 56-5 Time-Reversed Markov Chains
Trang 66-6 Reversibility
Stochastic process {X(t)} is called reversible if
(X(t1), X(t2),…, X(tn)) and (X(τ-t1), X(τ-t2),…, X(τ-tn))
have the same probability distribution, for all τ, t1,…, tn
Markov chain {Xn} is reversible if and only if the transition probabilities of forward and reversed chains are equal
or equivalently, if and only if
Detailed Balance Equations ↔ Reversibility
*
P = P
πi ij P = πj P ji, i j, = 0,1,
Trang 76-7 Reversibility – Discrete-Time Chains
Theorem 1: If there exists a set of positive numbers {πj}, that sum up to 1 and satisfy:
Then:
1. {πj} is the unique stationary distribution
2. The Markov chain is reversible
Example: Discrete-time birth-death processes are reversible, since they satisfy the DBE
πi ijP = πjPji, i j , = 0,1,
Trang 86-8 Example: Birth-Death Process
One-dimensional Markov chain with transitions only between neighboring states: Pij=0 , if |i-j|>1
Detailed Balance Equations (DBE)
Proof: GBE with S ={0,1,…,n} give:
Trang 96-9 Time-Reversed Markov Chains (Revisited)
there exist:
A set of transition probabilities Q ij, with ∑j Q ij =1, i ≥ 0, and
probabilities of the reversed chain – even if the process is not reversible
πi ijP = πjQji, i j , = 0,1, (1)
Trang 106-10 Continuous-Time Markov Chains
{X(t): -∞< t <∞} irreducible aperiodic Markov chain with transition rates qij, i≠j
Unique stationary distribution (pi > 0) if and only if:
Process in steady state – e.g., started at t =-∞:
If {πj}, is the stationary distribution of the embedded discrete-time chain:
Trang 116-11 Reversed Continuous-Time Markov Chains
to the transition rate out of state i in the forward chain
Trang 126-12 Reversibility – Continuous-Time Chains
forward and reversed chains are equal or equivalentlyDetailed Balance Equations ↔ Reversibility
and satisfy:
Then:
1. {p j} is the unique stationary distribution
Trang 136-13 Example: Birth-Death Process
Trang 146-14 Reversed Continuous-Time Markov Chains (Revisited)
q ij If there exist:
A set of transition rates φ ij, with ∑j≠i φ ij=∑j≠i q ij , i ≥ 0, and
φ ij are the transition rates of the reversed chain, and
probabilities of the reversed chain – even if the process is not reversible
Trang 156-15 Reversibility: Trees
Theorem 5:
each q ij >0, there is a directed arc i→j
Irreducible Markov chain, with transition rates that satisfy q ij >0 ↔ q ji>0
If graph is a tree – contains no loops – then Markov chain is reversibleRemarks:
Trang 166-16 Kolmogorov’s Criterion (Discrete Chain)
reversible or not, based on stationary distribution and transition probabilities
Should be able to derive a reversibility criterion based only on the transition probabilities!
for any finite sequence of states: i1, i2,…, i n , and any n
to the probability of traversing the same loop in the reverse direction
1 2 2 3 n 1n n1 1n n n 1 3 2 2 1
i i i i i i i i i i i i i i i i
P P P P P P P P
Trang 176-17 Kolmogorov’s Criterion (Continuous Chain)
reversible or not, based on stationary distribution and transition ratesShould be able to derive a reversibility criterion based only on the transition rates!
for any finite sequence of states: i1, i2,…, i n , and any n
is equal to the product of transition rates along the same loop traversed
1 2 2 3 n 1n n1 1n n n 1 3 2 2 1
i i i i i i i i i i i i i i i i
q q q q q q q q
Trang 186-18 Kolmogorov’s Criterion (proof)
Proof of Theorem 6:
Trang 196-19 Example: M/M/2 Queue with Heterogeneous Servers
When the system empty, arrivals go to A with probability α and to B with probability 1-α Otherwise, the head of the queue takes the first free server
system Denote the two possible states by: 1A and 1B
Trang 206-20 Example: M/M/2 Queue with Heterogeneous Servers
Trang 216-21 Multidimensional Markov Chains
Multidimensional Chains:
stochastic properties – track the number of customers from each class
of customers in each system
Trang 226-22 Example: Two Independent M/M/1 Queues
are λi and µi respectively Assume ρi= λi/µi<1
{(N1(t), N2(t))} is a Markov chain
or M/M/∞ If p i (n i ) is the stationary distribution of queue i:
Trang 236-23 Example: Two Independent M/M/1 Queues
Verify that the Markov chain is
reversible – Kolmogorov criterion
Trang 246-24 Truncation of a Reversible Markov Chain
resulting chain {Y(t)} is irreducible Then, {Y(t)} is reversible and has stationary distribution:
original process is at state j, given that it is somewhere in E
,
j j
Trang 256-25 Example: Two Queues with Joint Buffer
The two independent M/M/1 queues of
the previous example share a common
buffer of size B – arrival that finds B
customers waiting is blocked
State space restricted to
Distribution of truncated chain:
Normalizing:
Theorem specifies joint distribution up
to the normalization constant
0 Calculation of normalization constant is
Trang 266-26 Burke’s Theorem
Departure epoch: points of increase for {X(t)}
processes
Arrivals Departures
Trang 276-27 Burke’s Theorem
Poisson arrival process: λj =λ, for all j
Birth-death process called a (λ, µj)-process
Examples: M/M/1, M/M/c, M/M/∞ queues
For any time t, future arrivals are independent of {X(s): s≤t}
are stochastically identicalArrival processes of the forward and reversed chains are stochastically identical
forward chainDeparture process of the forward chain is Poisson with rate λ
Trang 286-28 Burke’s Theorem
t t
t t
history up to time t (LAA)
{X(s): s≥t} are independent
Trang 296-29 Burke’s Theorem
arrival rate λ Suppose that the system starts at steady-state Then:
independent of the departure times prior to t
output process from one queue is the input process of another
Trang 306-30 Single-Server Queues in Tandem
customer in the two queues are independent
Assume ρi=λ/µi<1
customers in each queue?
Result: in steady state the queues are independent and
1 2 1 1 2 2 1 1 2 2
( , ) (1 ) n (1 ) n ( ) ( )
p n n = − ρ ρ ⋅ − ρ ρ = p n ⋅ p n
Trang 316-31 Single-Server Queues in Tandem
with rate λ Thus Q2 is also M/M/1
To complete the proof: establish independence at steady state
Q1 at steady state: at time t, N1(t) is independent of departures prior to t,
Trang 327-32 Queues in Tandem
times at any queue j≠i Arrivals at the first queue are Poisson with rate
λ The stationary distribution of the network is:
Trang 337-33 Queues in Tandem: State-Dependent Service Rates
at queue i exponential with rate µ i (n i ) when there are n i customers in the
queue – independent of service times at any queue j≠i Arrivals at the
first queue are Poisson with rate λ The stationary distribution of the network is:
where {p i (n i )} is the stationary distribution of queue i in isolation with
Poisson arrivals with rate λ