Results 1 to 8 of 8
Thread: Dice Math Question
-
2013-06-29, 08:08 AM (ISO 8601)
- Join Date
- Jul 2011
Dice Math Question
Let's define a die type called a dC. A dC is like a d6 that we interpret with the following rules:
On a 1, add 0 to the total of the roll.
From 2 to 5, add 1 to the total.
On a 6, add 1 to the total, then roll another dC (this applies recursively if you roll more 6's).
(Essentially, a dC works like a World of Darkness roll, except it's a d6 instead of a d10 and the target number is 2 or higher.)
The expected value of NdC is N.
Where I'm at a loss: How do I go about calculating the standard deviation and skewness of a distribution of dCs?
-
2013-06-29, 08:52 AM (ISO 8601)
- Join Date
- Dec 2011
Re: Dice Math Question
I certainly lack the statistical knowledge to help you here. But, i believe anydice certainly can. Its calculates dice probabilities, you can insert your own dice functions and such, and it has support for exploding dice.
-
2013-06-29, 08:59 AM (ISO 8601)
- Join Date
- Jul 2011
-
2013-06-29, 09:10 AM (ISO 8601)
- Join Date
- Jun 2013
Re: Dice Math Question
(mind that part of the calculation was done using this)
Alright... wikipedia article for those, who are not sure, what is standard deviation...
We can adjust this formula a bit for our infinitely more devious case (heh, heh)
Lets take a look at the numerator - in our case it will be (0-1)^2 + (1-1)^2 + (1-1)^2 + (1-1)^2 + (1-1)^2 + 1/6*((1-1)^2) + (1-2)^2 + (1-2)^2 + (1-2)^2 + (1-2)^2 + 1/6*((1-2)^2 + (1-3)^2) + (1-3)^2) + (1-3)^2)...etc. (those are squared differences between average value and value corresponding to the throw)
Which can be rewritten by adding together the squares of same numbers:
1 + (25/6)*0 + (25/36)*1 + (25/216)*4 + (25/1296)*9... etc.
Which can be further rewritten:
1 + (25/6)*(sum of (n^2/6^n) for n going from 0 to infinity)
...
1 + (25/6)*(42/125)
...
so the numerator is 1 + 7/5 = 2.4
So the standard deviation is actually sqrt(2.4/6) = sqrt(0.4) = 0.63 or something...
There could still be an error, yeahLast edited by Tarqiup Inua; 2013-06-29 at 09:42 AM.
-
2013-06-29, 09:47 AM (ISO 8601)
- Join Date
- Oct 2010
- Location
- Dallas, TX
- Gender
Re: Dice Math Question
First, the distribution is
0, with probability 1/6
1, with probability 25/36
2, with probability 25/216
3, with probability 25/1296
etc.
The variance is the expected value of the deviations from the mean squared. I calculated it in Excel to be 0.4, which makes the standard deviation 0.632456
Var = (1*1/6) + 0*25/36 + 1*25/216 + 4*25/1296 + ...
The skewness is the expected value of the deviations cubed, divided by sigma cubed. That came to 0.9487.
-
2013-06-29, 04:52 PM (ISO 8601)
- Join Date
- Jul 2011
Re: Dice Math Question
Thanks guys, though I'm still not sure how to expand this to pools. How would you go about calculating the properties of 2dC, or 3dC, or 5dC?
-
2013-06-30, 04:59 AM (ISO 8601)
- Join Date
- Nov 2010
Re: Dice Math Question
Each of your dC is independent, so the standard deviation of the whole is the square root of the sum of squares.
Since StDev^2 = 0.4, rolling n dC gives you StDev(n dC) = sqrt(0.4 * n).
Skewness is Skew(n dC) = Skew(1 dC) / sqrt(n).
Simple!
-
2013-06-30, 10:15 AM (ISO 8601)
- Join Date
- Jul 2011