Continuous Time Markov
Continuous Time Markov
chains
QUEUEING SYSTEMS
• THE POISSON PROCESS
• The Poisson process is central to the physical process modeling and plays a
pivotal part in classical queuing theory.
• In most of the elementary queuing systems, the inter-arrival times and the
service times are assumed to be exponentially distributed, or, equivalently,
the arrival and service processes are assumed to be Poisson.
• The Poisson process is a counting process: the random variable X(t) that
counts the number of point events in a given time interval (0,t) has a
Poisson distribution if:
P X (t ) k
t k t
e
k!
Point events
Poisson point events
Time
0 t
Poisson A1
+ Poisson A
Poisson AN
Pt t P0 (t ) e t
P 0 arrivals in 0, t0 t0 0 t
e o
e t o
0!
P arrival in t0 , t0 t / no arrivals in 0, t0
t0 t
t
e dt
t0
e t t e t
0 0
e t 0
e t 0
1 e t
• But the probability of an arrival in (0,t) is also given by:
P arrival in (0, t ) 1 P0 1 e t
P X (t ) i
• Examples of stochastic processes are: number of customers arriving at a bank;
number of calls to an exchange; the price, P(t), at a stock counter in the Stock
Exchange.
• Basically, three parameters characterize a stochastic process:
• A) State Space: The values assumed by a random variable X(t) are called
states; and the collection of all possible values form the state space of the
process. If X(t)=i, we say that the process is in state i.
Pij
Pii i j Pjj
Pji
P
( 2) (1)
P
(k ) ( k 1)
• Then we obtain:
P
(k ) (0) (k )
P P xP
( k 1) (k )
n
k 1
P ij Pijk Pkj
k 0
k i i
• In general, a discrete Markov chain {Xk} that is ergodic has the limiting
probabilities:
j lim (jk ) lim P X k j , j 0,1,2,..
k k
lim ( k )
k
j i Pij
i
• The time a process spends in a state, say sate i, is called the sojourn time or
holding time of the state i.
• By definition, the sojourn times of a Markov chain must be memoryless
• It can be shown that the sojourn times of a continuous time Markov chain are
exponentially distributed, and since the exponential distribution is the only
continuous probability distribution that possesses the memoryless property, the
sojourn times are therefore memoryless.
where e Q ( t )
I Q(t )
Q(t )
2
..
Q
k
2! k!
• For an irreversible Markov chain, the limiting value exists and it is
independent of the initial value of the chain. Then:
d
t 0;
dt
lim (t )
t
Q 0
• Then j and i are Pij(t) and Pik(t) above; then our equation becomes:
d
Pij (t ) Pik (t )qkj Pij (t ) q jk
dt k j k j
k-1 k k+1
X(0) i0 i1 i2 i3
P{X(0)} 0.2 0.3 0.4 0.1
(1) Find the expression of P(t ) ;
(2) Find P(t 1) and P(t 100) ;
(3) Find the distribution of X (t 1) and X (t 100) ;
(4) Find the joint probability
p{X (0) i0 , X (1) i1, X (10) i2 , X (100) i3}
(5)Is the markov chain ergodic? Please explain
your result.
Solution : (1)
(Q t )n
P(t ) eQt
n 0 n!
(2) According to (1) , we use a routine expm in
Matlab to computer the matrix
0.6405 0.1196 0.0215 0.2184
0.2108 0.4559 0.1746 0.1586
(Q 1) n
P(t 1) eQ1
n 0 n! 0.0728 0.3110 0.5110 0.1053
0.0917 0.1196 0.0215 0.7672
X(1) i0 i1 i2 i3
P{X(1)} 0.22962 0.29703 0.26323 0.21012
• As likely
0.2544 0.2105 0.1053 0.4298
0.2544 0.2105 0.1053 0.4298
S (t 100) S (0) P(t 100) 0.2 0.3 0.4 0.1
0.2544 0.2105 0.1053 0.4298
0.2544 0.2105 0.1053 0.4298
X(1) i0 i1 i2 i3
P{X(1)} 0.2544 0.2105 0.1053 0.4298
• (4) p{ X (0) i0 , X (1) i1 , X (100) i3}
p{ X (0) i0 } p{ X (1) i1 | X (0) i0} p{ X (100) i3 | X (1) i1}
p{ X (0) i0 } pi0i1 (1 0) pi1i3 (100 1)
p{ X (0) i0 } pi0i1 (1) pi1i3 (99)
0.2 * 0.1196 * 0.4298