Probability that THHT occurs in a sequence of 10 coin tossesFinding probability of recording head in a sequence of coin tossProbability that a coin lands on tails an odd number of times when it is tossed $100$ timesWhat's the expected number of coin tosses in order to get a sequence HHTTHH?Probability in a series of events, during the series.Chance on winning by throwing a head on first toss.probability of sequence of exactly 3 headsSequence of non-independent coin tossesis it possible to find out how many times coin will return head in n-sequence?A fair coin is tossed $text10 times$. What is the probability that ONLY the first two tosses will yield heads?What is the probability of player A winning this Coin Toss Game?

How to explain what's wrong with this application of the chain rule?

Approximating irrational number to rational number

What if a revenant (monster) gains fire resistance?

How do I color the graph in datavisualization?

Did arcade monitors have same pixel aspect ratio as TV sets?

"Spoil" vs "Ruin"

Aragorn's "guise" in the Orthanc Stone

If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Open a doc from terminal, but not by its name

Why is so much work done on numerical verification of the Riemann Hypothesis?

What does chmod -u do?

Offered money to buy a house, seller is asking for more to cover gap between their listing and mortgage owed

Why Shazam when there is already Superman?

Why do compilers behave differently when static_cast(ing) a function to void*?

In Qur'an 7:161, why is "say the word of humility" translated in various ways?

What prevents the use of a multi-segment ILS for non-straight approaches?

What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?

Multiplicative persistence

How can "mimic phobia" be cured or prevented?

Pre-mixing cryogenic fuels and using only one fuel tank

Not using 's' for he/she/it

Where does the bonus feat in the cleric starting package come from?

WiFi Thermostat, No C Terminal on Furnace



Probability that THHT occurs in a sequence of 10 coin tosses


Finding probability of recording head in a sequence of coin tossProbability that a coin lands on tails an odd number of times when it is tossed $100$ timesWhat's the expected number of coin tosses in order to get a sequence HHTTHH?Probability in a series of events, during the series.Chance on winning by throwing a head on first toss.probability of sequence of exactly 3 headsSequence of non-independent coin tossesis it possible to find out how many times coin will return head in n-sequence?A fair coin is tossed $text10 times$. What is the probability that ONLY the first two tosses will yield heads?What is the probability of player A winning this Coin Toss Game?













13












$begingroup$


Assume we have a fair coin, and we throw the coin $10$ times in a row.



I want to calculate the probability that the sequence 'tail, head, head, tail' occurs.



So I think I can interpret this event as a binary number with $10$ digits. So $1$ means tail, $0$ means head. Therefore we have $2^10 = 1024$ different outcomes of the $10$ throws. The sequence 'tail, head, head, tail' can start at $7$ different positions and so there are $7cdot2^6 = 448$ different outcomes of the $10$ throws with the sequence 'tail, head, head, tail'. So the probability would be $frac4481024 = 0.4375$.



But I have a feeling there's something wrong?










share|cite|improve this question









New contributor




geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 2




    $begingroup$
    You are over-counting sequences like T H H T H H T .
    $endgroup$
    – kimchi lover
    yesterday






  • 1




    $begingroup$
    @kimchilover ...and even THHTHHTHHT.
    $endgroup$
    – CiaPan
    yesterday















13












$begingroup$


Assume we have a fair coin, and we throw the coin $10$ times in a row.



I want to calculate the probability that the sequence 'tail, head, head, tail' occurs.



So I think I can interpret this event as a binary number with $10$ digits. So $1$ means tail, $0$ means head. Therefore we have $2^10 = 1024$ different outcomes of the $10$ throws. The sequence 'tail, head, head, tail' can start at $7$ different positions and so there are $7cdot2^6 = 448$ different outcomes of the $10$ throws with the sequence 'tail, head, head, tail'. So the probability would be $frac4481024 = 0.4375$.



But I have a feeling there's something wrong?










share|cite|improve this question









New contributor




geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 2




    $begingroup$
    You are over-counting sequences like T H H T H H T .
    $endgroup$
    – kimchi lover
    yesterday






  • 1




    $begingroup$
    @kimchilover ...and even THHTHHTHHT.
    $endgroup$
    – CiaPan
    yesterday













13












13








13


2



$begingroup$


Assume we have a fair coin, and we throw the coin $10$ times in a row.



I want to calculate the probability that the sequence 'tail, head, head, tail' occurs.



So I think I can interpret this event as a binary number with $10$ digits. So $1$ means tail, $0$ means head. Therefore we have $2^10 = 1024$ different outcomes of the $10$ throws. The sequence 'tail, head, head, tail' can start at $7$ different positions and so there are $7cdot2^6 = 448$ different outcomes of the $10$ throws with the sequence 'tail, head, head, tail'. So the probability would be $frac4481024 = 0.4375$.



But I have a feeling there's something wrong?










share|cite|improve this question









New contributor




geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




Assume we have a fair coin, and we throw the coin $10$ times in a row.



I want to calculate the probability that the sequence 'tail, head, head, tail' occurs.



So I think I can interpret this event as a binary number with $10$ digits. So $1$ means tail, $0$ means head. Therefore we have $2^10 = 1024$ different outcomes of the $10$ throws. The sequence 'tail, head, head, tail' can start at $7$ different positions and so there are $7cdot2^6 = 448$ different outcomes of the $10$ throws with the sequence 'tail, head, head, tail'. So the probability would be $frac4481024 = 0.4375$.



But I have a feeling there's something wrong?







probability combinatorics






share|cite|improve this question









New contributor




geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited yesterday









Robert Howard

2,2383935




2,2383935






New contributor




geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









geirageira

663




663




New contributor




geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






geira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2




    $begingroup$
    You are over-counting sequences like T H H T H H T .
    $endgroup$
    – kimchi lover
    yesterday






  • 1




    $begingroup$
    @kimchilover ...and even THHTHHTHHT.
    $endgroup$
    – CiaPan
    yesterday












  • 2




    $begingroup$
    You are over-counting sequences like T H H T H H T .
    $endgroup$
    – kimchi lover
    yesterday






  • 1




    $begingroup$
    @kimchilover ...and even THHTHHTHHT.
    $endgroup$
    – CiaPan
    yesterday







2




2




$begingroup$
You are over-counting sequences like T H H T H H T .
$endgroup$
– kimchi lover
yesterday




$begingroup$
You are over-counting sequences like T H H T H H T .
$endgroup$
– kimchi lover
yesterday




1




1




$begingroup$
@kimchilover ...and even THHTHHTHHT.
$endgroup$
– CiaPan
yesterday




$begingroup$
@kimchilover ...and even THHTHHTHHT.
$endgroup$
– CiaPan
yesterday










2 Answers
2






active

oldest

votes


















7












$begingroup$

You can use the Inclusion-exclusion principle to solve this. When I do this I get $$7cdot 2^6 - 6cdot 2^2 - 4cdot 2^3+1$$ where the first term is what you get, where the second and third terms count the number of sequences with two non-overlapping instances of T H H T and of sequences with one overlap, like T H H T H H T, and finally the number of sequences with a triple overlap, T H H T H H T H H T.



Confession: I has earlier got $45cdot2^2$ for the second term, by a mental blunder, as AnnaSaabel pointed out. There are 2 "gaps" to separate the two instances of THHT, which can occur before, between, or after the 2 instances; they can be distributed in any of the 6 ways 200,020,002,110,101, or 011.



Added: if the number of coin tosses were $n=100$ (say), and the pattern sought was still THHT, this method becomes clumsy. A different method is to construct a Markov chain with states representing how far a string matching algorithm has progressed in matching the given pattern. If $M$ is the transition matrix for this chain, the desired answer is the entry in the matrix $M^n$ corresponing to the pair $(textstart state, textaccepting state)$.






share|cite|improve this answer











$endgroup$








  • 1




    $begingroup$
    How did you calculate 45 for the second term?
    $endgroup$
    – Anna Saabel
    yesterday










  • $begingroup$
    @AnnaSaabel By a mental blunder. Thanks for the catch!
    $endgroup$
    – kimchi lover
    yesterday






  • 1




    $begingroup$
    This is correct, as this Python 3 code snippet gives the same number: $tag*$ print(sum('0110' in s for s in [bin(n)[-10:] for n in range(1<<10,1<<11)]))
    $endgroup$
    – Mike Earnest
    yesterday










  • $begingroup$
    Your transition matrix is wrong: a match failure in state 1 or 2 will result in state 1, not state 0. In general, the transition matrix is basically the same thing as the array produced in the preprocessing step of KMP algorithm.
    $endgroup$
    – infmagic2047
    yesterday










  • $begingroup$
    @infmagic2047 You are right; I've hopefully corrected this.
    $endgroup$
    – kimchi lover
    yesterday


















3












$begingroup$

As @kimchilover states in the comments, you are counting some 10-digit binary numbers more than once in the number $7cdot 2^6$. To make this more obvious, consider a different problem: to find the probability that the sequence 'heads' appears. By your counting logic, there are 10 places for it to begin, so there are $10cdot 2^9$ different outcomes of the 10 throws with the sequence 'heads', so the probability would be $frac10cdot 2^92^10 = 5$. That can't be good. It's very clear now that the issue is overcounting -- you have five times as many sequences with 'heads' in them as the number of sequences total! The problem is that we have counted sequences with multiple heads many times. For example, the sequence of all heads is counted $10$ times, once for each of the places where the sequence 'heads' begins within it.



As I write this, I see that @kimchilover also just posted an answer to the question which directs you to the inclusion-exclusion principle, so I'll stop here with an answer which could just help you to try generalizing arguments which feel fishy to see where they go wrong. Good job detecting the fishiness!






share|cite|improve this answer











