Machine $1$ is currently working. Machine $2$ will be put in use at time $t$ from now. If the lifetime of machine $i$ is exponential with rate $\lambda_i=1,2$, what is the probability that machine $1$ is the first machine to fail?

I tried a few things but I can not get the answer

Let $X_1\sim exp(\lambda_1)$ and $X_2\sim exp(\lambda_2)$ maybe I'm wrong playing, but I think the exercise asks $$P(X_1<X_2|X_2=t)=\frac{P(X_1<X_2,X_2=t)}{P(X_2=t)}$$

I believe that times are independent of each machine, but I think I can not take it.

Can anyone give a hand?

EDIT: The corret answer is $$1-e^{-\lambda_1t}+e^{-\lambda_1t}\frac{\lambda_1}{\lambda_1+\lambda_2}$$

  • what do you mean :"I believe that times are ind ...." ? – Cardinal Jul 19 '15 at 16:32
  • t is the life time or spent time ? – Cardinal Jul 19 '15 at 16:33
  • x representing spent time of RV X ? am I right ? – Cardinal Jul 19 '15 at 16:34
  • @Cardinal I do not know man, I typed the same as it was in the book, I think t is the time the machine 2 will operate, but not sure. – Roland Jul 19 '15 at 16:35
  • I think since the starting point for machain 2 is independent from machine 1, thus, they will be independent – Cardinal Jul 19 '15 at 16:36
up vote 2 down vote accepted

I don't believe what you wrote is exactly what you want. Since $X_2$ starts at time $t$, it gets a total of time $t$ without failing for free. It seems like you should be looking for $\mathbb{P}(X_1 < X_2 + t) = \mathbb{P}(X_1 - X_2 < t)$. From this page, we know the pdf of $X_1 - X_2$ is $$ f(x) = \frac{\lambda_1\lambda_2}{\lambda_1 + \lambda_2}\left\{ \begin{array}{ll}e^{-\lambda_1x} &\text{ if }x > 0 \\ e^{\lambda_2x} &\text{ if }x < 0\end{array}\right. .$$

Integrating this from $-\infty$ to $t$ gives \begin{align} \mathbb{P}(X_1 - X_2 < t) &=\frac{\lambda_1\lambda_2}{\lambda_1 + \lambda_2} \left(\int\limits_{-\infty}^0 e^{\lambda_2 x}dx + \int\limits_{0}^t e^{-\lambda_1 x} dx\right) \\ &= \frac{\lambda_1\lambda_2}{\lambda_1 + \lambda_2}\left(\frac{1}{\lambda_2} + \frac{1}{\lambda_1} - \frac{1}{\lambda_1} e^{-\lambda_1 t} \right) \\ &= 1 - e^{-\lambda_1 t} + e^{-\lambda_1 t}\frac{\lambda_1}{\lambda_1 + \lambda_2}. \end{align}

  • Sounds good, actually I did not understand well what is asked. – Roland Jul 19 '15 at 16:59
  • 2
    Just to explain a bit more: In words, the probability that you wrote down $\mathbb{P}(X_1 < X_2 | X_2 = t)$ is "the probability that machine $1$ fails before machine $2$ given that machine $2$ failed at time $t$. The problem was definitely awkwardly worded, though, so I understand the confusion. – Marcus M Jul 19 '15 at 17:04

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.