New OOTS products from CafePress
New OOTS t-shirts, ornaments, mugs, bags, and more
Results 1 to 8 of 8
  1. - Top - End - #1
    Ogre in the Playground
    Join Date
    Jul 2011

    Default 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?

  2. - Top - End - #2
    Halfling in the Playground
     
    AssassinGuy

    Join Date
    Dec 2011

    Default 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.

  3. - Top - End - #3
    Ogre in the Playground
    Join Date
    Jul 2011

    Default Re: Dice Math Question

    Quote Originally Posted by Delvin Darkwood View Post
    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.
    Its exploding dice calculator can only handle finite recursion depths: If you want to do an infinite series then it can't handle the convergences for you.

    Thanks for the suggestion anyway, though!

  4. - Top - End - #4
    Halfling in the Playground
     
    BarbarianGuy

    Join Date
    Jun 2013

    Default 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, yeah
    Last edited by Tarqiup Inua; 2013-06-29 at 09:42 AM.

  5. - Top - End - #5
    Titan in the Playground
    Join Date
    Oct 2010
    Location
    Dallas, TX
    Gender
    Male

    Default 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.

  6. - Top - End - #6
    Ogre in the Playground
    Join Date
    Jul 2011

    Default 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?

  7. - Top - End - #7
    Barbarian in the Playground
    Join Date
    Nov 2010

    Default 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!

  8. - Top - End - #8
    Ogre in the Playground
    Join Date
    Jul 2011

    Default Re: Dice Math Question

    Quote Originally Posted by meschlum View Post
    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!
    Ooh, I didn't know these tricks. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •