Conditional probability exercise does not match my intuition












0












$begingroup$


I have been given the following exercise:




Consider the experiment of tossing a fair coin 7 times. Find the
probability of getting a prime number of heads given that heads occurs
on at least 6 of the tosses.




Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times, thus the probability should be 1/2.



However, introducing the events:
$$
A := text {the experiment returned a prime number of heads} \
B:= text {the experiment returned at least 6 heads}
$$

then we are clearly asked for the conditional probability $mathbb{P}(A|B)$.



Let me compute:
$$
mathbb{P}(Acap B)=mathbb{P}(A)=frac{1}{2^7}.
$$

For $mathbb{P}(B)$, I would do:
$$
mathbb{P}(B) = frac{1}{2^7} + 7 frac{1}{2^7},
$$

where the first term in the sum considers the case that exactly 7 heads appear, while the second term considers the case with exactly 6 heads and exactly one tail (the tail can appear on any of the 7 tosses).



The result would give:
$$
mathbb{P}(A|B) = frac{mathbb{P}(Acap B)}{mathbb{P}(B)}=frac{1}{8},
$$

which however is in contrast with my first intuition. Is my computation correct?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    This reminds me a bit of the argument that tomorrow the sun will either rise or not rise; therefore the probability that the sun will rise tomorrow is $1/2$.
    $endgroup$
    – littleO
    Jan 12 at 18:04
















0












$begingroup$


I have been given the following exercise:




Consider the experiment of tossing a fair coin 7 times. Find the
probability of getting a prime number of heads given that heads occurs
on at least 6 of the tosses.




Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times, thus the probability should be 1/2.



However, introducing the events:
$$
A := text {the experiment returned a prime number of heads} \
B:= text {the experiment returned at least 6 heads}
$$

then we are clearly asked for the conditional probability $mathbb{P}(A|B)$.



Let me compute:
$$
mathbb{P}(Acap B)=mathbb{P}(A)=frac{1}{2^7}.
$$

For $mathbb{P}(B)$, I would do:
$$
mathbb{P}(B) = frac{1}{2^7} + 7 frac{1}{2^7},
$$

where the first term in the sum considers the case that exactly 7 heads appear, while the second term considers the case with exactly 6 heads and exactly one tail (the tail can appear on any of the 7 tosses).



The result would give:
$$
mathbb{P}(A|B) = frac{mathbb{P}(Acap B)}{mathbb{P}(B)}=frac{1}{8},
$$

which however is in contrast with my first intuition. Is my computation correct?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    This reminds me a bit of the argument that tomorrow the sun will either rise or not rise; therefore the probability that the sun will rise tomorrow is $1/2$.
    $endgroup$
    – littleO
    Jan 12 at 18:04














0












0








0





$begingroup$


I have been given the following exercise:




Consider the experiment of tossing a fair coin 7 times. Find the
probability of getting a prime number of heads given that heads occurs
on at least 6 of the tosses.




Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times, thus the probability should be 1/2.



However, introducing the events:
$$
A := text {the experiment returned a prime number of heads} \
B:= text {the experiment returned at least 6 heads}
$$

then we are clearly asked for the conditional probability $mathbb{P}(A|B)$.



Let me compute:
$$
mathbb{P}(Acap B)=mathbb{P}(A)=frac{1}{2^7}.
$$

For $mathbb{P}(B)$, I would do:
$$
mathbb{P}(B) = frac{1}{2^7} + 7 frac{1}{2^7},
$$

where the first term in the sum considers the case that exactly 7 heads appear, while the second term considers the case with exactly 6 heads and exactly one tail (the tail can appear on any of the 7 tosses).



The result would give:
$$
mathbb{P}(A|B) = frac{mathbb{P}(Acap B)}{mathbb{P}(B)}=frac{1}{8},
$$

which however is in contrast with my first intuition. Is my computation correct?










share|cite|improve this question









$endgroup$




I have been given the following exercise:




Consider the experiment of tossing a fair coin 7 times. Find the
probability of getting a prime number of heads given that heads occurs
on at least 6 of the tosses.




Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times, thus the probability should be 1/2.



However, introducing the events:
$$
A := text {the experiment returned a prime number of heads} \
B:= text {the experiment returned at least 6 heads}
$$

then we are clearly asked for the conditional probability $mathbb{P}(A|B)$.



Let me compute:
$$
mathbb{P}(Acap B)=mathbb{P}(A)=frac{1}{2^7}.
$$

For $mathbb{P}(B)$, I would do:
$$
mathbb{P}(B) = frac{1}{2^7} + 7 frac{1}{2^7},
$$

where the first term in the sum considers the case that exactly 7 heads appear, while the second term considers the case with exactly 6 heads and exactly one tail (the tail can appear on any of the 7 tosses).



The result would give:
$$
mathbb{P}(A|B) = frac{mathbb{P}(Acap B)}{mathbb{P}(B)}=frac{1}{8},
$$

which however is in contrast with my first intuition. Is my computation correct?







probability






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 12 at 17:53









J. D.J. D.

1898




1898








  • 1




    $begingroup$
    This reminds me a bit of the argument that tomorrow the sun will either rise or not rise; therefore the probability that the sun will rise tomorrow is $1/2$.
    $endgroup$
    – littleO
    Jan 12 at 18:04














  • 1




    $begingroup$
    This reminds me a bit of the argument that tomorrow the sun will either rise or not rise; therefore the probability that the sun will rise tomorrow is $1/2$.
    $endgroup$
    – littleO
    Jan 12 at 18:04








1




1




$begingroup$
This reminds me a bit of the argument that tomorrow the sun will either rise or not rise; therefore the probability that the sun will rise tomorrow is $1/2$.
$endgroup$
– littleO
Jan 12 at 18:04




$begingroup$
This reminds me a bit of the argument that tomorrow the sun will either rise or not rise; therefore the probability that the sun will rise tomorrow is $1/2$.
$endgroup$
– littleO
Jan 12 at 18:04










2 Answers
2






active

oldest

votes


















1












$begingroup$

Your intuition is correct this far:




Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times,




Where you go wrong is in the part that comes after.
You assume since there are two possible outcomes,
they must be equally likely.
But you actually are much more likely to toss $6$ heads on $7$ coins than to toss all heads.



In fact, $6$ heads is exactly $7$ times as likely as all heads,
because only one sequence of tosses is all heads whereas there are $7$ different sequences that have exactly $6$ heads, and the sequences are equally likely.






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$

    Your intuition is wrong. I'm not sure how you are getting $1/2.$ You may be thinking that once we have $6$ heads, the probability is $1/2$ that the next toss will also be heads, but this is valid only if we are told that the first $6$ tosses (or some other specified $6$ tosses) are heads.



    Otherwise, you may be thinking that since there are only two possibilities, ($6$ heads or $7$ heads) they are equally likely, but we are actually $7$ times as likely to get exactly $6$ heads as $7$ heads.






    share|cite|improve this answer









    $endgroup$














      Your Answer








      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%2f3071194%2fconditional-probability-exercise-does-not-match-my-intuition%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









      1












      $begingroup$

      Your intuition is correct this far:




      Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times,




      Where you go wrong is in the part that comes after.
      You assume since there are two possible outcomes,
      they must be equally likely.
      But you actually are much more likely to toss $6$ heads on $7$ coins than to toss all heads.



      In fact, $6$ heads is exactly $7$ times as likely as all heads,
      because only one sequence of tosses is all heads whereas there are $7$ different sequences that have exactly $6$ heads, and the sequences are equally likely.






      share|cite|improve this answer









      $endgroup$


















        1












        $begingroup$

        Your intuition is correct this far:




        Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times,




        Where you go wrong is in the part that comes after.
        You assume since there are two possible outcomes,
        they must be equally likely.
        But you actually are much more likely to toss $6$ heads on $7$ coins than to toss all heads.



        In fact, $6$ heads is exactly $7$ times as likely as all heads,
        because only one sequence of tosses is all heads whereas there are $7$ different sequences that have exactly $6$ heads, and the sequences are equally likely.






        share|cite|improve this answer









        $endgroup$
















          1












          1








          1





          $begingroup$

          Your intuition is correct this far:




          Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times,




          Where you go wrong is in the part that comes after.
          You assume since there are two possible outcomes,
          they must be equally likely.
          But you actually are much more likely to toss $6$ heads on $7$ coins than to toss all heads.



          In fact, $6$ heads is exactly $7$ times as likely as all heads,
          because only one sequence of tosses is all heads whereas there are $7$ different sequences that have exactly $6$ heads, and the sequences are equally likely.






          share|cite|improve this answer









          $endgroup$



          Your intuition is correct this far:




          Intuitively, I would say that the only prime number possible, given that 6 heads occur is 7, hence the experiment returned heads either 6 or 7 times,




          Where you go wrong is in the part that comes after.
          You assume since there are two possible outcomes,
          they must be equally likely.
          But you actually are much more likely to toss $6$ heads on $7$ coins than to toss all heads.



          In fact, $6$ heads is exactly $7$ times as likely as all heads,
          because only one sequence of tosses is all heads whereas there are $7$ different sequences that have exactly $6$ heads, and the sequences are equally likely.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 12 at 18:00









          David KDavid K

          55.7k345121




          55.7k345121























              1












              $begingroup$

              Your intuition is wrong. I'm not sure how you are getting $1/2.$ You may be thinking that once we have $6$ heads, the probability is $1/2$ that the next toss will also be heads, but this is valid only if we are told that the first $6$ tosses (or some other specified $6$ tosses) are heads.



              Otherwise, you may be thinking that since there are only two possibilities, ($6$ heads or $7$ heads) they are equally likely, but we are actually $7$ times as likely to get exactly $6$ heads as $7$ heads.






              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                Your intuition is wrong. I'm not sure how you are getting $1/2.$ You may be thinking that once we have $6$ heads, the probability is $1/2$ that the next toss will also be heads, but this is valid only if we are told that the first $6$ tosses (or some other specified $6$ tosses) are heads.



                Otherwise, you may be thinking that since there are only two possibilities, ($6$ heads or $7$ heads) they are equally likely, but we are actually $7$ times as likely to get exactly $6$ heads as $7$ heads.






                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  Your intuition is wrong. I'm not sure how you are getting $1/2.$ You may be thinking that once we have $6$ heads, the probability is $1/2$ that the next toss will also be heads, but this is valid only if we are told that the first $6$ tosses (or some other specified $6$ tosses) are heads.



                  Otherwise, you may be thinking that since there are only two possibilities, ($6$ heads or $7$ heads) they are equally likely, but we are actually $7$ times as likely to get exactly $6$ heads as $7$ heads.






                  share|cite|improve this answer









                  $endgroup$



                  Your intuition is wrong. I'm not sure how you are getting $1/2.$ You may be thinking that once we have $6$ heads, the probability is $1/2$ that the next toss will also be heads, but this is valid only if we are told that the first $6$ tosses (or some other specified $6$ tosses) are heads.



                  Otherwise, you may be thinking that since there are only two possibilities, ($6$ heads or $7$ heads) they are equally likely, but we are actually $7$ times as likely to get exactly $6$ heads as $7$ heads.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Jan 12 at 18:03









                  saulspatzsaulspatz

                  17.3k31435




                  17.3k31435






























                      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%2f3071194%2fconditional-probability-exercise-does-not-match-my-intuition%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

                      Bressuire

                      Cabo Verde

                      Gyllenstierna