Mean number of attempts for 3 events to happenwaiting for TT and H?Probability game of independent eventsAn...

Sort a list by elements of another list

Proof of work - lottery approach

Why Were Madagascar and New Zealand Discovered So Late?

How to write papers efficiently when English isn't my first language?

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Avoiding estate tax by giving multiple gifts

How long to clear the 'suck zone' of a turbofan after start is initiated?

Crossing the line between justified force and brutality

Term for the "extreme-extension" version of a straw man fallacy?

Integer addition + constant, is it a group?

How do I go from 300 unfinished/half written blog posts, to published posts?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Escape a backup date in a file name

Lay out the Carpet

How does buying out courses with grant money work?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Purchasing a ticket for someone else in another country?

What is the difference between "behavior" and "behaviour"?

Go Pregnant or Go Home

Is it appropriate to ask a job candidate if we can record their interview?

Is the destination of a commercial flight important for the pilot?

Is expanding the research of a group into machine learning as a PhD student risky?

Arithmetic mean geometric mean inequality unclear



Mean number of attempts for 3 events to happen


waiting for TT and H?Probability game of independent eventsAn intuitive solution to this problem (Using probability tree)Bernoulli trials are run until 3 successful trials are completed. If probability of a success is 0.3 what is the expected number of failures?Probability of sequential successesProbability of multiple independent events occurring after repeated attemptsAssume $E[X^2]=20$. Find the mean and variance of $X$ if the mean and variance are equal.Total expected timeProbability - three-headed dragon and three knightsWhat's the probability of guessing a secret code if the attempts are limited and you stop at the first success?Conditional Probability about succeeding in nth attempt given the failure in n-1 attempts













1












$begingroup$


For example, 3 consecutive fixed tasks to complete, if one is failed, a new attempt is made from the beginning.

I'm saying an "attempt" is an attempt to complete all 3, a "try" is to try and complete a task.



Task A must be completed before B is tried, A and B must be completed before C is tried.
Each task has the same probability $p$ of being successful.



I have calculated:



1st task failed = $p$

1st task completed, 2nd task failed = $p(1-p)$

All 3 completed = $(1-p)^2$



and I've calculated the mean number of tries:$$p^2-3p+3$$



I tried to figure out the mean number of attempts for an "all three complete" but can't and I've been told the answer is, where w is the probability of all 3 completed: $$w + 2w(1-w) + 3w(1-w)^2 + ... + nw(1-w)^{(n-1)}$$
which reduces to $frac1w$, that is, $$frac1{(1-p)^2}$$



