Probability of a particular finite combination of heads and tails in infinite tosses sequence

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am asked to find the probability of getting HHHTHHTT or (111010011) combination in infinite coin tosses sequence where probability of getting heads is $p$.



So I thought that if it starts with the first toss it would be simply $p^3(p-1)p^2(p-1)^2=p^5(p-1)^3$. But it does not need to start with the first toss, so what then? How to take this into consideration?










share|cite|improve this question



















  • 2




    Well, the probability of finding any finite subsequence in an infinite sequence of tosses is 1. It's called Infinite-Monkey-Theorem :) The subsequence itself must be posible though, which ist true in your case.
    – denklo
    Sep 10 at 13:14











  • A more interesting question would be finding the expected tosses to get this particular sequence.
    – karakfa
    Sep 10 at 14:42










  • @karakfa That can be done by solving the following equations where $p+q=1$ and $mu$ denotes the expectation: $beginalignedmu & =1+pmu_H\ mu_H & =1+pmu_HH+qmu\ mu_HH & =1+pmu_HHH+qmu\ mu_HHH & =1+pmu_HHH+qmu_HHHT\ mu_HHHT & =1+pmu_HHHTH+qmu\ mu_HHHTH & =1+pmu_HHHTHH+qmu\ mu_HHHTHH & =1+pmu_HHH+qmu_HHHTHHT\ mu_HHHTHHT & =1+pmu_H+q endaligned $
    – drhab
    Sep 10 at 15:36














up vote
0
down vote

favorite












I am asked to find the probability of getting HHHTHHTT or (111010011) combination in infinite coin tosses sequence where probability of getting heads is $p$.



So I thought that if it starts with the first toss it would be simply $p^3(p-1)p^2(p-1)^2=p^5(p-1)^3$. But it does not need to start with the first toss, so what then? How to take this into consideration?










share|cite|improve this question



















  • 2




    Well, the probability of finding any finite subsequence in an infinite sequence of tosses is 1. It's called Infinite-Monkey-Theorem :) The subsequence itself must be posible though, which ist true in your case.
    – denklo
    Sep 10 at 13:14











  • A more interesting question would be finding the expected tosses to get this particular sequence.
    – karakfa
    Sep 10 at 14:42










  • @karakfa That can be done by solving the following equations where $p+q=1$ and $mu$ denotes the expectation: $beginalignedmu & =1+pmu_H\ mu_H & =1+pmu_HH+qmu\ mu_HH & =1+pmu_HHH+qmu\ mu_HHH & =1+pmu_HHH+qmu_HHHT\ mu_HHHT & =1+pmu_HHHTH+qmu\ mu_HHHTH & =1+pmu_HHHTHH+qmu\ mu_HHHTHH & =1+pmu_HHH+qmu_HHHTHHT\ mu_HHHTHHT & =1+pmu_H+q endaligned $
    – drhab
    Sep 10 at 15:36












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am asked to find the probability of getting HHHTHHTT or (111010011) combination in infinite coin tosses sequence where probability of getting heads is $p$.



So I thought that if it starts with the first toss it would be simply $p^3(p-1)p^2(p-1)^2=p^5(p-1)^3$. But it does not need to start with the first toss, so what then? How to take this into consideration?










share|cite|improve this question















I am asked to find the probability of getting HHHTHHTT or (111010011) combination in infinite coin tosses sequence where probability of getting heads is $p$.



So I thought that if it starts with the first toss it would be simply $p^3(p-1)p^2(p-1)^2=p^5(p-1)^3$. But it does not need to start with the first toss, so what then? How to take this into consideration?







probability probability-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 10 at 14:14









Micah

28.9k1361102




28.9k1361102










asked Sep 10 at 13:03









Kacper

339112




339112







  • 2




    Well, the probability of finding any finite subsequence in an infinite sequence of tosses is 1. It's called Infinite-Monkey-Theorem :) The subsequence itself must be posible though, which ist true in your case.
    – denklo
    Sep 10 at 13:14











  • A more interesting question would be finding the expected tosses to get this particular sequence.
    – karakfa
    Sep 10 at 14:42










  • @karakfa That can be done by solving the following equations where $p+q=1$ and $mu$ denotes the expectation: $beginalignedmu & =1+pmu_H\ mu_H & =1+pmu_HH+qmu\ mu_HH & =1+pmu_HHH+qmu\ mu_HHH & =1+pmu_HHH+qmu_HHHT\ mu_HHHT & =1+pmu_HHHTH+qmu\ mu_HHHTH & =1+pmu_HHHTHH+qmu\ mu_HHHTHH & =1+pmu_HHH+qmu_HHHTHHT\ mu_HHHTHHT & =1+pmu_H+q endaligned $
    – drhab
    Sep 10 at 15:36












  • 2




    Well, the probability of finding any finite subsequence in an infinite sequence of tosses is 1. It's called Infinite-Monkey-Theorem :) The subsequence itself must be posible though, which ist true in your case.
    – denklo
    Sep 10 at 13:14











  • A more interesting question would be finding the expected tosses to get this particular sequence.
    – karakfa
    Sep 10 at 14:42










  • @karakfa That can be done by solving the following equations where $p+q=1$ and $mu$ denotes the expectation: $beginalignedmu & =1+pmu_H\ mu_H & =1+pmu_HH+qmu\ mu_HH & =1+pmu_HHH+qmu\ mu_HHH & =1+pmu_HHH+qmu_HHHT\ mu_HHHT & =1+pmu_HHHTH+qmu\ mu_HHHTH & =1+pmu_HHHTHH+qmu\ mu_HHHTHH & =1+pmu_HHH+qmu_HHHTHHT\ mu_HHHTHHT & =1+pmu_H+q endaligned $
    – drhab
    Sep 10 at 15:36







2




2




Well, the probability of finding any finite subsequence in an infinite sequence of tosses is 1. It's called Infinite-Monkey-Theorem :) The subsequence itself must be posible though, which ist true in your case.
– denklo
Sep 10 at 13:14





Well, the probability of finding any finite subsequence in an infinite sequence of tosses is 1. It's called Infinite-Monkey-Theorem :) The subsequence itself must be posible though, which ist true in your case.
– denklo
Sep 10 at 13:14













A more interesting question would be finding the expected tosses to get this particular sequence.
– karakfa
Sep 10 at 14:42




A more interesting question would be finding the expected tosses to get this particular sequence.
– karakfa
Sep 10 at 14:42












@karakfa That can be done by solving the following equations where $p+q=1$ and $mu$ denotes the expectation: $beginalignedmu & =1+pmu_H\ mu_H & =1+pmu_HH+qmu\ mu_HH & =1+pmu_HHH+qmu\ mu_HHH & =1+pmu_HHH+qmu_HHHT\ mu_HHHT & =1+pmu_HHHTH+qmu\ mu_HHHTH & =1+pmu_HHHTHH+qmu\ mu_HHHTHH & =1+pmu_HHH+qmu_HHHTHHT\ mu_HHHTHHT & =1+pmu_H+q endaligned $
– drhab
Sep 10 at 15:36




@karakfa That can be done by solving the following equations where $p+q=1$ and $mu$ denotes the expectation: $beginalignedmu & =1+pmu_H\ mu_H & =1+pmu_HH+qmu\ mu_HH & =1+pmu_HHH+qmu\ mu_HHH & =1+pmu_HHH+qmu_HHHT\ mu_HHHT & =1+pmu_HHHTH+qmu\ mu_HHHTH & =1+pmu_HHHTHH+qmu\ mu_HHHTHH & =1+pmu_HHH+qmu_HHHTHHT\ mu_HHHTHHT & =1+pmu_H+q endaligned $
– drhab
Sep 10 at 15:36










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










Look at the string as concatenation of strings of length $8$ and call these strings the special strings.



The probability that the first special string is not HHHTHHTT is a number $r<1$.



Then the probability that none of the first $n$ special strings is HHHTHHTT is $r^n$.



If $s$ denote the probability that none of the special strings is HHHTHHTT then $sleq r^n$ for every $n$.



This for $n=1,2,3,dots$ and $r<1$ so this can only be true if $s=0$.



That means that the probability that at least one of the special strings is HHHTHHTT is $1$.



Then of course the same is true if we look at all strings of length $8$ (not only the special ones).




It can also be proved for every integer $n$ that the probability that not more than $n$ strings of length $8$ will be HHHTHHTT is $0$, and from this it follows that the probability that an infinite number of strings of length $8$ will be HHHTHHTT equals $1$.






