Anda di halaman 1dari 3

2005, MATH3801 ASSIGNMENT 4 WITH SOLUTIONS

1. Problems Problem 1. A service station has three servers. Assume, that at a certain time t0 all three servers are busy and the service times are independent and exponentially distributed with parameter = 0.5. (a) Let T be the rst moment when all three servers are free. Find ET . Hint. Use the result about the distribution of discharge times provided in the notes on Poisson process available on the web page of this course. (b) Assume that all three servers are busy when a new customer arrives at the service station. What is the probability that when his service will be completed, two other servers will still be busy with the same customers. Problem 2. Buses arrive at an intersection according to a Poisson process with the rate 10 arrivals/hour, and cars arrive at the same intersection according to another independent Poisson process with the rate 100 arrivals/hour. Let Nt denote the total number of arrivals before time t (with time measured in hours). (a) Find P (N3.1 N3 = 10). (b) Find E ( N5 N2 | N1 = 115). Problem 3. Consider a Birth and Death Process with birth rates i = (i + 1) and death rates i = i, i 0. (a) Determine the expected time to go from state 0 to state 4. (b) Find the invariant distribution of this chain. Problem 4. A car wash has room for at most 2 cars (including the one being washed). Hence, if there are already two cars in the system the following potential customers do not wait and leave. Potential customers arrive at a rate 3 per hour. The service time has the rate 4 per hour. (a) In the steady state, what is the expected number of cars in the car wash? (b) What is the proportion of of potential customers that enter the car wash? (c) If the car wash were twice as fast, how much business would it do? 2. Solutions Solution to Problem 1. (a) By the lack of memory of exponential distribution we may assume that t0 = 0. Let Tk denote the moment of the k-th completion of service, where k = 1, 2, 3, that is T1 T2 T3 . Then we know that T1 exp(3), Since T3 = T1 + (T2 T1 ) + (T3 T2 ) , we obtain 1 1 2 11 1 + + = +1+2= . 3 2 3 3 (b) Let C denote the moment when the customer service is completed and let Ti , i = 1, 2, 3 be the rst moment when the i-th server is free. Let A be the event that when the customer leaves two other servers are still busy. Then ET3 = ET1 + E (T2 T1 ) + E (T3 T2 ) = P(A) = P (C < min (T2 , T3 ) |T1 < min (T2 , T3 ) ) P (T1 < min (T2 , T3 )) +P (C < min (T1 , T3 ) |T2 < min (T1 , T3 ) ) P (T2 < min (T1 , T3 )) +P (C < min (T1 , T2 ) |T3 < min (T1 , T2 ) ) P (T3 < min (T1 , T2 ))
1

T2 T1 exp(2)

and T3 T2 exp().

= 3P (C < min (T2 , T3 ) |T1 < min (T2 , T3 ) ) P (T1 < min (T2 , T3 )) . By the lack of memory property C given T1 < min (T2 , T3 ) has exponential distribution with parameter and min (T2 , T3 ) has exponential distribution with parameter 2. Moreover, C and min (T2 , T3 ) are independent. Similarly, T1 and min (T2 , T3 ) are independent. Therefore, P(A) = 3 3 3 = 1 . 3

We used the fact (proved in class) that if X, Y are independent, X exp(), Y exp() then P(X < Y ) = . +

Solution to Problem 2. (a) Since buses and cars arrive independently the process (Nt ) of the total number of arrivals is Poisson with the intensity = 110. Therefore, 1110 11 e = 0.1194. 10! (b) Since the Poisson process has independent increments we obtain P (N3.1 N3 = 10) = P (N0.1 = 10) = E ( N5 N2 | N1 = 115) = E (N5 N2 ) = EN 3 = 3 = 330. Solution to Problem 3. (a) Let Ti,i+1 denote the time needed for a Birth and Death process to go from the state i to the state i + 1, where i = 01, . . .. Then ET0,1 = 1 and 0 ETi,i+1 = In our case, ET0,1 = Therefore, ET1,2 = 1 1+ , 2 ET3,4 = Finally, ET0,4 = ET0,1 + ET1,2 + ET2,3 + ET3,4 . (b) An invariant distribution exists if C= In fact we have C= if and only < . In that case and the invariant distribution = (1 , 2 , . . .) is given by C= n = 1 0 n1 = 1 + C 1 n 1
n

i 1 + ETi1,i , i i

1.

1 ,

Ti,i+1 =

1 i + ETi1,i . (i + 1) (i + 1) ET2,3 = 1 3 1+ 2 + 2 .

1 4

1+

2 3 + 2 + 3

0 n1 < . 1 n n=1

()(2) (n) = ()(2) (n) n=1 n=1

<

0.

Solution to Problem 4. Let Xt denote the number of cars in the car wash at time t. It is a Birth and Death process with death rates n = 4, n = 0, 1, 2,

and the birth rates 3 if n 1 0 if n = 2. (a) The generator of this process has the form 0 ( + ) , A= 0 n = and therefore the invariant distribution T = (0 , 1 , 2 ) can be found by solving the equation AT = 0. This equation yields 0 = 1+

1 +

2,

1 =

0 ,

2 =

0 .

Finally, denoting by N the expected number of cars in the car wash in the steady state we obtain EN = 1 + 22 . (b) The fraction of time when a customer can enter the car wash is and this gives also the proportion of potential customers who enter the car wash. (c) We need replace with 2 in the formulae for invariant probabilities: 0 + 1 = 0 1 + 0 = 1+ and compute EN again.
2

1 +
2

2,

1 =

0 , 2

2 =

0 ,

Anda mungkin juga menyukai