Probability that a randomly generated bit string of length 10 begins with a 1 or ends with a 00, given 0 and...











up vote
0
down vote

favorite












So, I know that the general formula to find the probability of independent Bernoulli events is:



$C(n,k)p^kq^{n-k}$



But there are a few questions I have about the application of this theorem to this problem. First off, even though we have 10 indices, we are only concerned with 3 of the options. So I don't know how this formula would apply. Also, I am not sure how to account for the or in this scenario. Is it just that the bit beginning with a 1 is just going to be $frac{1}{2}$ and the one for the 00 a the end is just going to be $frac{1}{2} * frac{1}{2}$?










share|cite|improve this question




























    up vote
    0
    down vote

    favorite












    So, I know that the general formula to find the probability of independent Bernoulli events is:



    $C(n,k)p^kq^{n-k}$



    But there are a few questions I have about the application of this theorem to this problem. First off, even though we have 10 indices, we are only concerned with 3 of the options. So I don't know how this formula would apply. Also, I am not sure how to account for the or in this scenario. Is it just that the bit beginning with a 1 is just going to be $frac{1}{2}$ and the one for the 00 a the end is just going to be $frac{1}{2} * frac{1}{2}$?










    share|cite|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      So, I know that the general formula to find the probability of independent Bernoulli events is:



      $C(n,k)p^kq^{n-k}$



      But there are a few questions I have about the application of this theorem to this problem. First off, even though we have 10 indices, we are only concerned with 3 of the options. So I don't know how this formula would apply. Also, I am not sure how to account for the or in this scenario. Is it just that the bit beginning with a 1 is just going to be $frac{1}{2}$ and the one for the 00 a the end is just going to be $frac{1}{2} * frac{1}{2}$?










      share|cite|improve this question















      So, I know that the general formula to find the probability of independent Bernoulli events is:



      $C(n,k)p^kq^{n-k}$



      But there are a few questions I have about the application of this theorem to this problem. First off, even though we have 10 indices, we are only concerned with 3 of the options. So I don't know how this formula would apply. Also, I am not sure how to account for the or in this scenario. Is it just that the bit beginning with a 1 is just going to be $frac{1}{2}$ and the one for the 00 a the end is just going to be $frac{1}{2} * frac{1}{2}$?







      probability probability-theory






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 15 at 22:05









      David G. Stork

      9,11821232




      9,11821232










      asked Nov 15 at 21:40









      Jersey Fonseca

      356




      356






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You don't really need to use the Binomial Distribution here. As you noticed in your question,
          $$P(text{begins with 1})=frac{1}{2}$$
          and
          $$P(text{ends with 00})=frac{1}{4}$$
          Then use the fact that
          $$P(Aspacetext{or}space B)=P(A)+P(B)-P(Aspacetext{and}space B)$$
          for any two events $A,B$. If you let $A=text{begins with 1}$ and $B=text{ends with 00}$, you can calculate $P(Aspacetext{or}space B)$, the value you seek, by first calculating $P(Aspacetext{and}space B)$ (which should be a piece of cake, since $A$ and $B$ are independent events).






          share|cite|improve this answer





















          • Thanks so much! I appreciate it. That last line was the one I was really missing :)
            – Jersey Fonseca
            Nov 15 at 21:59










          • @JerseyFonseca No problem! If it helped, don't forget to $checkmark$ and $uparrow$! :D
            – Frpzzd
            Nov 15 at 22:05











          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: 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%2f3000377%2fprobability-that-a-randomly-generated-bit-string-of-length-10-begins-with-a-1-or%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








          up vote
          1
          down vote



          accepted










          You don't really need to use the Binomial Distribution here. As you noticed in your question,
          $$P(text{begins with 1})=frac{1}{2}$$
          and
          $$P(text{ends with 00})=frac{1}{4}$$
          Then use the fact that
          $$P(Aspacetext{or}space B)=P(A)+P(B)-P(Aspacetext{and}space B)$$
          for any two events $A,B$. If you let $A=text{begins with 1}$ and $B=text{ends with 00}$, you can calculate $P(Aspacetext{or}space B)$, the value you seek, by first calculating $P(Aspacetext{and}space B)$ (which should be a piece of cake, since $A$ and $B$ are independent events).






          share|cite|improve this answer





















          • Thanks so much! I appreciate it. That last line was the one I was really missing :)
            – Jersey Fonseca
            Nov 15 at 21:59










          • @JerseyFonseca No problem! If it helped, don't forget to $checkmark$ and $uparrow$! :D
            – Frpzzd
            Nov 15 at 22:05















          up vote
          1
          down vote



          accepted










          You don't really need to use the Binomial Distribution here. As you noticed in your question,
          $$P(text{begins with 1})=frac{1}{2}$$
          and
          $$P(text{ends with 00})=frac{1}{4}$$
          Then use the fact that
          $$P(Aspacetext{or}space B)=P(A)+P(B)-P(Aspacetext{and}space B)$$
          for any two events $A,B$. If you let $A=text{begins with 1}$ and $B=text{ends with 00}$, you can calculate $P(Aspacetext{or}space B)$, the value you seek, by first calculating $P(Aspacetext{and}space B)$ (which should be a piece of cake, since $A$ and $B$ are independent events).






          share|cite|improve this answer





















          • Thanks so much! I appreciate it. That last line was the one I was really missing :)
            – Jersey Fonseca
            Nov 15 at 21:59










          • @JerseyFonseca No problem! If it helped, don't forget to $checkmark$ and $uparrow$! :D
            – Frpzzd
            Nov 15 at 22:05













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You don't really need to use the Binomial Distribution here. As you noticed in your question,
          $$P(text{begins with 1})=frac{1}{2}$$
          and
          $$P(text{ends with 00})=frac{1}{4}$$
          Then use the fact that
          $$P(Aspacetext{or}space B)=P(A)+P(B)-P(Aspacetext{and}space B)$$
          for any two events $A,B$. If you let $A=text{begins with 1}$ and $B=text{ends with 00}$, you can calculate $P(Aspacetext{or}space B)$, the value you seek, by first calculating $P(Aspacetext{and}space B)$ (which should be a piece of cake, since $A$ and $B$ are independent events).






          share|cite|improve this answer












          You don't really need to use the Binomial Distribution here. As you noticed in your question,
          $$P(text{begins with 1})=frac{1}{2}$$
          and
          $$P(text{ends with 00})=frac{1}{4}$$
          Then use the fact that
          $$P(Aspacetext{or}space B)=P(A)+P(B)-P(Aspacetext{and}space B)$$
          for any two events $A,B$. If you let $A=text{begins with 1}$ and $B=text{ends with 00}$, you can calculate $P(Aspacetext{or}space B)$, the value you seek, by first calculating $P(Aspacetext{and}space B)$ (which should be a piece of cake, since $A$ and $B$ are independent events).







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Nov 15 at 21:50









          Frpzzd

          20.1k638103




          20.1k638103












          • Thanks so much! I appreciate it. That last line was the one I was really missing :)
            – Jersey Fonseca
            Nov 15 at 21:59










          • @JerseyFonseca No problem! If it helped, don't forget to $checkmark$ and $uparrow$! :D
            – Frpzzd
            Nov 15 at 22:05


















          • Thanks so much! I appreciate it. That last line was the one I was really missing :)
            – Jersey Fonseca
            Nov 15 at 21:59










          • @JerseyFonseca No problem! If it helped, don't forget to $checkmark$ and $uparrow$! :D
            – Frpzzd
            Nov 15 at 22:05
















          Thanks so much! I appreciate it. That last line was the one I was really missing :)
          – Jersey Fonseca
          Nov 15 at 21:59




          Thanks so much! I appreciate it. That last line was the one I was really missing :)
          – Jersey Fonseca
          Nov 15 at 21:59












          @JerseyFonseca No problem! If it helped, don't forget to $checkmark$ and $uparrow$! :D
          – Frpzzd
          Nov 15 at 22:05




          @JerseyFonseca No problem! If it helped, don't forget to $checkmark$ and $uparrow$! :D
          – Frpzzd
          Nov 15 at 22:05


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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.


          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%2f3000377%2fprobability-that-a-randomly-generated-bit-string-of-length-10-begins-with-a-1-or%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

          Plaza Victoria

          Puebla de Zaragoza

          Musa