One coin chosen between a biased coin and a fair coin, and is tossed n times. Find probability of having...

Is there a familial term for apples and pears?

Is it wise to hold on to stock that has plummeted and then stabilized?

Why do we use polarized capacitors?

Can I legally use front facing blue light in the UK?

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

Could a US political party gain complete control over the government by removing checks & balances?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Is there any use for defining additional entity types in a SOQL FROM clause?

LWC and complex parameters

Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?

Is Social Media Science Fiction?

Can I find out the caloric content of bread by dehydrating it?

Are objects structures and/or vice versa?

Why was the "bread communication" in the arena of Catching Fire left out in the movie?

Information to fellow intern about hiring?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Can a planet have a different gravitational pull depending on its location in orbit around its sun?

How to deal with fear of taking dependencies

I see my dog run

New order #4: World

How to move the player while also allowing forces to affect it

How can I add custom success page

Landing in very high winds

extract characters between two commas?



One coin chosen between a biased coin and a fair coin, and is tossed n times. Find probability of having gotten the biased coin.


Fair coin probability questionFinding probability in the case of a biased coinBayes factor for fair and biased coinBayes Rule in 2 Fair and 1 Biased coinSix identical coins in a box, five unbiased and one biasedWhat is the Probability that coin is tossed three timesUsing Bayes Theorem to calculate the probability of a coin being biased given a specific test result1 Biased Coin and 1 Fair Coin, probability of 3rd Head given first 2 tosses are head?What is p(biased coin given heads) in 2 Fair coin, 1 biased coin experimentOne of two coins chosen, tossed n times













1












$begingroup$


In a different question, I had asked for clarification on the following problem where I wanted to just understand the problem. Now, I have attempted it and wish to know if my solution is right.



Problem statement:



A drawer contains two coins. One is an unbiased coin,
which when tossed, is equally likely to turn up heads or tails. The other is a biased coin, which will
turn up heads with probability $p$ and tails with probability $1 − p$. One coin is selected (uniformly) at
random from the drawer. Two experiments are performed:



a) The selected coin is tossed $n$ times. Given that the coin turns up heads $k$ times and tails $n − k$
times, what is the probability that the coin is biased?



b) The selected coin is tossed repeatedly until it turns up heads $k$ times. Given that the coin is tossed
$n$ times in total, what is the probability that the coin is biased?



My attempt:



a) Let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $A_k$ be the set of outcomes where I tossed $n$ times and got $k$ heads. I need to find $P(B|A_k)$.



$$P(A_k cap F) = frac{1}{2} {{n}choose{k}}frac{1}{2^n}$$
$$P(A_k cap B) = frac{1}{2} {{n}choose{k}}p^k (1-p)^{n-k}$$
Since $F$ and $B$ partition the sample space, we have



$$P(A_k) = frac{1}{2}{{n}choose{k}} left { p^k (1-p)^{n-k}+frac{1}{2^n} right }$$



We from Bayes' theorem know that



$$P(B|A_k)=frac{P(A_k|B)}{P(A_k)}$$



Hence we get



$$P(B|A_k)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



b) In this case, we keep tossing till we get $k$ heads. Now this means that the last toss is a head. Now we know that we had to toss $n$ times to get $k$ heads.



As in (a) above, let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $C_n$ be the event that I had to toss $n$ times to get $k$ heads. I need $P(B|C_n)$.



$$P(C_n cap F) = frac{1}{2} times frac{1}{2} times {{n-1}choose{k-1}}frac{1}{2^{n-1}}$$
$$P(C_n cap B) = frac{1}{2} times p times {{n-1}choose{k-1}}p^{k-1} (1-p)^{n-k}$$



Again using Bayes' theorem along the lines of what was done in (a), we get



$$P(B|C_n)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



I am a bit skeptic about my answer as the answers to (a) and (b) are turning out to be the same. I cannot find an intuitive explanation as to why that is.



Please provide feedback and let me know if I have solved this question correctly. In case there is a mistake, please point me to it.










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    In a different question, I had asked for clarification on the following problem where I wanted to just understand the problem. Now, I have attempted it and wish to know if my solution is right.



    Problem statement:



    A drawer contains two coins. One is an unbiased coin,
    which when tossed, is equally likely to turn up heads or tails. The other is a biased coin, which will
    turn up heads with probability $p$ and tails with probability $1 − p$. One coin is selected (uniformly) at
    random from the drawer. Two experiments are performed:



    a) The selected coin is tossed $n$ times. Given that the coin turns up heads $k$ times and tails $n − k$
    times, what is the probability that the coin is biased?



    b) The selected coin is tossed repeatedly until it turns up heads $k$ times. Given that the coin is tossed
    $n$ times in total, what is the probability that the coin is biased?



    My attempt:



    a) Let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $A_k$ be the set of outcomes where I tossed $n$ times and got $k$ heads. I need to find $P(B|A_k)$.



    $$P(A_k cap F) = frac{1}{2} {{n}choose{k}}frac{1}{2^n}$$
    $$P(A_k cap B) = frac{1}{2} {{n}choose{k}}p^k (1-p)^{n-k}$$
    Since $F$ and $B$ partition the sample space, we have



    $$P(A_k) = frac{1}{2}{{n}choose{k}} left { p^k (1-p)^{n-k}+frac{1}{2^n} right }$$



    We from Bayes' theorem know that



    $$P(B|A_k)=frac{P(A_k|B)}{P(A_k)}$$



    Hence we get



    $$P(B|A_k)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



    b) In this case, we keep tossing till we get $k$ heads. Now this means that the last toss is a head. Now we know that we had to toss $n$ times to get $k$ heads.



    As in (a) above, let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $C_n$ be the event that I had to toss $n$ times to get $k$ heads. I need $P(B|C_n)$.



    $$P(C_n cap F) = frac{1}{2} times frac{1}{2} times {{n-1}choose{k-1}}frac{1}{2^{n-1}}$$
    $$P(C_n cap B) = frac{1}{2} times p times {{n-1}choose{k-1}}p^{k-1} (1-p)^{n-k}$$



    Again using Bayes' theorem along the lines of what was done in (a), we get



    $$P(B|C_n)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



    I am a bit skeptic about my answer as the answers to (a) and (b) are turning out to be the same. I cannot find an intuitive explanation as to why that is.



    Please provide feedback and let me know if I have solved this question correctly. In case there is a mistake, please point me to it.










    share|cite|improve this question









    $endgroup$















      1












      1








      1





      $begingroup$


      In a different question, I had asked for clarification on the following problem where I wanted to just understand the problem. Now, I have attempted it and wish to know if my solution is right.



      Problem statement:



      A drawer contains two coins. One is an unbiased coin,
      which when tossed, is equally likely to turn up heads or tails. The other is a biased coin, which will
      turn up heads with probability $p$ and tails with probability $1 − p$. One coin is selected (uniformly) at
      random from the drawer. Two experiments are performed:



      a) The selected coin is tossed $n$ times. Given that the coin turns up heads $k$ times and tails $n − k$
      times, what is the probability that the coin is biased?



      b) The selected coin is tossed repeatedly until it turns up heads $k$ times. Given that the coin is tossed
      $n$ times in total, what is the probability that the coin is biased?



      My attempt:



      a) Let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $A_k$ be the set of outcomes where I tossed $n$ times and got $k$ heads. I need to find $P(B|A_k)$.



      $$P(A_k cap F) = frac{1}{2} {{n}choose{k}}frac{1}{2^n}$$
      $$P(A_k cap B) = frac{1}{2} {{n}choose{k}}p^k (1-p)^{n-k}$$
      Since $F$ and $B$ partition the sample space, we have



      $$P(A_k) = frac{1}{2}{{n}choose{k}} left { p^k (1-p)^{n-k}+frac{1}{2^n} right }$$



      We from Bayes' theorem know that



      $$P(B|A_k)=frac{P(A_k|B)}{P(A_k)}$$



      Hence we get



      $$P(B|A_k)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



      b) In this case, we keep tossing till we get $k$ heads. Now this means that the last toss is a head. Now we know that we had to toss $n$ times to get $k$ heads.



      As in (a) above, let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $C_n$ be the event that I had to toss $n$ times to get $k$ heads. I need $P(B|C_n)$.



      $$P(C_n cap F) = frac{1}{2} times frac{1}{2} times {{n-1}choose{k-1}}frac{1}{2^{n-1}}$$
      $$P(C_n cap B) = frac{1}{2} times p times {{n-1}choose{k-1}}p^{k-1} (1-p)^{n-k}$$



      Again using Bayes' theorem along the lines of what was done in (a), we get



      $$P(B|C_n)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



      I am a bit skeptic about my answer as the answers to (a) and (b) are turning out to be the same. I cannot find an intuitive explanation as to why that is.



      Please provide feedback and let me know if I have solved this question correctly. In case there is a mistake, please point me to it.










      share|cite|improve this question









      $endgroup$




      In a different question, I had asked for clarification on the following problem where I wanted to just understand the problem. Now, I have attempted it and wish to know if my solution is right.



      Problem statement:



      A drawer contains two coins. One is an unbiased coin,
      which when tossed, is equally likely to turn up heads or tails. The other is a biased coin, which will
      turn up heads with probability $p$ and tails with probability $1 − p$. One coin is selected (uniformly) at
      random from the drawer. Two experiments are performed:



      a) The selected coin is tossed $n$ times. Given that the coin turns up heads $k$ times and tails $n − k$
      times, what is the probability that the coin is biased?



      b) The selected coin is tossed repeatedly until it turns up heads $k$ times. Given that the coin is tossed
      $n$ times in total, what is the probability that the coin is biased?



      My attempt:



      a) Let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $A_k$ be the set of outcomes where I tossed $n$ times and got $k$ heads. I need to find $P(B|A_k)$.



      $$P(A_k cap F) = frac{1}{2} {{n}choose{k}}frac{1}{2^n}$$
      $$P(A_k cap B) = frac{1}{2} {{n}choose{k}}p^k (1-p)^{n-k}$$
      Since $F$ and $B$ partition the sample space, we have



      $$P(A_k) = frac{1}{2}{{n}choose{k}} left { p^k (1-p)^{n-k}+frac{1}{2^n} right }$$



      We from Bayes' theorem know that



      $$P(B|A_k)=frac{P(A_k|B)}{P(A_k)}$$



      Hence we get



      $$P(B|A_k)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



      b) In this case, we keep tossing till we get $k$ heads. Now this means that the last toss is a head. Now we know that we had to toss $n$ times to get $k$ heads.



      As in (a) above, let $F$ be the set of outcomes where I have chosen the fair coin, and $B$ be the set of outcomes where I have chosen the biased coin. Let $C_n$ be the event that I had to toss $n$ times to get $k$ heads. I need $P(B|C_n)$.



      $$P(C_n cap F) = frac{1}{2} times frac{1}{2} times {{n-1}choose{k-1}}frac{1}{2^{n-1}}$$
      $$P(C_n cap B) = frac{1}{2} times p times {{n-1}choose{k-1}}p^{k-1} (1-p)^{n-k}$$



      Again using Bayes' theorem along the lines of what was done in (a), we get



      $$P(B|C_n)=frac{p^k (1-p)^{n-k}}{p^k (1-p)^{n-k}+frac{1}{2^n}}$$



      I am a bit skeptic about my answer as the answers to (a) and (b) are turning out to be the same. I cannot find an intuitive explanation as to why that is.



      Please provide feedback and let me know if I have solved this question correctly. In case there is a mistake, please point me to it.







      probability conditional-probability independence bayes-theorem






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 20 at 19:35









      TryingHardToBecomeAGoodPrSlvrTryingHardToBecomeAGoodPrSlvr

      13612




      13612






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          Your calculations and arguments are correct. There is only a clerical error in a) in the line after you mention Bayes's theorem: You wrote



          $$P(A_k|B)$$



          in the enumerator when you meant (and had calculated before)



          $$P(A_kcap B)$$.



          That both results are the same is a bit suprising, but then the ending state of both a) and b) are very similar: You have thrown $n$ coins and seen $k$ heads. The only difference is that in b) you know that the last coin is heads.
          But that doesn't change the general fact that the possible selections of which of those $n$ coints is heads or tails is the same for both the fair and unfair coin, and that this value cancel's out when yo do calulate the quotient.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thanks a lot for the feedback. I will not edit and leave it as $P(A_k|B)$ just so that readers can locate my mistake. I suppose I left out $P(B)$ so that when you have $P(A_k|B) times P(B)$, then the equation would have been correct. Thanks a lot once again!
            $endgroup$
            – TryingHardToBecomeAGoodPrSlvr
            Mar 20 at 21:54












          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%2f3155910%2fone-coin-chosen-between-a-biased-coin-and-a-fair-coin-and-is-tossed-n-times-fi%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$

          Your calculations and arguments are correct. There is only a clerical error in a) in the line after you mention Bayes's theorem: You wrote



          $$P(A_k|B)$$



          in the enumerator when you meant (and had calculated before)



          $$P(A_kcap B)$$.



          That both results are the same is a bit suprising, but then the ending state of both a) and b) are very similar: You have thrown $n$ coins and seen $k$ heads. The only difference is that in b) you know that the last coin is heads.
          But that doesn't change the general fact that the possible selections of which of those $n$ coints is heads or tails is the same for both the fair and unfair coin, and that this value cancel's out when yo do calulate the quotient.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thanks a lot for the feedback. I will not edit and leave it as $P(A_k|B)$ just so that readers can locate my mistake. I suppose I left out $P(B)$ so that when you have $P(A_k|B) times P(B)$, then the equation would have been correct. Thanks a lot once again!
            $endgroup$
            – TryingHardToBecomeAGoodPrSlvr
            Mar 20 at 21:54
















          1












          $begingroup$

          Your calculations and arguments are correct. There is only a clerical error in a) in the line after you mention Bayes's theorem: You wrote



          $$P(A_k|B)$$



          in the enumerator when you meant (and had calculated before)



          $$P(A_kcap B)$$.



          That both results are the same is a bit suprising, but then the ending state of both a) and b) are very similar: You have thrown $n$ coins and seen $k$ heads. The only difference is that in b) you know that the last coin is heads.
          But that doesn't change the general fact that the possible selections of which of those $n$ coints is heads or tails is the same for both the fair and unfair coin, and that this value cancel's out when yo do calulate the quotient.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thanks a lot for the feedback. I will not edit and leave it as $P(A_k|B)$ just so that readers can locate my mistake. I suppose I left out $P(B)$ so that when you have $P(A_k|B) times P(B)$, then the equation would have been correct. Thanks a lot once again!
            $endgroup$
            – TryingHardToBecomeAGoodPrSlvr
            Mar 20 at 21:54














          1












          1








          1





          $begingroup$

          Your calculations and arguments are correct. There is only a clerical error in a) in the line after you mention Bayes's theorem: You wrote



          $$P(A_k|B)$$



          in the enumerator when you meant (and had calculated before)



          $$P(A_kcap B)$$.



          That both results are the same is a bit suprising, but then the ending state of both a) and b) are very similar: You have thrown $n$ coins and seen $k$ heads. The only difference is that in b) you know that the last coin is heads.
          But that doesn't change the general fact that the possible selections of which of those $n$ coints is heads or tails is the same for both the fair and unfair coin, and that this value cancel's out when yo do calulate the quotient.






          share|cite|improve this answer









          $endgroup$



          Your calculations and arguments are correct. There is only a clerical error in a) in the line after you mention Bayes's theorem: You wrote



          $$P(A_k|B)$$



          in the enumerator when you meant (and had calculated before)



          $$P(A_kcap B)$$.



          That both results are the same is a bit suprising, but then the ending state of both a) and b) are very similar: You have thrown $n$ coins and seen $k$ heads. The only difference is that in b) you know that the last coin is heads.
          But that doesn't change the general fact that the possible selections of which of those $n$ coints is heads or tails is the same for both the fair and unfair coin, and that this value cancel's out when yo do calulate the quotient.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Mar 20 at 20:36









          IngixIngix

          5,137159




          5,137159












          • $begingroup$
            Thanks a lot for the feedback. I will not edit and leave it as $P(A_k|B)$ just so that readers can locate my mistake. I suppose I left out $P(B)$ so that when you have $P(A_k|B) times P(B)$, then the equation would have been correct. Thanks a lot once again!
            $endgroup$
            – TryingHardToBecomeAGoodPrSlvr
            Mar 20 at 21:54


















          • $begingroup$
            Thanks a lot for the feedback. I will not edit and leave it as $P(A_k|B)$ just so that readers can locate my mistake. I suppose I left out $P(B)$ so that when you have $P(A_k|B) times P(B)$, then the equation would have been correct. Thanks a lot once again!
            $endgroup$
            – TryingHardToBecomeAGoodPrSlvr
            Mar 20 at 21:54
















          $begingroup$
          Thanks a lot for the feedback. I will not edit and leave it as $P(A_k|B)$ just so that readers can locate my mistake. I suppose I left out $P(B)$ so that when you have $P(A_k|B) times P(B)$, then the equation would have been correct. Thanks a lot once again!
          $endgroup$
          – TryingHardToBecomeAGoodPrSlvr
          Mar 20 at 21:54




          $begingroup$
          Thanks a lot for the feedback. I will not edit and leave it as $P(A_k|B)$ just so that readers can locate my mistake. I suppose I left out $P(B)$ so that when you have $P(A_k|B) times P(B)$, then the equation would have been correct. Thanks a lot once again!
          $endgroup$
          – TryingHardToBecomeAGoodPrSlvr
          Mar 20 at 21:54


















          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%2f3155910%2fone-coin-chosen-between-a-biased-coin-and-a-fair-coin-and-is-tossed-n-times-fi%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

          Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

          Fil:Tokke komm.svg

          Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?