Lifespan of a machine with two breaking parts.

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Let us consider a machine with two parts X and Y. The time before part X goes out of service has an Exponential distribution with $lambda = 1$ and the time before part Y goes out of service has an Exponential distribution with $lambda = 0.05$ (its life expectation is 20 time units). When the part X breaks it is replaced in 1 time unit and the whole machine is not working during this time (hence the part Y is not ageing while the part X is being replaced). When part Y goes out of service, the whole machine is considered dead. What is the expectation of the random variable T, which stands for the time before death of the whole machine?



I have tried to consider conditioning on the lifespan of the part Y (I denoted this random variable T_Y) and on the number of times the part X breaks before the part Y goes out of service (N).
$$ E(T) = sum_k=0^inftyint_0^inftyE(T|T_Y, N)P(N=k|T_Y)P(T_Y=t_y)dt_y $$
But I am unsure of the formula. Also I would say that $E(T|T_Y, N) = t_y + k$ but I don't see why exactly. And what would be $ P(N=k|T_y)$?







share|cite|improve this question





















  • Just checking that I understand the question. $E(T)$ is the expected time to failure of part $Y$ plus the expected number of times that part $X$ fails before part $Y$ fails. Is that correct?
    – saulspatz
    Aug 6 at 15:13










  • Yes, I think so.
    – Vwann
    Aug 6 at 15:22














up vote
0
down vote

favorite












Let us consider a machine with two parts X and Y. The time before part X goes out of service has an Exponential distribution with $lambda = 1$ and the time before part Y goes out of service has an Exponential distribution with $lambda = 0.05$ (its life expectation is 20 time units). When the part X breaks it is replaced in 1 time unit and the whole machine is not working during this time (hence the part Y is not ageing while the part X is being replaced). When part Y goes out of service, the whole machine is considered dead. What is the expectation of the random variable T, which stands for the time before death of the whole machine?



I have tried to consider conditioning on the lifespan of the part Y (I denoted this random variable T_Y) and on the number of times the part X breaks before the part Y goes out of service (N).
$$ E(T) = sum_k=0^inftyint_0^inftyE(T|T_Y, N)P(N=k|T_Y)P(T_Y=t_y)dt_y $$
But I am unsure of the formula. Also I would say that $E(T|T_Y, N) = t_y + k$ but I don't see why exactly. And what would be $ P(N=k|T_y)$?







share|cite|improve this question





















  • Just checking that I understand the question. $E(T)$ is the expected time to failure of part $Y$ plus the expected number of times that part $X$ fails before part $Y$ fails. Is that correct?
    – saulspatz
    Aug 6 at 15:13










  • Yes, I think so.
    – Vwann
    Aug 6 at 15:22












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Let us consider a machine with two parts X and Y. The time before part X goes out of service has an Exponential distribution with $lambda = 1$ and the time before part Y goes out of service has an Exponential distribution with $lambda = 0.05$ (its life expectation is 20 time units). When the part X breaks it is replaced in 1 time unit and the whole machine is not working during this time (hence the part Y is not ageing while the part X is being replaced). When part Y goes out of service, the whole machine is considered dead. What is the expectation of the random variable T, which stands for the time before death of the whole machine?



I have tried to consider conditioning on the lifespan of the part Y (I denoted this random variable T_Y) and on the number of times the part X breaks before the part Y goes out of service (N).
$$ E(T) = sum_k=0^inftyint_0^inftyE(T|T_Y, N)P(N=k|T_Y)P(T_Y=t_y)dt_y $$
But I am unsure of the formula. Also I would say that $E(T|T_Y, N) = t_y + k$ but I don't see why exactly. And what would be $ P(N=k|T_y)$?







share|cite|improve this question













Let us consider a machine with two parts X and Y. The time before part X goes out of service has an Exponential distribution with $lambda = 1$ and the time before part Y goes out of service has an Exponential distribution with $lambda = 0.05$ (its life expectation is 20 time units). When the part X breaks it is replaced in 1 time unit and the whole machine is not working during this time (hence the part Y is not ageing while the part X is being replaced). When part Y goes out of service, the whole machine is considered dead. What is the expectation of the random variable T, which stands for the time before death of the whole machine?



