image

or, equivalently,

Piqij=PjqjiforiA,jA

image

But this follows since the original chain is, by assumption, time reversible. ■

Example 6.19

Consider an M/M/1image queue in which arrivals finding Nimage in the system do not enter. This finite capacity system can be regarded as a truncation of the M/M/1image queue to the set of states A={0,1,,N}image. Since the number in the system in the M/M/1image queue is time reversible and has limiting probabilities Pj=(λ/μ)j(1-λ/μ)image it follows from Proposition 6.8 that the finite capacity model is also time reversible and has limiting probabilities given by

Pj=(λ/μ)ji=0N(λ/μ)i,j=0,1,,N

image

Another useful result is given by the following proposition, whose proof is left as an exercise.

Proposition 6.9

If {Xi(t),t0}image are, for i=1,,nimage, independent time reversible continuous-time Markov chains, then the vector process {(X1(t),,Xn(t)),t0}image is also a time reversible continuous-time Markov chain.

Example 6.20

Consider an nimage-component system where component i,i=1,,nimage, functions for an exponential time with rate λiimage and then fails; upon failure, repair begins on component iimage, with the repair taking an exponentially distributed time with rate μiimage. Once repaired, a component is as good as new. The components act independently except that when there is only one working component the system is temporarily shut down until a repair has been completed; it then starts up again with two working components.

Solution: Consider first the system without the restriction that it is shut down when a single component is working. Letting Xi(t),i=1,,nimage, equal 1 if component iimage is working at time timage and 0 if it failed, then {Xi(t),t0}image, i=1,,nimage, are independent birth and death processes. Because a birth and death process is time reversible, it follows from Proposition 6.9 that the process {(X1(t),,Xn(t)),t0}image is also time reversible. Now, with

Pi(j)=limtP{Xi(t)=j},j=0,1

image

we have

Pi(1)=μiμi+λi,Pi(0)=λiμi+λi

image

Also, with

P(j1,,jn)=limtP{Xi(t)=ji,i=1,,n}

image

it follows, by independence, that

P(j1,,jn)=i=1nPi(ji),ji=0,1,i=1,,n

image

Now, note that shutting down the system when only one component is working is equivalent to truncating the preceding unconstrained system to the set consisting of all states except the one having all components down. Therefore, with PTimage denoting a probability for the truncated system, we have from Proposition 6.8 that

PT(j1,,jn)=P(j1,,jn)1-C,i=1nji>0

image

where

C=P(0,,0)=j=1nλj/(μj+λj)

image

Hence, letting (0,1i)=(0,,0,1,0,,0)image be the nimage vector of zeroes and ones whose single 1 is in the iimageth place, we have

PT(system is shut down)=i=1nPT(0,1i)=11-Ci=1nμiμi+λijiλjμj+λj=Ci=1nμi/λi1-C

image

Let Rimage denote the number of components being repaired. Then with Iiimage equal to 1 if component iimage is being repaired and 0 otherwise, we have for the unconstrained (nontruncated) system that

E[R]=Ei=1nIi=i=1nPi(0)=i=1nλi/(μi+λi)

image

But, in addition,

E[R]=E[Rall components are in repair]C+E[Rnot all components are in repair](1-C)=nC+ET[R](1-C)

image

implying that

ET[R]=i=1nλi/(μi+λi)-nC1-C

image

6.7 The Reversed Chain

Consider an ergodic continuous-time Markov chain whose state space is Simage and which has instantaneous transition rates qijimage and limiting probabilities Pi,iSimage, and suppose that this chain that has been in operation for a long (in theory, an infinite) time. Then, it follows from results in the previous section that the process of states going backwards in time is also a continuous time Markov chain, having instantaneous transition rates qijimage that satisfy

Piqij=Pjqji,ij

image

The reverse chain is a very useful concept even in cases where it differs from the forward chain (that is, even in cases where the chain is not time reversible).

To begin, note that the amount of time the reverse chain spends in state iimage during a visit is exponential with rate vijiqijimage. Because the amount of time the process spends in a state iimage during a visit will be the same whether the chain is observed in the usual (forward) or in the reverse direction of time, it follows that the distribution of the time that the reverse chain spends in state iimage during a visit should be the same as the distribution of the time that the forward chain spends in that state during a visit. That is, we should have that

vi=vi

image

Moreover, because the proportion of time that the chain spends in state iimage would be the same whether one was observing the chain in the usual (forward) direction of time or in the reverse direction, the two chains should intuitively have the same limiting probabilities.

Proposition 6.10

