Two players unbalanced coin challenge











up vote
0
down vote

favorite












Given an unbalanced coin that emits H at 2/5 and emits T at 3/5.
Two players, A and B, each choose a different sequence of 3 coin flips, then toss the coin together again and again until they get one of the sequences. The winning player is the player whose sequence was first received. Player A chooses the sequence T T T. Is there a sequence B can choose so that its probability of winning will be greater than half? If so, find this sequence and calculate the probabilities of each player to win. Otherwise, explain why there is no such sequence.



I have made a simulation on my PC trying to figure out the answer first, and found out T H T has a probability greater than half to win (~0.516). But I need help finding a mathematical way to show that...










share|cite|improve this question




























    up vote
    0
    down vote

    favorite












    Given an unbalanced coin that emits H at 2/5 and emits T at 3/5.
    Two players, A and B, each choose a different sequence of 3 coin flips, then toss the coin together again and again until they get one of the sequences. The winning player is the player whose sequence was first received. Player A chooses the sequence T T T. Is there a sequence B can choose so that its probability of winning will be greater than half? If so, find this sequence and calculate the probabilities of each player to win. Otherwise, explain why there is no such sequence.



    I have made a simulation on my PC trying to figure out the answer first, and found out T H T has a probability greater than half to win (~0.516). But I need help finding a mathematical way to show that...










    share|cite|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Given an unbalanced coin that emits H at 2/5 and emits T at 3/5.
      Two players, A and B, each choose a different sequence of 3 coin flips, then toss the coin together again and again until they get one of the sequences. The winning player is the player whose sequence was first received. Player A chooses the sequence T T T. Is there a sequence B can choose so that its probability of winning will be greater than half? If so, find this sequence and calculate the probabilities of each player to win. Otherwise, explain why there is no such sequence.



      I have made a simulation on my PC trying to figure out the answer first, and found out T H T has a probability greater than half to win (~0.516). But I need help finding a mathematical way to show that...










      share|cite|improve this question















      Given an unbalanced coin that emits H at 2/5 and emits T at 3/5.
      Two players, A and B, each choose a different sequence of 3 coin flips, then toss the coin together again and again until they get one of the sequences. The winning player is the player whose sequence was first received. Player A chooses the sequence T T T. Is there a sequence B can choose so that its probability of winning will be greater than half? If so, find this sequence and calculate the probabilities of each player to win. Otherwise, explain why there is no such sequence.



      I have made a simulation on my PC trying to figure out the answer first, and found out T H T has a probability greater than half to win (~0.516). But I need help finding a mathematical way to show that...







      probability






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 17 at 10:49

























      asked Nov 17 at 10:43









      T M

      32




      32






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Choosing $HTT$ gives $B$ a $frac {98}{125}=.784$ chance of winning.



          Indeed, unless $A$ sees $TTT$ initially it is impossible for $A$ to win (as some Head must be tossed and the first instance of $TTT$ will inevitably be preceded by $HTT$).



          Pf: Suppose $TTT$ first occurs starting in toss $n>1$. Then the $(n-1)^{st}$ toss must have been $H$, else we'd have had $TTT$ starting from slot $n-1$. But in that case the block starting from toss $n-1$ is $HTT$.



          Of course, $TTT$ occurs initially with probability $left( frac 35right)^3=frac {27}{125}$ so $B$ wins with probability $1-frac {27}{125}=frac {98}{125}$.



          Note: $TTT$ is a terrible choice.



          Note 2: the calculation from your choice is harder, but perfectly possible. Work with states according to how much of either string has been assembled. Thus we have the states $emptyset, T, TH, TT, TTT, THT$ and look at the various transitions to write down linear equations. A little tedious, but not difficult. the calculation shows that, with this choice, $B$ wins with probability $frac {16}{31}$. Letting $P_S$ denote the probability that $B$ wins given that we start from state $S$, the relevant equations are $$P_{emptyset}=frac 35times P_T+frac 25P_{emptyset}implies P_{emptyset}=P_T$$ $$P_T=frac 35P_{TT}+frac 25P_{TH}$$ $$P_{TH}=frac 35times 1+frac 25P_Tquad &quad P_{TT}=frac 35times 0 +frac 25P_{TH}$$ This is easily solved to get the desired answer $$P_{emptyset}=frac {16}{31}$$






          share|cite|improve this answer























          • The coin is biased...
            – Parcly Taxel
            Nov 17 at 11:04










          • @ParclyTaxel Yes, thanks. I just edited accordingly.
            – lulu
            Nov 17 at 11:06











          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%2f3002197%2ftwo-players-unbalanced-coin-challenge%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
          3
          down vote



          accepted










          Choosing $HTT$ gives $B$ a $frac {98}{125}=.784$ chance of winning.



          Indeed, unless $A$ sees $TTT$ initially it is impossible for $A$ to win (as some Head must be tossed and the first instance of $TTT$ will inevitably be preceded by $HTT$).



          Pf: Suppose $TTT$ first occurs starting in toss $n>1$. Then the $(n-1)^{st}$ toss must have been $H$, else we'd have had $TTT$ starting from slot $n-1$. But in that case the block starting from toss $n-1$ is $HTT$.



          Of course, $TTT$ occurs initially with probability $left( frac 35right)^3=frac {27}{125}$ so $B$ wins with probability $1-frac {27}{125}=frac {98}{125}$.



          Note: $TTT$ is a terrible choice.



          Note 2: the calculation from your choice is harder, but perfectly possible. Work with states according to how much of either string has been assembled. Thus we have the states $emptyset, T, TH, TT, TTT, THT$ and look at the various transitions to write down linear equations. A little tedious, but not difficult. the calculation shows that, with this choice, $B$ wins with probability $frac {16}{31}$. Letting $P_S$ denote the probability that $B$ wins given that we start from state $S$, the relevant equations are $$P_{emptyset}=frac 35times P_T+frac 25P_{emptyset}implies P_{emptyset}=P_T$$ $$P_T=frac 35P_{TT}+frac 25P_{TH}$$ $$P_{TH}=frac 35times 1+frac 25P_Tquad &quad P_{TT}=frac 35times 0 +frac 25P_{TH}$$ This is easily solved to get the desired answer $$P_{emptyset}=frac {16}{31}$$






          share|cite|improve this answer























          • The coin is biased...
            – Parcly Taxel
            Nov 17 at 11:04










          • @ParclyTaxel Yes, thanks. I just edited accordingly.
            – lulu
            Nov 17 at 11:06















          up vote
          3
          down vote



          accepted










          Choosing $HTT$ gives $B$ a $frac {98}{125}=.784$ chance of winning.



          Indeed, unless $A$ sees $TTT$ initially it is impossible for $A$ to win (as some Head must be tossed and the first instance of $TTT$ will inevitably be preceded by $HTT$).



          Pf: Suppose $TTT$ first occurs starting in toss $n>1$. Then the $(n-1)^{st}$ toss must have been $H$, else we'd have had $TTT$ starting from slot $n-1$. But in that case the block starting from toss $n-1$ is $HTT$.



          Of course, $TTT$ occurs initially with probability $left( frac 35right)^3=frac {27}{125}$ so $B$ wins with probability $1-frac {27}{125}=frac {98}{125}$.



          Note: $TTT$ is a terrible choice.



          Note 2: the calculation from your choice is harder, but perfectly possible. Work with states according to how much of either string has been assembled. Thus we have the states $emptyset, T, TH, TT, TTT, THT$ and look at the various transitions to write down linear equations. A little tedious, but not difficult. the calculation shows that, with this choice, $B$ wins with probability $frac {16}{31}$. Letting $P_S$ denote the probability that $B$ wins given that we start from state $S$, the relevant equations are $$P_{emptyset}=frac 35times P_T+frac 25P_{emptyset}implies P_{emptyset}=P_T$$ $$P_T=frac 35P_{TT}+frac 25P_{TH}$$ $$P_{TH}=frac 35times 1+frac 25P_Tquad &quad P_{TT}=frac 35times 0 +frac 25P_{TH}$$ This is easily solved to get the desired answer $$P_{emptyset}=frac {16}{31}$$






          share|cite|improve this answer























          • The coin is biased...
            – Parcly Taxel
            Nov 17 at 11:04










          • @ParclyTaxel Yes, thanks. I just edited accordingly.
            – lulu
            Nov 17 at 11:06













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Choosing $HTT$ gives $B$ a $frac {98}{125}=.784$ chance of winning.



          Indeed, unless $A$ sees $TTT$ initially it is impossible for $A$ to win (as some Head must be tossed and the first instance of $TTT$ will inevitably be preceded by $HTT$).



          Pf: Suppose $TTT$ first occurs starting in toss $n>1$. Then the $(n-1)^{st}$ toss must have been $H$, else we'd have had $TTT$ starting from slot $n-1$. But in that case the block starting from toss $n-1$ is $HTT$.



          Of course, $TTT$ occurs initially with probability $left( frac 35right)^3=frac {27}{125}$ so $B$ wins with probability $1-frac {27}{125}=frac {98}{125}$.



          Note: $TTT$ is a terrible choice.



          Note 2: the calculation from your choice is harder, but perfectly possible. Work with states according to how much of either string has been assembled. Thus we have the states $emptyset, T, TH, TT, TTT, THT$ and look at the various transitions to write down linear equations. A little tedious, but not difficult. the calculation shows that, with this choice, $B$ wins with probability $frac {16}{31}$. Letting $P_S$ denote the probability that $B$ wins given that we start from state $S$, the relevant equations are $$P_{emptyset}=frac 35times P_T+frac 25P_{emptyset}implies P_{emptyset}=P_T$$ $$P_T=frac 35P_{TT}+frac 25P_{TH}$$ $$P_{TH}=frac 35times 1+frac 25P_Tquad &quad P_{TT}=frac 35times 0 +frac 25P_{TH}$$ This is easily solved to get the desired answer $$P_{emptyset}=frac {16}{31}$$






          share|cite|improve this answer














          Choosing $HTT$ gives $B$ a $frac {98}{125}=.784$ chance of winning.



          Indeed, unless $A$ sees $TTT$ initially it is impossible for $A$ to win (as some Head must be tossed and the first instance of $TTT$ will inevitably be preceded by $HTT$).



          Pf: Suppose $TTT$ first occurs starting in toss $n>1$. Then the $(n-1)^{st}$ toss must have been $H$, else we'd have had $TTT$ starting from slot $n-1$. But in that case the block starting from toss $n-1$ is $HTT$.



          Of course, $TTT$ occurs initially with probability $left( frac 35right)^3=frac {27}{125}$ so $B$ wins with probability $1-frac {27}{125}=frac {98}{125}$.



          Note: $TTT$ is a terrible choice.



          Note 2: the calculation from your choice is harder, but perfectly possible. Work with states according to how much of either string has been assembled. Thus we have the states $emptyset, T, TH, TT, TTT, THT$ and look at the various transitions to write down linear equations. A little tedious, but not difficult. the calculation shows that, with this choice, $B$ wins with probability $frac {16}{31}$. Letting $P_S$ denote the probability that $B$ wins given that we start from state $S$, the relevant equations are $$P_{emptyset}=frac 35times P_T+frac 25P_{emptyset}implies P_{emptyset}=P_T$$ $$P_T=frac 35P_{TT}+frac 25P_{TH}$$ $$P_{TH}=frac 35times 1+frac 25P_Tquad &quad P_{TT}=frac 35times 0 +frac 25P_{TH}$$ This is easily solved to get the desired answer $$P_{emptyset}=frac {16}{31}$$







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Nov 17 at 12:12

























          answered Nov 17 at 10:57









          lulu

          37.9k24476




          37.9k24476












          • The coin is biased...
            – Parcly Taxel
            Nov 17 at 11:04










          • @ParclyTaxel Yes, thanks. I just edited accordingly.
            – lulu
            Nov 17 at 11:06


















          • The coin is biased...
            – Parcly Taxel
            Nov 17 at 11:04










          • @ParclyTaxel Yes, thanks. I just edited accordingly.
            – lulu
            Nov 17 at 11:06
















          The coin is biased...
          – Parcly Taxel
          Nov 17 at 11:04




          The coin is biased...
          – Parcly Taxel
          Nov 17 at 11:04












          @ParclyTaxel Yes, thanks. I just edited accordingly.
          – lulu
          Nov 17 at 11:06




          @ParclyTaxel Yes, thanks. I just edited accordingly.
          – lulu
          Nov 17 at 11:06


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3002197%2ftwo-players-unbalanced-coin-challenge%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

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei