Formula for calculating probability on customized dice.












0












$begingroup$


Given the following:
Player may choose from among the following:



1-10 White dice [0,0,0,1,1,2]
0-40 Blue dice [0,0,1,1,1,2]
0-10 Red dice [0,1,1,1,1,2]


and rolls them. What is the formula to calculate the probability that xWhite + yBlue + zRed ≥ D where D is an arbitrary whole number, i.e. 8.



I know this can be brute forced for each combination, but is there a simple formula to do this?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    What does 1-10 mean?
    $endgroup$
    – Henry
    Dec 4 '18 at 20:51










  • $begingroup$
    @Henry: I believe it means the player can choose how many white dice to roll within the range one to ten. That is $x$
    $endgroup$
    – Ross Millikan
    Dec 4 '18 at 21:26












  • $begingroup$
    @ross, this is what I meant. Players can choose an arbitrary amount of dice within that range.
    $endgroup$
    – Jared Tritsch
    Dec 4 '18 at 23:07
















0












$begingroup$


Given the following:
Player may choose from among the following:



1-10 White dice [0,0,0,1,1,2]
0-40 Blue dice [0,0,1,1,1,2]
0-10 Red dice [0,1,1,1,1,2]


and rolls them. What is the formula to calculate the probability that xWhite + yBlue + zRed ≥ D where D is an arbitrary whole number, i.e. 8.



I know this can be brute forced for each combination, but is there a simple formula to do this?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    What does 1-10 mean?
    $endgroup$
    – Henry
    Dec 4 '18 at 20:51










  • $begingroup$
    @Henry: I believe it means the player can choose how many white dice to roll within the range one to ten. That is $x$
    $endgroup$
    – Ross Millikan
    Dec 4 '18 at 21:26












  • $begingroup$
    @ross, this is what I meant. Players can choose an arbitrary amount of dice within that range.
    $endgroup$
    – Jared Tritsch
    Dec 4 '18 at 23:07














0












0








0





$begingroup$


Given the following:
Player may choose from among the following:



1-10 White dice [0,0,0,1,1,2]
0-40 Blue dice [0,0,1,1,1,2]
0-10 Red dice [0,1,1,1,1,2]


and rolls them. What is the formula to calculate the probability that xWhite + yBlue + zRed ≥ D where D is an arbitrary whole number, i.e. 8.



I know this can be brute forced for each combination, but is there a simple formula to do this?










share|cite|improve this question











$endgroup$




Given the following:
Player may choose from among the following:



1-10 White dice [0,0,0,1,1,2]
0-40 Blue dice [0,0,1,1,1,2]
0-10 Red dice [0,1,1,1,1,2]


and rolls them. What is the formula to calculate the probability that xWhite + yBlue + zRed ≥ D where D is an arbitrary whole number, i.e. 8.



I know this can be brute forced for each combination, but is there a simple formula to do this?







probability dice






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 4 '18 at 23:15









Ross Millikan

293k23197371




293k23197371










asked Dec 4 '18 at 19:42









Jared TritschJared Tritsch

1085




1085








  • 1




    $begingroup$
    What does 1-10 mean?
    $endgroup$
    – Henry
    Dec 4 '18 at 20:51










  • $begingroup$
    @Henry: I believe it means the player can choose how many white dice to roll within the range one to ten. That is $x$
    $endgroup$
    – Ross Millikan
    Dec 4 '18 at 21:26












  • $begingroup$
    @ross, this is what I meant. Players can choose an arbitrary amount of dice within that range.
    $endgroup$
    – Jared Tritsch
    Dec 4 '18 at 23:07














  • 1




    $begingroup$
    What does 1-10 mean?
    $endgroup$
    – Henry
    Dec 4 '18 at 20:51










  • $begingroup$
    @Henry: I believe it means the player can choose how many white dice to roll within the range one to ten. That is $x$
    $endgroup$
    – Ross Millikan
    Dec 4 '18 at 21:26












  • $begingroup$
    @ross, this is what I meant. Players can choose an arbitrary amount of dice within that range.
    $endgroup$
    – Jared Tritsch
    Dec 4 '18 at 23:07








