Calculate Multiple Dice Probabilities

Lots of people think that if you roll three six sided dice, you have an equal chance of rolling a three as you have rolling a ten. This is not the case, however, and this article will show you how to calculate the mean and standard deviation of a dice pool.

Learn the terminology of dice mechanics. Dice are usually of the 6 sided variety, but are also commonly found in d2(Coins), d4(3 sided pyramids), d8(Octahedra), d10(Decahedra), d12(Dodecahedra), and d20(Icosahedra). A dice roll follows the format (Number of Dice) (Shorthand Dice Identifier), so 2d6 would be a roll of two six sided dice. In this article, some formulas will assume that n = number of identical dice and r = number of sides on each die, numbered 1 to r, and 'k' is the combination value. There are several methods for computing the likelihood of each sum.

Steps

Probability Chart

Doc:Dice Probability Chart

Enumeration

  1. Note the number of dice, their sides, and the desired sum.
  2. Enumerate all the ways that sum can be reached. This can be tedious for large numbers of dice, but is fairly straightforward. This is equivalent to the finding all partitions of k into exactly n parts with no part larger than r. An example for n=5, r=6, and k=12 is shown as an example. In order to ensure that the count is both exhaustive and that no partition is counted twice, the partitions are presented in lexicographic order and the dice in each partition in non-decreasing order.
  3. Not all partitions listed in the previous step are equally likely. This is why they must be listed, not simply counted. In a smaller 3 die example, the partition 123 covers 6 possibilities (123, 132, 213, 231, 312, 321) while the partition 114 covers only 3 (114, 141, 411) and 222 only includes itself. Use the multinomial formula to compute the number of ways to permute the digits in each partition. This information has been added to the table from the previous section.
  4. Add the total number of ways to get the desired sum.
  5. Divide by the total number of outcomes. Since each die has r equally probable faces, this is simply rn.

Recursion

This method gives the probability of all sums for all numbers of dice. It can be easily implemented on a spreadsheet.

  1. Note the probabilities of the outcomes of a single die. Record them in a spreadsheet. The example shown uses 6-sided dice. The blank rows for negative sums are treated as zeros and allow the same formula to be used in all rows.
  2. In the column for 2 dice, use the formula shown. That is, the probability of 2 dice showing any sum k equals the sum of the following events. For very high or low values of k, some or all or these terms might be zero, but the formula is valid for all k.
    • First die shows k-1 and the second shows 1.
    • First die shows k-2 and the second shows 2.
    • First die shows k-3 and the second shows 3.
    • First die shows k-4 and the second shows 4.
    • First die shows k-5 and the second shows 5.
    • First die shows k-6 and the second shows 6.
  3. Likewise, for three or more dice, the same formula still applies, using the now known probabilities for each given sum on one die fewer. Thus, the formula entered in step two can be filled both down and across until the table includes as much data as required.
  4. The spreadsheet shown computed "number of ways" not "probability", but converting between them is easy: probability = number of ways / r^n where r is number of sides on each die and n is the number of dice. Alternatively, the spreadsheet can be modified to compute probability directly.

Generating Functions

  1. Write the polynomial, (1/r)(x + x2 + ... + xr). This is the generating function for a single die. The coefficient of the xk term is the probability that the die shows k.
  2. Raise this polynomial to the nth power to get the corresponding generating function for the sum shown on n dice. That is compute (1/rn)(x + x2 + ... + xr)n. If n is larger than about 2, you'll probably want to do this on a computer.
  3. Computationally, this is equivalent to the previous method, but sometimes theoretical results are easier to derive with a generating function. For example throwing two regular 6-sided dice has exactly the same distribution of sums as a die labeled (1, 2, 2, 3, 3, 4) and another labeled (1, 3, 4, 5, 6, 8). This is because (x+x2 +x2+x3+x3+x4)(x+x3 +x4+x5+x6+x8) = (x+x2 +x3+x4+x5+x6)(x+x2 +x3+x4+x5+x6).

Continuous Approximation

  1. For a large number of dice, exact computation by the above methods may be difficult. The central limit theorem states that the sum of a number of identical dice approaches a normal distribution as the number of dice increases.
  2. Compute the mean and standard variation based on the number and type of dice. Assuming n dice numbered 1 to r, the formulas below apply.
    • The mean is (r+1)/2.
    • The variance is n(r^2-1)/12.
    • The standard deviation is the square root of the variance.
  3. Use the normal distribution with the above mean and standard deviation as an approximation of the sum of the dice.

Warnings

  • Using a pool with more than one kind of die complicates these methods. In this case, the easiest way to determine the probability is usually to enumerate all the possible results and arrange them increasing order by their total.

Related Articles

Sources and Citations

You may like