I have tried to consider conditioning on the lifespan of the part Y (I denoted this random variable T_Y) and on the number of times the part X breaks before the part Y goes out of service (N).
$$ E(T) = sum_k=0^inftyint_0^inftyE(T|T_Y, N)P(N=k|T_Y)P(T_Y=t_y)dt_y $$
But I am unsure of the formula. Also I would say that $E(T|T_Y, N) = t_y + k$ but I don't see why exactly. And what would be $ P(N=k|T_y)$?









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Aug 6 at 15:23
























asked Aug 6 at 15:03









Vwann

224




224











  • Just checking that I understand the question. $E(T)$ is the expected time to failure of part $Y$ plus the expected number of times that part $X$ fails before part $Y$ fails. Is that correct?
    – saulspatz
    Aug 6 at 15:13










  • Yes, I think so.
    – Vwann
    Aug 6 at 15:22
















  • Just checking that I understand the question. $E(T)$ is the expected time to failure of part $Y$ plus the expected number of times that part $X$ fails before part $Y$ fails. Is that correct?
    – saulspatz
    Aug 6 at 15:13










  • Yes, I think so.
    – Vwann
    Aug 6 at 15:22















Just checking that I understand the question. $E(T)$ is the expected time to failure of part $Y$ plus the expected number of times that part $X$ fails before part $Y$ fails. Is that correct?
– saulspatz
Aug 6 at 15:13




Just checking that I understand the question. $E(T)$ is the expected time to failure of part $Y$ plus the expected number of times that part $X$ fails before part $Y$ fails. Is that correct?
– saulspatz
Aug 6 at 15:13












Yes, I think so.
– Vwann
Aug 6 at 15:22




Yes, I think so.
– Vwann
Aug 6 at 15:22










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Since the exponential distribution is memoryless, each time part $X$ is replaced, we have a new Bernoulli trial, where success means that part $Y$ fails before part $X.$ From the distribution of the difference of two independent exponentially-distributed random variables, (see this question) we calculate that the probability of success is $$p=.05over1.05$$ and we know that the expected number of trials until success is $$1over p=21$$



That means, that on average, part $X$ fails $20$ times before part $Y$ fails, so $$E(T)=20+E(Y)=20+20=40$$



just as we would have guessed.






share|cite|improve this answer





















  • Thank you for your response. Can I ask if I understand correctly? The number of fails of the part $X$ is independent from the time before the part $Y$ fails and has a geometric distribution (a sum of those Bernoulli trials you mentioned) with a probability of success $p = 1/21$?
    – Vwann
    Aug 6 at 20:22











  • So if we were to count the variance of the time before death it could be something like $Var(T) = 1-p/(p^2) + 1/(lambda^2) = 20*21 +20^2$?
    – Vwann
    Aug 6 at 20:27










  • "The number of fails of the part $X$ is independent from the time before the part $Y$ fails." I don't think that this is what you mean; I can't make sense of it. I think that if $N$ is the number of failures of part $X$ before the failure of part $Y,$ then $N$ has the geometric distribution you describe.
    – saulspatz
    Aug 6 at 20:52










  • I'm not sure about the variance. If $Z$ is the lifetime of part $Y$ then $T=Z+N$ But surely $Z$ and $N$ are correlated, so you can't add up the variances. This is really a different question, so you really should ask a different question if you want to pursue it. I don't think I know how to do it, at least not without a lot of work.
    – saulspatz
    Aug 6 at 20:58










  • You are right, I can not compute the variance as a sum of variances.
    – Vwann
    Aug 6 at 21:14










Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873964%2flifespan-of-a-machine-with-two-breaking-parts%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Since the exponential distribution is memoryless, each time part $X$ is replaced, we have a new Bernoulli trial, where success means that part $Y$ fails before part $X.$ From the distribution of the difference of two independent exponentially-distributed random variables, (see this question) we calculate that the probability of success is $$p=.05over1.05$$ and we know that the expected number of trials until success is $$1over p=21$$



That means, that on average, part $X$ fails $20$ times before part $Y$ fails, so $$E(T)=20+E(Y)=20+20=40$$



just as we would have guessed.






