Suppose we bought a hard drive. With probability $p$ we've bought a good product, and with probability $1 - p$ it is defective.
- If the hard drive is good, the time to failure is exponentially distributed with parameter $\lambda_1$.
- If the hard drive is defective, the time to failure is exponentially distributed with parameter $\lambda_2$.
Now given that our hard drive has been functioning for time $T$, what is the probability that it is defective?
I tried to compute $$P(defective | t \ge T) = \frac{P(defective \cap t \ge T)}{P(t \ge T)},$$ but I cannot think of a way to compute the numerator. How can I compute the probability of the intersection?