[Math] Multiple dice rolls (D&D Skill challenge)

diceprobability

In Dungeons and Dragons there is something called a skill challenge, which involves rolling some dice (no surprise there).

An example of a skill challenge:
Skill challenge DC 25 thievery. Roll a d20* and add your thievery bonus (let's say 11) and check if the result matches or goes over 25 take note and roll again (next turn).

As soon as you have five rolls under 25 you fail. As soon as you have 2 rolls over or equal to 25 you succeed in the skill challenge.

How do I calculate the odds of being successful in a skill challenge?

With the numbers I provided I need at least a 14 to match the DC 25. That means that I have $7/20$ odds of matching (or going over) the DC (and $13/20$ for the opposite).

If I only had to match the DC once the math would be easy:
$(13/20)^5$ is the probability of failing, so $1-(13/20)^5$ is the probability of succeeding.

* d20 = 20 sided die, numbered 1-20.

Best Answer

An equivalent way of phrasing this is that you roll 6d20 (because $6=5+2-1$ is the number of rolls after which you'll definitely have either succeeded or failed, and can't have done both), and succeed if at least two of those are higher than the threshold number. So your overall failure probability is $$p^6 +6 p^5(1-p) \, ,$$ where $p=13/20$ is the probability of failing on any given roll (the first term counts the probability of failing 6 times, the second the probability of failing 5 times and succeeding once).

So, in your specific example, the probability of success is $$1-(13/20)^6-6(13/20)^5(7/20) \approx 0.6809 \, .$$

Related Question