1




1




$begingroup$
What does 1-10 mean?
$endgroup$
– Henry
Dec 4 '18 at 20:51




$begingroup$
What does 1-10 mean?
$endgroup$
– Henry
Dec 4 '18 at 20:51












$begingroup$
@Henry: I believe it means the player can choose how many white dice to roll within the range one to ten. That is $x$
$endgroup$
– Ross Millikan
Dec 4 '18 at 21:26






$begingroup$
@Henry: I believe it means the player can choose how many white dice to roll within the range one to ten. That is $x$
$endgroup$
– Ross Millikan
Dec 4 '18 at 21:26














$begingroup$
@ross, this is what I meant. Players can choose an arbitrary amount of dice within that range.
$endgroup$
– Jared Tritsch
Dec 4 '18 at 23:07




$begingroup$
@ross, this is what I meant. Players can choose an arbitrary amount of dice within that range.
$endgroup$
– Jared Tritsch
Dec 4 '18 at 23:07










2 Answers
2






active

oldest

votes


















0












$begingroup$

For reasonably large numbers of dice you can use the normal approximation. Compute the mean and variance for each kind of die. For example, a blue die has a mean of $frac 16(0+0+1+1+1+2)=frac 56$ and a variance of $frac 16(0^2+0^2+1^2+1^2+2^2)-(frac 56)^2=frac {17}{36}.$ The sum will be (approximately) normally distributed with mean the sum of the means and variance the sum of the variances. Compute how many standard deviations high or low you are compared to the mean and use a z-score table. I would guess $10$ or $12$ dice would get you reasonably close, but am just guessing. For smaller numbers you can just do it in a spreadsheet, computing the probability of each sum for a pair of dice, then adding in another, and so on.






share|cite|improve this answer











