Chapter 7

Markov processes with countable-state spaces

[33/100%]
Show
LaTeX
Problem 7.1

Consider an M/M/1 queue as represented in Figure 7.4. Assume throughout that X0=iX_{0} = i, where i>0i > 0. The purpose of this exercise is to understand the relationship between the holding interval until the next state transition and the interval until the next arrival to the M/M/1 queue. Your explanations in the following parts can and should be very brief.

?
(a)

Explain why the expected holding interval E[U1∣X0=i]\mathbb {E}\left[U_{1} \mid X_{0} = i\right] until the next state transition is 1/(λ+μ)1/(\lambda +\mu ).

(b)

Explain why the expected holding interval U1U_{1}, conditional on X0=iX_{0} = i and X1=i+1X_{1} = i+1, is

E[U1∣X0=i,X1=i+1]=1/(λ+μ). \mathbb {E}\left[U_{1} \mid X_{0} = i, X_{1} = i+1\right] = 1/(\lambda +\mu ).

Show that E[U1∣X0=i,X1=i−1]\mathbb {E}\left[U_{1} \mid X_{0} = i, X_{1} = i-1\right] is the same.

(c)

Let VV be the time of the first arrival after time 00 (this may occur either before or after the time WW of the first departure). Show that

E[V∣X0=i,X1=i+1]=1λ+μ, \mathbb {E}\left[V \mid X_{0} = i, X_{1} = i+1\right] = \frac{1}{\lambda +\mu }, E[V∣X0=i,X1=i−1]=1λ+μ+1λ. \mathbb {E}\left[V \mid X_{0} = i, X_{1} = i-1\right] = \frac{1}{\lambda +\mu }+\frac{1}{\lambda }.
(d)

Use your solution to (c) plus the probability of moving up or down in the Markov chain to show that E[V]=1/λ\mathbb {E}\left[V\right] = 1/\lambda. Note: You already know that E[V]=1/λ\mathbb {E}\left[V\right] = 1/\lambda. The purpose here is to show that your solution to (c) is consistent with that fact.

Remark.
?

In part (c), use the memorylessness of the exponential rv and the fact that VV under the condition X1=i−1X_{1} = i-1 is the time to the first departure plus the remaining time to an arrival.

Problem 7.2

Consider a Markov process for which the embedded Markov chain is a birth--death chain with transition probabilities Pi,i+1=2/5P_{i,i+1} = 2/5 for all i≥0i \geq 0, Pi,i−1=3/5P_{i,i-1} = 3/5 for all i≥1i \geq 1, P01=1P_{01} = 1, and Pij=0P_{ij} = 0 otherwise.

?
(a)

Find the steady-state probabilities {πi;i≥0}\left\{ \pi_{i}; i \geq 0\right\} for the embedded chain.

(b)

Assume that the transition rate νi\nu_{i} out of state ii, for i≥0i \geq 0, is given by νi=2i\nu_{i} = 2^{i}. Find the transition rates {qij}\left\{ q_{ij}\right\} between states and find the steady-state probabilities {pi}\left\{ p_{i}\right\} for the Markov process. Explain heuristically why πi≠pi\pi_{i} \neq p_{i}.

(c)

Explain why there is no sampled-time approximation for this process. Then truncate the embedded chain to states 00 to mm and find the steady-state probabilities for the sampled-time approximation to the truncated process.

(d)

Show that as m→∞m \rightarrow \infty, the steady-state probabilities for the sequence of sampled-time approximations approach the probabilities pip_{i} in (b).

Problem 7.3

Consider a Markov process for which the embedded Markov chain is a birth--death chain with transition probabilities Pi,i+1=2/5P_{i,i+1} = 2/5 for all i≥1i \geq 1, Pi,i−1=3/5P_{i,i-1} = 3/5 for all i≥1i \geq 1, P01=1P_{01} = 1, and Pij=0P_{ij} = 0 otherwise.

?
(a)

Find the steady-state probabilities {πi;i≥0}\left\{ \pi_{i}; i \geq 0\right\} for the embedded chain.

(b)

Assume that the transition rate out of state ii, for i≥0i \geq 0, is given by νi=2−i\nu_{i} = 2^{-i}. Find the transition rates {qij}\left\{ q_{ij}\right\} between states and show that there is no probability vector solution {pi;i≥0}\left\{ p_{i}; i \geq 0\right\} to the steady-state process equations pjνj=∑ipiqijp_{j}\nu_{j} = \sum_{i}p_{i}q_{ij} for all j≥0j \geq 0 with ∑ipi=1\sum_{i}p_{i} = 1.

(c)

Argue that the expected time between visits to any given state ii is infinite. Find the expected number of transitions between visits to any given state ii. Argue that, starting from any state ii, an eventual return to state ii occurs with probability 11.

(d)

Consider the sampled-time approximation of this process with δ=1\delta = 1. Draw the graph of the resulting Markov chain and argue why it must be null recurrent.

Problem 7.4

Consider the Markov process for the M/M/1 queue, as given in Figure 7.4.

?
(a)

Find the steady-state process probabilities (as a function of ρ=λ/μ\rho = \lambda /\mu) from (7.15) and also as the solution to (7.23). Verify that the two solutions are the same.

(b)

For the remaining parts of the exercise, assume that ρ=0.01\rho = 0.01, thus ensuring (for aiding intuition) that states 00 and 11 are much more probable than the other states. Assume that the process has been running for a very long time and is in steady state. Explain in your own words the difference between π1\pi_{1} (the steady-state probability of state 11 in the embedded chain) and p1p_{1} (the steady-state probability that the process is in state 11). More explicitly, what experiments could you perform (repeatedly) on the process to measure π1\pi_{1} and p1p_{1}.

(c)

Now suppose you want to start the process in steady state. Show that it is impossible to choose initial probabilities so that both the process and the embedded chain start in steady state. Which version of steady state is closest to your intuitive view? (There is no correct answer here, but it is important to realize that the notion of steady state is not quite as simple as you might imagine.)

(d)

Let M(t)M(t) be the number of transitions (counting both arrivals and departures) that take place by time tt in this Markov process and assume that the embedded Markov chain starts in steady state at time 00. Let U1,U2,…U_{1}, U_{2}, \ldots be the sequence of holding intervals between transitions (with U1U_{1} being the time to the first transition). Show that these rv's are identically distributed. Show by example that they are not independent (i.e., M(t)M(t) is not a renewal process).

Problem 7.5

Consider the Markov process illustrated below. The transitions are labeled by the rate qijq_{ij} at which those transitions occur. The process can be viewed as a single-server queue where arrivals become increasingly discouraged as the queue lengthens. The word time average below refers to the limiting time average over each sample path of the process, except for a set of sample paths of probability 00.  {#fig-1 width="70%"}

?
(a)

Find the time-average fraction of time pip_{i} spent in each state i>0i > 0 in terms of p0p_{0} and then solve for p0p_{0}.

(b)

Find a closed form solution to ∑ipiνi\sum_{i}p_{i}\nu_{i}, where νi\nu_{i} is the rate at which transitions out of state ii occur. Show that the embedded chain is positive recurrent for all choices of λ>0\lambda > 0 and μ>0\mu > 0 and explain intuitively why this must be so.

(c)

For the embedded Markov chain corresponding to this process, find the steady-state probabilities πi\pi_{i} for each i≥0i \geq 0 and the transition probabilities PijP_{ij} for each i,ji, j.

(d)

For each ii, find both the time-average interval and the time-average number of overall state transitions between successive visits to ii.

Remark.
?

Hint for (a): First find an equation relating pip_{i} to pi+1p_{i+1} for each ii. It also may help to recall the power series expansion of exe^{x}.

Problem 7.6
?
(a)

Let UnU_{n} be the nnth holding interval for a Markov process starting in steady state, with P{X0=i}=πi\mathbb {P}\left\{ X_{0} = i\right\} = \pi_{i}. Show that E[Un]=∑kπk/νk\mathbb {E}\left[U_{n}\right] = \sum_{k}\pi_{k}/\nu_{k} for each integer nn.

(b)

Let SnS_{n} be the epoch of the nnth transition. Show that P{Sn≥nβ}≤(∑kπk/νk)/β\mathbb {P}\left\{ S_{n} \geq n\beta \right\} \leq (\sum_{k}\pi_{k}/\nu_{k})/\beta for all β>0\beta > 0.

(c)

Let M(t)M(t) be the number of transitions of the Markov process up to time tt, given that X0X_{0} is in steady state. Show that P{M(nβ)≥n}≥1−(∑kπk/νk)/β\mathbb {P}\left\{ M(n\beta ) \geq n\right\} \geq 1-(\sum_{k}\pi_{k}/\nu_{k})/\beta.

(d)

Show that if ∑kπk/νk\sum_{k}\pi_{k}/\nu_{k} is finite, then lim⁡t→∞M(t)/t=0\lim_{t \rightarrow \infty }M(t)/t = 0 WP1 is impossible. (Note that this is equivalent to showing that lim⁡t→∞M(t)/t=0\lim_{t \rightarrow \infty }M(t)/t = 0 WP1 implies ∑kπk/νk=∞\sum_{k}\pi_{k}/\nu_{k} = \infty.)

(e)

Let Mi(t)M_{i}(t) be the number of transitions by time tt starting in state ii. Show that if ∑kπk/νk\sum_{k}\pi_{k}/\nu_{k} is finite, then lim⁡t→∞Mi(t)/t=0\lim_{t \rightarrow \infty }M_{i}(t)/t = 0 WP1 is impossible.

Problem 7.7
?
(a)

Consider the process in the figure below. The process starts at X(0)=1X(0) = 1, and for all i≥1i \geq 1, Pi,i+1=1P_{i,i+1} = 1 and νi=i2\nu_{i} = i^{2} for all ii. Let SnS_{n} be the epoch when the nnth transition occurs. Show that

E[Sn]=∑i=1ni−2<2for all n. \mathbb {E}\left[S_{n}\right] = \sum _{i=1}^{n}i^{-2} < 2 \qquad \text{for all } n.

 {#fig-1 width="60%"}

(b)

Use the Markov inequality to show that P{Sn>4}≤1/2\mathbb {P}\left\{ S_{n} > 4\right\} \leq 1/2 for all nn. Show that the probability of an infinite number of transitions by time 44 is at least 1/21/2.

Remark.
?

Hint for (a): Upper bound the sum from i=2i = 2 by integrating x−2x^{-2} from x=1x = 1.

Problem 7.8
?
(a)

Consider a Markov process with the set of states {0,1,…}\left\{ 0, 1, \ldots \right\} in which the transition rates {qij}\left\{ q_{ij}\right\} between states are given by qi,i+1=(3/5)2iq_{i,i+1} = (3/5)2^{i} for i≥0i \geq 0, qi,i−1=(2/5)2iq_{i,i-1} = (2/5)2^{i} for i≥1i \geq 1, and qij=0q_{ij} = 0 otherwise. Find the transition rate νi\nu_{i} out of state ii for each i≥0i \geq 0 and find the transition probabilities {Pij}\left\{ P_{ij}\right\} for the embedded Markov chain.

(b)

Find a solution {pi;i≥0}\left\{ p_{i}; i \geq 0\right\} with ∑ipi=1\sum_{i}p_{i} = 1 to the steady-state process equations (7.23).

(c)

Show that all states of the embedded Markov chain are transient.

(d)

Explain in your own words why your solution to (b) is not in any sense a set of steady-state probabilities.

Problem 7.9

Let qi,i+1=2i−1q_{i,i+1} = 2^{i-1} for all i≥0i \geq 0 and let qi,i−1=2i−1q_{i,i-1} = 2^{i-1} for all i≥1i \geq 1. All other transition rates are 00.

?
(a)

Solve the steady-state equations and show that pi=2−i−1p_{i} = 2^{-i-1} for all i≥0i \geq 0.

(b)

Find the transition probabilities for the embedded Markov chain and show that the chain is null recurrent.

(c)

For any state ii, consider the renewal process for which the Markov process starts in state ii and renewals occur on each transition to state ii. Show that, for each i≥1i \geq 1, the expected inter-renewal interval is equal to 22.

(d)

Show that the expected number of transitions between each entry into state ii is infinite. Explain why this does not mean that an infinite number of transitions can occur in a finite time.

Remark.
?

Hint for (c): Use renewal-reward theory.

Problem 7.10
?
(a)

Consider the two-state Markov process of Example 7.3.1 with q01=λq_{01} = \lambda and q10=μq_{10} = \mu. Find the eigenvalues and eigenvectors of the transition rate matrix Q\mathbf{Q}.

(b)

If Q\mathbf{Q} has M\mathsf{M} distinct eigenvalues, the differential equation d[P(t)]/dt=[Q][P(t)]d[P(t)]/dt = [Q][P(t)] can be solved by the equation

[P(t)]=∑i=1Mν→ietλip→iT, [P(t)] = \sum _{i=1}^{\mathsf{M}}\overrightarrow {\nu }_{i}e^{t\lambda _{i}}\overrightarrow {p}_{i}^{\mathsf{T}},

where p→i\overrightarrow {p}_{i} and ν→i\overrightarrow {\nu }_{i} are the left and right eigenvectors of eigenvalue λi\lambda_{i}. Show that this equation gives the same solution as that given for Example 7.3.1.

Problem 7.11

Consider the three-state Markov process below; the number given on edge (i,j)(i,j) is qijq_{ij}, the transition rate from ii to jj. Assume that the process is in steady state.  {#fig-1 width="45%"}

?
(a)

Is this process reversible?

(b)

Find pip_{i}, the time-average fraction of time spent in state ii for each ii.

(c)

Given that the process is in state ii at time tt, find the mean delay from tt until the process leaves state ii.

(d)

Find πi\pi_{i}, the time-average fraction of all transitions that go into state ii for each ii.

(e)

Suppose the process is in steady state at time tt. Find the steady-state probability that the next state to be entered is state 11.

(f)

Given that the process is in state 11 at time tt, find the mean delay until the process first returns to state 11.

(g)

Consider an arbitrary irreducible finite-state Markov process in which qij=qjiq_{ij} = q_{ji} for all i,ji, j. Either show that such a process is reversible or find a counter example.

Problem 7.12
?
(a)

Consider an M/M/1 queueing system with arrival rate λ\lambda, service rate μ\mu, μ>λ\mu > \lambda. Assume that the queue is in steady state. Given that an arrival occurs at time tt, find the probability that the system is in state ii immediately after time tt.

(b)

Assuming FCFS service, and conditional on ii customers in the system immediately after the above arrival, characterize the time until the above customer departs as a sum of rv's.

(c)

Find the unconditional probability density of the time until the above customer departs.

Remark.
?

Hint for (c): You know (from splitting a Poisson process) that the sum of a geometrically distributed number of IID exponentially distributed rv's is exponentially distributed. Use the same idea here.

Problem 7.13
?
(a)

Consider an M/M/1 queue in steady state. Assume ρ=λ/μ<1\rho = \lambda /\mu < 1. Find the probability Q(i,j)Q(i,j) for i≥j>0i \geq j > 0 that the system is in state ii at time tt and that i−ji-j departures occur before the next arrival.

(b)

Find the PMF of the state immediately before the first arrival after time tt.

(c)

There is a well-known queueing principle called PASTA, standing for `Poisson arrivals see time averages'. Given your results above, give a more precise statement of what that principle means in the case of the M/M/1 queue.

Problem 7.14

A small bookie shop has room for at most two customers. Potential customers arrive at a Poisson rate of ten customers per hour; they enter if there is room and are turned away, never to return, otherwise. The bookie serves the admitted customers in order, requiring an exponentially distributed time of mean 44 minutes per customer.

?
(a)

Find the steady-state distribution of the number of customers in the shop.

(b)

Find the rate at which potential customers are turned away.

(c)

Suppose the bookie hires an assistant; the bookie and assistant, working together, now serve each customer in an exponentially distributed time of mean 22 minutes, but there is only room for one customer (i.e., the customer being served) in the shop. Find the new rate at which customers are turned away.

Problem 7.15

This exercise explores a continuous time version of a simple branching process.

Consider a population of primitive organisms which do nothing but procreate and die. In particular, the population starts at time 00 with one organism. This organism has an exponentially distributed lifespan T0T_{0} with rate μ\mu (i.e., P{T0≥τ}=e−μτ\mathbb {P}\left\{ T_{0} \geq \tau \right\} = e^{-\mu \tau }). While this organism is alive, it gives birth to new organisms according to a Poisson process of rate λ\lambda. Each of these new organisms, while alive, gives birth to yet other organisms. The lifespan and birthrate for each of these new organisms are IID to those of the first organism. All these and subsequent organisms give birth and die in the same way, again independently of all other organisms.

?
(a)

Let X(t)X(t) be the number of (live) organisms in the population at time tt. Show that {X(t);t≥0}\left\{ X(t); t \geq 0\right\} is a Markov process and specify the transition rates between the states.

(b)

Find the embedded Markov chain {Xn;n≥0}\left\{ X_{n}; n \geq 0\right\} corresponding to the Markov process in (a). Find the transition probabilities for this Markov chain.

(c)

Explain why the Markov process and Markov chain above are not irreducible.

(d)

For purposes of analysis, add an additional transition of rate λ\lambda from state 00 to state 11. Show that the Markov process and the embedded chain are irreducible. Find the values of λ\lambda and μ\mu for which the modified chain is positive recurrent, null recurrent, and transient.

(e)

Assume that λ<μ\lambda < \mu. Find the steady-state process probabilities for the modified Markov process.

(f)

Find the mean recurrence time between visits to state 00 for the modified Markov process.

(g)

Find the mean time T‾\overline{T} for the population in the original Markov process to die out.

Remark.
?

Note for (c): The majority of results you have seen for Markov processes assume the process is irreducible, so be careful not to use those results in this exercise.

Note for (g): We have seen before that removing transitions from a Markov chain or process to create a trapping state can make it easier to find mean recurrence times. This is an example of the opposite, where adding an exit from a trapping state makes it easy to find the recurrence time.

Problem 7.16

Consider the job sharing computer system illustrated below. Incoming jobs arrive from the left in a Poisson stream. Each job, independently of other jobs, requires preprocessing in system 1 with probability QQ. Jobs in system 1 are served FCFS and the service times for successive jobs entering system 1 are IID with an exponential distribution of mean 1/μ11/\mu_{1}. The jobs entering system 2 are also served FCFS and successive service times are IID with an exponential distribution of mean 1/μ21/\mu_{2}. The service times in the two systems are independent of each other and of the arrival times. Assume that μ1>λQ\mu_{1} > \lambda Q and that μ2>λ\mu_{2} > \lambda. Assume that the combined system is in steady state.  {#fig-1 width="65%"}

?
(a)

Is the input to system 1 Poisson? Explain.

(b)

Are each of the two input processes coming into system 2 Poisson? Explain.

(c)

Give the joint steady-state PMF of the number of jobs in the two systems. Explain briefly.

(d)

What is the probability that the first job to leave system 1 after time tt is the same as the first job that entered the entire system after time tt?

(e)

What is the probability that the first job to leave system 2 after time tt both passed through system 1 and arrived at system 1 after time tt?

Problem 7.17

Consider the following combined queueing system. The first queue system is M/M/1 with service rate μ1\mu_{1}. The second queue system has IID exponentially distributed service times with rate μ2\mu_{2}. Each departure from system 1 leaves the entire system with probability 1−Q11-Q_{1} and enters system 2 with the remaining probability Q1Q_{1}. System 2 has an additional Poisson input of rate λ2\lambda_{2}, independent of inputs and outputs from the first system. Each departure from the second system independently leaves the combined system with probability Q2Q_{2} and reenters system 2 with probability 1−Q21-Q_{2}. For (a), (b), (c) assume that Q2=1Q_{2} = 1 (i.e., there is no feedback).  {#fig-1 width="65%"}

?
(a)

Characterize the process of departures from system 1 that enter system 2 and characterize the overall process of arrivals to system 2.

(b)

Assuming FCFS service in each system, find the steady-state distribution of time that a customer spends in each system.

(c)

For a customer that goes through both systems, show why the time in each system is independent of that in the other; find the distribution of the combined system time for such a customer.

(d)

Now assume that Q2<1Q_{2} < 1. Is the departure process from the combined system Poisson? Which of the three input processes to system 2 are Poisson? Which of the input processes are independent? Explain your reasoning, but do not attempt formal proofs.

Problem 7.18

Suppose a Markov chain with transition probabilities {Pij}\left\{ P_{ij}\right\} is reversible. Suppose we change the transition probabilities out of state 00 from {P0j;j≥0}\left\{ P_{0j}; j \geq 0\right\} to {P0j′;j≥0}\left\{ P_{0j}'; j \geq 0\right\}. Assuming that all PijP_{ij} for i≠0i \neq 0 are unchanged, what is the most general way in which we can choose {P0j′;j≥0}\left\{ P_{0j}'; j \geq 0\right\} so as to maintain reversibility? Your answer should be explicit about how the steady-state probabilities {πi;i≥0}\left\{ \pi_{i}; i \geq 0\right\} are changed. Your answer should also indicate what this problem has to do with uniformization of reversible Markov processes, if anything.

?
Remark.
?

Hint: Given PijP_{ij} for all i,ji, j, a single additional parameter will suffice to specify P0j′P_{0j}' for all jj.

Problem 7.19

Consider the closed queueing network in the figure below. There are three customers who are doomed forever to cycle between node 11 and node 22. Both nodes use FCFS service and have exponential IID service times. The service times at one node are also independent of those at the other node and are independent of the customer being served. The server at node ii has mean service time 1/μi1/\mu_{i}, i=1,2i = 1, 2. Assume to be specific that μ2<μ1\mu_{2} < \mu_{1}.  {#fig-1 width="40%"}

?
(a)

The system can be represented by a four-state Markov process. Draw its graphical representation and label it with the individual states and the transition rates between them.

(b)

Find the steady-state probability of each state.

(c)

Find the time-average rate at which customers leave node 11.

(d)

Find the time-average rate at which a given customer cycles through the system.

(e)

Is the Markov process reversible? Suppose that the backward Markov process is interpreted as a closed queueing network. What does a departure from node 11 in the forward process correspond to in the backward process? Can the transitions of a single customer in the forward process be associated with transitions of a single customer in the backward process?

Problem 7.20

Consider an M/G/1 queueing system with last come, first served (LCFS) preemptive resume service. That is, customers arrive according to a Poisson process of rate λ\lambda. A newly arriving customer interrupts the customer in service and enters service itself. When a customer is finished, it leaves the system and the customer that had been interrupted by the departing customer resumes service from where it had left off. For example, if customer 11 arrives at time 00 and requires 22 units of service, and customer 22 arrives at time 11 and requires 11 unit of service, then customer 11 is served from time 00 to 11; customer 22 is served from time 11 to 22 and leaves the system, and then customer 11 completes service from time 22 to 33. Let XiX_{i} be the service time required by the iith customer; the XiX_{i} are IID rv's with expected value E[X]\mathbb {E}\left[X\right]; they are independent of customer arrival times. Assume λE[X]<1\lambda \mathbb {E}\left[X\right] < 1.

?
(a)

Find the mean time between busy periods (i.e., the time until a new arrival occurs after the system becomes empty).

(b)

Find the time-average fraction of time that the system is busy.

(c)

Find the mean duration, E[B]\mathbb {E}\left[B\right], of a busy period.

(d)

Explain briefly why the customer that starts a busy period remains in the system for the entire busy period; use this to find the expected system time of a customer given that that customer arrives when the system is empty.

(e)

Is there any statistical dependence between the system time of a given customer (i.e., the time from the customer's arrival until departure) and the number of customers in the system when the given customer arrives?

(f)

Show that a customer's expected system time is equal to E[B]\mathbb {E}\left[B\right].

(g)

Let CC be the expected system time of a customer conditional on the service time XX of that customer being 11. Find (in terms of CC) the expected system time of a customer conditional on X=2X = 2. Repeat for arbitrary X=xX = x.

(h)

Find the constant CC.

Remark.
?

Hint for (c): Use (a) and (b).

Hint for (g): Compare a customer with X=2X = 2 to two customers with X=1X = 1 each.

Hint for (h): Use (f) and (g); do not do any tedious calculations.

Problem 7.21

Consider a queueing system with two classes of customers, type AA and type BB. Type AA customers arrive according to a Poisson process of rate λA\lambda_{A} and customers of type BB arrive according to an independent Poisson process of rate λB\lambda_{B}. The queue has a FCFS server with exponential IID service times of rate μ>λA+λB\mu > \lambda_{A}+\lambda_{B}. Characterize the departure process of class AA customers; explain carefully.

?
Remark.
?

Hint: Consider the combined arrival process and be judicious about how to select between AA and BB types of customers.

Problem 7.22

Consider a preemptive resume LCFS queueing system with two classes of customers. Type AA customer arrivals are Poisson with rate λA\lambda_{A} and Type BB customer arrivals are Poisson with rate λB\lambda_{B}. The service time for type AA customers is exponential with rate μA\mu_{A} and that for type BB is exponential with rate μB\mu_{B}. Each service time is independent of all other service times and of all arrival epochs.

Define the `state' of the system at time tt by the string of customer types in the system at tt, in order of arrival. Thus state ABAB means that the system contains two customers, one of type AA and the other of type BB; the type BB customer arrived later, so is in service. The set of possible states arising from transitions out of ABAB is as follows:

ABAABA if another type AA arrives.

ABBABB if another type BB arrives.

AA if the customer in service (BB) departs.

Note that whenever a customer completes service, the next most recently arrived resumes service, so the state changes by eliminating the final element in the string.

?
(a)

Draw a graph for the states of the process, showing all states with two or fewer customers and a couple of states with three customers (label the empty state as EE). Draw an arrow, labeled by the rate, for each state transition. Explain why these are states in a Markov process.

(b)

Is this process reversible? Explain. Assume positive recurrence.

(c)

Characterize the process of type AA departures from the system (i.e., are they Poisson, do they form a renewal process, at what rate do they depart, etc.?)

(d)

Express the steady-state probability P{A}\mathbb {P}\left\{ A\right\} of state AA in terms of the probability of the empty state P{E}\mathbb {P}\left\{ E\right\}. Find the probability P{AB}\mathbb {P}\left\{ AB\right\} and the probability P{ABBA}\mathbb {P}\left\{ ABBA\right\} in terms of P{E}\mathbb {P}\left\{ E\right\}. Use the notation ρA=λA/μA\rho_{A} = \lambda_{A}/\mu_{A} and ρB=λB/μB\rho_{B} = \lambda_{B}/\mu_{B}.

(e)

Let QnQ_{n} be the probability of nn customers in the system, as a function of Q0=P{E}Q_{0} = \mathbb {P}\left\{ E\right\}. Show that Qn=(1−ρ)ρnQ_{n} = (1-\rho )\rho^{n} where ρ=ρA+ρB\rho = \rho_{A}+\rho_{B}.

Remark.
?

Hint for (b): If there is a transition from one state SS to another state S′S', how is the number of transitions from SS to S′S' related to the number from S′S' to SS?

Problem 7.23
?
(a)

Generalize Exercise 7.22 to the case in which there are mm types of customers, each with independent Poisson arrivals and each with independent exponential service times. Let λi\lambda_{i} and μi\mu_{i} be the arrival rate and service rate respectively of the iith user. Let ρi=λi/μi\rho_{i} = \lambda_{i}/\mu_{i} and assume that ρ=ρ1+ρ2+⋯+ρm<1\rho = \rho_{1}+\rho_{2}+\cdots +\rho_{m} < 1. In particular, show, as before that the probability of nn customers in the system is Qn=(1−ρ)ρnQ_{n} = (1-\rho )\rho^{n} for 0≤n<∞0 \leq n < \infty.

(b)

View the customers in (a) as a single type of customer with Poisson arrivals of rate λ=∑iλi\lambda = \sum_{i}\lambda_{i} and with a service density ∑i(λi/λ)μiexp⁡(−μix)\sum_{i}(\lambda_{i}/\lambda )\mu_{i}\exp (-\mu_{i}x). Show that the expected service time is ρ/λ\rho /\lambda. Note that you have shown that, if a service distribution can be represented as a weighted sum of exponentials, then the distribution of customers in the system for LCFS service is the same as for the M/M/1 queue with equal mean service time.

Problem 7.24

Consider a kk-node Jackson type network with the modification that each node ii has ss servers rather than one server. Each server at ii has an exponentially distributed service time with rate μi\mu_{i}. The exogenous input rate to node ii is ρi=λ0Q0i\rho_{i} = \lambda_{0}Q_{0i} and each output from ii is switched to jj with probability QijQ_{ij} and switched out of the system with probability Qi0Q_{i0} (as in the text). Let λi\lambda_{i}, 1≤i≤k1 \leq i \leq k, be the solution, for given λ0\lambda_{0}, to

λj=∑i=0kλiQij,1≤j≤k, \lambda _{j} = \sum _{i=0}^{k}\lambda _{i}Q_{ij}, \qquad 1 \leq j \leq k,

and assume that λi<sμi\lambda_{i} < s\mu_{i}; 1≤i≤k1 \leq i \leq k. Show that the steady-state probability of state m→\overrightarrow {m} is

P{m→}=∏i=1kpi(mi), \mathbb {P}\left\{ \overrightarrow {m}\right\} = \prod _{i=1}^{k}p_{i}(m_{i}),

where pi(mi)p_{i}(m_{i}) is the probability of state mim_{i} in an (M,M,s)(M,M,s) queue.

?
Remark.
?

Hint: Simply extend the argument in the text to the multiple server case.

Problem 7.25

Suppose a Markov process with the set of states AA is reversible and has steady-state probabilities pip_{i}, i∈Ai \in A. Let BB be a subset of AA and assume that the process is changed by setting qij=0q_{ij} = 0 for all i∈B,j∉Bi \in B, j \notin B. Assuming that the new process (starting in BB and remaining in BB) is irreducible, show that the new process is reversible and find its steady-state probabilities.

?
Problem 7.26

Consider a queueing system with two classes of customers. Type AA customer arrivals are Poisson with rate λA\lambda_{A} and type BB customer arrivals are Poisson with rate λB\lambda_{B}. The service time for type AA customers is exponential with rate μA\mu_{A} and that for type BB is exponential with rate μB\mu_{B}. Each service time is independent of all other service times and of all arrival epochs.

?
(a)

First assume there are infinitely many identical servers, and each new arrival immediately enters an idle server and begins service. Let the state of the system be (i,j)(i,j), where ii and jj are the numbers of type AA and type BB customers respectively in service. Draw a graph of the state transitions for i≤2,j≤2i \leq 2, j \leq 2. Find the steady-state PMF, {p(i,j);i,j≥0}\left\{ p(i,j); i,j \geq 0\right\}, for the Markov process.

(b)

Assume for the rest of the exercise that there is some finite number mm of servers. Customers who arrive when all servers are occupied are turned away. Find the steady-state PMF, {p(i,j);i,j≥0,i+j≤m}\left\{ p(i,j); i,j \geq 0, i+j \leq m\right\}, in terms of p(0,0)p(0,0) for this Markov process.

(c)

Let QnQ_{n} be the probability that there are nn customers in service at some given time in steady state. Show that Qn=p(0,0)ρn/n!Q_{n} = p(0,0)\rho_{n}/n! for 0≤n≤m0 \leq n \leq m, where ρ=ρA+ρB\rho = \rho_{A}+\rho_{B}, ρA=λA/μA\rho_{A} = \lambda_{A}/\mu_{A}, and ρB=λB/μB\rho_{B} = \lambda_{B}/\mu_{B}. Solve for p(0,0)p(0,0).

Remark.
?

Hint for (a): Note that the type AA and type BB customers do not interact.

Hint for (b): Combine (a) with the result of Exercise 7.25.

Problem 7.27
?
(a)

Generalize Exercise 7.26 to the case in which there are KK types of customers, each with independent Poisson arrivals and each with independent exponential service times. Let λk\lambda_{k} and μk\mu_{k} be the arrival rate and service rate respectively for the kkth user type, 1≤k≤K1 \leq k \leq K. Let ρk=λk/μk\rho_{k} = \lambda_{k}/\mu_{k} and ρ=ρ1+ρ2+⋯+ρK\rho = \rho_{1}+\rho_{2}+\cdots +\rho_{K}. In particular, show, as before, that the probability of nn customers in the system is Qn=p(0,…,0)ρn/n!Q_{n} = p(0,\ldots ,0)\rho^{n}/n! for 0≤n≤m0 \leq n \leq m.

(b)

View the customers in (a) as a single type of customer with Poisson arrivals of rate λ=∑kλk\lambda = \sum_{k}\lambda_{k} and with a service density ∑k(λk/λ)μkexp⁡(−μkx)\sum_{k}(\lambda_{k}/\lambda )\mu_{k}\exp (-\mu_{k}x). Show that the expected service time is ρ/λ\rho /\lambda. Note that what you have shown is that, if a service distribution can be represented as a weighted sum of exponentials, then the distribution of customers in the system is the same as for the M/M/m/m queue with equal mean service time.

Problem 7.28

Consider a sampled-time M/D/m/m queueing system. The arrival process is Bernoulli with probability λ≪1\lambda \ll 1 of arrival in each time unit. There are mm servers; each arrival enters a server if a server is not busy and otherwise the arrival is discarded. If an arrival enters a server, it keeps the server busy for dd units of time and then departs; dd is some integer constant and is the same for each server.

Let nn, 0≤n≤m0 \leq n \leq m be the number of customers in service at a given time and let xix_{i} be the number of time units that the iith of those nn customers (in order of arrival) has been in service. Thus the state of the system can be taken as (n,x→)=(n,x1,x2,…,xn)(n, \overrightarrow {x}) = (n, x_{1}, x_{2}, \ldots , x_{n}), where 0≤n≤m0 \leq n \leq m and 1≤x1<x2<⋯<xn≤d1 \leq x_{1} < x_{2} < \cdots < x_{n} \leq d.

Let A(n,x→)A(n, \overrightarrow {x}) denote the next state if the present state is (n,x→)(n, \overrightarrow {x}) and a new arrival enters service. That is,

A(n,x→)=(n+1,1,x1+1,x2+1,…,xn+1)for n<m and xn<d, A(n, \overrightarrow {x}) = (n+1, 1, x_{1}+1, x_{2}+1, \ldots , x_{n}+1) \qquad \text{for } n < m \text{ and } x_{n} < d, A(n,x→)=(n,1,x1+1,x2+1,…,xn−1+1)for n≤m and xn=d. A(n, \overrightarrow {x}) = (n, 1, x_{1}+1, x_{2}+1, \ldots , x_{n-1}+1) \qquad \text{for } n \leq m \text{ and } x_{n} = d.

That is, the new customer receives one unit of service by the next state time, and all the old customers receive one additional unit of service. If the oldest customer has received dd units of service, then it leaves the system by the next state time. Note that it is possible for a customer with dd units of service at the present time to leave the system and be replaced by an arrival at the present time (i.e., the second equation above with n=mn = m, xn=dx_{n} = d). Let B(n,x→)B(n, \overrightarrow {x}) denote the next state if either no arrival occurs or if a new arrival is discarded:

B(n,x→)=(n,x1+1,x2+1,…,xn+1)for xn<d, B(n, \overrightarrow {x}) = (n, x_{1}+1, x_{2}+1, \ldots , x_{n}+1) \qquad \text{for } x_{n} < d, B(n,x→)=(n−1,x1+1,x2+1,…,xn−1+1)for xn=d. B(n, \overrightarrow {x}) = (n-1, x_{1}+1, x_{2}+1, \ldots , x_{n-1}+1) \qquad \text{for } x_{n} = d.
?
(a)

Hypothesize that the backward chain for this system is also a sampled-time M/D/m/m queueing system, but that the state (n,x1,…,xn)(n, x_{1}, \ldots , x_{n}) (0≤n≤m0 \leq n \leq m, 1≤x1<x2<⋯<xn≤d1 \leq x_{1} < x_{2} < \cdots < x_{n} \leq d) has a different interpretation: nn is the number of customers as before, but xix_{i} is now the remaining service required by customer ii. Explain how this hypothesis leads to the following steady-state equations:

λπn,x→=(1−λ)πA(n,x→),n<m,xn<d, \lambda \pi _{n,\overrightarrow {x}} = (1-\lambda )\pi _{A(n,\overrightarrow {x})}, \qquad n < m, x_{n} < d, λπn,x→=λπA(n,x→),n≤m,xn=d, \lambda \pi _{n,\overrightarrow {x}} = \lambda \pi _{A(n,\overrightarrow {x})}, \qquad n \leq m, x_{n} = d, (1−λ)πn,x→=λπB(n,x→),n≤m,xn=d, (1-\lambda )\pi _{n,\overrightarrow {x}} = \lambda \pi _{B(n,\overrightarrow {x})}, \qquad n \leq m, x_{n} = d, (1−λ)πn,x→=(1−λ)πB(n,x→),n≤m,xn<d. (1-\lambda )\pi _{n,\overrightarrow {x}} = (1-\lambda )\pi _{B(n,\overrightarrow {x})}, \qquad n \leq m, x_{n} < d.
(b)

Using this hypothesis, find πn,x→\pi_{n,\overrightarrow {x}} in terms of π0\pi_{0}, where π0\pi_{0} is the probability of an empty system.

(c)

Verify that the above hypothesis is correct.

(d)

Find an expression for π0\pi_{0}.

(e)

Find an expression for the steady-state probability that an arriving customer is discarded.

Remark.
?

Hint for (b): Use the third and fourth steady-state equations above; your answer should depend on nn, but not x→\overrightarrow {x}.

Problem 7.29

A taxi alternates between three locations. When it reaches location 11 it is equally likely to go next to either location 22 or 33. When it reaches location 22 it will next go to 11 with probability 1/31/3 and to 33 with probability 2/32/3. From location 33 it always goes to 11. The mean time between locations ii and jj are t12=20t_{12} = 20, t13=30t_{13} = 30, t23=30t_{23} = 30. Assume exponential service and assume tij=tjit_{ij} = t_{ji}.

?
(a)

Find the (limiting) probability that the taxi's most recent stop was at location ii, i=1,2,3i = 1, 2, 3.

(b)

What is the (limiting) probability that the taxi is heading for location 22?

(c)

What fraction of time is the taxi traveling from location 22 to location 33?

Remark.
?

Note for (c): Upon arrival at a location the taxi immediately departs.

Problem 7.30
?
(a)

Assume that the Markov process in Exercise 7.5 is changed in the following way: whenever the process enters state 00, the time spent before leaving state 00 is now a uniformly distributed rv, taking values from 00 to 2/λ2/\lambda. All other transitions remain the same. For this new process, determine whether the successive epochs of entry to state 00 form renewal epochs, whether the successive epochs of exit from state 00 form renewal epochs, and whether the successive entries to any other given state ii form renewal epochs.

(b)

For each ii, find both the time-average interval and the time-average number of overall state transitions between successive visits to ii.

(c)

Is this modified process a Markov process in the sense that P{X(t)=i∣X(τ)=j,X(s)=k}=P{X(t)=i∣X(τ)=j}\mathbb {P}\left\{ X(t) = i \mid X(\tau ) = j, X(s) = k\right\} = \mathbb {P}\left\{ X(t) = i \mid X(\tau ) = j\right\} for all 0<s<τ<t0 < s < \tau < t and all i,j,ki, j, k? Explain.

Problem 7.31

Consider an M/G/1 queueing system with Poisson arrivals of rate λ\lambda and expected service time E[X]\mathbb {E}\left[X\right]. Let ρ=λE[X]\rho = \lambda \mathbb {E}\left[X\right] and assume ρ<1\rho < 1. Consider a semi-Markov process model of the M/G/1 queueing system in which transitions occur on departures from the queueing system and the state is the number of customers immediately following a departure.

?
(a)

Suppose a colleague has calculated the steady-state probabilities {pi}\left\{ p_{i}\right\} of being in state ii for each i≥0i \geq 0. For each i≥0i \geq 0, find the steady-state probability π\pi of state ii in the embedded Markov chain. Give your solution as a function of ρ\rho, πi\pi_{i}, and p0p_{0}.

(b)

Calculate p0p_{0} as a function of ρ\rho.

(c)

Find πi\pi_{i} as a function of ρ\rho and pip_{i}.

(d)

Is pip_{i} the same as the steady-state probability that the queueing system contains ii customers at a given time? Explain carefully.

Problem 7.32

Consider an M/G/1 queue in which the arrival rate is λ\lambda and the service time distribution is uniform (0,2W)(0, 2W) with λW<1\lambda W < 1. Define a semi-Markov chain following the framework for the M/G/1 queue in Section 7.8.1.

?
(a)

Find P0jP_{0j} for j≥0j \geq 0.

(b)

Find PijP_{ij} for i>0i > 0; j≥i−1j \geq i-1.

Problem 7.33

Consider a semi-Markov process for which the embedded Markov chain is irreducible and positive recurrent. Assume that the distribution of inter-renewal intervals for one state jj is arithmetic with span dd. Show that the distribution of inter-renewal intervals for all states is arithmetic with the same span.

?