The Forge Archives

General Forge Forums => First Thoughts => Topic started by: Robert Bohl on August 14, 2006, 01:27:45 PM

Title: Dice probabilities question and meta-question
Post by: Robert Bohl on August 14, 2006, 01:27:45 PM
1) I am wondering where I can find probability distributions for various dice pools, or how I can generate them.  Most of us know the 3d6 bell curve, what I'm wondering about is what the curves for the following look like:

...
1d4, 2d6
2d6, 1d8
1d6, 2d8
...

And so on, from 1, 1, 1d2 to 1d8, 2d12.

2) Does this matter?  Am I going to get anything useful from looking at these distributions?  Should I just go with my gut and have it playtested?

(PS: On the drive home from Gen Con I wrote the complete notes/outline of a game.)
Title: Re: Dice probabilities question and meta-question
Post by: stack0v3rflow on August 14, 2006, 02:18:59 PM
I'm not sure what you are looking for, but to find the average of a die you take the number of sides, divide by two and add 0.5.  So a 1d4 will roll a 2.5 average.

The 1d4+2d6 will have a minimum of 3 (since all of the dice could roll a one), an average of 9.5 (2.5+3.5+3.5), and a maximum value of 16 (4+6+6).

I hope that helps a little.
Title: Re: Dice probabilities question and meta-question
Post by: Robert Bohl on August 14, 2006, 02:23:15 PM
Oh, right.  I was more thinking, like this is the 3d6 bell curve:

(http://www.ajs.com/ajsw/images/d/d1/Bellcurve.png)

So what would that look like for 1d4, 2d6, and so on.  Here are all the combinations I'm thinking of, by the way:

3d1
2d1, 1d2
1d1, 2d2
3d2
2d2, 1d4
1d2, 2d4
3d4
2d4, 1d6
1d4, 2d6
3d6
2d6, 1d8
1d6, 2d8
3d8
2d8, 1d10
1d8, 2d10
3d10
2d10, 1d12
1d10, 2d12
3d12
Title: Re: Dice probabilities question and meta-question
Post by: Robert Bohl on August 23, 2006, 01:56:19 PM
I'm going to make one bump attempt on this and then I'll let it die an ignoble death if that's its fate.  Does anyone have any input on this?  Maybe there's a website that can pump out these probability diagrams?
Title: Re: Dice probabilities question and meta-question
Post by: TonyLB on August 23, 2006, 02:26:05 PM
I sort of figured that someone would get you an interactive page for generating histograms ... but surprisingly, even when I went searching, I couldn't find one.  Is there seriously no tool out there that will map out the outcomes of 1d4+2d12?  That seems ... odd.

Anyway ... if all you're doing is adding independent variables then you're going to get shapes that look like the gaussian bell curve you're familiar with.  Generally speaking:


I hope that helps some.  There's a whole branch of mathematics, y'know, and it's hard to know what pieces you need.
Title: Re: Dice probabilities question and meta-question
Post by: Valamir on August 23, 2006, 03:27:55 PM
You know for the small number of dice you're looking at, it wouldn't be too hard to just do it the hard way and bang out an excel spreadsheet that lists all possible combinations...count each combination up and graph the result.
Title: Re: Dice probabilities question and meta-question
Post by: Robert Bohl on August 23, 2006, 06:15:46 PM
Tony,

Thanks for your attempts.  Actually what I'm searching for is the single thing you didn't mention, which is keeping the dice pool size the same, and the dice only ever varying by one step.

Valamir,

I might try that.  I started and then gave up because I wasn't sure what it would look like.  Also because if you look at the list of dice pool possibilities, that seemed like a lot of tables to write up.

Thanks for the attempts, guys.  Basically what I know about these is:

1) As the dice used go up, the central node of the bell curve increases, and vice versa.
2) Bigger dice make higher curves, smaller dice make flatter curves.
Title: Re: Dice probabilities question and meta-question
Post by: jerry on August 23, 2006, 08:05:11 PM
Tony: I think the problem is that most of us who program, end up doing this sort of thing on the fly and never wrap it up into a nicer piece of software.

Rob: You might look at statistical software. 'R' is free:

http://www.r-project.org/

and can generate histograms, though it's easier to use to generate random tests than full charts (it most likely can do the latter, since it does have a repeat function).

I wrote about it for dice checking:

http://www.hoboes.com/html/RPG/Gods/?ART=88

If you look towards the bottom, you'll see how to generate the standard 3d6 bell curve. If you wanted to instead plot 2d8+d4, for example, you could use:

samplesize = 500000
roll1 = sample(8, samplesize, replace=TRUE)
roll2 = sample(8, samplesize, replace=TRUE)
roll3 = sample(4, samplesize, replace=TRUE)
rolls = roll1+roll2+roll3
frequency = table(rolls)
plot(frequency, type="l", xlab="2d8+d4 rolls")


That'll generate 50 random rolls of 2d8+d4. Given that it's statistic software, I'm sure it can generate standard deviations and such, if that's what you mean by probability distributions.

Jerry
Title: Re: Dice probabilities question and meta-question
Post by: jerry on August 23, 2006, 08:06:20 PM
That would actually be "500,000 random rolls", not 50.
Title: Re: Dice probabilities question and meta-question
Post by: Robert Bohl on August 23, 2006, 08:33:13 PM
Thanks, Jerry.  I'll give that a try.  I also have access to SPSS and SAS through my job, so maybe I can work out something that way too if R doesn't work for me.  But it looks like it will.

