Am assuming a machine needs 2 types of parts to work which are type A and type B. The machine has one part of each type to begin, and there are also 2 spare A parts and 1 spare B part. I assume that, when a part fails, it is replaced by a spare part of the same type, if available, instantaneously. I'm supposing that the lifetimes (time in service) of all parts are independent whereby parts of type A are Exp(λ) distributed while parts of B are Exp(μ)
distributed.
I now want to determine the expected time until the machine fails for lack of needed parts.
In my opinion, I will proceed as follows:
Let the event that machine fails because of lack of part A be X while Y because it fails because of lack of part B Thus, I need to compute E(X+Y) = $E(X)$ + $E(Y)$. Since $X$ and $Y$ follow the exponential distribution with mean $1/λ$ and $1/μ$ respectively, we compute $2(1/λ)$ + (1/μ).
Is this correct?