The true odds of rolling 108
Jarrakul
Member Posts: 2,029
So, every so often, someone asks what the probability is of roll a perfect 108 statline. Consistently, people give a lot of wrong answers (1/6^18 is a common favorite), and a lot of "I don't know"s. Because, well, the problem is hard. The game's built-in rerolling of too-low stats complicates the probabilities dramatically. For a long time, all we knew was that the true probability was very low, but much higher than 1/6^18. Until now.
Through the wonders of linear algebra and Matlab, it's now possible to instantly compute the probability of rolling a 108 (or any other total) for any given race/class combination. Multiclasses are still a work in progress, but that's just because I'm excited to post this, not because they're at all hard to add.
So what are the odds? Well, there are a lot of possible combinations, so I'll just post the ones that give the best and worst odds:
Human fighter (/thief/cleric/mage): 1 in 496.25 billion
Human paladin: 1 in 5.3104 billion
Elf ranger: 1 in 198.03 million
Note that I made a couple assumptions when computing these probabilities. In particular, I assumed that the game rerolls any statline below a given minimum (which is supported by my testing), and that racial modifiers (the elf +1 Dex, for example) are added after the roll is made but before the roll is compared to the various minimums (this is less supported by evidence, but I'm not sure how else they'd do it).
EDIT: I'm also assuming the game rolls 3d6 to generate stats, as opposed to 4d6 drop lowest. This is most likely correct, but the two are very difficult to distinguish without extensive testing.
Through the wonders of linear algebra and Matlab, it's now possible to instantly compute the probability of rolling a 108 (or any other total) for any given race/class combination. Multiclasses are still a work in progress, but that's just because I'm excited to post this, not because they're at all hard to add.
So what are the odds? Well, there are a lot of possible combinations, so I'll just post the ones that give the best and worst odds:
Human fighter (/thief/cleric/mage): 1 in 496.25 billion
Human paladin: 1 in 5.3104 billion
Elf ranger: 1 in 198.03 million
Note that I made a couple assumptions when computing these probabilities. In particular, I assumed that the game rerolls any statline below a given minimum (which is supported by my testing), and that racial modifiers (the elf +1 Dex, for example) are added after the roll is made but before the roll is compared to the various minimums (this is less supported by evidence, but I'm not sure how else they'd do it).
EDIT: I'm also assuming the game rolls 3d6 to generate stats, as opposed to 4d6 drop lowest. This is most likely correct, but the two are very difficult to distinguish without extensive testing.
Post edited by Jarrakul on
3
Comments
chance to win 7/7 on a 1 to 49 lottery ticket = 1 in 28,633,528.
Also, have an estimate of the probabilities for 4d6 drop lowest. Some of the math for these ones is taken from anydice.com, which is why it's an estimate; anydice is great, but it's a simulator, which means it's not always fully accurate. I could do a true algorithmic solution, but it's kind of a pain, and I'm annoyed by the inelegance of the math when I just got a beautiful solution working for the 3d6 version. Which is nobody's fault, of course. It's just that dropping the lowest die breaks all my pretty linear algebraic formulas.
Human fighter: 1 in 84.873 billion
Human paladin: 1 in 2.1703 billion
Elf ranger: 1 in 18.22 million
If you just want to run the code, check the readme. It should have all the info you need.
EDIT: Realized I was slightly wrong for dwarves and halflings. Edited to upload the fixed version. Note that dwarves and halflings can't actually roll 108, due to their negative total racial modifiers.
I've since made a version of the excel file that I never posted there (attached here), that allows you to choose a race and a class and calculates the probabilities automatically (though it doesn't disallow illegal race/class combinations). Check it out if you like.