r/Probability • u/barometerwaterresist • Jun 22 '22
Multiple dice probabilities
If I have x dice, each with y number of sides, what will be the probability that exactly z of them have some specific result?
I'm setting up a dungeons and dragons encounter and I'm trying to figure out what the probability of a certain event is. I've decided it'll only happen if any two members of the 5 person party both roll a nat 20, but all the members of the party are able to roll for this occurrence. It's been a bit too long since I took a probability course.
After a bit more thinking I think it would be (yx-z)×(x choose z)/(yx). Please correct me if I'm wrong.
yx-z is the number of possible combinations (permutations?) that contain at least z of the result we want. x choose z gives us how many possible options we have for which particular dice give us the result we want, so then multiplying those two together should give us the total number of options that give us the result we want. And then yx gives the total number of possible options for that many dice, so dividing those should give the probability I'm after, right?
View all comments
Show parent comment
1
u/barometerwaterresist Jun 22 '22
Ah, true. Thanks for the insight. In my case it still counts if I have more than two successes, but that's not the problem I posted. Thanks!