$endgroup$












    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
    );



    );






    geira is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3158242%2fprobability-that-thht-occurs-in-a-sequence-of-10-coin-tosses%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









    7












    $begingroup$

    You can use the Inclusion-exclusion principle to solve this. When I do this I get $$7cdot 2^6 - 6cdot 2^2 - 4cdot 2^3+1$$ where the first term is what you get, where the second and third terms count the number of sequences with two non-overlapping instances of T H H T and of sequences with one overlap, like T H H T H H T, and finally the number of sequences with a triple overlap, T H H T H H T H H T.



    Confession: I has earlier got $45cdot2^2$ for the second term, by a mental blunder, as AnnaSaabel pointed out. There are 2 "gaps" to separate the two instances of THHT, which can occur before, between, or after the 2 instances; they can be distributed in any of the 6 ways 200,020,002,110,101, or 011.



    Added: if the number of coin tosses were $n=100$ (say), and the pattern sought was still THHT, this method becomes clumsy. A different method is to construct a Markov chain with states representing how far a string matching algorithm has progressed in matching the given pattern. If $M$ is the transition matrix for this chain, the desired answer is the entry in the matrix $M^n$ corresponing to the pair $(textstart state, textaccepting state)$.






    share|cite|improve this answer











    $endgroup$








    • 1




      $begingroup$
      How did you calculate 45 for the second term?
      $endgroup$
      – Anna Saabel
      yesterday










    • $begingroup$
      @AnnaSaabel By a mental blunder. Thanks for the catch!
      $endgroup$
      – kimchi lover
      yesterday






    • 1




      $begingroup$
      This is correct, as this Python 3 code snippet gives the same number: $tag*$ print(sum('0110' in s for s in [bin(n)[-10:] for n in range(1<<10,1<<11)]))
      $endgroup$
      – Mike Earnest
      yesterday










    • $begingroup$
      Your transition matrix is wrong: a match failure in state 1 or 2 will result in state 1, not state 0. In general, the transition matrix is basically the same thing as the array produced in the preprocessing step of KMP algorithm.
      $endgroup$
      – infmagic2047
      yesterday










    • $begingroup$
      @infmagic2047 You are right; I've hopefully corrected this.
      $endgroup$
      – kimchi lover
      yesterday















    7












    $begingroup$

    You can use the Inclusion-exclusion principle to solve this. When I do this I get $$7cdot 2^6 - 6cdot 2^2 - 4cdot 2^3+1$$ where the first term is what you get, where the second and third terms count the number of sequences with two non-overlapping instances of T H H T and of sequences with one overlap, like T H H T H H T, and finally the number of sequences with a triple overlap, T H H T H H T H H T.



    Confession: I has earlier got $45cdot2^2$ for the second term, by a mental blunder, as AnnaSaabel pointed out. There are 2 "gaps" to separate the two instances of THHT, which can occur before, between, or after the 2 instances; they can be distributed in any of the 6 ways 200,020,002,110,101, or 011.



    Added: if the number of coin tosses were $n=100$ (say), and the pattern sought was still THHT, this method becomes clumsy. A different method is to construct a Markov chain with states representing how far a string matching algorithm has progressed in matching the given pattern. If $M$ is the transition matrix for this chain, the desired answer is the entry in the matrix $M^n$ corresponing to the pair $(textstart state, textaccepting state)$.






    share|cite|improve this answer











    $endgroup$








    • 1




      $begingroup$
      How did you calculate 45 for the second term?
      $endgroup$
      – Anna Saabel
      yesterday










    • $begingroup$
      @AnnaSaabel By a mental blunder. Thanks for the catch!
      $endgroup$
      – kimchi lover
      yesterday






    • 1




      $begingroup$
      This is correct, as this Python 3 code snippet gives the same number: $tag*$ print(sum('0110' in s for s in [bin(n)[-10:] for n in range(1<<10,1<<11)]))
      $endgroup$
      – Mike Earnest
      yesterday










    • $begingroup$
      Your transition matrix is wrong: a match failure in state 1 or 2 will result in state 1, not state 0. In general, the transition matrix is basically the same thing as the array produced in the preprocessing step of KMP algorithm.
      $endgroup$
      – infmagic2047
      yesterday










    • $begingroup$
      @infmagic2047 You are right; I've hopefully corrected this.
      $endgroup$
      – kimchi lover
      yesterday













    7












    7








    7





    $begingroup$

    You can use the Inclusion-exclusion principle to solve this. When I do this I get $$7cdot 2^6 - 6cdot 2^2 - 4cdot 2^3+1$$ where the first term is what you get, where the second and third terms count the number of sequences with two non-overlapping instances of T H H T and of sequences with one overlap, like T H H T H H T, and finally the number of sequences with a triple overlap, T H H T H H T H H T.



    Confession: I has earlier got $45cdot2^2$ for the second term, by a mental blunder, as AnnaSaabel pointed out. There are 2 "gaps" to separate the two instances of THHT, which can occur before, between, or after the 2 instances; they can be distributed in any of the 6 ways 200,020,002,110,101, or 011.



    Added: if the number of coin tosses were $n=100$ (say), and the pattern sought was still THHT, this method becomes clumsy. A different method is to construct a Markov chain with states representing how far a string matching algorithm has progressed in matching the given pattern. If $M$ is the transition matrix for this chain, the desired answer is the entry in the matrix $M^n$ corresponing to the pair $(textstart state, textaccepting state)$.






    share|cite|improve this answer











    $endgroup$



    You can use the Inclusion-exclusion principle to solve this. When I do this I get $$7cdot 2^6 - 6cdot 2^2 - 4cdot 2^3+1$$ where the first term is what you get, where the second and third terms count the number of sequences with two non-overlapping instances of T H H T and of sequences with one overlap, like T H H T H H T, and finally the number of sequences with a triple overlap, T H H T H H T H H T.



    Confession: I has earlier got $45cdot2^2$ for the second term, by a mental blunder, as AnnaSaabel pointed out. There are 2 "gaps" to separate the two instances of THHT, which can occur before, between, or after the 2 instances; they can be distributed in any of the 6 ways 200,020,002,110,101, or 011.



    Added: if the number of coin tosses were $n=100$ (say), and the pattern sought was still THHT, this method becomes clumsy. A different method is to construct a Markov chain with states representing how far a string matching algorithm has progressed in matching the given pattern. If $M$ is the transition matrix for this chain, the desired answer is the entry in the matrix $M^n$ corresponing to the pair $(textstart state, textaccepting state)$.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited yesterday

























    answered yesterday









    kimchi loverkimchi lover

    11.5k31229




    11.5k31229







    • 1




      $begingroup$
      How did you calculate 45 for the second term?
      $endgroup$
      – Anna Saabel
      yesterday










    • $begingroup$
      @AnnaSaabel By a mental blunder. Thanks for the catch!
      $endgroup$
      – kimchi lover
      yesterday






    • 1




      $begingroup$
      This is correct, as this Python 3 code snippet gives the same number: $tag*$ print(sum('0110' in s for s in [bin(n)[-10:] for n in range(1<<10,1<<11)]))
      $endgroup$
      – Mike Earnest
      yesterday










    • $begingroup$
      Your transition matrix is wrong: a match failure in state 1 or 2 will result in state 1, not state 0. In general, the transition matrix is basically the same thing as the array produced in the preprocessing step of KMP algorithm.
      $endgroup$
      – infmagic2047
      yesterday










    • $begingroup$
      @infmagic2047 You are right; I've hopefully corrected this.
      $endgroup$
      – kimchi lover
      yesterday












    • 1




      $begingroup$
      How did you calculate 45 for the second term?
      $endgroup$
      – Anna Saabel
      yesterday










    • $begingroup$
      @AnnaSaabel By a mental blunder. Thanks for the catch!
      $endgroup$
      – kimchi lover
      yesterday






    • 1




      $begingroup$
      This is correct, as this Python 3 code snippet gives the same number: $tag*$ print(sum('0110' in s for s in [bin(n)[-10:] for n in range(1<<10,1<<11)]))
      $endgroup$
      – Mike Earnest
      yesterday










    • $begingroup$
      Your transition matrix is wrong: a match failure in state 1 or 2 will result in state 1, not state 0. In general, the transition matrix is basically the same thing as the array produced in the preprocessing step of KMP algorithm.
      $endgroup$
      – infmagic2047
      yesterday










    • $begingroup$
      @infmagic2047 You are right; I've hopefully corrected this.
      $endgroup$
      – kimchi lover
      yesterday







    1




    1




    $begingroup$
    How did you calculate 45 for the second term?
    $endgroup$
    – Anna Saabel
    yesterday




    $begingroup$
    How did you calculate 45 for the second term?
    $endgroup$
    – Anna Saabel
    yesterday












    $begingroup$
    @AnnaSaabel By a mental blunder. Thanks for the catch!
    $endgroup$
    – kimchi lover
    yesterday




    $begingroup$
    @AnnaSaabel By a mental blunder. Thanks for the catch!
    $endgroup$
    – kimchi lover
    yesterday




    1




    1




    $begingroup$
    This is correct, as this Python 3 code snippet gives the same number: $tag*$ print(sum('0110' in s for s in [bin(n)[-10:] for n in range(1<<10,1<<11)]))
    $endgroup$
    – Mike Earnest
    yesterday




    $begingroup$
    This is correct, as this Python 3 code snippet gives the same number: $tag*$ print(sum('0110' in s for s in [bin(n)[-10:] for n in range(1<<10,1<<11)]))
    $endgroup$
    – Mike Earnest
    yesterday












    $begingroup$
    Your transition matrix is wrong: a match failure in state 1 or 2 will result in state 1, not state 0. In general, the transition matrix is basically the same thing as the array produced in the preprocessing step of KMP algorithm.
    $endgroup$
    – infmagic2047
    yesterday




    $begingroup$
    Your transition matrix is wrong: a match failure in state 1 or 2 will result in state 1, not state 0. In general, the transition matrix is basically the same thing as the array produced in the preprocessing step of KMP algorithm.
    $endgroup$
    – infmagic2047
    yesterday












    $begingroup$
    @infmagic2047 You are right; I've hopefully corrected this.
    $endgroup$
    – kimchi lover
    yesterday




    $begingroup$
    @infmagic2047 You are right; I've hopefully corrected this.
    $endgroup$
    – kimchi lover
    yesterday











    3












    $begingroup$

    As @kimchilover states in the comments, you are counting some 10-digit binary numbers more than once in the number $7cdot 2^6$. To make this more obvious, consider a different problem: to find the probability that the sequence 'heads' appears. By your counting logic, there are 10 places for it to begin, so there are $10cdot 2^9$ different outcomes of the 10 throws with the sequence 'heads', so the probability would be $frac10cdot 2^92^10 = 5$. That can't be good. It's very clear now that the issue is overcounting -- you have five times as many sequences with 'heads' in them as the number of sequences total! The problem is that we have counted sequences with multiple heads many times. For example, the sequence of all heads is counted $10$ times, once for each of the places where the sequence 'heads' begins within it.



    As I write this, I see that @kimchilover also just posted an answer to the question which directs you to the inclusion-exclusion principle, so I'll stop here with an answer which could just help you to try generalizing arguments which feel fishy to see where they go wrong. Good job detecting the fishiness!






    share|cite|improve this answer











    $endgroup$

















      3












      $begingroup$

      As @kimchilover states in the comments, you are counting some 10-digit binary numbers more than once in the number $7cdot 2^6$. To make this more obvious, consider a different problem: to find the probability that the sequence 'heads' appears. By your counting logic, there are 10 places for it to begin, so there are $10cdot 2^9$ different outcomes of the 10 throws with the sequence 'heads', so the probability would be $frac10cdot 2^92^10 = 5$. That can't be good. It's very clear now that the issue is overcounting -- you have five times as many sequences with 'heads' in them as the number of sequences total! The problem is that we have counted sequences with multiple heads many times. For example, the sequence of all heads is counted $10$ times, once for each of the places where the sequence 'heads' begins within it.



      As I write this, I see that @kimchilover also just posted an answer to the question which directs you to the inclusion-exclusion principle, so I'll stop here with an answer which could just help you to try generalizing arguments which feel fishy to see where they go wrong. Good job detecting the fishiness!






      share|cite|improve this answer











      $endgroup$















        3












        3








        3





        $begingroup$

        As @kimchilover states in the comments, you are counting some 10-digit binary numbers more than once in the number $7cdot 2^6$. To make this more obvious, consider a different problem: to find the probability that the sequence 'heads' appears. By your counting logic, there are 10 places for it to begin, so there are $10cdot 2^9$ different outcomes of the 10 throws with the sequence 'heads', so the probability would be $frac10cdot 2^92^10 = 5$. That can't be good. It's very clear now that the issue is overcounting -- you have five times as many sequences with 'heads' in them as the number of sequences total! The problem is that we have counted sequences with multiple heads many times. For example, the sequence of all heads is counted $10$ times, once for each of the places where the sequence 'heads' begins within it.



        As I write this, I see that @kimchilover also just posted an answer to the question which directs you to the inclusion-exclusion principle, so I'll stop here with an answer which could just help you to try generalizing arguments which feel fishy to see where they go wrong. Good job detecting the fishiness!






        share|cite|improve this answer











        $endgroup$



        As @kimchilover states in the comments, you are counting some 10-digit binary numbers more than once in the number $7cdot 2^6$. To make this more obvious, consider a different problem: to find the probability that the sequence 'heads' appears. By your counting logic, there are 10 places for it to begin, so there are $10cdot 2^9$ different outcomes of the 10 throws with the sequence 'heads', so the probability would be $frac10cdot 2^92^10 = 5$. That can't be good. It's very clear now that the issue is overcounting -- you have five times as many sequences with 'heads' in them as the number of sequences total! The problem is that we have counted sequences with multiple heads many times. For example, the sequence of all heads is counted $10$ times, once for each of the places where the sequence 'heads' begins within it.



        As I write this, I see that @kimchilover also just posted an answer to the question which directs you to the inclusion-exclusion principle, so I'll stop here with an answer which could just help you to try generalizing arguments which feel fishy to see where they go wrong. Good job detecting the fishiness!







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited yesterday

























        answered yesterday









        cspruncsprun

        2,405210




        2,405210




















            geira is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            geira is a new contributor. Be nice, and check out our Code of Conduct.












            geira is a new contributor. Be nice, and check out our Code of Conduct.











            geira is a new contributor. Be nice, and check out our Code of Conduct.














            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%2f3158242%2fprobability-that-thht-occurs-in-a-sequence-of-10-coin-tosses%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

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.