share|cite|improve this answer





















  • Thank you for your response. Can I ask if I understand correctly? The number of fails of the part $X$ is independent from the time before the part $Y$ fails and has a geometric distribution (a sum of those Bernoulli trials you mentioned) with a probability of success $p = 1/21$?
    – Vwann
    Aug 6 at 20:22











  • So if we were to count the variance of the time before death it could be something like $Var(T) = 1-p/(p^2) + 1/(lambda^2) = 20*21 +20^2$?
    – Vwann
    Aug 6 at 20:27










  • "The number of fails of the part $X$ is independent from the time before the part $Y$ fails." I don't think that this is what you mean; I can't make sense of it. I think that if $N$ is the number of failures of part $X$ before the failure of part $Y,$ then $N$ has the geometric distribution you describe.
    – saulspatz
    Aug 6 at 20:52










  • I'm not sure about the variance. If $Z$ is the lifetime of part $Y$ then $T=Z+N$ But surely $Z$ and $N$ are correlated, so you can't add up the variances. This is really a different question, so you really should ask a different question if you want to pursue it. I don't think I know how to do it, at least not without a lot of work.
    – saulspatz
    Aug 6 at 20:58










  • You are right, I can not compute the variance as a sum of variances.
    – Vwann
    Aug 6 at 21:14














up vote
1
down vote



accepted










Since the exponential distribution is memoryless, each time part $X$ is replaced, we have a new Bernoulli trial, where success means that part $Y$ fails before part $X.$ From the distribution of the difference of two independent exponentially-distributed random variables, (see this question) we calculate that the probability of success is $$p=.05over1.05$$ and we know that the expected number of trials until success is $$1over p=21$$



That means, that on average, part $X$ fails $20$ times before part $Y$ fails, so $$E(T)=20+E(Y)=20+20=40$$



just as we would have guessed.






share|cite|improve this answer





















  • Thank you for your response. Can I ask if I understand correctly? The number of fails of the part $X$ is independent from the time before the part $Y$ fails and has a geometric distribution (a sum of those Bernoulli trials you mentioned) with a probability of success $p = 1/21$?
    – Vwann
    Aug 6 at 20:22











  • So if we were to count the variance of the time before death it could be something like $Var(T) = 1-p/(p^2) + 1/(lambda^2) = 20*21 +20^2$?
    – Vwann
    Aug 6 at 20:27










  • "The number of fails of the part $X$ is independent from the time before the part $Y$ fails." I don't think that this is what you mean; I can't make sense of it. I think that if $N$ is the number of failures of part $X$ before the failure of part $Y,$ then $N$ has the geometric distribution you describe.
    – saulspatz
    Aug 6 at 20:52










  • I'm not sure about the variance. If $Z$ is the lifetime of part $Y$ then $T=Z+N$ But surely $Z$ and $N$ are correlated, so you can't add up the variances. This is really a different question, so you really should ask a different question if you want to pursue it. I don't think I know how to do it, at least not without a lot of work.
    – saulspatz
    Aug 6 at 20:58










  • You are right, I can not compute the variance as a sum of variances.
    – Vwann
    Aug 6 at 21:14












up vote
1
down vote



accepted







up vote
1
down vote



accepted






Since the exponential distribution is memoryless, each time part $X$ is replaced, we have a new Bernoulli trial, where success means that part $Y$ fails before part $X.$ From the distribution of the difference of two independent exponentially-distributed random variables, (see this question) we calculate that the probability of success is $$p=.05over1.05$$ and we know that the expected number of trials until success is $$1over p=21$$



That means, that on average, part $X$ fails $20$ times before part $Y$ fails, so $$E(T)=20+E(Y)=20+20=40$$



just as we would have guessed.






share|cite|improve this answer













Since the exponential distribution is memoryless, each time part $X$ is replaced, we have a new Bernoulli trial, where success means that part $Y$ fails before part $X.$ From the distribution of the difference of two independent exponentially-distributed random variables, (see this question) we calculate that the probability of success is $$p=.05over1.05$$ and we know that the expected number of trials until success is $$1over p=21$$



That means, that on average, part $X$ fails $20$ times before part $Y$ fails, so $$E(T)=20+E(Y)=20+20=40$$



just as we would have guessed.







share|cite|improve this answer













share|cite|improve this answer



share|cite|improve this answer











answered Aug 6 at 16:49









saulspatz

10.7k21323




