NOTICE: This site has gone though an upgrade and as part of the update your password will not work. You will need to use the "I forgot my password" option to have an email sent with recovery instructions. Once this has been completed and your password is updated you will be able to login. We apologize for the inconvenience however it was necessary to keep code up to date and your account safe.

-Admin

Average of exploding dice

Let's talk about the very awesome BASH!
Post Reply
User avatar
Saker
Paragon
Paragon
Posts: 743
Joined: Sun Jul 04, 2010 11:00 pm
Location: Montreal

Average of exploding dice

Post by Saker »

I've been running BASH lately and wanted to know what the average of 2d6 exploding dice was. It is 7.7. As opposed to 7 which is the average of 2d6.

I'll show my math, in case I made a mistake:

Exploding dice is effectively the sum of an infinite geometric series. After you roll the first dice, you can reroll the second dice 1/6 of the time repeating until you stop rolling the same number.

The sum of an infinite geometric series converges to [t / (1 - r)] where t = 3.5 and r = 1/6. The average (expectation) of rolling a 6-sided dice is 3.5.

So the expectation (average) of exploding dice is 3.5 + 3.5/ (1 - 1/6)

So, 3.5 + 3.5 x (6/5) = 3.5 + 4.2 = 7.7

cheers
[b][url=http://img689.imageshack.us/img689/7264/skymarshall.png]The Sky Marshall[/url][/b]
Post Reply