share|cite|improve this answer






















    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f2911902%2fprobability-of-a-particular-finite-combination-of-heads-and-tails-in-infinite-to%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    Look at the string as concatenation of strings of length $8$ and call these strings the special strings.



    The probability that the first special string is not HHHTHHTT is a number $r<1$.



    Then the probability that none of the first $n$ special strings is HHHTHHTT is $r^n$.



    If $s$ denote the probability that none of the special strings is HHHTHHTT then $sleq r^n$ for every $n$.



    This for $n=1,2,3,dots$ and $r<1$ so this can only be true if $s=0$.



    That means that the probability that at least one of the special strings is HHHTHHTT is $1$.



    Then of course the same is true if we look at all strings of length $8$ (not only the special ones).




    It can also be proved for every integer $n$ that the probability that not more than $n$ strings of length $8$ will be HHHTHHTT is $0$, and from this it follows that the probability that an infinite number of strings of length $8$ will be HHHTHHTT equals $1$.






    share|cite|improve this answer


























      up vote
      4
      down vote



      accepted










      Look at the string as concatenation of strings of length $8$ and call these strings the special strings.



      The probability that the first special string is not HHHTHHTT is a number $r<1$.



      Then the probability that none of the first $n$ special strings is HHHTHHTT is $r^n$.



      If $s$ denote the probability that none of the special strings is HHHTHHTT then $sleq r^n$ for every $n$.



      This for $n=1,2,3,dots$ and $r<1$ so this can only be true if $s=0$.



      That means that the probability that at least one of the special strings is HHHTHHTT is $1$.



      Then of course the same is true if we look at all strings of length $8$ (not only the special ones).




      It can also be proved for every integer $n$ that the probability that not more than $n$ strings of length $8$ will be HHHTHHTT is $0$, and from this it follows that the probability that an infinite number of strings of length $8$ will be HHHTHHTT equals $1$.






      share|cite|improve this answer
























        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        Look at the string as concatenation of strings of length $8$ and call these strings the special strings.



        The probability that the first special string is not HHHTHHTT is a number $r<1$.



        Then the probability that none of the first $n$ special strings is HHHTHHTT is $r^n$.



        If $s$ denote the probability that none of the special strings is HHHTHHTT then $sleq r^n$ for every $n$.



        This for $n=1,2,3,dots$ and $r<1$ so this can only be true if $s=0$.



        That means that the probability that at least one of the special strings is HHHTHHTT is $1$.



        Then of course the same is true if we look at all strings of length $8$ (not only the special ones).




        It can also be proved for every integer $n$ that the probability that not more than $n$ strings of length $8$ will be HHHTHHTT is $0$, and from this it follows that the probability that an infinite number of strings of length $8$ will be HHHTHHTT equals $1$.






        share|cite|improve this answer














        Look at the string as concatenation of strings of length $8$ and call these strings the special strings.



        The probability that the first special string is not HHHTHHTT is a number $r<1$.



        Then the probability that none of the first $n$ special strings is HHHTHHTT is $r^n$.



        If $s$ denote the probability that none of the special strings is HHHTHHTT then $sleq r^n$ for every $n$.



        This for $n=1,2,3,dots$ and $r<1$ so this can only be true if $s=0$.



        That means that the probability that at least one of the special strings is HHHTHHTT is $1$.



        Then of course the same is true if we look at all strings of length $8$ (not only the special ones).




        It can also be proved for every integer $n$ that the probability that not more than $n$ strings of length $8$ will be HHHTHHTT is $0$, and from this it follows that the probability that an infinite number of strings of length $8$ will be HHHTHHTT equals $1$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Sep 10 at 14:56

























        answered Sep 10 at 14:10









        drhab

        89.4k541123




        89.4k541123



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2911902%2fprobability-of-a-particular-finite-combination-of-heads-and-tails-in-infinite-to%23new-answer', 'question_page');

            );

            Post as a guest













































































            CA,lTcbQavxr 5L rA5ckpRroP5 t rCpuvSDqGIj9ImS7Qgr7SYy4N XIJSTAR4DKZ,EaE2GZB4Fut7,ZWj7mnGU7Tv6R,pd7zmBG
            lqr 9g2 Tvh4uvdjAYYXQaHeUJ5E 7DrYd2,kJGdv iaG4wSFtS5UgluOD,lxHGNi36127667Vcd,AJ4K6e7IDH

            這個網誌中的熱門文章

            How to combine Bézier curves to a surface?

            Propositional logic and tautologies

            Distribution of Stopped Wiener Process with Stochastic Volatility