

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


The class discussion is focused on Section 5 of the CTMC notes. The topic is birth-and- death processes. The focus is on models like those in Examples 5.1 and 5.2.
Two enterprizing students - Webb Allen and Eliot Wycoff - have decided to earn a little money in their spare time by opening a barbershop in their dormitory: the A&W Barbershop. (They also serve root beer and play music to entertain waiting customers.) They are thinking about adding another barber or possibly enlarging their waiting area. So they are applying their stochastic skills to analyze their current operation. The current A&W Barbershop has two barbers and two barber chairs, plus three extra waiting spaces. We assume that customers arriving when the system is full are blocked, leav- ing without receiving service or affecting future arrivals. We assume that customers arrive according to a Poisson process at rate λ = 6 per hour. We assume that the duration of each haircut is an independent exponential random variable with a mean of μ−^1 = 15 minutes. Thus the service rate of each barber is μ = 4 per hour. We assume customers are served in a first-come first-served manner by the first available barber. We also allow each waiting customer to abandon at a constant rate θ = 6 per hour. Equivalently, the abandonment times for individual customers are independent exponential random variables with mean 1/θ = 1/6 hour or 10 minutes. (We assume customers in service do not abandon. We also allow arriving customers who would have to wait to balk immediately upon arrival. Suppose any customer who would have to wait decides to balk (leave immediately) with probability 1/3. With abandonment and balking under those assumptions, the model is still a CTMC and a BD process. The number of customers in the barbershop over time can be modelled as a continuous-time Markov chain (CTMC), specifically by a birth-and-death (BD) stochastic process; see Sections 6.3, 6.5 and 6.6 of Ross. (See exercises 6.13 and 6.14.) It is appropriate to use the transition rate form of modelling. Let Q(t) denote the number of customers in the system at time t. Then the stochastic process {Q(t) : t ≥ 0 } is a BD process with six states: 0, 1 , 2 , 3 , 4 , 5, indicating the number of customers in the system at any time. The model is specified by giving the birth rates and death rates. It is good to draw a transition rate diagram at this point, as in the last-class lecture notes. Here it has a simple form. The process moves only from a state to one of its neighbors, either up one or down one. The birth rates (giving the rate of going up) are λi, while the death rates (giving the rate of going down) are μi. With the assumptions above, the arrival rates are λ 0 = λ 1 = λ = 6 and λ 2 = λ 3 = λ 4 = 6 × (2/3) = 4. (The reduction is due to the balking). (λ 5 = 0, because there are no arrivals when the system is full.) The death rates are μ 1 = μ = 4, μ 2 = 2μ = 8, μ 3 = 2μ + θ = 8 + 6 = 14, μ 4 = 2μ + 2θ = 8 + 12 = 20, μ 5 = 2μ + 3θ = 8 + 18 = 26. (μ 0 = 0.) The standard thing to compute is the limiting steady-state probability vector. For a CTMC, we would solve αQ = 0 (in matrix notation), but here we have the additional BD structure. Any BD process is reversible. We solve for the steady-state probabilities, say αi, recursively
using the local balance equations (reversibility),
αiλi = αi+1μi+1 for all i.
That is, we can express α 1 directly in terms of α 0. We can then successively express αi in terms of α 0. We then use the condition that the αi sum over i to equal 1 in order to first find α 0 and then the other αi. This leads to the formula: αi = ri ∑j= j=0 rj
where r 0 = 1, r 1 = λ 0 /μ 1 , and
rj =
λ 0 λ 1 · · · λj− 1 μ 1 μ 2 · · · μj
for other values of j. Given the steady-state probability vector α ≡ (α 0 ,... , α 5 ), you can then answer a variety of other questions, as we showed. Without the balking or the abandonment, this is an M/M/ 2 /3 queueing model; see Chapter 8, Sections 8.1-8.3 and 8.9. (You are not now responsible for Chapter 8.)
Typical Questions (a) What proportion of time are both barbers busy serving customers in the long run? Answer: α 2 + α 3 + α 4 + α 5 (b) What is the probability that the time until the first customer arrives, starting empty, is greater than 10 minutes?
Answer: Note that the time until the first arrival has an exponential distribution with mean 1/λ = 1/6 hour or 10 minutes. Hence, if T is the time until this arrival, then P (T >
(c) What is the variance of the time until the second customer arrives, starting empty? (Suppose that time is measured in minutes.)
Answer: Recall that the time until the second arrival is the sum of two independent and identically distributed exponential random variables, each with mean 10 minutes or 1/6 hour. Since we are measuring time in minutes, the variance is (10)^2 + (10)^2 = 200.
(e) What proportion of all potential customers are served in the long run? (We count customers who balk and abandon as potential customers.)
Answer: The total rate of service completion is
γ ≡ α 1 μ 1 + (α 2 + α 3 + α 4 + α 5 )(2μ 2 ) Since the arrival rate of potential customers is λ = 6, the proportion of all customers that are served is γ/λ.
(f) What is the expected number of customers in the shop in the long run? Answer: α 1 + 2α 2 + 3α 3 + 4α 4 + 5α 5