10.7k21323











  • Thank you for your response. Can I ask if I understand correctly? The number of fails of the part $X$ is independent from the time before the part $Y$ fails and has a geometric distribution (a sum of those Bernoulli trials you mentioned) with a probability of success $p = 1/21$?
    – Vwann
    Aug 6 at 20:22











  • So if we were to count the variance of the time before death it could be something like $Var(T) = 1-p/(p^2) + 1/(lambda^2) = 20*21 +20^2$?
    – Vwann
    Aug 6 at 20:27










  • "The number of fails of the part $X$ is independent from the time before the part $Y$ fails." I don't think that this is what you mean; I can't make sense of it. I think that if $N$ is the number of failures of part $X$ before the failure of part $Y,$ then $N$ has the geometric distribution you describe.
    – saulspatz
    Aug 6 at 20:52










  • I'm not sure about the variance. If $Z$ is the lifetime of part $Y$ then $T=Z+N$ But surely $Z$ and $N$ are correlated, so you can't add up the variances. This is really a different question, so you really should ask a different question if you want to pursue it. I don't think I know how to do it, at least not without a lot of work.
    – saulspatz
    Aug 6 at 20:58










  • You are right, I can not compute the variance as a sum of variances.
    – Vwann
    Aug 6 at 21:14
















  • Thank you for your response. Can I ask if I understand correctly? The number of fails of the part $X$ is independent from the time before the part $Y$ fails and has a geometric distribution (a sum of those Bernoulli trials you mentioned) with a probability of success $p = 1/21$?
    – Vwann
    Aug 6 at 20:22











  • So if we were to count the variance of the time before death it could be something like $Var(T) = 1-p/(p^2) + 1/(lambda^2) = 20*21 +20^2$?
    – Vwann
    Aug 6 at 20:27










  • "The number of fails of the part $X$ is independent from the time before the part $Y$ fails." I don't think that this is what you mean; I can't make sense of it. I think that if $N$ is the number of failures of part $X$ before the failure of part $Y,$ then $N$ has the geometric distribution you describe.
    – saulspatz
    Aug 6 at 20:52










  • I'm not sure about the variance. If $Z$ is the lifetime of part $Y$ then $T=Z+N$ But surely $Z$ and $N$ are correlated, so you can't add up the variances. This is really a different question, so you really should ask a different question if you want to pursue it. I don't think I know how to do it, at least not without a lot of work.
    – saulspatz
    Aug 6 at 20:58










  • You are right, I can not compute the variance as a sum of variances.
    – Vwann
    Aug 6 at 21:14















Thank you for your response. Can I ask if I understand correctly? The number of fails of the part $X$ is independent from the time before the part $Y$ fails and has a geometric distribution (a sum of those Bernoulli trials you mentioned) with a probability of success $p = 1/21$?
– Vwann
Aug 6 at 20:22





Thank you for your response. Can I ask if I understand correctly? The number of fails of the part $X$ is independent from the time before the part $Y$ fails and has a geometric distribution (a sum of those Bernoulli trials you mentioned) with a probability of success $p = 1/21$?
– Vwann
Aug 6 at 20:22













So if we were to count the variance of the time before death it could be something like $Var(T) = 1-p/(p^2) + 1/(lambda^2) = 20*21 +20^2$?
– Vwann
Aug 6 at 20:27




So if we were to count the variance of the time before death it could be something like $Var(T) = 1-p/(p^2) + 1/(lambda^2) = 20*21 +20^2$?
– Vwann
Aug 6 at 20:27












"The number of fails of the part $X$ is independent from the time before the part $Y$ fails." I don't think that this is what you mean; I can't make sense of it. I think that if $N$ is the number of failures of part $X$ before the failure of part $Y,$ then $N$ has the geometric distribution you describe.
– saulspatz
Aug 6 at 20:52




"The number of fails of the part $X$ is independent from the time before the part $Y$ fails." I don't think that this is what you mean; I can't make sense of it. I think that if $N$ is the number of failures of part $X$ before the failure of part $Y,$ then $N$ has the geometric distribution you describe.
– saulspatz
Aug 6 at 20:52












I'm not sure about the variance. If $Z$ is the lifetime of part $Y$ then $T=Z+N$ But surely $Z$ and $N$ are correlated, so you can't add up the variances. This is really a different question, so you really should ask a different question if you want to pursue it. I don't think I know how to do it, at least not without a lot of work.
– saulspatz
Aug 6 at 20:58




I'm not sure about the variance. If $Z$ is the lifetime of part $Y$ then $T=Z+N$ But surely $Z$ and $N$ are correlated, so you can't add up the variances. This is really a different question, so you really should ask a different question if you want to pursue it. I don't think I know how to do it, at least not without a lot of work.
– saulspatz
Aug 6 at 20:58












You are right, I can not compute the variance as a sum of variances.
– Vwann
Aug 6 at 21:14




You are right, I can not compute the variance as a sum of variances.
– Vwann
Aug 6 at 21:14












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873964%2flifespan-of-a-machine-with-two-breaking-parts%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?