- #1
Stellaferox
- 16
- 0
How to calculate this certain probability in dicerolls?
Hi,
I am writing a game in which AT LEAST a 5 and 4 must be rolled with 2,3,4,5,6 and 7 dice. To calculate this probability I got stuck with the binomial formula nCk*p^k*q^(n-k).
I am looking for the formula that gives the solution to the question what this probability is.
I used a Monte Carlo simulation to check my formula but couldn't get close enough.
I used the formula nPk*p^k*q^(n-k), note the permutational formula, because a 5, then a 4 is different form a 4, then a 5...
On 7 dice the error was consistent but not to be overlooked.
How do I get to the right formula?
thanks for your help!
Marc
Hi,
I am writing a game in which AT LEAST a 5 and 4 must be rolled with 2,3,4,5,6 and 7 dice. To calculate this probability I got stuck with the binomial formula nCk*p^k*q^(n-k).
I am looking for the formula that gives the solution to the question what this probability is.
I used a Monte Carlo simulation to check my formula but couldn't get close enough.
I used the formula nPk*p^k*q^(n-k), note the permutational formula, because a 5, then a 4 is different form a 4, then a 5...
On 7 dice the error was consistent but not to be overlooked.
How do I get to the right formula?
thanks for your help!
Marc
Last edited: