Expected value of dice rolls to get a non decreasing sequence of roll values.

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











up vote
3
down vote

favorite
1












What is the expected number of rolls to get a non decreasing sequence of dice roll values ? Suppose one rolls 1-2-5-6-4, then after rolling 6 he will stop, since 4 > 6.







share|cite|improve this question


















  • 1




    I think where you write "since $4lt6$" you mean "since $4le6$"? (Otherwise it should be "weakly increasing" instead of "strictly increasing".)
    – joriki
    Sep 2 at 5:36










  • Please correct the question. The question should be understandable on its own, without the comments.
    – joriki
    Sep 2 at 9:58










  • You could've just changed $4lt6$ to $4le6$. :-)
    – joriki
    Sep 2 at 11:16










  • Now you've changed "strictly increasing" to "non-decreasing". That turns this into a whole new question. That's a very bad idea, since there are already three answers to the original question. Please reinstate the original question; if you want to ask the same question about non-decreasing sequences, please ask a new, separate question.
    – joriki
    Sep 2 at 22:25














up vote
3
down vote

favorite
1












What is the expected number of rolls to get a non decreasing sequence of dice roll values ? Suppose one rolls 1-2-5-6-4, then after rolling 6 he will stop, since 4 > 6.







share|cite|improve this question


















  • 1




    I think where you write "since $4lt6$" you mean "since $4le6$"? (Otherwise it should be "weakly increasing" instead of "strictly increasing".)
    – joriki
    Sep 2 at 5:36










  • Please correct the question. The question should be understandable on its own, without the comments.
    – joriki
    Sep 2 at 9:58










  • You could've just changed $4lt6$ to $4le6$. :-)
    – joriki
    Sep 2 at 11:16










  • Now you've changed "strictly increasing" to "non-decreasing". That turns this into a whole new question. That's a very bad idea, since there are already three answers to the original question. Please reinstate the original question; if you want to ask the same question about non-decreasing sequences, please ask a new, separate question.
    – joriki
    Sep 2 at 22:25












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





What is the expected number of rolls to get a non decreasing sequence of dice roll values ? Suppose one rolls 1-2-5-6-4, then after rolling 6 he will stop, since 4 > 6.







share|cite|improve this question














What is the expected number of rolls to get a non decreasing sequence of dice roll values ? Suppose one rolls 1-2-5-6-4, then after rolling 6 he will stop, since 4 > 6.









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 2 at 13:34

























asked Sep 2 at 4:13









Bibhas Ranjan Das

164




164







  • 1




    I think where you write "since $4lt6$" you mean "since $4le6$"? (Otherwise it should be "weakly increasing" instead of "strictly increasing".)
    – joriki
    Sep 2 at 5:36










  • Please correct the question. The question should be understandable on its own, without the comments.
    – joriki
    Sep 2 at 9:58










  • You could've just changed $4lt6$ to $4le6$. :-)
    – joriki
    Sep 2 at 11:16










  • Now you've changed "strictly increasing" to "non-decreasing". That turns this into a whole new question. That's a very bad idea, since there are already three answers to the original question. Please reinstate the original question; if you want to ask the same question about non-decreasing sequences, please ask a new, separate question.
    – joriki
    Sep 2 at 22:25












  • 1




    I think where you write "since $4lt6$" you mean "since $4le6$"? (Otherwise it should be "weakly increasing" instead of "strictly increasing".)
    – joriki
    Sep 2 at 5:36










  • Please correct the question. The question should be understandable on its own, without the comments.
    – joriki
    Sep 2 at 9:58










  • You could've just changed $4lt6$ to $4le6$. :-)
    – joriki
    Sep 2 at 11:16










  • Now you've changed "strictly increasing" to "non-decreasing". That turns this into a whole new question. That's a very bad idea, since there are already three answers to the original question. Please reinstate the original question; if you want to ask the same question about non-decreasing sequences, please ask a new, separate question.
    – joriki
    Sep 2 at 22:25







1




1




I think where you write "since $4lt6$" you mean "since $4le6$"? (Otherwise it should be "weakly increasing" instead of "strictly increasing".)
– joriki
Sep 2 at 5:36




I think where you write "since $4lt6$" you mean "since $4le6$"? (Otherwise it should be "weakly increasing" instead of "strictly increasing".)
– joriki
Sep 2 at 5:36












Please correct the question. The question should be understandable on its own, without the comments.
– joriki
Sep 2 at 9:58




Please correct the question. The question should be understandable on its own, without the comments.
– joriki
Sep 2 at 9:58












You could've just changed $4lt6$ to $4le6$. :-)
– joriki
Sep 2 at 11:16




You could've just changed $4lt6$ to $4le6$. :-)
– joriki
Sep 2 at 11:16












Now you've changed "strictly increasing" to "non-decreasing". That turns this into a whole new question. That's a very bad idea, since there are already three answers to the original question. Please reinstate the original question; if you want to ask the same question about non-decreasing sequences, please ask a new, separate question.
– joriki
Sep 2 at 22:25




Now you've changed "strictly increasing" to "non-decreasing". That turns this into a whole new question. That's a very bad idea, since there are already three answers to the original question. Please reinstate the original question; if you want to ask the same question about non-decreasing sequences, please ask a new, separate question.
– joriki
Sep 2 at 22:25










3 Answers
3






active

oldest

votes

















up vote
3
down vote













Ross has already shown that the expected sum is simply $n$.



For the expected number of rolls, note that $binom nk$ out of the $n^k$ possible results of $k$ rolls are strictly increasing sequences. Thus the expected value of the number $K$ of rolls including the last, non-increasing roll is



$$
mathsf E[K]=sum_k=0^nmathsf P(Kgt k)=sum_k=0^nbinom nkleft(frac1nright)^k=left(1+frac1nright)^ntomathrm equadtextas $ntoinfty$;.
$$



I'm not sure whether you wanted to count the last roll; if not, you'd obviously have to subtract $1$ from that.



See also Probability of winning dice game and Interview Question on Probability: A and B toss a dice with 1 to n faces in an alternative way.






share|cite|improve this answer



























    up vote
    2
    down vote













    Start from the top. If you roll a $6$ the expected sum is $6$ because you have to stop. If you roll a $5$ the expected sum is $5+frac 16cdot 6$ because you have $frac 16$ chance to roll a $6$. If you roll a $4$ the expected sum is $4 + frac 16cdot 6 + frac 16cdot 6$ because you have $frac 16$ chance to roll each of $5$ or $6$. You should be able to see the pattern-the expected value is $6$



    For $n$ sided dice, the pseudocode for the sum would be

    return n



    The same approach works for number of rolls. If you roll a $6$ there will be just $1$. If you roll a $5$ the expected number is $frac 76$. Keep going down the chain, then average them all for the first roll.






    share|cite|improve this answer




















    • If you roll a 4, why is the expected sum 4+(1/6)⋅6 [why is this 6?] +(1/6) ⋅6?
      – Bibhas Ranjan Das
      Sep 4 at 12:31










    • @BibhasRanjanDas: Because the expected addition for rolling a $5$ is $6$ as I just calculated.
      – Ross Millikan
      Sep 4 at 13:58

















    up vote
    2
    down vote













    Let $X_1,X_2,....X_m,...$ be the dice rolls for an $n$-sided dice.



    P(Rolls > $m$) = $sum_i_1 < i_2 < i_3 ... < i_m prod_j=1^m P(X_j = i_j)$
    = $n choose m frac1n^m$






    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%2f2902335%2fexpected-value-of-dice-rolls-to-get-a-non-decreasing-sequence-of-roll-values%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      Ross has already shown that the expected sum is simply $n$.



      For the expected number of rolls, note that $binom nk$ out of the $n^k$ possible results of $k$ rolls are strictly increasing sequences. Thus the expected value of the number $K$ of rolls including the last, non-increasing roll is



      $$
      mathsf E[K]=sum_k=0^nmathsf P(Kgt k)=sum_k=0^nbinom nkleft(frac1nright)^k=left(1+frac1nright)^ntomathrm equadtextas $ntoinfty$;.
      $$



      I'm not sure whether you wanted to count the last roll; if not, you'd obviously have to subtract $1$ from that.



      See also Probability of winning dice game and Interview Question on Probability: A and B toss a dice with 1 to n faces in an alternative way.






      share|cite|improve this answer
























        up vote
        3
        down vote













        Ross has already shown that the expected sum is simply $n$.



        For the expected number of rolls, note that $binom nk$ out of the $n^k$ possible results of $k$ rolls are strictly increasing sequences. Thus the expected value of the number $K$ of rolls including the last, non-increasing roll is



        $$
        mathsf E[K]=sum_k=0^nmathsf P(Kgt k)=sum_k=0^nbinom nkleft(frac1nright)^k=left(1+frac1nright)^ntomathrm equadtextas $ntoinfty$;.
        $$



        I'm not sure whether you wanted to count the last roll; if not, you'd obviously have to subtract $1$ from that.



        See also Probability of winning dice game and Interview Question on Probability: A and B toss a dice with 1 to n faces in an alternative way.






        share|cite|improve this answer






















          up vote
          3
          down vote










          up vote
          3
          down vote









          Ross has already shown that the expected sum is simply $n$.



          For the expected number of rolls, note that $binom nk$ out of the $n^k$ possible results of $k$ rolls are strictly increasing sequences. Thus the expected value of the number $K$ of rolls including the last, non-increasing roll is



          $$
          mathsf E[K]=sum_k=0^nmathsf P(Kgt k)=sum_k=0^nbinom nkleft(frac1nright)^k=left(1+frac1nright)^ntomathrm equadtextas $ntoinfty$;.
          $$



          I'm not sure whether you wanted to count the last roll; if not, you'd obviously have to subtract $1$ from that.



          See also Probability of winning dice game and Interview Question on Probability: A and B toss a dice with 1 to n faces in an alternative way.






          share|cite|improve this answer












          Ross has already shown that the expected sum is simply $n$.



          For the expected number of rolls, note that $binom nk$ out of the $n^k$ possible results of $k$ rolls are strictly increasing sequences. Thus the expected value of the number $K$ of rolls including the last, non-increasing roll is



          $$
          mathsf E[K]=sum_k=0^nmathsf P(Kgt k)=sum_k=0^nbinom nkleft(frac1nright)^k=left(1+frac1nright)^ntomathrm equadtextas $ntoinfty$;.
          $$



          I'm not sure whether you wanted to count the last roll; if not, you'd obviously have to subtract $1$ from that.



          See also Probability of winning dice game and Interview Question on Probability: A and B toss a dice with 1 to n faces in an alternative way.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Sep 2 at 5:52









          joriki

          167k10180333




          167k10180333




















              up vote
              2
              down vote













              Start from the top. If you roll a $6$ the expected sum is $6$ because you have to stop. If you roll a $5$ the expected sum is $5+frac 16cdot 6$ because you have $frac 16$ chance to roll a $6$. If you roll a $4$ the expected sum is $4 + frac 16cdot 6 + frac 16cdot 6$ because you have $frac 16$ chance to roll each of $5$ or $6$. You should be able to see the pattern-the expected value is $6$



              For $n$ sided dice, the pseudocode for the sum would be

              return n



              The same approach works for number of rolls. If you roll a $6$ there will be just $1$. If you roll a $5$ the expected number is $frac 76$. Keep going down the chain, then average them all for the first roll.






              share|cite|improve this answer




















              • If you roll a 4, why is the expected sum 4+(1/6)⋅6 [why is this 6?] +(1/6) ⋅6?
                – Bibhas Ranjan Das
                Sep 4 at 12:31










              • @BibhasRanjanDas: Because the expected addition for rolling a $5$ is $6$ as I just calculated.
                – Ross Millikan
                Sep 4 at 13:58














              up vote
              2
              down vote













              Start from the top. If you roll a $6$ the expected sum is $6$ because you have to stop. If you roll a $5$ the expected sum is $5+frac 16cdot 6$ because you have $frac 16$ chance to roll a $6$. If you roll a $4$ the expected sum is $4 + frac 16cdot 6 + frac 16cdot 6$ because you have $frac 16$ chance to roll each of $5$ or $6$. You should be able to see the pattern-the expected value is $6$



              For $n$ sided dice, the pseudocode for the sum would be

              return n



              The same approach works for number of rolls. If you roll a $6$ there will be just $1$. If you roll a $5$ the expected number is $frac 76$. Keep going down the chain, then average them all for the first roll.






              share|cite|improve this answer




















              • If you roll a 4, why is the expected sum 4+(1/6)⋅6 [why is this 6?] +(1/6) ⋅6?
                – Bibhas Ranjan Das
                Sep 4 at 12:31










              • @BibhasRanjanDas: Because the expected addition for rolling a $5$ is $6$ as I just calculated.
                – Ross Millikan
                Sep 4 at 13:58












              up vote
              2
              down vote










              up vote
              2
              down vote









              Start from the top. If you roll a $6$ the expected sum is $6$ because you have to stop. If you roll a $5$ the expected sum is $5+frac 16cdot 6$ because you have $frac 16$ chance to roll a $6$. If you roll a $4$ the expected sum is $4 + frac 16cdot 6 + frac 16cdot 6$ because you have $frac 16$ chance to roll each of $5$ or $6$. You should be able to see the pattern-the expected value is $6$



              For $n$ sided dice, the pseudocode for the sum would be

              return n



              The same approach works for number of rolls. If you roll a $6$ there will be just $1$. If you roll a $5$ the expected number is $frac 76$. Keep going down the chain, then average them all for the first roll.






              share|cite|improve this answer












              Start from the top. If you roll a $6$ the expected sum is $6$ because you have to stop. If you roll a $5$ the expected sum is $5+frac 16cdot 6$ because you have $frac 16$ chance to roll a $6$. If you roll a $4$ the expected sum is $4 + frac 16cdot 6 + frac 16cdot 6$ because you have $frac 16$ chance to roll each of $5$ or $6$. You should be able to see the pattern-the expected value is $6$



              For $n$ sided dice, the pseudocode for the sum would be

              return n



              The same approach works for number of rolls. If you roll a $6$ there will be just $1$. If you roll a $5$ the expected number is $frac 76$. Keep going down the chain, then average them all for the first roll.







              share|cite|improve this answer












              share|cite|improve this answer



              share|cite|improve this answer










              answered Sep 2 at 5:10









              Ross Millikan

              279k22189355




              279k22189355











              • If you roll a 4, why is the expected sum 4+(1/6)⋅6 [why is this 6?] +(1/6) ⋅6?
                – Bibhas Ranjan Das
                Sep 4 at 12:31










              • @BibhasRanjanDas: Because the expected addition for rolling a $5$ is $6$ as I just calculated.
                – Ross Millikan
                Sep 4 at 13:58
















              • If you roll a 4, why is the expected sum 4+(1/6)⋅6 [why is this 6?] +(1/6) ⋅6?
                – Bibhas Ranjan Das
                Sep 4 at 12:31










              • @BibhasRanjanDas: Because the expected addition for rolling a $5$ is $6$ as I just calculated.
                – Ross Millikan
                Sep 4 at 13:58















              If you roll a 4, why is the expected sum 4+(1/6)⋅6 [why is this 6?] +(1/6) ⋅6?
              – Bibhas Ranjan Das
              Sep 4 at 12:31




              If you roll a 4, why is the expected sum 4+(1/6)⋅6 [why is this 6?] +(1/6) ⋅6?
              – Bibhas Ranjan Das
              Sep 4 at 12:31












              @BibhasRanjanDas: Because the expected addition for rolling a $5$ is $6$ as I just calculated.
              – Ross Millikan
              Sep 4 at 13:58




              @BibhasRanjanDas: Because the expected addition for rolling a $5$ is $6$ as I just calculated.
              – Ross Millikan
              Sep 4 at 13:58










              up vote
              2
              down vote













              Let $X_1,X_2,....X_m,...$ be the dice rolls for an $n$-sided dice.



              P(Rolls > $m$) = $sum_i_1 < i_2 < i_3 ... < i_m prod_j=1^m P(X_j = i_j)$
              = $n choose m frac1n^m$






              share|cite|improve this answer
























                up vote
                2
                down vote













                Let $X_1,X_2,....X_m,...$ be the dice rolls for an $n$-sided dice.



                P(Rolls > $m$) = $sum_i_1 < i_2 < i_3 ... < i_m prod_j=1^m P(X_j = i_j)$
                = $n choose m frac1n^m$






                share|cite|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Let $X_1,X_2,....X_m,...$ be the dice rolls for an $n$-sided dice.



                  P(Rolls > $m$) = $sum_i_1 < i_2 < i_3 ... < i_m prod_j=1^m P(X_j = i_j)$
                  = $n choose m frac1n^m$






                  share|cite|improve this answer












                  Let $X_1,X_2,....X_m,...$ be the dice rolls for an $n$-sided dice.



                  P(Rolls > $m$) = $sum_i_1 < i_2 < i_3 ... < i_m prod_j=1^m P(X_j = i_j)$
                  = $n choose m frac1n^m$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Sep 2 at 11:11









                  Balaji sb

                  37315




                  37315



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2902335%2fexpected-value-of-dice-rolls-to-get-a-non-decreasing-sequence-of-roll-values%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      What does second last employer means? [closed]

                      List of Gilmore Girls characters

                      Confectionery