Let a continuous-time Markov chain have instantaneous transition rates qijimage and limiting probabilities Pi,iSimage, and let qijimage be the instantaneous rates of the reversed chain. Then, with vi=jiqijimage and vi=jiqijimage

vi=vi

image

Moreover Pi,iSimage, are also the limiting probabilities of the reversed chain.

Proof

Using that Piqij=Pjqjiimage we see that

jiqij=jiPjqji/Pi=viPi/Pi=vi

image

where the preceding used (from (6.18)) that jiPjqji=viPiimage.

That the reversed chain has the same limiting probabilities as does the forward chain can be formally proven by showing that the Pjimage satisfy the balance equations of the reversed chain:

vjPj=kjPkqkj,jS

image

Now, because vj=vjimage and Pkqkj=Pjqjkimage, the preceding equations are equivalent to

vjPj=kjPjqjk,jS

image

which are just the balance equations for the forward chain, which are known to be satisfied by the Pjimage. ■

That the long-run proportions for the reverse chain are the same as for the forward chain makes it easy to understand why

Piqij=Pjqji,ij

image

Because Piimage is the proportion of time the reverse chain spends in state iimage and qijimage is the rate, when in iimage, that it makes a transition into state jimage, it follows that Piqijimage is the rate at which the reversed chain makes transitions from iimage to jimage. Similarly, Pjqjiimage is the rate at which the forward chain makes transitions from jimage to iimage. Because every transition from jimage to iimage in the (forward) Markov chain would be seen as a transition from iimage to jimage by someone looking backwards in time, it is evident that Piqij=Pjqjiimage.

The following proposition shows that if one can find a solution of the “reverse chain equations” then the solution is unique and yields the limiting probabilities.

Proposition 6.11

Let qijimage be the transition rates of an irreducible continuous time Markov chain. If one can find values qijimage and a collection of positive values Piimage that sum to 1image, such that

Piqij=Pjqji,ij (6.29)

image (6.29)

and

jiqij=jiqij,iS (6.30)

image (6.30)

then qijimage are the transition rates of the reversed chain and Piimage are the limiting probabilities (for both chains).

Proof

We show that the Piimage are the limiting probabilities by showing that they satisfy the balance Equations (6.18). To show this, sum (6.29) over all j,jiimage, to obtain

Pijiqij=jiPjqji,iS

image

Using (6.30) now shows that

Pijiqij=jiPjqji

image

Because iPi=1image we see that the Piimage satisfy the balance equations and are thus the limiting probabilities. Because Piqij=Pjqjiimage it also follows that qijimage are the transition rates of the reversed chain. ■

Suppose now that the structure of the continuous time Markov chain enables us to make a guess as to the transition rates of the reversed chain. Assuming that this guess satisfies Equation (6.30) of Proposition 6.11, we can then verify the correctness of our guess by seeing whether there are probabilities that satisfy Equations (6.29). If there are such probabilities, our guess is correct and we have also found the limiting probabilities; if there are not, our guess is incorrect.

Example 6.21

Consider a continuous-time Markov chain whose states are the nonnegative integers. Suppose that a transition out of state 0image goes to state iimage with probability αi,i=1αi=1image; whereas a transition out of state i>0image always goes to state i-1image. That is, the instantaneous transition rates of this chain are, for i>0image

q0i=v0αiqi,i-1=vi

image

Let Nimage be a random variable having the distribution of the next state from state 0image; that is, P(N=i)=αi,i>0image. Also, say that a cycle begins each time the chain goes to state 0image. Because the forward chain goes from 0image to Nimage and then continually moves one step closer to 0image until reaching that state, it follows that the states in the reverse chain would continually increase by 1image until it reaches Nimage at which point it goes back to state 0image (see Figure 6.2).

Now, if the chain is currently in state iimage then the value of Nimage for that cycle must be at least iimage. Hence, the next state of the reversed chain will be 0image with probability

P(N=iNi)=P(N=i)P(Ni)=αiP(Ni)

image

and will be i+1image with probability

1-P(N=iNi)=P(Ni+1Ni)=P(Ni+1)P(Ni)

image

Because the reversed chain spends the same time in a state during each visit as does the forward chain, it thus appears that the transition rates of the reversed chain are

qi,0=viαiP(Ni),i>0qi,i+1=viP(Ni+1)P(Ni),i0

image

Based on the preceding guess, the reversed time equations P0q0i=Piqi0image and Piqi,i-1=Pi-1qi-1,iimage become

P0v0αi=PiviαiP(Ni),i1 (6.31)

image (6.31)

and

