Mean number of attempts for 3 events to happenwaiting 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

Removing files under particular conditions (number of files, file age)

Is a bound state a stationary state?

If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

How should I respond when I lied about my education and the company finds out through background check?

On a tidally locked planet, would time be quantized?

Loading commands from file

How to explain what's wrong with this application of the chain rule?

Travelling outside the UK without a passport

Creepy dinosaur pc game identification

Is it improper etiquette to ask your opponent what his/her rating is before the game?

Closed-form expression for certain product

Does a 'pending' US visa application constitute a denial?

A social experiment. What is the worst that can happen?

Why do we read the Megillah by night and by day?

It grows, but water kills it

Lowest total scrabble score

The IT department bottlenecks progress. How should I handle this?

What is this called? Old film camera viewer?

Should I stop contributing to retirement accounts?

Why Shazam when there is already Superman?

Pre-mixing cryogenic fuels and using only one fuel tank

Problem with TransformedDistribution

What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?



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

          Solar Wings Breeze Design and development Specifications (Breeze) References Navigation menu1368-485X"Hang glider: Breeze (Solar Wings)"e

          Kathakali Contents Etymology and nomenclature History Repertoire Songs and musical instruments Traditional plays Styles: Sampradayam Training centers and awards Relationship to other dance forms See also Notes References External links Navigation menueThe Illustrated Encyclopedia of Hinduism: A-MSouth Asian Folklore: An EncyclopediaRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to Play10.1353/atj.2005.0004The Illustrated Encyclopedia of Hinduism: A-MEncyclopedia of HinduismKathakali Dance-drama: Where Gods and Demons Come to PlaySonic Liturgy: Ritual and Music in Hindu Tradition"The Mirror of Gesture"Kathakali Dance-drama: Where Gods and Demons Come to Play"Kathakali"Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceMedieval Indian Literature: An AnthologyThe Oxford Companion to Indian TheatreSouth Asian Folklore: An Encyclopedia : Afghanistan, Bangladesh, India, Nepal, Pakistan, Sri LankaThe Rise of Performance Studies: Rethinking Richard Schechner's Broad SpectrumIndian Theatre: Traditions of PerformanceModern Asian Theatre and Performance 1900-2000Critical Theory and PerformanceBetween Theater and AnthropologyKathakali603847011Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceBetween Theater and AnthropologyBetween Theater and AnthropologyNambeesan Smaraka AwardsArchivedThe Cambridge Guide to TheatreRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeThe Garland Encyclopedia of World Music: South Asia : the Indian subcontinentThe Ethos of Noh: Actors and Their Art10.2307/1145740By Means of Performance: Intercultural Studies of Theatre and Ritual10.1017/s204912550000100xReconceiving the Renaissance: A Critical ReaderPerformance TheoryListening to Theatre: The Aural Dimension of Beijing Opera10.2307/1146013Kathakali: The Art of the Non-WorldlyOn KathakaliKathakali, the dance theatreThe Kathakali Complex: Performance & StructureKathakali Dance-Drama: Where Gods and Demons Come to Play10.1093/obo/9780195399318-0071Drama and Ritual of Early Hinduism"In the Shadow of Hollywood Orientalism: Authentic East Indian Dancing"10.1080/08949460490274013Sanskrit Play Production in Ancient IndiaIndian Music: History and StructureBharata, the Nāṭyaśāstra233639306Table of Contents2238067286469807Dance In Indian Painting10.2307/32047833204783Kathakali Dance-Theatre: A Visual Narrative of Sacred Indian MimeIndian Classical Dance: The Renaissance and BeyondKathakali: an indigenous art-form of Keralaeee

          Method to test if a number is a perfect power? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Detecting perfect squares faster than by extracting square rooteffective way to get the integer sequence A181392 from oeisA rarely mentioned fact about perfect powersHow many numbers such $n$ are there that $n<100,lfloorsqrtn rfloor mid n$Check perfect squareness by modulo division against multiple basesFor what pair of integers $(a,b)$ is $3^a + 7^b$ a perfect square.Do there exist any positive integers $n$ such that $lfloore^nrfloor$ is a perfect power? What is the probability that one exists?finding perfect power factors of an integerProve that the sequence contains a perfect square for any natural number $m $ in the domain of $f$ .Counting Perfect Powers