8th Ed. Spell selection probability

Discussion in 'Lizardmen Tactics' started by kroxigor01, Sep 5, 2010.

  1. kroxigor01
    Ripperdactil

    kroxigor01 Member

    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    16
    Lets try to calculate the chance of rolling a specific spell you want. Start with a level 2 with Plaque of Tepok:


    P(gets a specific spell)=P(rolls the number) + P(gets a double) - P(rolls the number AND a double)

    P(rolls the number) = 1/6 + 5/6*1/6 + (1- (1/6 + 5/6*1/6))*1/6 = 91/216

    P(gets a double) = 1/6*5/6 + 5/6*1/6 + 1/6*1/6 + 5/6*1/6= 4/9

    P(rolls the number AND a double) = 1/6^3 + (1/6*5/6 + 5/6*1/6 + 5/6*1/6)/3 = 11/72


    P(gets a specific spell) = 91/216 + 4/9 - 11/72 = 77/108 = 71.30%

    o_O
    Hope I didn't screw up...
     
  2. Wolf
    Kroxigor

    Wolf Member

    Messages:
    263
    Likes Received:
    3
    Trophy Points:
    18
    In your calculations, what does it matter if you roll a double and the number? Haven't you already covered that under 'roll the number'?

    Anyway, I wrote out the whole tree diagram ( :p ) and counted every time the number 1 (could be anything, I just went with 1) came up, added the amount of times a double was rolled (which also covers the triples) and subtracted the amount of cases they both appeared in. The result came to 189 (for all the doubles and triples (98) and amount of 1s rolled (91))) - 31 (every case where they both appeared) / 216 (total number of possibilities) = 73.15%

    Basically what you got, but not quite :p I'm probably still doing something wrong...
     
  3. Aetylthor
    Jungle Swarm

    Aetylthor New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    According to the program I wrote, these are the chances of getting a specific spell when rolling a certain number of dice:

    Dice: ----- Chance to get the spell:
    2 -------- 44.4 %
    3 -------- 72.1 %
    4 -------- 90.7 %
    5 -------- 98.5 %
     
  4. kroxigor01
    Ripperdactil

    kroxigor01 Member

    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    16
    If you go through all the cases there are:

    24 if your first roll is any unwanted number

    1 2 3 4 5 6
    1 1 - - - - - -
    1 2 - - - 0 0 0
    1 3 - - - - - -
    1 4 - 0 - - 0 0
    1 5 - 0 - 0 - 0
    1 6 - 0 - 0 0 -

    (hmm, the format doesn't quite work...)

    So that is 24x5 = 120 cases in total.

    36 if your first roll is the spell you want.

    So total successful cases is 156. 156/216 = 13/18 = 72.22222222

    What is your program Aetylthor it seems pretty accurate.
     
  5. Aetylthor
    Jungle Swarm

    Aetylthor New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    It simulates the launch of a specified number of dice and determines whether either a specific number was rolled or a double was rolled. It then repeats this process an arbitrary number of times (I used 10000000 for the calculations I posted) and divides the total of positive outcomes by the total number of tries, then multiplies the result by 100 to get the percentage.

    With 10000000 rolls the first number after the dot in the results seems to be accurate.

    It's a Java program. I could post the source code, kroxigor01, if you're interested.
     
  6. kroxigor01
    Ripperdactil

    kroxigor01 Member

    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    16
    Monte Carlo method eh? Nice. :D

    Well that settles it then. Approximately:

    2 - 44.4 %
    3 - 72.1 %
    4 - 90.7 %
    5 - 98.5 %

    I have no idea what a source code entails or any programing though, so it probably wouldn't mean anything to me. ;)
     
  7. JohnMavrick
    Troglodon

    JohnMavrick New Member

    Messages:
    684
    Likes Received:
    113
    Trophy Points:
    0
    Jeez...my head hurts! Some of these calculations are out there. Are you guys using basic algebra for this or something like Calculus?
     
  8. Overhamsteren
    Skink

    Overhamsteren Member

    Messages:
    42
    Likes Received:
    6
    Trophy Points:
    6
    A friend of mine made this:

    Code:
    		   5 rolls  4 rolls  3 rolls  2 rolls  1 roll
    1 spell	 98,5%	90,7%	72,2%	  44,5%	16,7%
    2 spells	93,8%	72,3%	38,8%	  11,1%
    3 spells	84,2%	46,6%	12,5%
    4 spells	67,2%	19,8%
    5 spells	40,3%
    So the chance for a slann with 4 spells to get 3 specific spells is 46,6% -overall it's pretty easy to get the right spells now with switching on doubles.
     

Share This Page