Dice sums and repeated trials · Mathematics Class 11–12 | StemPy Lab
Course 23.3·Lesson 1 of 3
Dice sums and repeated trials
Why does a total of 7 beat a total of 12 with two dice? Because it can be made in more ways. This lesson counts the ways to get each total with two and three dice. It treats repeated trials as counting strings of results. It uses the complement to settle a famous puzzle about dice.
about 30 min1 simulation2 practice questions
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
count the ways to get a total with two or three dice, and read the probability from the count;
find the probability of exactly k successes in n repeated trials by counting;
use the complement for "at least one" in a long run of trials.
Two dice and the king of totals
A game says that you win if the total of two dice is 7, and your friend wins if it is 12. Is the game fair? No. A total of 12 needs two sixes, so it can happen in one way. A total of 7 can happen in six ways: (1,6), (2,5), (3,4), (4,3), (5,2) and (6,1). The 36 ordered pairs are equally likely, so 7 is six times as likely as 12.
The number of ways to get a total s with two dice is 6−∣s−7∣, which goes 1,2,3,4,5,6,5,4,3,2,1 for the totals 2 to 12. The probability is that count divided by 36.
Two bar charts side by side. The left one shows the number of ways to get each total with two dice, from 2 to 12: 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, a triangle with its peak at 7. The right one shows the same for three dice, from 3 to 18: 1, 3, 6, 10, 15, 21, 25, 27, 27, 25, 21, 15, 10, 6, 3, 1, a smooth hill with two equal peaks at 10 and 11.
Three dice
With three dice there are 63=216 ordered outcomes. The ways for the totals 3 to 18 are
1,3,6,10,15,21,25,27,27,25,21,15,10,6,3,1.
The two most likely totals are 10 and 11, with 27 ways each, so each has probability 21627=81. The list is the same read backwards, because replacing each die d by 7−d turns a total s into 21−s.
How to count a total. You can list the cases, as we did for two dice. A faster way is to count the number of solutions of x1+x2+x3=s with each xi from 1 to 6. Ignore the upper limit first: the number of solutions with each xi≥1 is s−1C2. Then take away the solutions where a die shows 7 or more, as in inclusion and exclusion. For s=12 that gives 11C2−3×5C2=55−30=25 ways.
Repeated trials as counting
A fair coin is tossed 10 times. What is the chance of exactly 5 heads? An outcome is a string of ten letters, each H or T, and there are 210=1024 strings. The strings with exactly five heads are found by choosing the five places for the heads: 10C5=252. So the chance is 1024252=25663≈0.246.
In general, n tosses give exactly k heads with probability 2nnCk. For a die thrown n times, the chance of exactly k sixes is 6nnCk×5n−k. Choose the places of the sixes, and every other place can hold any of the 5 other numbers. The Class 12 chapter on random variables names this model, the binomial distribution. Here we see that it is only counting.
The first success on a given trial. A die is thrown until the first six. The first six comes on the third throw in 5×5×1=25 of the 63=216 strings of three throws. The probability is 21625.
The puzzle of the two gamblers
In the 17th century, a gambler called the Chevalier de Méré argued that two bets were equally good. Bet 1: at least one six in 4 throws of a die. Bet 2: at least one double six in 24 throws of two dice. His reason was that 4 is to 6 as 24 is to 36. Count with the complement.
Bet 1. No six in four throws: (65)4. So the chance is 1−(65)4≈0.5177.
Bet 2. No double six in one throw: 3635. In 24 throws: (3635)24. So the chance is 1−(3635)24≈0.4914.
The first bet is slightly better than even and the second slightly worse, so the two bets are not equal. His friends Pascal and Fermat settled such questions with letters, and these letters are a start of probability theory.
A graph with the number of throws on the horizontal axis from 0 to 40. A blue curve shows the chance of at least one six in n throws of one die. It rises quickly and passes the dashed line at one half between 3 and 4 throws. A red curve shows the chance of at least one double six in n throws of two dice. It rises slowly and passes one half between 24 and 25 throws. Points mark 4 throws on the blue curve at 0.518 and 24 throws on the red curve at 0.491.
A worked example
Three dice are thrown. Find the probability that the total is 9 and that the total is at least 16.
Total 9. The ordered outcomes are the orderings of (1,2,6), (1,3,5), (2,3,4) (six each), (1,4,4), (2,2,5) (three each) and (3,3,3) (one). That is 18+6+1=25 outcomes. The probability is 21625.
At least 16. The totals 16, 17 and 18 have 6, 3 and 1 ways. The sum is 10, so the probability is 21610=1085.
Check by symmetry. A total of at least 16 matches a total of at most 5, and the list 1,3,6 gives 10 as well. The answers agree.
Practise with new numbers
Try it in Python
The program counts the ways for each total with two and three dice. Then it finds the chance of exactly five heads in ten tosses, and the two probabilities for the puzzle of the gamblers.
Common mistakes
Counting a total as one outcome. A total of 7 is six outcomes, not one.
Using the unordered pairs. The 21 pairs are not equally likely. Use the 36 ordered pairs, or the 216 ordered triples.
Adding the chances for at least one. Use the complement.
Forgetting the places of the successes. Exactly k heads in n tosses is not one string. It is nCk strings.
Remember these
Two dice: the ways for a total of s are 6−∣s−7∣. Three dice: 1,3,6,10,15,21,25,27,27,25,…
Exactly k heads in n tosses: 2nnCk.
At least one in n trials: 1−(chance of none in one trial)n.
The first success on trial n: a string of n−1 failures and then a success.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
In how many of the 36 outcomes of two dice is the total 5?
Three dice are thrown. Find the probability that the total is 7.
A fair coin is tossed 4 times. Find the probability of exactly three heads.
A die is thrown 3 times. Find the probability that exactly one six shows.
Which is more likely, a total of 4 or a total of 10 with two dice?
References
OpenStax, Introductory Statistics, Chapter 3, section on terminology and Chapter 4, introduction to the binomial distribution.
NCERT, Mathematics for Class XI (earlier edition), Probability, solved examples on dice.
Enroll free in Dice Sums, Matching and Geometric Probability
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.