Chap 4
Chap 4
The process {𝑋(𝑡), 𝑡 ≥ 0} is a continuous-time Markov chain if for all 𝑠, 𝑡 ≥ 0 and non-
That is, a continuous-time Markov chain is a stochastic process having the Markov
property that the conditional distribution of the future 𝑋(𝑡 + 𝑠) given the present 𝑋(𝑠)
and the past 𝑋(𝑢), 0 ≤ 𝑢 < 𝑠, depends only on the present and is independent of the past.
Let 𝑇𝑖 be the sojourn time, that is the amount of time that the process stays in state 𝑖
Hence, the random variable 𝑇𝑖 is memoryless and must thus be exponentially distributed
1
(see Section 3.2) with mean, say 𝜈 .
𝑖
When the process leaves state 𝑖, it next enters state 𝑗 with some probability, say, 𝑝𝑖,𝑗 that
must satisfy
𝑝𝑖,𝑖 = 0, ∀𝑖
∑ 𝑝𝑖,𝑗 = 1 , ∀𝑖.
𝑗
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Consider a system whose state at any time is represented by the number of people in the
system at that time. Suppose that whenever there are 𝑛 people in the system, then
Such a system is called a birth and death process. The parameter {𝜆𝑛 }∞
𝑛=0 and {𝜇𝑛 }𝑛=0 are
∞
called, respectively, the arrival (or birth) and departure (or death) rates.
Thus, a birth and death process is a continuous-time Markov chain with states {0, 1, 2, … }
for which transitions from state 𝑖 may go only to either state 𝑖 − 1 or state 𝑖 + 1. The
relationship between the birth and death rates and the state transition rates and
probabilities are
𝜈0 = 𝜆0 ,
𝜈𝑖 = 𝜆𝑖 + 𝜇𝑖 , 𝑖>0
𝑝0,1 = 1,
𝜆𝑖
𝑝𝑖,𝑖+1 = , 𝑖>0
𝜆𝑖 + 𝜇𝑖
𝜇𝑖
𝑝𝑖,𝑖−1 = , 𝑖 > 0.
𝜆𝑖 + 𝜇𝑖
𝜇𝑛 = 0, 𝜆𝑛 = 𝜆, ∀𝑛 ≥ 0.
This is a process which departures never occur, and the time between successive arrivals
1
is exponential with mean 𝜆. Hence, this is just the Poisson process.
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Consider a population whose member can give birth to new members but cannot die. If
each member act independently of the others and takes an exponentially distributed
1
amount of time, with mean 𝜆, to give birth, then if 𝑋(𝑡) is the population size at time 𝑡,
then {𝑋(𝑡), 𝑡 ≥ 0} is a pure birth process with 𝜆𝑛 = 𝑛𝜆, 𝑛 ≥ 0. This follows since if the
population consists of 𝑛 persons and each gives birth at an exponential rate 𝜆, then the
source such as immigration. Deaths are assumed to occur at an exponential rate 𝜇 for
each member of the population. If 𝑋(𝑡) is the population size at time 𝑡, then {𝑋(𝑡), 𝑡 ≥ 0}
𝜇𝑛 = 𝑛𝜇, 𝑛≥1
𝜆𝑛 = 𝑛𝜆 + 𝜃, 𝑛 ≥ 0.
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Poisson process having rate 𝜆 . That is, the times between successive arrivals are
1
independent exponential random variables having mean 𝜆. Upon arrival, each customer
goes directly into service if the server is free; if not, then the customer joins the queue.
When the server finishes serving a customer, the customer leaves the system and the next
customer in line, if there are any waiting, enters the service. The successive service times
1
are assumed to be independent exponential random variables having mean 𝜇.
It is known as the M/M/1 queuing system. The first M refers to the fact that the
interarrival process is Markovian (since it is a Poisson process) and the second refers to
the fact that service distribution is exponential (and, hence Markovian). The 1 refers to
If let 𝑋(𝑡) denote the number of customers in the system at time 𝑡 then {𝑋(𝑡), 𝑡 ≥ 0} is a
𝜇𝑛 = 𝜇, 𝑛≥1
𝜆𝑛 = 𝜆, 𝑛≥0
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Consider an exponential queuing system in which there are 𝑠 servers available, each
serving at rate 𝜇. An entering customer first waits in line and then goes to the first free
server. If there are 𝑛 customers in the system, where 𝑛 ≤ 𝑠, then 𝑛 servers will be busy.
Since each of these servers works at rate 𝜇, the total departure rate will be 𝑛𝜇. On the
other hand, if there are 𝑛 customers in the system, where 𝑛 > 𝑠, then all 𝑠 of the servers
will be busy, and thus the total departure rate will be 𝑠𝜇. Hence, this is a birth and death
𝑛𝜇, 1 ≤ 𝑛 ≤ 𝑠
𝜇𝑛 = {
𝑠𝜇, 𝑛>𝑠
𝜆𝑛 = 𝜆, 𝑛≥0
Consider a general birth and death process with birth rates {𝜆𝑛 } and death rates {𝜇𝑛 },
where 𝜇0 = 0, and let 𝑇𝑖 denote the time, starting from state 𝑖, it takes for the process to
1
E[𝑇0 ] = .
𝜆0
For 𝑖 > 0, conditioning on whether the first transition takes the process into state 𝑖 − 1
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Hence,
1
E[𝑇𝑖 |𝐼𝑖 = 1] = ,
𝜆𝑖 + 𝜇𝑖
1
E[𝑇𝑖 |𝐼𝑖 = 0] = + E[𝑇𝑖−1 ] + E[𝑇𝑖 ]
𝜆𝑖 + 𝜇𝑖
Regardless of whether the first transition is from a birth or death, the time until it occurs
is exponential with rate 𝜆𝑖 + 𝜇𝑖 ; if the first transition is a birth, then the population size is
becomes 𝑖 − 1 and the additional time needed to reach 𝑖 + 1 is equal to the time it takes
to return to state 𝑖 (this has mean E[𝑇𝑖−1 ]) plus the additional time it takes to reach 𝑖 + 1
(this has mean E[𝑇𝑖 ]). Hence, since the probability that the first transition is a birth is
𝜆𝑖
,
𝜆𝑖 +𝜇𝑖
1 𝜇𝑖
E[𝑇𝑖 ] = + (E[𝑇𝑖−1 ] + E[𝑇𝑖 ])
𝜆𝑖 + 𝜇𝑖 𝜆𝑖 + 𝜇 𝑖
or equivalently,
1 𝜇𝑖
E[𝑇𝑖 ] = + E[𝑇𝑖−1 ], 𝑖 ≥ 1.
𝜆𝑖 𝜆𝑖
Consider the birth and death process having parameters 𝜆𝑖 ≡ 𝜆, 𝜇𝑖 ≡ 𝜇. From Example
4.2.6,
1 𝜇 1
E[𝑇𝑖 ] = + E[𝑇𝑖−1 ] = (1 + 𝜇E[𝑇𝑖−1 ])
𝜆 𝜆 𝜆
1
Starting with E[𝑇0 ] = 𝜆,
1 𝜇
E[𝑇1 ] = (1 + )
𝜆 𝜆
1 𝜇 𝜇 2
E[𝑇2 ] = [1 + + ( ) ]
𝜆 𝜆 𝜆
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
1 𝜇 𝜇 2 𝜇 𝑖
E[𝑇𝑖 ] = [1 + + ( ) + ⋯ + ( ) ]
𝜆 𝜆 𝜆 𝜆
𝜇 𝑖+1
1−( )
= 𝜆 , 𝑖≥0
𝜆−𝜇
𝑗−1
𝜇 𝑘+1 [1 − (𝜇 )𝑗−𝑘 ]
𝑗−𝑘 ( ) 𝜆
= − 𝜆 𝜇
𝜆−𝜇 𝜆−𝜇 1−
𝜆
1
E[𝑇𝑖 |𝐼𝑖 ] = + (1 − 𝐼𝑖 )(E[𝑇𝑖−1 ] + E[𝑇𝑖 ])
𝜆𝑖 + 𝜇𝑖
Thus,
𝜇𝑖 𝜆𝑖
= (E[𝑇𝑖−1 ] + E[𝑇𝑖 ])2
(𝜆𝑖 + 𝜇𝑖 )2
𝜆𝑖
since 𝐼𝑖 is a Bernoulli random variable with parameter 𝑝 = .
𝜆𝑖 + 𝜇𝑖
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Let 𝑋𝑖 denote the time until the transition from 𝑖 occurs, then
1
Var(𝑇𝑖 |𝐼𝑖 = 1) = Var(𝑋𝑖 |𝐼𝑖 = 1) = Var(𝑋𝑖 ) =
(𝜆𝑖 + 𝜇𝑖 )2
Hence,
And so,
1 𝜇𝑖
E[Var(𝑇𝑖 |𝐼𝑖 )] = + (Var(𝑇𝑖−1 ) + Var(𝑇𝑖 ))
(𝜆𝑖 + 𝜇𝑖 )2 𝜆𝑖 + 𝜇𝑖
1 𝜇𝑖 2
𝜇𝑖 𝜆𝑖
= + (Var(𝑇𝑖−1 ) + Var(𝑇𝑖 )) + (E[𝑇𝑖−1 ] + E[𝑇𝑖 ])
(𝜆𝑖 + 𝜇𝑖 )2 𝜆𝑖 + 𝜇𝑖 (𝜆𝑖 + 𝜇𝑖 )2
1 𝜇𝑖 𝜇𝑖
= + Var(𝑇𝑖−1 ) + (E[𝑇𝑖−1 ] + E[𝑇𝑖 ])2
(𝜆
𝜆𝑖 𝑖 + 𝜇 𝑖 ) 𝜆𝑖 𝜆𝑖 + 𝜇 𝑖
Consider the birth and death process having parameters 𝜆𝑖 ≡ 𝜆, 𝜇𝑖 ≡ 𝜇, from Example
1
4.2.6, starting with Var(𝑇0 ) = 𝜆2 , and using the recursion to compute Var(𝑇𝑖 ). In addition,
to find the variance of the time to reach state 𝑗, starting from state 𝑘, 𝑘 < 𝑗, this can be
𝑘 + 2 , and so on. By the Markov property, these successive random variables are
𝑗−1
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Chapman-Kolmogorov equations
Let
denote the probability that a process presently in state 𝑖 will be in state 𝑗 a time 𝑡 later.
These quantities are often called the transition probabilities of the continuous-time
Markov chain.
Proposition 4.3.1
𝑗 𝑗 𝑗−1 𝑗−1
−𝜆𝑘 𝑡
𝜆𝑟 𝜆𝑟
𝑝𝑖,𝑗 (𝑡) = (∑ 𝑒 ∏ ) − (∑ 𝑒 −𝜆𝑘 𝑡 ∏ ), 𝑖<𝑗
𝜆𝑟 − 𝜆𝑘 𝜆𝑟 − 𝜆𝑘
𝑘=1 𝑟≠𝑘,𝑟=𝑖 𝑘=𝑖 𝑟≠𝑘,𝑟=𝑖
Proof. Let 𝑋𝑘 (𝑡) denote the time the process spends in state 𝑘 before making a transition
into state 𝑘 + 1, 𝑘 ≥ 1. Suppose that the process is currently in state 𝑖, and let 𝑗 > 𝑖. Then
as 𝑋𝑖 is the time it spends in state 𝑖 before moving to state 𝑖 + 1, and 𝑋𝑖+1 is the time it
𝑗−1
then spends in state 𝑖 + 1 before moving to state 𝑖 + 2, and so on, it follows that ∑𝑘=𝑖 𝑋𝑘
is the time it takes until the process enters state 𝑗. Now suppose if the process has not yet
entered state 𝑗 by time 𝑡, then its state at time 𝑡 is smaller than 𝑗, and vice versa. That is,
𝑗−1
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Since 𝑋𝑖 , …, 𝑋𝑗−1 are independent exponential random variables with respective rates
𝜆𝑖 , …, 𝜆𝑗−1,
𝑗−1 𝑗−1
𝜆𝑟
𝑃(𝑋(𝑡) < 𝑗|𝑋(0) = 𝑖) = ∑ 𝑒 −𝜆𝑘𝑡 ∏
𝜆𝑟 − 𝜆𝑘
𝑘=𝑖 𝑟≠𝑘,𝑟=𝑖
Replacing 𝑗 by 𝑗 + 1,
𝑗 𝑗
−𝜆𝑘 𝑡
𝜆𝑟
𝑃(𝑋(𝑡) < 𝑗 + 1|𝑋(0) = 𝑖) = ∑ 𝑒 ∏
𝜆𝑟 − 𝜆𝑘
𝑘=𝑖 𝑟≠𝑘,𝑟=𝑖
Hence,
𝑗 𝑗 𝑗−1 𝑗−1
𝜆𝑟 𝜆𝑟
= (∑ 𝑒 −𝜆𝑘𝑡 ∏ ) − (∑ 𝑒 −𝜆𝑘𝑡 ∏ )
𝜆 𝑟 − 𝜆𝑘 𝜆𝑟 − 𝜆𝑘
𝑘=1 𝑟≠𝑘,𝑟=𝑖 𝑘=𝑖 𝑟≠𝑘,𝑟=𝑖
𝑞𝑖,𝑗 = 𝜈𝑖 𝑝𝑖,𝑗 .
Since 𝜈𝑖 is the rate at which the process makes a transition when in state 𝑖 and 𝑝𝑖,𝑗 is the
probability that this transition is into state 𝑗, it follows that 𝑞𝑖,𝑗 is the rate, when in state
𝑖, at which the process makes a transition into state 𝑗. Hence, the quantities 𝑞𝑖,𝑗 are called
𝜈𝑖 = ∑ 𝜈𝑖 𝑝𝑖,𝑗 = ∑ 𝑞𝑖,𝑗
𝑗 𝑗
and
𝑞𝑖,𝑗 𝑞𝑖,𝑗
𝑝𝑖,𝑗 = =
𝜈𝑖 ∑𝑗 𝑞𝑖,𝑗
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
It follows that specifying the instantaneous transition rates determines the parameters
Lemma 4.3.2
1−𝑝𝑖,𝑖 (ℎ)
(a) lim = 𝜈𝑖
ℎ→0 ℎ
𝑝𝑖,𝑗 (ℎ)
(b) lim = 𝑞𝑖,𝑗 , when 𝑖 ≠ 𝑗
ℎ→0 ℎ
Proof.
(a) Since the amount of time until a transition occurs is exponentially distributed, it
follows that the probability of two or more transitions in a time ℎ is 𝑜(ℎ). Thus 1 −
𝑝𝑖,𝑖 (ℎ), the probability that a process in state 𝑖 at time 0 will not be in state 𝑖 at time
ℎ, equals the probability that a transition occurs within time ℎ plus something small
compared to ℎ. Therefore,
(b) 𝑝𝑖,𝑗 (ℎ) is the probability that the process goes from state 𝑖 to state 𝑗 at a time ℎ,
equals the probability that a transition occurs in this time multiplied by the
probability that the transition is into state 𝑗, plus something small compared to ℎ.
That is,
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
For all 𝑠 ≥ 0, 𝑡 ≥ 0,
∞
Proof. In order for the process to go from state 𝑖 to state 𝑗 in time 𝑡 + 𝑠, it must be
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
′
𝑝𝑖,𝑗 (𝑡) = ∑ 𝑞𝑖,𝑘 𝑝𝑘,𝑗 (𝑡) − 𝜈𝑖 𝑝𝑖,𝑗 (𝑡)
𝑘≠𝑖
and thus,
′
𝑝𝑖,𝑗 (𝑡) = ∑ 𝑞𝑖,𝑘 𝑝𝑘,𝑗 (𝑡) − 𝜈𝑖 𝑝𝑖,𝑗 (𝑡)
𝑘≠𝑖
The backward equations for the birth and death process become
′
𝑝0,𝑗 (𝑡) = 𝜆0 𝑝1,𝑗 (𝑡) − 𝜆0 𝑝0,𝑗 (𝑡)
′
𝜆𝑖 𝜇𝑖
𝑝𝑖,𝑗 (𝑡) = (𝜆𝑖 + 𝜇𝑖 ) [ 𝑝𝑖+1,𝑗 (𝑡) + 𝑝 (𝑡)] − (𝜆𝑖 + 𝜇𝑖 )𝑝𝑖,𝑗 (𝑡)
𝜆𝑖 + 𝜇𝑖 𝜆𝑖 + 𝜇𝑖 𝑖−1,𝑗
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
′
𝑝𝑖,𝑗 (𝑡) = ∑ 𝑞𝑘,𝑗 𝑝𝑖,𝑘 (𝑡) − 𝜈𝑗 𝑝𝑖,𝑗 (𝑡)
𝑘≠𝑗
and thus,
And assuming that can interchange limit with summations, from Lemma 4.3.2,
′
𝑝𝑖,𝑗 (𝑡) = ∑ 𝑞𝑘,𝑗 𝑝𝑖,𝑘 (𝑡) − 𝜈𝑗 𝑝𝑖,𝑗 (𝑡)
𝑘≠𝑗
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Exercise 4.3.7
𝑡
𝑝𝑖,𝑗 (𝑡) = 𝜆𝑗−1 𝑒 −𝜆𝑗𝑡 ∫ 𝑒 𝜆𝑗 𝑠 𝑝𝑖,𝑗−1 (𝑠) 𝑑𝑠 , 𝑗 ≥𝑖+1
0
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
The forward equations for the general pure and birth process are
′
𝑝𝑖,0 (𝑡) = ∑ 𝑞𝑘,0 𝑝𝑖,𝑘 (𝑡) − 𝜆0 𝑝𝑖,0 (𝑡)
𝑘≠0
′
𝑝𝑖,𝑗 (𝑡) = ∑ 𝑞𝑘,𝑗 𝑝𝑖,𝑘 (𝑡) − (𝜆𝑗 + 𝜇𝑗 )𝑝𝑖,𝑗 (𝑡)
𝑘≠𝑗
Limiting probabilities
′
lim 𝑝𝑖,𝑗 (𝑡) = lim ∑ 𝑞𝑘,𝑗 𝑝𝑖,𝑘 (𝑡) − 𝜈𝑗 𝑝𝑖,𝑗 (𝑡)
𝑡→∞ 𝑡→∞
𝑘≠𝑗
where
is the limiting probability that a continuous-time Markov chain will be in state 𝑗 at time 𝑡
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Since 𝑝𝑖,𝑗 (𝑡) is a bounded function (being a probability it is always between 0 and 1), it
′
follows that if 𝑝𝑖,𝑗 (𝑡) converges, it must converge to 0. Hence, the balance equations,
∑𝑗 𝜋𝑗∗ = 1 (4.2)
Remark.
It is assumed that the limiting probabilities 𝜋𝑗∗ exist. A sufficient condition for this is that
(i) all states of the Markov chain communicate in the sense that starting in state 𝑖,
(ii) the Markov chain is positive recurrent in the sense that, starting in any state, the
From Eq. (4.1) or equivalently, by equating the rate at which the process leaves a state
𝜆0 𝜆1 𝜆2 𝜆𝑛−1 𝜆𝑛
0 1 2 3 𝑛 𝑛+1
𝜇1 𝜇2 𝜇3 𝜇𝑛 𝜇𝑛+1
Figure 4.4.1: Rate diagram of a birth and death process (Example 4.4.1)
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
0 𝜆0 𝜋0∗ = 𝜇1 𝜋1∗
∗
(𝜆𝑛 + 𝜇𝑛 )𝜋𝑛∗ = 𝜇𝑛+1 𝜋𝑛+1 ∗
𝑛, 𝑛 ≥ 1 + 𝜆𝑛−1 𝜋𝑛−1
𝜆0 𝜋0∗ = 𝜇1 𝜋1∗
𝜆1 𝜋1∗ = 𝜇2 𝜋2∗
𝜆2 𝜋2∗ = 𝜇3 𝜋3∗
⋮
∗
𝜆𝑛 𝜋𝑛∗ = 𝜇𝑛+1 𝜋𝑛+1 , 𝑛≥0
𝜆0 ∗
𝜋1∗ = 𝜋
𝜇1 0
𝜆1 ∗ 𝜆1 𝜆0 ∗
𝜋2∗ = 𝜋 = 𝜋
𝜇2 1 𝜇2 𝜇1 0
𝜆2 ∗ 𝜆2 𝜆1 𝜆0 ∗
𝜋3∗ = 𝜋 = 𝜋
𝜇3 2 𝜇3 𝜇2 𝜇1 0
∞
𝜆𝑛−1 𝜆𝑛−2 𝜆𝑛−3 … 𝜆0
1 = 𝜋0∗ + 𝜋0∗ ∑
𝜇𝑛 𝜇𝑛−1 𝜇𝑛−2 … 𝜇1
𝑛=1
1
𝜋0∗ =
𝜆0 𝜆1 𝜆2 … 𝜆𝑛−1
1 + ∑∞
𝑛=1 𝜇 𝜇 𝜇 … 𝜇
1 2 3 𝑛
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
𝜆0 𝜆1 𝜆2 … 𝜆𝑛−1
𝜋𝑛∗ =
𝜆0 𝜆1 𝜆2 … 𝜆𝑛−1
𝜇1 𝜇2 𝜇3 … 𝜇𝑛 (1 + ∑∞ 𝑛=1 𝜇 𝜇 𝜇 … 𝜇 )
1 2 3 𝑛
Consider a job shop that consists of 𝑀 machines and one serviceman. Suppose that the
amount of time each machine runs before breaking down is exponentially distributed
1
with mean 𝜆, and suppose that the amount of time that it takes for the serviceman to fix a
1
machine is exponentially distributed with mean 𝜇.
If the system is in state 𝑛 whenever 𝑛 machines are not in use, then the preceding is a
𝜇𝑛 = 𝜇, 𝑛≥1
(𝑀 − 𝑛)𝜆, 𝑛 ≤ 𝑀
𝜆𝑛 = {
0, 𝑛>𝑀
1
𝜋0∗ =
𝜆0 𝜆1 𝜆2 … 𝜆𝑛−1
1 + ∑∞
𝑛=1 𝜇 𝜇 𝜇 … 𝜇
1 2 3 𝑛
1 1
= =
𝑀𝜆 ∙ (𝑀 − 1)𝜆 ∙ (𝑀 − 2)𝜆 ∙ … ∙ [𝑀 − (𝑛 − 1)]𝜆 𝜆 𝑛 𝑀!
1 + ∑𝑀
𝑛=1 𝑛 1 + ∑ 𝑀
𝑛=1 𝜇 ) (𝑀 − 𝑛)!
(
𝜇
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
𝜆0 𝜆1 𝜆2 … 𝜆𝑛−1
𝜋𝑛∗ =
𝜆0 𝜆1 𝜆2 … 𝜆𝑛−1
𝜇1 𝜇2 𝜇3 … 𝜇𝑛 (1 + ∑∞ 𝑛=1 𝜇 𝜇 𝜇 … 𝜇 )
1 2 3 𝑛
𝜆 𝑛
𝑀!
(𝜇 )
(𝑀 − 𝑛)!
=
𝑀 𝜆 𝑛 𝑀!
∑
1 + 𝑛=1 (𝜇 )
(𝑀 − 𝑛)!
𝜆 𝑛 𝑀!
𝑀 ∑𝑀𝑛=0 𝑛 ( )
𝜇 (𝑀 − 𝑛)!
∑ 𝑛𝜋𝑛∗ = 𝑛
𝜆 𝑀!
𝑛=0 1 + ∑𝑀𝑛=1 (𝜇 ) (𝑀 − 𝑛)!
(b) The long-run proportion of time that a given machine is working is given by
𝑃(machine is working)
𝑀
𝑀−𝑛 ∗
=∑ 𝜋𝑛
𝑀
𝑛=0
𝑀
𝑛𝜋𝑛∗
= 1−∑
𝑀
𝑛=0
Queuing theory
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
A stochastic model can be developed based on costs or rewards associated with the
system policies. For example, consider that entering customers are forced to pay money
where 𝜆𝑎 is the average arrival rate of entering customers. That is, if 𝑁(𝑡) denotes the
𝑁(𝑡)
𝜆𝑎 = lim
𝑡→∞ 𝑡
For instance, suppose that each customer pays $1 per unit time while in the system, Eq.
= 𝜆𝑎 × average amount an entering customer pays (4.3) yields the Little’s formula,
𝐿 = 𝜆𝑎 𝑊
Similarly, suppose that each pays $1 per unit while in queue, Eq. = 𝜆𝑎 ×
𝐿𝑞 = 𝜆𝑎 𝑊𝑞
By supposing that each customer pays $1 per unit time while in service,
Let 𝑁(𝑡) denote the number of customers in the system at any time 𝑡 and 𝜋𝑛∗ be the
limiting or long-run probability that there will be exactly 𝑛 customers in the system.
Then, the two set of limiting probabilities are {𝑎𝑛 , 𝑛 ≥ 0} and {𝑑𝑛 , 𝑛 ≥ 0}, where
𝑎𝑛 = proportion of customers that find 𝑛 in the system when they arrive, and
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Poisson arrivals always see time averages. In particular, for Poisson arrivals,
𝜋𝑛∗ = 𝑎𝑛
People arrive at a bus stop according to a Poisson process with rate 𝜆. Bus arrive at the
stop according to a Poisson process with rate 𝜇, with each arriving bus picking up all the
Let 𝑊𝑞 be the average amount of time that a person waits at the stop for a bus. Since the
waiting time of each person is equal to the time from when they arrive until the next bus,
1
𝑊𝑞 =
𝜇
The average number of people waiting at the bus stop, averaged over all time, is
𝜆
𝐿𝑞 = 𝜆𝑊𝑞 =
𝜇
To illustrate the PASTA principle, let 𝑁𝑖 be the number of people picked up by the 𝑖-th
bus, then 𝑇𝑖 equal to the time between the (𝑛 − 1)-th and the 𝑛-th bus arrival,
because the number of people that arrive at the stop in any time interval is Poisson with
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Since 𝑇𝑖 is exponential with rate 𝜇, taking expectation on both sides of Eq. E[𝑁𝑖 |𝑇𝑖 ] = 𝜆𝑇𝑖
(4.4),
𝜆
E[𝑁𝑖 ] = 𝜆E[𝑇𝑖 ] =
𝜇
Thus, the average number of people picked up by a bus is equal to the time average
number of people waiting for a bus, as follows from the PASTA principle.
Consider a single server queue where customers arrive according to a Poisson process
with rate 𝜆 and where the service time distribution is exponential with rate 𝜇. Suppose
that each customer will only spend an exponential time with rate 𝛼 in queue before
quitting the system. Assume that the impatient times are independent of all else, and that
a customer who enters service always remains until its service is completed. This system
can be modelled as a birth and death process with birth and death rates
𝜆𝑛 = 𝜆, 𝑛≥0
𝜇𝑛 = 𝜇 + (𝑛 − 1)𝛼, 𝑛≥1
Suppose 𝜋𝑠 is the proportion of arrivals that receive service and 𝜆𝑠 be the average rate at
𝜆𝑠
𝜋𝑠 =
𝜆
Since the service departure rate is zero when the system is empty and is 𝜇 when the
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Remark.
Following Example 4.5.3, to determine the proportion of all events that are of a certain
type 𝑖, 𝑖 = 1, 2, 3, … , 𝑘,
To determine the average time that a customer spends in the system, for the birth and
𝐿 = ∑ 𝑛𝜋𝑛∗
𝑛=0
𝜆𝑎 = ∑ 𝜆𝑛 𝜋𝑛∗
𝑛=0
Consequently,
𝐿 ∑∞
𝑛=0 𝑛𝜋𝑛
∗
𝑊= =
𝜆 𝑎 ∑∞𝑛=0 𝜆𝑛 𝜋𝑛
∗
Now consider 𝑎𝑛 , the proportion of arrivals that find 𝑛 in the system. Since arrivals are at
rate 𝜆𝑛 whenever there are 𝑛 is the system, it follows that the rate at which arrivals find
𝜆𝑛 𝜋𝑛∗ 𝑡 𝜆𝑛 𝜋𝑛∗
𝑎𝑛 = lim =
𝑡→∞ 𝜆𝑎 𝑡 𝜆𝑎
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Now consider the average length of a busy period, where the system alternates between
idle periods when there are no customers in the system and busy periods when there is
at least one customer in the system. An idle period begins when the system is empty and
ends when the next customers arrives. Since the arrival rate when the system is empty is
𝜆0 , it follows that, independent of the past, the length of an idle period is exponential with
rate 𝜆0 . The lengths of successive busy periods are independent and identically
distributed as well, since a busy period always begins when there is one in the system
Let 𝐼𝑗 and 𝐵𝑗 denote, respectively, the lengths of the 𝑗-th idle and the 𝑗-th busy period, 𝑗 ≥
1 . In the first ∑𝑛𝑗=1(𝐼𝑗 + 𝐵𝑗 ) time units, the system will be empty for a time ∑𝑛𝑗=1 𝐼𝑗 .
𝐼1 + ⋯ + 𝐼𝑛
𝜋0∗ = lim
𝑛→∞ 𝐼1 + ⋯ + 𝐼𝑛 + 𝐵1 + ⋯ + 𝐵𝑛
(𝐼1 + ⋯ + 𝐼𝑛 )
= lim 𝑛
𝑛→∞ (𝐼1 + ⋯ + 𝐼𝑛 ) (𝐵 + ⋯ + 𝐵𝑛 )
+ 1 𝑛
𝑛
E[𝐼]
=
E[𝐼] + E[𝐵]
1
𝜆0
=
1
+ E[𝐵]
𝜆0
1
=
1 + 𝜆0 E[𝐵]
or
1 − 𝜋0∗
E[𝐵] =
𝜆0 𝜋0∗
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023
MAT3034 Stochastic Processes B Sc (Hons) in Actuarial Studies
BSc (Hons) in Industrial Statistics
Now, suppose 𝑇𝑛 is the amount of time during a busy period that there are 𝑛 in the
system, and E[𝑇𝑛 ] is the average amount of time there are 𝑛 in the system in intervals
between successive busy periods. Since the average time between successive busy period
is E[𝐵] + E[𝐼],
E[𝑇𝑛 ]
𝜋𝑛∗ =
E[𝐼] + E[𝐵]
E[𝑇𝑛 ]𝜋0∗
=
E[𝐼]
Hence,
𝜋𝑛∗
E[𝑇𝑛 ] =
𝜆0 𝜋0∗
These teaching materials are protected under the Copyright Act 1987. Duplication, in any form, including digitally, is prohibited by law and a punishable offence. © 2023