ch4_add_2

2
Birt h and Deat h Processes Exampl e: A Barbe r Shop  A small town barbershop has two barbers and an additional chair for 1 wai ting customer. If a custo mer arriv es when there are 3 custo mers in the shop, the customer leaves.  The custome rs arrive according to a homoge neous Poiss on process. The ave rage time between arrivals is 30 minutes.  The two barbers are Andy and Bob. Andy comp letes serving a customer at a rate of 2 per hour. Bob completes a serving a customer at a rate of 1 per hour.  Because Andy is faster than Bob, if only one customer is in the store, Andy handles the customer. Assume that inter-arrival times and service times are independent exponential random vari- ables. (a)  Draw a state dia gra m with pos sible sta tes and cor res pon din g birth /de ath rates. Solution: 2 2 0 2  3 2 3 E [B] = 30min = 1/2 hrs. implying rate  λ  = 2 per hour. Let  T A  = time until Andy nishes and  T B  = time until Bob nishes. For  k  = 1,  D  =  T A ; since  µ A  = 2 per hour,  D  ∼  Exp (2) For  k  = 2, 3,  D = min{T A , T B }  giving  D  ∼  E xp(1 + 2 = 3); since  µ A  = 2 and  µ B  = 1 (b)  What is the (large  t) probabil ity that the shop is emp ty? S  = 1 +  1 2  +  2  · 2 2 · 3  +  2  · 2 · 2 3 · 3 · 2 = 1 + 1 +  4 6  +  8 18 =  28 9 implying that p 0  =  1 S  =  9 28 (c)  Let  X  be nu mber of customers in the store. Wh at is the pm f of  X ?  p k  = P [X  = k ] =  λ 0 λ 1  ... λ k1 µ 1 µ 2  ...µ k  p 0 k  0 1 2 3  p k  = P (X  = k )  9 28 9 28 2 2 9 28  ·  2 3 9 28  ·  4 9 1

Upload: evaldo-da-silva

Post on 03-Jun-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

8/12/2019 ch4_add_2

http://slidepdf.com/reader/full/ch4add2 1/2

Birth and Death Processes

Example: A Barber Shop  A small town barbershop has two barbers and an additional chairfor 1 waiting customer. If a customer arrives when there are 3 customers in the shop, thecustomer leaves.

•   The customers arrive according to a homogeneous Poisson process. The average timebetween arrivals is 30 minutes.

•  The two barbers are Andy and Bob. Andy completes serving a customer at a rate of 2 per hour. Bob completes a serving a customer at a rate of 1 per hour.

•   Because Andy is faster than Bob, if only one customer is in the store, Andy handlesthe customer.

Assume that inter-arrival times and service times are independent exponential random vari-ables.

(a)   Draw a state diagram with possible states and corresponding birth/death rates.

Solution:

22

0

2

 

32 3

E [B] = 30min = 1/2 hrs. implying rate  λ  = 2 per hour.Let T A = time until Andy finishes and  T B  = time until Bob finishes.

For  k  = 1,  D  =  T A; since  µA = 2 per hour, D  ∼   Exp(2)

For  k  = 2, 3, D = min{T A, T B}  giving  D  ∼   Exp(1 + 2 = 3); since  µA = 2 and  µB  = 1

(b)   What is the (large   t) probability that the shop is empty?

S    = 1 + 1

2 +

 2  · 2

2 · 3 +

 2  · 2 · 2

3 · 3 · 2

= 1 + 1 + 4

6 +

  8

18

=   289

implying that  p0 =   1

S   =   9

28

(c)   Let   X   be number of customers in the store. What is the pmf of   X ?

 pk = P [X  = k] = λ0λ1 . . . λk−1µ1µ2 . . . µk

 p0

k   0 1 2 3 pk = P (X  = k)   9

28

9

28

2

2

9

28 ·   2

3

9

28 ·   4

9

1

8/12/2019 ch4_add_2

http://slidepdf.com/reader/full/ch4add2 2/2

(d)   What is the (large   t) probability that an arriving customer is turned away?

An arriving customer is lost when the shop is full i.e.,  X  = 3

 p3   =   P (X  = 3)

= 4/28 = 1/7

(e)   What is the distribution of the number of customers arriving in the first

3 hours? (Name the distribution and it parameter value(s))

Let  Y  (t) = # of arrivals in  t  hours; note that the number of arrivals is not the sameas the number that enter the shop.

Y  (t) is a homogeneous Poisson process with rate  λ  = 2 per hour.

Thus Y  (3)   ∼   Poisson(λt = 2 × 3)

(f)   What is the probability that no customer arrives in a 3 hour time interval?

What is the expected number of arrivals in 3 hours?

Since Y  (3) ∼  P oisson(6),

P (Y  (3) = 0) = 60

0!e−6 E [Y  (3)] = 6

(g)   What is the distribution of the time until the   5th customer arrives? (Name

the distribution and it parameter value(s); As in part (f), an arrival does

not necessarily enter the barbershop)

Let O5 = the time until the 5th customer arrives.

O5 ∼   Erlang(5, 2) since  k  = 5 and  λ  = 2

.

(h)   What is the probability that the time until the   5th customer arrives is less

than 2.5 hours?

From above, P (O5 ≤  2.5) = F X (2.5) where  X  ∼   Erlang(5, 2)

F X (2.5) can be computed using the Poisson cdf, since   F X (2.5) = 1  −  F Y   (5 −  1)where Y    ∼   Poi(2 × 2.5) i.e., we need to look up the Poisson table for  F Y   (4) whereY    ∼   P oi(5).

From the tables, this is equal to .44 so the required probability is 1  − .44 = .56.

2