$endgroup$





















    0












    $begingroup$

    Worked it out using Generating functions.



    These dice can be expressed as:




    (1/2 + x/3 + x^2/6)^W (1/3 + x/2 + x^2/6)^B (1/6 + (2 x)/3 + x^2/6)^R




    where W, B, and R are the quantities of each dice.



    Expand out into polynomials, then sum up the coefficients starting with the Dth Term (D being the target value). Set that to 1-result and you have your probability of D or higher.






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


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3026052%2fformula-for-calculating-probability-on-customized-dice%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









      0












      $begingroup$

      For reasonably large numbers of dice you can use the normal approximation. Compute the mean and variance for each kind of die. For example, a blue die has a mean of $frac 16(0+0+1+1+1+2)=frac 56$ and a variance of $frac 16(0^2+0^2+1^2+1^2+2^2)-(frac 56)^2=frac {17}{36}.$ The sum will be (approximately) normally distributed with mean the sum of the means and variance the sum of the variances. Compute how many standard deviations high or low you are compared to the mean and use a z-score table. I would guess $10$ or $12$ dice would get you reasonably close, but am just guessing. For smaller numbers you can just do it in a spreadsheet, computing the probability of each sum for a pair of dice, then adding in another, and so on.






      share|cite|improve this answer











      $endgroup$


















        0












        $begingroup$

        For reasonably large numbers of dice you can use the normal approximation. Compute the mean and variance for each kind of die. For example, a blue die has a mean of $frac 16(0+0+1+1+1+2)=frac 56$ and a variance of $frac 16(0^2+0^2+1^2+1^2+2^2)-(frac 56)^2=frac {17}{36}.$ The sum will be (approximately) normally distributed with mean the sum of the means and variance the sum of the variances. Compute how many standard deviations high or low you are compared to the mean and use a z-score table. I would guess $10$ or $12$ dice would get you reasonably close, but am just guessing. For smaller numbers you can just do it in a spreadsheet, computing the probability of each sum for a pair of dice, then adding in another, and so on.






        share|cite|improve this answer











        $endgroup$
















          0












          0








          0





          $begingroup$

          For reasonably large numbers of dice you can use the normal approximation. Compute the mean and variance for each kind of die. For example, a blue die has a mean of $frac 16(0+0+1+1+1+2)=frac 56$ and a variance of $frac 16(0^2+0^2+1^2+1^2+2^2)-(frac 56)^2=frac {17}{36}.$ The sum will be (approximately) normally distributed with mean the sum of the means and variance the sum of the variances. Compute how many standard deviations high or low you are compared to the mean and use a z-score table. I would guess $10$ or $12$ dice would get you reasonably close, but am just guessing. For smaller numbers you can just do it in a spreadsheet, computing the probability of each sum for a pair of dice, then adding in another, and so on.






          share|cite|improve this answer











          $endgroup$



          For reasonably large numbers of dice you can use the normal approximation. Compute the mean and variance for each kind of die. For example, a blue die has a mean of $frac 16(0+0+1+1+1+2)=frac 56$ and a variance of $frac 16(0^2+0^2+1^2+1^2+2^2)-(frac 56)^2=frac {17}{36}.$ The sum will be (approximately) normally distributed with mean the sum of the means and variance the sum of the variances. Compute how many standard deviations high or low you are compared to the mean and use a z-score table. I would guess $10$ or $12$ dice would get you reasonably close, but am just guessing. For smaller numbers you can just do it in a spreadsheet, computing the probability of each sum for a pair of dice, then adding in another, and so on.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 4 '18 at 23:12

























          answered Dec 4 '18 at 19:51









          Ross MillikanRoss Millikan

          293k23197371




          293k23197371























              0












              $begingroup$

              Worked it out using Generating functions.



              These dice can be expressed as:




              (1/2 + x/3 + x^2/6)^W (1/3 + x/2 + x^2/6)^B (1/6 + (2 x)/3 + x^2/6)^R




              where W, B, and R are the quantities of each dice.



              Expand out into polynomials, then sum up the coefficients starting with the Dth Term (D being the target value). Set that to 1-result and you have your probability of D or higher.






              share|cite|improve this answer









              $endgroup$


















                0












                $begingroup$

                Worked it out using Generating functions.



                These dice can be expressed as:




                (1/2 + x/3 + x^2/6)^W (1/3 + x/2 + x^2/6)^B (1/6 + (2 x)/3 + x^2/6)^R




                where W, B, and R are the quantities of each dice.



                Expand out into polynomials, then sum up the coefficients starting with the Dth Term (D being the target value). Set that to 1-result and you have your probability of D or higher.






                share|cite|improve this answer









                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  Worked it out using Generating functions.



                  These dice can be expressed as:




                  (1/2 + x/3 + x^2/6)^W (1/3 + x/2 + x^2/6)^B (1/6 + (2 x)/3 + x^2/6)^R




                  where W, B, and R are the quantities of each dice.



                  Expand out into polynomials, then sum up the coefficients starting with the Dth Term (D being the target value). Set that to 1-result and you have your probability of D or higher.






                  share|cite|improve this answer









                  $endgroup$



                  Worked it out using Generating functions.



                  These dice can be expressed as:




                  (1/2 + x/3 + x^2/6)^W (1/3 + x/2 + x^2/6)^B (1/6 + (2 x)/3 + x^2/6)^R




                  where W, B, and R are the quantities of each dice.



                  Expand out into polynomials, then sum up the coefficients starting with the Dth Term (D being the target value). Set that to 1-result and you have your probability of D or higher.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 5 '18 at 0:39









                  Jared TritschJared Tritsch

                  1085




                  1085






























                      draft saved

                      draft discarded




















































                      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%2f3026052%2fformula-for-calculating-probability-on-customized-dice%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

                      How do I know what Microsoft account the skydrive app is syncing to?

                      When does type information flow backwards in C++?

                      Grease: Live!