Expected Number of Rolls needed to get a 3 and then a 4 consecutively of an unbiased dice











up vote
0
down vote

favorite












Not to be confused with the number of rolls needed to get two of the same number, suppose you keep rolling a dice until you get a 3 and then 4 consecutively. Calculate the expected number of rolls required.



My logic was that the probability of rolling a three is 1/6 and the probability of rolling a four is 1/6, so we can multiply the two to get 1/36. Then since the distribution is geometric, the expected value of the geometric distribution is $1/p = 1/(1/36) = 36$.



However, multiple people have gotten an answer of either 9 or 12. I get how one would arrive at 12, but how do you get 9 rolls out of this? Just what does this problem have to do with Harmonic Numbers? Any help would be appreciated.










share|cite|improve this question


















  • 1




    You can take a look here. I don't think $9$ or $12$ is correct.
    – VHarisop
    Nov 14 at 21:40















up vote
0
down vote

favorite












Not to be confused with the number of rolls needed to get two of the same number, suppose you keep rolling a dice until you get a 3 and then 4 consecutively. Calculate the expected number of rolls required.



My logic was that the probability of rolling a three is 1/6 and the probability of rolling a four is 1/6, so we can multiply the two to get 1/36. Then since the distribution is geometric, the expected value of the geometric distribution is $1/p = 1/(1/36) = 36$.



However, multiple people have gotten an answer of either 9 or 12. I get how one would arrive at 12, but how do you get 9 rolls out of this? Just what does this problem have to do with Harmonic Numbers? Any help would be appreciated.










share|cite|improve this question


















  • 1




    You can take a look here. I don't think $9$ or $12$ is correct.
    – VHarisop
    Nov 14 at 21:40













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Not to be confused with the number of rolls needed to get two of the same number, suppose you keep rolling a dice until you get a 3 and then 4 consecutively. Calculate the expected number of rolls required.



My logic was that the probability of rolling a three is 1/6 and the probability of rolling a four is 1/6, so we can multiply the two to get 1/36. Then since the distribution is geometric, the expected value of the geometric distribution is $1/p = 1/(1/36) = 36$.



However, multiple people have gotten an answer of either 9 or 12. I get how one would arrive at 12, but how do you get 9 rolls out of this? Just what does this problem have to do with Harmonic Numbers? Any help would be appreciated.










share|cite|improve this question













Not to be confused with the number of rolls needed to get two of the same number, suppose you keep rolling a dice until you get a 3 and then 4 consecutively. Calculate the expected number of rolls required.



My logic was that the probability of rolling a three is 1/6 and the probability of rolling a four is 1/6, so we can multiply the two to get 1/36. Then since the distribution is geometric, the expected value of the geometric distribution is $1/p = 1/(1/36) = 36$.



However, multiple people have gotten an answer of either 9 or 12. I get how one would arrive at 12, but how do you get 9 rolls out of this? Just what does this problem have to do with Harmonic Numbers? Any help would be appreciated.







probability probability-theory






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 14 at 21:23









WhatsDUI

214111




214111








  • 1




    You can take a look here. I don't think $9$ or $12$ is correct.
    – VHarisop
    Nov 14 at 21:40














  • 1




    You can take a look here. I don't think $9$ or $12$ is correct.
    – VHarisop
    Nov 14 at 21:40








1




1




You can take a look here. I don't think $9$ or $12$ is correct.
– VHarisop
Nov 14 at 21:40




You can take a look here. I don't think $9$ or $12$ is correct.
– VHarisop
Nov 14 at 21:40










1 Answer
1






active

oldest

votes

















up vote
2
down vote













Just to have a different method, let's do it with states. There are only three states of interest. Either you are just starting or the last throw was not a three (call it $mathscr S_{emptyset}$) or the last throw was a $3$, call it $mathscr S_{3}$, or you are done.



We also denote by $E_{emptyset}$ ansd $E_3$ the expected number of moves it should take to finish from there. Of course $E_{emptyset}$ is the answer we seek.



Considering the first toss we see that $$E_{emptyset}=frac 16times (E_3+1)+frac 56times (E_{emptyset}+1)$$



And if you are in $mathscr S_{3}$ we see that $$E_3=frac 16times 1+frac 16times (E_3+1)+frac 46times (E_{emptyset}+1)$$



This system is easy to solve and we get $$E_{emptyset}=36quad E_3=30$$



Which, of course, confirms your result.






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: 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%2f2998834%2fexpected-number-of-rolls-needed-to-get-a-3-and-then-a-4-consecutively-of-an-unbi%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
    2
    down vote













    Just to have a different method, let's do it with states. There are only three states of interest. Either you are just starting or the last throw was not a three (call it $mathscr S_{emptyset}$) or the last throw was a $3$, call it $mathscr S_{3}$, or you are done.



    We also denote by $E_{emptyset}$ ansd $E_3$ the expected number of moves it should take to finish from there. Of course $E_{emptyset}$ is the answer we seek.



    Considering the first toss we see that $$E_{emptyset}=frac 16times (E_3+1)+frac 56times (E_{emptyset}+1)$$



    And if you are in $mathscr S_{3}$ we see that $$E_3=frac 16times 1+frac 16times (E_3+1)+frac 46times (E_{emptyset}+1)$$



    This system is easy to solve and we get $$E_{emptyset}=36quad E_3=30$$



    Which, of course, confirms your result.






    share|cite|improve this answer



























      up vote
      2
      down vote













      Just to have a different method, let's do it with states. There are only three states of interest. Either you are just starting or the last throw was not a three (call it $mathscr S_{emptyset}$) or the last throw was a $3$, call it $mathscr S_{3}$, or you are done.



      We also denote by $E_{emptyset}$ ansd $E_3$ the expected number of moves it should take to finish from there. Of course $E_{emptyset}$ is the answer we seek.



      Considering the first toss we see that $$E_{emptyset}=frac 16times (E_3+1)+frac 56times (E_{emptyset}+1)$$



      And if you are in $mathscr S_{3}$ we see that $$E_3=frac 16times 1+frac 16times (E_3+1)+frac 46times (E_{emptyset}+1)$$



      This system is easy to solve and we get $$E_{emptyset}=36quad E_3=30$$



      Which, of course, confirms your result.






      share|cite|improve this answer

























        up vote
        2
        down vote










        up vote
        2
        down vote









        Just to have a different method, let's do it with states. There are only three states of interest. Either you are just starting or the last throw was not a three (call it $mathscr S_{emptyset}$) or the last throw was a $3$, call it $mathscr S_{3}$, or you are done.



        We also denote by $E_{emptyset}$ ansd $E_3$ the expected number of moves it should take to finish from there. Of course $E_{emptyset}$ is the answer we seek.



        Considering the first toss we see that $$E_{emptyset}=frac 16times (E_3+1)+frac 56times (E_{emptyset}+1)$$



        And if you are in $mathscr S_{3}$ we see that $$E_3=frac 16times 1+frac 16times (E_3+1)+frac 46times (E_{emptyset}+1)$$



        This system is easy to solve and we get $$E_{emptyset}=36quad E_3=30$$



        Which, of course, confirms your result.






        share|cite|improve this answer














        Just to have a different method, let's do it with states. There are only three states of interest. Either you are just starting or the last throw was not a three (call it $mathscr S_{emptyset}$) or the last throw was a $3$, call it $mathscr S_{3}$, or you are done.



        We also denote by $E_{emptyset}$ ansd $E_3$ the expected number of moves it should take to finish from there. Of course $E_{emptyset}$ is the answer we seek.



        Considering the first toss we see that $$E_{emptyset}=frac 16times (E_3+1)+frac 56times (E_{emptyset}+1)$$



        And if you are in $mathscr S_{3}$ we see that $$E_3=frac 16times 1+frac 16times (E_3+1)+frac 46times (E_{emptyset}+1)$$



        This system is easy to solve and we get $$E_{emptyset}=36quad E_3=30$$



        Which, of course, confirms your result.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Nov 14 at 22:55

























        answered Nov 14 at 21:41









        lulu

        37.9k24476




        37.9k24476






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2998834%2fexpected-number-of-rolls-needed-to-get-a-3-and-then-a-4-consecutively-of-an-unbi%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

            How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...