Perhaps a broader question, what about original question 2?  Do people stress out over the statistical spread their randomizers present?
Title: Re: Dice probabilities question and meta-question
Post by: Hans on August 24, 2006, 09:23:26 AM
Rob:

Did a brute force excel spreadsheet that should meet your requirements.  See:

http://files.meetup.com/180731/ThreeDiceRoller.xls

Let me know if the link is bad or there are other problems.  Put the die types in the yellow boxes, and read the histogram and probabilities.

Hans
Title: Re: Dice probabilities question and meta-question
Post by: Hans on August 24, 2006, 09:24:44 AM
Quote from: Hans on August 24, 2006, 09:23:26 AM
Did a brute force excel spreadsheet that should meet your requirements.  See:

Ah, one other thing, you will need to trust me enough to let the Visual Basic in the spreadsheet run...that's where the brute force is applied. :)
Title: Re: Dice probabilities question and meta-question
Post by: Robert Bohl on August 24, 2006, 10:21:34 AM
This is awesome, Hans.  Thanks.
Title: Re: Dice probabilities question and meta-question
Post by: Lxndr on August 24, 2006, 10:30:02 AM
On question #2:

A lot of people go with their gut, and are well-served by it.  Any really obvious statistical anomalies generally show up in playtesting. 

I'm a math-numbers-guy who's currently taking a course in probability, and I have fun figuring out things like that, and sometimes, if you have really complex things, it's good to know which selections are more common (like, rolling 4 dice, what will be more common: two pair, or a triple?).  But in the end, no matter what the numbers tell you, even I say 'go with your gut.'   Sometimes, the dice (or whatever you use) will take you places you weren't expecting.
Title: Re: Dice probabilities question and meta-question
Post by: David Artman on August 24, 2006, 12:04:17 PM
Quote from: stack0v3rflow on August 14, 2006, 02:18:59 PMI'm not sure what you are looking for, but to find the average of a die you take the number of sides, divide by two and add 0.5.  So a 1d4 will roll a 2.5 average.
That gets you the median (mean?) value, not the average. For the average, I think one sums the lowest value and highest value, then divides by two.

Suppose a die rolls from 0 to 9? Your method delivers an average of 5.5, when it's actually 4.5.

Or am I totally wrong? I am a bit sucky at math (so I stopped after second year Calculus, changed majors from Computer Science to English and Philosophy, and never looked back!).

By the way, if you want your head to explode, read this PDF article:
Roll: A Language for Specifying Die-Rolls (http://www.diku.dk/undervisning/2006f/213/Mogensen.pdf#search=%22role%20playing%20game%20dice%20probability%20distributions%20average%20formula%22).
I don't know if it will tell you the stuff you want to know--my ears were smoking by about page three--but if you understand the whole PDF, then you should be able to own all of us WRT die mechanics and probability. ;)

David
Title: Re: Dice probabilities question and meta-question
Post by: Hans on August 24, 2006, 12:28:17 PM
Quote from: David Artman on August 24, 2006, 12:04:17 PM
Quote from: stack0v3rflow on August 14, 2006, 02:18:59 PMI'm not sure what you are looking for, but to find the average of a die you take the number of sides, divide by two and add 0.5.  So a 1d4 will roll a 2.5 average.
That gets you the median (mean?) value, not the average. For the average, I think one sums the lowest value and highest value, then divides by two.

Suppose a die rolls from 0 to 9? Your method delivers an average of 5.5, when it's actually 4.5.

This first method assumes highest value = number of sides, which is true for a d10 if you consider the 0 a 10, as most games do.  Your method is more broadly correct, as long as each value appears the same number of times.  For any fair die, the mean = median.
Title: Re: Dice probabilities question and meta-question
Post by: Blankshield on August 24, 2006, 01:12:08 PM
Quote from: RobNJ on August 14, 2006, 01:27:45 PM
2) Does this matter?  Am I going to get anything useful from looking at these distributions?  Should I just go with my gut and have it playtested?

(PS: On the drive home from Gen Con I wrote the complete notes/outline of a game.)

Hi Rob,

To answer question 2: Yes, it matters; in games with dice, dice mechanics affect the shape of play greatly.  However, you probably don't need to know curves and probabilities and all the rest of that, except in very broad terms.  I would suggest you're going about this a little bit backwards:

In the context of your game, find out what effect you want the dice to have, both in terms of possible range and effect and probably outcomes.  Then develope on the mechanic that does that, playtest it to confirm it matches expectations.  Lacerate, rinse, repeat.

Dice mechanics and probability curves are fun (for some people) and useful to know as a tool in your designer's belt, but without the context of the game it's going to be in, it's basically mathamatical wanking.

So... what's your game idea?  (probably best for a new thread, esp. since it seems you've gotten your answer to #1)

James
Title: Re: Dice probabilities question and meta-question
Post by: Robert Bohl on August 24, 2006, 01:42:56 PM
New thread (http://www.indie-rpgs.com/forum/index.php?topic=21112.0) created.
Title: Re: Dice probabilities question and meta-question
Post by: efindel on August 25, 2006, 03:21:33 PM
For odd dice questions, the rpg-create Yahoo group is a great place to ask -- Torben Mogenson, the author of the "Roll" language for expressing dice hangs out there, and often fields questions about dice probabilities.