A post office is run by two clerks. When Smith enters the system, he finds that Jones is being served by one of the clerks, and brown is being served by the other. Also suppose that Smith is told that his service will begin as soon as either Jones or Brown leaves.
Assuming the service times of Smith, Jones and Brown are exponentially distributed with parameters $\lambda_s,\lambda_j, \lambda_b$ respectively, then answer the following:
$Q1$: What is the expected time until all three have left the post office.
My try:
Let $S, J, B$ be random variables representing service times of Smith, Jones and Brown respectively. Now expected time until all three leaves post office is: $$E(S+J+B)=E(S)+E(J)+E(B)=\frac{1}{\lambda_s}+\frac{1}{\lambda_j}+\frac{1}{\lambda_b}$$
Is this correct?
$Q2:$ Suppose clerk $i$ has service rate $\lambda_{i}$ for $i=1,2$. That is, if a customer is serviced by clerk $i$, the service time is exponentially distributed with mean $1 / \lambda_{i}, i=1,2$. Find the probability that smith is not the last to leave.
My try:
$P(\text {Smith is not the last to leave })=1-P(\text {Smith is the last to leave })$
I am stuck how to proceed in this.
For Question 2:
P(Smith served by clerk 1) = $P(Clerk 1 < Clerk 2) = \frac{\lambda_1}{\lambda_1 + \lambda_2}$
P(Smith served by clerk 2) = $P(Clerk 1 > Clerk 2) = \frac{\lambda_2}{\lambda_1 + \lambda_2}$
P(Smith does not leave last if at clerk 1) = P(Smith is served by clerk 1) * P (Clerk 1 < Clerk 2)
$\frac{\lambda_1}{\lambda_1 + \lambda_2}.\frac{\lambda_1}{\lambda_1 + \lambda_2}$
Note that P (Clerk 1 < Clerk 2) is because, if Smith is to not leave last, he has to finish first, and he is at clerk 1.
Similarly,
P(Smith does not leave last if at clerk 2) = P(Smith is served by clerk 2) * P (Clerk 2 < Clerk 1)
$\frac{\lambda_2}{\lambda_1 + \lambda_2}.\frac{\lambda_2}{\lambda_1 + \lambda_2}$
$\therefore P(Smith\ to\ not\ leave\ last) = \frac{\lambda_1}{\lambda_1 + \lambda_2}.\frac{\lambda_1}{\lambda_1 + \lambda_2} + \frac{\lambda_2}{\lambda_1 + \lambda_2}.\frac{\lambda_2}{\lambda_1 + \lambda_2}$
$ = (\frac{\lambda_1}{\lambda_1 + \lambda_2})^2 + (\frac{\lambda_2}{\lambda_1 + \lambda_2})^2 $