Pivi=Pi-1vi-1P(Ni)P(Ni-1),i1 (6.32)

image (6.32)

The set of Equations (6.31) gives

Pi=P0v0P(Ni)/vi,i1

image

As the preceding equation is also valid when i=0image (since P(N0)=1image), we obtain upon summing over all iimage that

1=iPi=P0v0i=0P(Ni)/vi

image

Thus,

Pi=P(Ni)/vii=0P(Ni)/vi,i0

image

To show that the set of Equations (6.32) is also satisfied by the preceding values of Piimage, note that, with C=1/i=0P(Ni)/viimage,

viPiP(Ni)=C=vi-1Pi-1P(Ni-1)

image

which immediately shows that Equations (6.32) are also satisfied. Because we chose the transition rates of the reversed chain to be such that it spent as much time in state iimage during a visit as does the forward chain, there is no need to check Condition (6.30) of Proposition 6.11, and so the stationary probabilities are as given. ■

Example 6.22

A Sequential Queueing System

Consider a two-server queueing system in which customers arrive at server 1image in accordance with a Poisson process with rate λimage. An arrival at server 1image either enters service if server 1image is free or joins the queue if server 1image is busy. After completion of service at server 1image the customer moves over to server 2image, where it either enters service if server 2image is free or join its queue otherwise. After completion of service at server 2image a customer departs the system. The service times at servers 1image and 2image are exponential with rates μ1image and μ2image respectively. All service times are independent and are also independent of the arrival process.

The preceding model can be analyzed as a continuous-time Markov chain whose state is (n,m)image if there are currently nimage customers with server 1image and mimage with server 2image. The instantaneous transition rates of this chain are

q(n-1,m),(n,m)=λ,n>0q(n+1,m-1),(n,m)=μ1,m>0q(n,m+1),(n,m)=μ2

image

To find the limiting probabilities, let us first consider the chain going backwards in time. Because in real time the total number in the system decreases at moments when customers depart server 2image, looking backwards the total number in the system will at those moments increase by having an added customer at server 2image. Similarly while in real time the number will increase when a customer arrives at server 1image, in the reverse process at that moment there will be a decrease in the number at server 1image. Because the times spent in service at server iimage will be the same whether looking in forward or in reverse time, it appears that the reverse process is a two-server system in which customers arrive first at server 2image, then go to server 1image, and then depart the system, with their service times at server iimage being exponential with rate μi,i=1,2image. Now the arrival rate to server 2image in the reverse process is equal to the departure rate from the system in the forward process and this must equal the arrival rate λimage of the forward process. (If the departure rate of the forward process was less than the arrival rate, then the queue size would build to infinity and there would not be any limiting probabilities.) Although it is not clear that the arrival process of customers to server 2image in the reverse process is a Poisson process, let us guess that this is the case and then use Proposition 6.11 to determine whether our guess is correct.

So, let us guess that the reverse process is a sequential queue where customers arrive at server 2image according to a Poisson process with rate λimage, and after receiving service at server 2image move over to server 1image, and after receiving service at server 1image depart the system. In addition, the service times at server iimage are exponential with rate μi,i=1,2image. Now, if this were true then the transition rates of the reverse chain would be

q(n,m),(n-1,m)=μ1,n>0q(n,m),(n+1,m-1)=μ2,m>0q(n,m),(n,m+1)=λ

image

The rate at which a chain with transition rates qimage departs from state (n,m)image is

q(n,m),(n-1,m)+q(n,m),(n+1,m-1)+q(n,m),(n,m+1)=μ1I{n>0}+μ2I{m>0}+λ

image

where I{k>0}image is equal to 1image when k>0image and is equal to 0image otherwise. As the preceding is also the rate at which the forward process departs from state (n,m)image, the Condition (6.30) of Proposition 6.11 is satisfied.

Using the preceding conjectured reverse time transition rates, the reverse time equations would be

Pn-1,mλ=Pn,mμ1,n>0 (6.33)

image (6.33)

Pn+1,m-1μ1=Pn,mμ2,m>0 (6.34)

image (6.34)

Pn,m+1μ2=Pn,mλ (6.35)

image (6.35)

Writing (6.33) as Pn,m=(λ/μ1)Pn-1,mimage and iterating, yields that

Pn,m=(λ/μ1)2Pn-2,m==(λ/μ1)nP0,m

image

Letting n=0,m=m-1image in Equation (6.35) shows that P0,m=(λ/μ2)P0,m-1image, which yields upon iteration that

P0,m=(λ/μ2)2P0,m-2==(λ/μ2)mP0,0