Could someone explain the maths and maybe intuition behind this please?










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    For example, 3 consecutive fixed tasks to complete, if one is failed, a new attempt is made from the beginning.

    I'm saying an "attempt" is an attempt to complete all 3, a "try" is to try and complete a task.



    Task A must be completed before B is tried, A and B must be completed before C is tried.
    Each task has the same probability $p$ of being successful.



    I have calculated:



    1st task failed = $p$

    1st task completed, 2nd task failed = $p(1-p)$

    All 3 completed = $(1-p)^2$



    and I've calculated the mean number of tries:$$p^2-3p+3$$



    I tried to figure out the mean number of attempts for an "all three complete" but can't and I've been told the answer is, where w is the probability of all 3 completed: $$w + 2w(1-w) + 3w(1-w)^2 + ... + nw(1-w)^{(n-1)}$$
    which reduces to $frac1w$, that is, $$frac1{(1-p)^2}$$



    Could someone explain the maths and maybe intuition behind this please?










    share|cite|improve this question









    $endgroup$















      1












      1








      1





      $begingroup$


      For example, 3 consecutive fixed tasks to complete, if one is failed, a new attempt is made from the beginning.

      I'm saying an "attempt" is an attempt to complete all 3, a "try" is to try and complete a task.



      Task A must be completed before B is tried, A and B must be completed before C is tried.
      Each task has the same probability $p$ of being successful.



      I have calculated:



      1st task failed = $p$

      1st task completed, 2nd task failed = $p(1-p)$

      All 3 completed = $(1-p)^2$



      and I've calculated the mean number of tries:$$p^2-3p+3$$



      I tried to figure out the mean number of attempts for an "all three complete" but can't and I've been told the answer is, where w is the probability of all 3 completed: $$w + 2w(1-w) + 3w(1-w)^2 + ... + nw(1-w)^{(n-1)}$$
      which reduces to $frac1w$, that is, $$frac1{(1-p)^2}$$



      Could someone explain the maths and maybe intuition behind this please?










      share|cite|improve this question









      $endgroup$




      For example, 3 consecutive fixed tasks to complete, if one is failed, a new attempt is made from the beginning.

      I'm saying an "attempt" is an attempt to complete all 3, a "try" is to try and complete a task.



      Task A must be completed before B is tried, A and B must be completed before C is tried.
      Each task has the same probability $p$ of being successful.



      I have calculated:



      1st task failed = $p$

      1st task completed, 2nd task failed = $p(1-p)$

      All 3 completed = $(1-p)^2$



      and I've calculated the mean number of tries:$$p^2-3p+3$$



      I tried to figure out the mean number of attempts for an "all three complete" but can't and I've been told the answer is, where w is the probability of all 3 completed: $$w + 2w(1-w) + 3w(1-w)^2 + ... + nw(1-w)^{(n-1)}$$
      which reduces to $frac1w$, that is, $$frac1{(1-p)^2}$$



      Could someone explain the maths and maybe intuition behind this please?







      probability






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 15 at 17:52









      WilliamWilliam

      104




      104






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          You can think of this problem as a Markov chain with 4 states - A, B, C, and D, where D is an absorbing state, i.e. you are done when you get there.




          • From state A, you go back to state A with probability (w.p.) 1-p and you go to state B w.p. p

          • From state B, you go back to state A w.p. 1-p and you go to state C w.p. p

          • From state C, you go back to state A w.p. 1-p and you go to state D (done!) w.p. p


          Now, let $T_A, T_B, T_C$ denote the expected times to transit from states A, B, C to the end of the game (state D).



          Based on the state transitions described above, you can write the following equations:



          $$T_A = (1-p)(1+T_A) + p(1+T_B)$$
          $$T_B = (1-p)(1+T_A) + p(1+T_C)$$
          $$T_C = (1-p)(1+T_A) + p(1)$$



          You can solve for $T_A$ from the above equations.



          $T_A = {1 over p} + {1 over p^2} + {1 over p^3}$ if I did the algebra right.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Thanks Aditya Dua, that is really helpful. Unfortunately I've realised the analogy I used to form my question is wrong, which is possibly where some of my confusion lies. I'll try and apply your method to my problem! Could someone advise me if it's better to edit the question so it is correct (regrettably rendering Aditya Dua's answer redundant) or to somehow delete the question and repost it? I don't want to leave it up as is since it might confuse people looking at it.
            $endgroup$
            – William
            Mar 16 at 12:56










          • $begingroup$
            Even though it's not what you wanted, the question in itself is fine (and so is the answer, I believe). You can leave this up there and maybe post a new question which describes the model pertinent to the problem you are trying to solve. My 2c.
            $endgroup$
            – Aditya Dua
            Mar 18 at 21:57











          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f3149605%2fmean-number-of-attempts-for-3-events-to-happen%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1












          $begingroup$

          You can think of this problem as a Markov chain with 4 states - A, B, C, and D, where D is an absorbing state, i.e. you are done when you get there.




          • From state A, you go back to state A with probability (w.p.) 1-p and you go to state B w.p. p

          • From state B, you go back to state A w.p. 1-p and you go to state C w.p. p

          • From state C, you go back to state A w.p. 1-p and you go to state D (done!) w.p. p


          Now, let $T_A, T_B, T_C$ denote the expected times to transit from states A, B, C to the end of the game (state D).



          Based on the state transitions described above, you can write the following equations:



          $$T_A = (1-p)(1+T_A) + p(1+T_B)$$
          $$T_B = (1-p)(1+T_A) + p(1+T_C)$$
          $$T_C = (1-p)(1+T_A) + p(1)$$



          You can solve for $T_A$ from the above equations.



          $T_A = {1 over p} + {1 over p^2} + {1 over p^3}$ if I did the algebra right.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Thanks Aditya Dua, that is really helpful. Unfortunately I've realised the analogy I used to form my question is wrong, which is possibly where some of my confusion lies. I'll try and apply your method to my problem! Could someone advise me if it's better to edit the question so it is correct (regrettably rendering Aditya Dua's answer redundant) or to somehow delete the question and repost it? I don't want to leave it up as is since it might confuse people looking at it.
            $endgroup$
            – William
            Mar 16 at 12:56










          • $begingroup$
            Even though it's not what you wanted, the question in itself is fine (and so is the answer, I believe). You can leave this up there and maybe post a new question which describes the model pertinent to the problem you are trying to solve. My 2c.
            $endgroup$
            – Aditya Dua
            Mar 18 at 21:57
















          1












          $begingroup$

          You can think of this problem as a Markov chain with 4 states - A, B, C, and D, where D is an absorbing state, i.e. you are done when you get there.




          • From state A, you go back to state A with probability (w.p.) 1-p and you go to state B w.p. p

          • From state B, you go back to state A w.p. 1-p and you go to state C w.p. p

          • From state C, you go back to state A w.p. 1-p and you go to state D (done!) w.p. p


          Now, let $T_A, T_B, T_C$ denote the expected times to transit from states A, B, C to the end of the game (state D).



          Based on the state transitions described above, you can write the following equations:



          $$T_A = (1-p)(1+T_A) + p(1+T_B)$$
          $$T_B = (1-p)(1+T_A) + p(1+T_C)$$
          $$T_C = (1-p)(1+T_A) + p(1)$$



          You can solve for $T_A$ from the above equations.



          $T_A = {1 over p} + {1 over p^2} + {1 over p^3}$ if I did the algebra right.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Thanks Aditya Dua, that is really helpful. Unfortunately I've realised the analogy I used to form my question is wrong, which is possibly where some of my confusion lies. I'll try and apply your method to my problem! Could someone advise me if it's better to edit the question so it is correct (regrettably rendering Aditya Dua's answer redundant) or to somehow delete the question and repost it? I don't want to leave it up as is since it might confuse people looking at it.
            $endgroup$
            – William
            Mar 16 at 12:56










          • $begingroup$
            Even though it's not what you wanted, the question in itself is fine (and so is the answer, I believe). You can leave this up there and maybe post a new question which describes the model pertinent to the problem you are trying to solve. My 2c.
            $endgroup$
            – Aditya Dua
            Mar 18 at 21:57














          1












          1








          1





          $begingroup$

          You can think of this problem as a Markov chain with 4 states - A, B, C, and D, where D is an absorbing state, i.e. you are done when you get there.




          • From state A, you go back to state A with probability (w.p.) 1-p and you go to state B w.p. p

          • From state B, you go back to state A w.p. 1-p and you go to state C w.p. p

          • From state C, you go back to state A w.p. 1-p and you go to state D (done!) w.p. p


          Now, let $T_A, T_B, T_C$ denote the expected times to transit from states A, B, C to the end of the game (state D).



          Based on the state transitions described above, you can write the following equations:



          $$T_A = (1-p)(1+T_A) + p(1+T_B)$$
          $$T_B = (1-p)(1+T_A) + p(1+T_C)$$
          $$T_C = (1-p)(1+T_A) + p(1)$$



          You can solve for $T_A$ from the above equations.



          $T_A = {1 over p} + {1 over p^2} + {1 over p^3}$ if I did the algebra right.






          share|cite|improve this answer











          $endgroup$



          You can think of this problem as a Markov chain with 4 states - A, B, C, and D, where D is an absorbing state, i.e. you are done when you get there.




          • From state A, you go back to state A with probability (w.p.) 1-p and you go to state B w.p. p

          • From state B, you go back to state A w.p. 1-p and you go to state C w.p. p

          • From state C, you go back to state A w.p. 1-p and you go to state D (done!) w.p. p


          Now, let $T_A, T_B, T_C$ denote the expected times to transit from states A, B, C to the end of the game (state D).



          Based on the state transitions described above, you can write the following equations:



          $$T_A = (1-p)(1+T_A) + p(1+T_B)$$
          $$T_B = (1-p)(1+T_A) + p(1+T_C)$$
          $$T_C = (1-p)(1+T_A) + p(1)$$



          You can solve for $T_A$ from the above equations.



          $T_A = {1 over p} + {1 over p^2} + {1 over p^3}$ if I did the algebra right.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Mar 15 at 18:40

























          answered Mar 15 at 18:32









          Aditya DuaAditya Dua

          1,15418




          1,15418












          • $begingroup$
            Thanks Aditya Dua, that is really helpful. Unfortunately I've realised the analogy I used to form my question is wrong, which is possibly where some of my confusion lies. I'll try and apply your method to my problem! Could someone advise me if it's better to edit the question so it is correct (regrettably rendering Aditya Dua's answer redundant) or to somehow delete the question and repost it? I don't want to leave it up as is since it might confuse people looking at it.
            $endgroup$
            – William
            Mar 16 at 12:56










          • $begingroup$
            Even though it's not what you wanted, the question in itself is fine (and so is the answer, I believe). You can leave this up there and maybe post a new question which describes the model pertinent to the problem you are trying to solve. My 2c.
            $endgroup$
            – Aditya Dua
            Mar 18 at 21:57


















          • $begingroup$
            Thanks Aditya Dua, that is really helpful. Unfortunately I've realised the analogy I used to form my question is wrong, which is possibly where some of my confusion lies. I'll try and apply your method to my problem! Could someone advise me if it's better to edit the question so it is correct (regrettably rendering Aditya Dua's answer redundant) or to somehow delete the question and repost it? I don't want to leave it up as is since it might confuse people looking at it.
            $endgroup$
            – William
            Mar 16 at 12:56










          • $begingroup$
            Even though it's not what you wanted, the question in itself is fine (and so is the answer, I believe). You can leave this up there and maybe post a new question which describes the model pertinent to the problem you are trying to solve. My 2c.
            $endgroup$
            – Aditya Dua
            Mar 18 at 21:57
















          $begingroup$
          Thanks Aditya Dua, that is really helpful. Unfortunately I've realised the analogy I used to form my question is wrong, which is possibly where some of my confusion lies. I'll try and apply your method to my problem! Could someone advise me if it's better to edit the question so it is correct (regrettably rendering Aditya Dua's answer redundant) or to somehow delete the question and repost it? I don't want to leave it up as is since it might confuse people looking at it.
          $endgroup$
          – William
          Mar 16 at 12:56




          $begingroup$
          Thanks Aditya Dua, that is really helpful. Unfortunately I've realised the analogy I used to form my question is wrong, which is possibly where some of my confusion lies. I'll try and apply your method to my problem! Could someone advise me if it's better to edit the question so it is correct (regrettably rendering Aditya Dua's answer redundant) or to somehow delete the question and repost it? I don't want to leave it up as is since it might confuse people looking at it.
          $endgroup$
          – William
          Mar 16 at 12:56












          $begingroup$
          Even though it's not what you wanted, the question in itself is fine (and so is the answer, I believe). You can leave this up there and maybe post a new question which describes the model pertinent to the problem you are trying to solve. My 2c.
          $endgroup$
          – Aditya Dua
          Mar 18 at 21:57




          $begingroup$
          Even though it's not what you wanted, the question in itself is fine (and so is the answer, I believe). You can leave this up there and maybe post a new question which describes the model pertinent to the problem you are trying to solve. My 2c.
          $endgroup$
          – Aditya Dua
          Mar 18 at 21:57


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3149605%2fmean-number-of-attempts-for-3-events-to-happen%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Nidaros erkebispedøme

          Birsay

          Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...