I got my answer the long way - is there a better way?
I have six unbiased six-sided dice.
Its been raining again...
I have six unbiased six-sided dice. The game comprises two rolls. In the first roll I roll a single die. In the second roll, I roll as many dice as there are spots in the first roll. So, if the first roll comes up with a
one, I just roll one die in the second roll. If the first roll comes up
with a six, I roll six dice in the second roll. The outcome of the game is the total of the spots in the second roll. We can see that an outcome of
one, (roll a 1 followed by 1) and and outcome of thirty-six, (roll a 6 followed by 6, 6, 6, 6, 6, 6) are the most unlikely outcomes,
On Sun, 15 Feb 2026 10:50:13 -0000 (UTC), David Entwistle wrote:
I got my answer the long way - is there a better way?
Possibly interesting to have a guess before working on the solution. My
guess was somewhat better than AI's "solution".
My
guess was somewhat better than AI's "solution".
A graph for the above shows a general pattern of a rise then a
falling off as the target total increases, which seems intuitive,
but the falling off is not completely smooth - e.g. the peak is for
total=6 after which there's a considerable drop for total 7, but
totals for 8, 9, 10 and 11 are increasing again!
On my first reading I read over this, but actually this isn't right! 36
is definitely the least likely outcome, but it turns out each of the
outcomes from 22 up to 36 are also less likely than outcome 1. (In an earlier post I presented a calculation of the number of ways for making
each outcome 1-36.)
I've put a graph at https://www.cogsci.ed.ac.uk/~richard/dice.png
The lower graphs are the probabilty of getting N with 1,2,..,6 dice.
As the number of dice increases the distribution changes from
rectangular to a smooth distribution approaching (central limit
theorem!) normal.
Now suppose you have N N-sided dice. I was initially very surprised by
the result but on reflection I can see why it is so.
I've put a graph at https://www.cogsci.ed.ac.uk/~richard/dice.png
The lower graphs are the probabilty of getting N with 1,2,..,6 dice. As
the number of dice increases the distribution changes from rectangular
to a smooth distribution approaching (central limit theorem!) normal.
The upper graph is sum of these - i.e. the overall chance of getting N.
The big drop between 6 and 7 is because the probability for one die
drops to zero.
(The use of a continuous line graph for discrete variables is obviously wrong, but I didn't spend time trying to find an alternative that was
still clear.)
On Mon, 16 Feb 2026 04:29:26 +0000, Mike Terry wrote:
On my first reading I read over this, but actually this isn't right! 36
is definitely the least likely outcome, but it turns out each of the
outcomes from 22 up to 36 are also less likely than outcome 1. (In an
earlier post I presented a calculation of the number of ways for making
each outcome 1-36.)
Yes, I see I had that all wrong. It turns out that my intuition was even worse than the AI's solution, but neither of us were close.
So what did the AI say?
Now suppose you have N N-sided dice. I was initially very surprised by
the result but on reflection I can see why it is so.
Interesting question. I'll work on getting the correct answer to the
initial question first, and then think about moving on.
Answer .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Just as the most common result for 6-sided dice is 6, for N-sided dice
it seems to be N. As with the 6-sided case the probability increases
from 1 to N, and then there's the sudden drop when you reach the first
sum can't be obtained with a single die.
Once N gets up into the teens a surprising phenomenon occurs: the graph
is quite flat in the central part. For example, when N=20 the
probability of sums from 71 to 137 are all equal (to 5dp).
See https://www.cogsci.ed.ac.uk/~richard/dice20.png
-- Richard
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 03:26:02 |
| Calls: | 810 |
| Files: | 1,287 |
| D/L today: |
4 files (10,048K bytes) |
| Messages: | 202,927 |