# Waiting time: exponential distribution

Smith is waiting for his two friends Lee and Yang to visit his house. The time until Lee arrives is Exp($\lambda_1$) and the time until Yang arrives is Exp($\lambda_2$). After arrival, Lee stays an amount of time that is Exp($\mu_1$), whereas Yang stays an amount of time that is Exp($\mu_2$). All four random variables are independent. What is the probability that Lee arrives before and departs after Yang?

Attempt:

Denote A=Lee's arrive time; B=Lee's stay time; C=Yang's arrive time; D=Yang's stay time.

Then, this question is basically ask $P(A<C$ & $A+B<C+D).$

I recognize that $A-C<0$, and that the second inequality of the term above can be re-written as $A-C<D-B$.

But then I got stuck. Can I simply calculate $P(0<D-C)?$

• The question is $P(A<C \cap A+B>C+D)$ – kmitov Mar 2 '16 at 6:32

This is a do-able but tedious integral. I don't know of any shortcut method partly because all four parameters, $\lambda_1,\lambda_2,\mu_1,\mu_2$, can be different.