finding the probability for coin toss and expected number of flips required, is this the right answer for...












0












$begingroup$


A coin having probability $p$ of coming up head is to be successively flipped until the first head appears.




  1. find the probability that the first head occurs in odd number of tosses ?

  2. find the expected number of flips required for the first head ?


the solution for number 1
$p(1 + (1-p)^2 + (1-p)^4 + ldots)
= pdisplaystylesum_{i=0}^infty ((1-p)^2)^i = frac{p}{1-(1-p)^2} = frac{1}{2-p}.$



the solution for number 2



$sumlimits_{i=1}^infty i p (1-p)^{i-1}=frac{1}{p}~~~~~~~$



is this the right answer for this problem and thank you










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    A coin having probability $p$ of coming up head is to be successively flipped until the first head appears.




    1. find the probability that the first head occurs in odd number of tosses ?

    2. find the expected number of flips required for the first head ?


    the solution for number 1
    $p(1 + (1-p)^2 + (1-p)^4 + ldots)
    = pdisplaystylesum_{i=0}^infty ((1-p)^2)^i = frac{p}{1-(1-p)^2} = frac{1}{2-p}.$



    the solution for number 2



    $sumlimits_{i=1}^infty i p (1-p)^{i-1}=frac{1}{p}~~~~~~~$



    is this the right answer for this problem and thank you










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      A coin having probability $p$ of coming up head is to be successively flipped until the first head appears.




      1. find the probability that the first head occurs in odd number of tosses ?

      2. find the expected number of flips required for the first head ?


      the solution for number 1
      $p(1 + (1-p)^2 + (1-p)^4 + ldots)
      = pdisplaystylesum_{i=0}^infty ((1-p)^2)^i = frac{p}{1-(1-p)^2} = frac{1}{2-p}.$



      the solution for number 2



      $sumlimits_{i=1}^infty i p (1-p)^{i-1}=frac{1}{p}~~~~~~~$



      is this the right answer for this problem and thank you










      share|cite|improve this question









      $endgroup$




      A coin having probability $p$ of coming up head is to be successively flipped until the first head appears.




      1. find the probability that the first head occurs in odd number of tosses ?

      2. find the expected number of flips required for the first head ?


      the solution for number 1
      $p(1 + (1-p)^2 + (1-p)^4 + ldots)
      = pdisplaystylesum_{i=0}^infty ((1-p)^2)^i = frac{p}{1-(1-p)^2} = frac{1}{2-p}.$



      the solution for number 2



      $sumlimits_{i=1}^infty i p (1-p)^{i-1}=frac{1}{p}~~~~~~~$



      is this the right answer for this problem and thank you







      probability statistics probability-distributions






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 16 '18 at 19:03









      green lifegreen life

      186




      186






















          2 Answers
          2






          active

          oldest

          votes


















          0












          $begingroup$

          Both are correct.



          As a way to avoid the use of infinite series:



          For the first note that we either win on the first roll, lose on the second, or reset. Thus, letting $Psi$ denote the answer, we have $$Psi=p+(1-p)ptimes 0+(1-p)^2Psiimplies left(1-(1-p)^2right)Psi=pimplies Psi=frac p{1-(1-p^2)}$$



          For the second note the recursive relation $$E=ptimes 1 +(1-p)times (E+1)implies pE=1implies E=frac 1p$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            thank you very much for confirming the answer and for explaining this more clear way to obtain it
            $endgroup$
            – green life
            Dec 16 '18 at 19:28



















          0












          $begingroup$

          Let $X = $ number of tosses until a head appears.



          Then $X$ ~ Geometric$(frac{1}{2})$.



          Part 1



          The probability we wish to calculate is,



          $$
          Pr(odd) =
          sum_{k=0}^{infty}{Pr(X = 2k + 1)} =
          sum_{k=0}^{infty}{p(1 - p)^{2k}} =
          psum_{k=0}^{infty}{((1-p)^{2})^{k}} =
          frac{p}{1 - (1-p)^{2}} =
          frac{1}{2-p}
          $$



          Part 2



          Let $Y = $ heads was seen on the first flip.



          Then $Y$ ~ Bernoulli$(p)$.



          $$
          E[X] = E[E[X|Y]] = Pr(Y = 1)E[X|Y=1] + Pr(Y=0)E[X| Y=0] = p(1) + (1-p)(1 + E[X])
          $$



          This then reduces to the equation,
          $$
          E[X] = 1 + (1-p)E[X]
          $$

          And then solving for $E[X]$ we get
          $$
          E[X] = frac{1}{p}
          $$



          Remarks



          My calculations agree with yours, so I would conclude that your answers are correct.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            thank you very much for confirming the answer and for the explanation
            $endgroup$
            – green life
            Dec 16 '18 at 19:42













          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%2f3043016%2ffinding-the-probability-for-coin-toss-and-expected-number-of-flips-required-is%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          Both are correct.



          As a way to avoid the use of infinite series:



          For the first note that we either win on the first roll, lose on the second, or reset. Thus, letting $Psi$ denote the answer, we have $$Psi=p+(1-p)ptimes 0+(1-p)^2Psiimplies left(1-(1-p)^2right)Psi=pimplies Psi=frac p{1-(1-p^2)}$$



          For the second note the recursive relation $$E=ptimes 1 +(1-p)times (E+1)implies pE=1implies E=frac 1p$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            thank you very much for confirming the answer and for explaining this more clear way to obtain it
            $endgroup$
            – green life
            Dec 16 '18 at 19:28
















          0












          $begingroup$

          Both are correct.



          As a way to avoid the use of infinite series:



          For the first note that we either win on the first roll, lose on the second, or reset. Thus, letting $Psi$ denote the answer, we have $$Psi=p+(1-p)ptimes 0+(1-p)^2Psiimplies left(1-(1-p)^2right)Psi=pimplies Psi=frac p{1-(1-p^2)}$$



          For the second note the recursive relation $$E=ptimes 1 +(1-p)times (E+1)implies pE=1implies E=frac 1p$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            thank you very much for confirming the answer and for explaining this more clear way to obtain it
            $endgroup$
            – green life
            Dec 16 '18 at 19:28














          0












          0








          0





          $begingroup$

          Both are correct.



          As a way to avoid the use of infinite series:



          For the first note that we either win on the first roll, lose on the second, or reset. Thus, letting $Psi$ denote the answer, we have $$Psi=p+(1-p)ptimes 0+(1-p)^2Psiimplies left(1-(1-p)^2right)Psi=pimplies Psi=frac p{1-(1-p^2)}$$



          For the second note the recursive relation $$E=ptimes 1 +(1-p)times (E+1)implies pE=1implies E=frac 1p$$






          share|cite|improve this answer









          $endgroup$



          Both are correct.



          As a way to avoid the use of infinite series:



          For the first note that we either win on the first roll, lose on the second, or reset. Thus, letting $Psi$ denote the answer, we have $$Psi=p+(1-p)ptimes 0+(1-p)^2Psiimplies left(1-(1-p)^2right)Psi=pimplies Psi=frac p{1-(1-p^2)}$$



          For the second note the recursive relation $$E=ptimes 1 +(1-p)times (E+1)implies pE=1implies E=frac 1p$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 16 '18 at 19:13









          lulululu

          42.9k25080




          42.9k25080












          • $begingroup$
            thank you very much for confirming the answer and for explaining this more clear way to obtain it
            $endgroup$
            – green life
            Dec 16 '18 at 19:28


















          • $begingroup$
            thank you very much for confirming the answer and for explaining this more clear way to obtain it
            $endgroup$
            – green life
            Dec 16 '18 at 19:28
















          $begingroup$
          thank you very much for confirming the answer and for explaining this more clear way to obtain it
          $endgroup$
          – green life
          Dec 16 '18 at 19:28




          $begingroup$
          thank you very much for confirming the answer and for explaining this more clear way to obtain it
          $endgroup$
          – green life
          Dec 16 '18 at 19:28











          0












          $begingroup$

          Let $X = $ number of tosses until a head appears.



          Then $X$ ~ Geometric$(frac{1}{2})$.



          Part 1



          The probability we wish to calculate is,



          $$
          Pr(odd) =
          sum_{k=0}^{infty}{Pr(X = 2k + 1)} =
          sum_{k=0}^{infty}{p(1 - p)^{2k}} =
          psum_{k=0}^{infty}{((1-p)^{2})^{k}} =
          frac{p}{1 - (1-p)^{2}} =
          frac{1}{2-p}
          $$



          Part 2



          Let $Y = $ heads was seen on the first flip.



          Then $Y$ ~ Bernoulli$(p)$.



          $$
          E[X] = E[E[X|Y]] = Pr(Y = 1)E[X|Y=1] + Pr(Y=0)E[X| Y=0] = p(1) + (1-p)(1 + E[X])
          $$



          This then reduces to the equation,
          $$
          E[X] = 1 + (1-p)E[X]
          $$

          And then solving for $E[X]$ we get
          $$
          E[X] = frac{1}{p}
          $$



          Remarks



          My calculations agree with yours, so I would conclude that your answers are correct.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            thank you very much for confirming the answer and for the explanation
            $endgroup$
            – green life
            Dec 16 '18 at 19:42


















          0












          $begingroup$

          Let $X = $ number of tosses until a head appears.



          Then $X$ ~ Geometric$(frac{1}{2})$.



          Part 1



          The probability we wish to calculate is,



          $$
          Pr(odd) =
          sum_{k=0}^{infty}{Pr(X = 2k + 1)} =
          sum_{k=0}^{infty}{p(1 - p)^{2k}} =
          psum_{k=0}^{infty}{((1-p)^{2})^{k}} =
          frac{p}{1 - (1-p)^{2}} =
          frac{1}{2-p}
          $$



          Part 2



          Let $Y = $ heads was seen on the first flip.



          Then $Y$ ~ Bernoulli$(p)$.



          $$
          E[X] = E[E[X|Y]] = Pr(Y = 1)E[X|Y=1] + Pr(Y=0)E[X| Y=0] = p(1) + (1-p)(1 + E[X])
          $$



          This then reduces to the equation,
          $$
          E[X] = 1 + (1-p)E[X]
          $$

          And then solving for $E[X]$ we get
          $$
          E[X] = frac{1}{p}
          $$



          Remarks



          My calculations agree with yours, so I would conclude that your answers are correct.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            thank you very much for confirming the answer and for the explanation
            $endgroup$
            – green life
            Dec 16 '18 at 19:42
















          0












          0








          0





          $begingroup$

          Let $X = $ number of tosses until a head appears.



          Then $X$ ~ Geometric$(frac{1}{2})$.



          Part 1



          The probability we wish to calculate is,



          $$
          Pr(odd) =
          sum_{k=0}^{infty}{Pr(X = 2k + 1)} =
          sum_{k=0}^{infty}{p(1 - p)^{2k}} =
          psum_{k=0}^{infty}{((1-p)^{2})^{k}} =
          frac{p}{1 - (1-p)^{2}} =
          frac{1}{2-p}
          $$



          Part 2



          Let $Y = $ heads was seen on the first flip.



          Then $Y$ ~ Bernoulli$(p)$.



          $$
          E[X] = E[E[X|Y]] = Pr(Y = 1)E[X|Y=1] + Pr(Y=0)E[X| Y=0] = p(1) + (1-p)(1 + E[X])
          $$



          This then reduces to the equation,
          $$
          E[X] = 1 + (1-p)E[X]
          $$

          And then solving for $E[X]$ we get
          $$
          E[X] = frac{1}{p}
          $$



          Remarks



          My calculations agree with yours, so I would conclude that your answers are correct.






          share|cite|improve this answer









          $endgroup$



          Let $X = $ number of tosses until a head appears.



          Then $X$ ~ Geometric$(frac{1}{2})$.



          Part 1



          The probability we wish to calculate is,



          $$
          Pr(odd) =
          sum_{k=0}^{infty}{Pr(X = 2k + 1)} =
          sum_{k=0}^{infty}{p(1 - p)^{2k}} =
          psum_{k=0}^{infty}{((1-p)^{2})^{k}} =
          frac{p}{1 - (1-p)^{2}} =
          frac{1}{2-p}
          $$



          Part 2



          Let $Y = $ heads was seen on the first flip.



          Then $Y$ ~ Bernoulli$(p)$.



          $$
          E[X] = E[E[X|Y]] = Pr(Y = 1)E[X|Y=1] + Pr(Y=0)E[X| Y=0] = p(1) + (1-p)(1 + E[X])
          $$



          This then reduces to the equation,
          $$
          E[X] = 1 + (1-p)E[X]
          $$

          And then solving for $E[X]$ we get
          $$
          E[X] = frac{1}{p}
          $$



          Remarks



          My calculations agree with yours, so I would conclude that your answers are correct.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 16 '18 at 19:29









          mwbrulhardtmwbrulhardt

          11




          11












          • $begingroup$
            thank you very much for confirming the answer and for the explanation
            $endgroup$
            – green life
            Dec 16 '18 at 19:42




















          • $begingroup$
            thank you very much for confirming the answer and for the explanation
            $endgroup$
            – green life
            Dec 16 '18 at 19:42


















          $begingroup$
          thank you very much for confirming the answer and for the explanation
          $endgroup$
          – green life
          Dec 16 '18 at 19:42






          $begingroup$
          thank you very much for confirming the answer and for the explanation
          $endgroup$
          – green life
          Dec 16 '18 at 19:42




















          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%2f3043016%2ffinding-the-probability-for-coin-toss-and-expected-number-of-flips-required-is%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

          Bundesstraße 106

          Verónica Boquete

          Ida-Boy-Ed-Garten