How to calculate probability in dicerolls?


by Stellaferox
Tags: dicerolls, probability
Stellaferox
Stellaferox is offline
#1
Oct5-08, 12:40 PM
P: 16
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
Phys.Org News Partner Science news on Phys.org
Better thermal-imaging lens from waste sulfur
Hackathon team's GoogolPlex gives Siri extra powers
Bright points in Sun's atmosphere mark patterns deep in its interior
CRGreathouse
CRGreathouse is offline
#2
Oct5-08, 01:11 PM
Sci Advisor
HW Helper
P: 3,680
I'm not sure I understand what you're trying to find. You're rolling some set number of dice (2 to 7; call this number n) which I presume have six sides numbered one through six, and you want to find the probability of getting at least one to land on "4" and at least one other to land on "5"?

Is that right?

If so: there are 6^n results, of which 5^n have no 4s, 5^n have no 5s, and 4^n have neither 4s nor 5s. So there are 6^n - 5^n ways of rolling at least one 4, 6^n - 5^n ways of rolling at least one 5, and 6^n - 2 * 5^n + 4^n ways of rolling at least one of each. (The 4^n is added back on because otherwise we'd subtract off the case where neither a 4 nor a 5 is rolled twice.)

To get the probabilities, divide that by the number of outcomes. My results, to three decimal places:
2 5.56%
3 13.9%
4 23.3%
5 32.8%
6 41.8%
7 50.0%
Stellaferox
Stellaferox is offline
#3
Oct5-08, 01:24 PM
P: 16
Hi CRGreathouse,

Yes, you understood the problem correctly and I thank you very much for your solution. This matches my Monte Carlo simulation results. The only thing is, how do I get the formula in "binomial" perspective to this problem. I thought of 1-P(no 5 AND no 4), this translated with a binomial formula would come to 1-(5/6^n)-(5/6^n)+(4/6^n), right?
thanks Marc

Deathless
Deathless is offline
#4
Feb26-09, 07:49 AM
P: 23

How to calculate probability in dicerolls?


Hi

This might not be the right place to add this question but it does involve dice rolls.

Suppose 2 six-sided dice are rolled in a game where a result of 1,6 is not distinguished from 6,1.

How would that be incorporated into a probability calculation?

E.g. a) What is the probability that the sum of the 2 dice is equal or less than 7
b) Is the probability of getting 2 sixes still 1/36 and if so how has the condition of 1,6 being the same for the game as 6,1 been incorporated into the calculation

Thanks
CRGreathouse
CRGreathouse is offline
#5
Feb26-09, 08:25 AM
Sci Advisor
HW Helper
P: 3,680
If the first roll is a 6, there's only one way for the other die to come up to give a 7 or less. If the first roll is a 5, there are two ways to get a 7 or less. ... If the first roll is a 1, there are six ways to get a 7 or less.

Add these up and divide by 36.
Deathless
Deathless is offline
#6
Feb26-09, 09:01 AM
P: 23
Thanks but I'm not sure you've met all the boundary conditions necessary in this special case.

The 2 dice dice are rolled simultaneously and not sequentially.


i.e. your calculation seems identical to the one where a 1 and 6 roll and a 6 and 1 are distinguishable

but suppose all dice are identical, surely they cannot be distinguished them when they are rolled simulataneously
and a result of 6,1 will look exactly the same as 1,6
CRGreathouse
CRGreathouse is offline
#7
Feb26-09, 12:57 PM
Sci Advisor
HW Helper
P: 3,680
Quote Quote by Deathless View Post
but suppose all dice are identical, surely they cannot be distinguished them when they are rolled simulataneously
and a result of 6,1 will look exactly the same as 1,6
The result is exactly the same.
Deathless
Deathless is offline
#8
Feb27-09, 04:34 AM
P: 23
Sorry, I haven't phrased my question very clearly.
Bear with me while I try again.

Player A has 2 dice. Player B has 1 dice. Dice are 6 sided,unbiased and identical. Both players record their throws in sets of 2 dice i.e. player B has to roll 2 dice one after another and records the results while player A rolls both dice simultaneously and records the results. The table shows their results. For simplicity I've not included values above 3 and excluded repetitions of the same result.

A.......................B
Throw..............Throw1; Throw 2
1,3....................1,...........3
2,3....................2,...........3
3,3....................3,...........3
1,2....................1,...........2
2,2....................2,...........2
1,1....................1,...........1
........................3,...........2
........................2,...........1


Whilst (B) is able to distinguish a 2,1 from a 1,2 (A) is unable to, hence his shorter table.

My query is - what implications are there for this difference
And
In which probability calculation would the result be different and in which will the result be the same if data is used from (A) and (B) separately.

Thanks in advance
CRGreathouse
CRGreathouse is offline
#9
Mar2-09, 11:13 AM
Sci Advisor
HW Helper
P: 3,680
Quote Quote by Deathless View Post
In which probability calculation would the result be different and in which will the result be the same if data is used from (A) and (B) separately.
If you distinguish "1, 2" from "2, 1", the possibilities are:
"1, 2": 1/36
"2, 1": 1/36
"1, 2" or "2, 1": 1/36 + 1/36 = 1/18

If you don't, there's a 1/18 chance of rolling a 1 and a 2. It's the same result. The dice don't know if you can tell them apart or not. The dice don't know what order they're rolled in.
Deathless
Deathless is offline
#10
Mar3-09, 08:20 AM
P: 23
Quote Quote by CRGreathouse View Post
If you distinguish "1, 2" from "2, 1", the possibilities are:
"1, 2": 1/36
"2, 1": 1/36
"1, 2" or "2, 1": 1/36 + 1/36 = 1/18

If you don't, there's a 1/18 chance of rolling a 1 and a 2. It's the same result. The dice don't know if you can tell them apart or not. The dice don't know what order they're rolled in.
Yes, I understand all that but what I'm asking is still different.

I am trying to figure in what probability calculation would the difference in (A) and (B)'s data (as in my previous post) be significant and if so why.


Register to reply

Related Discussions
How to calculate. Calculus & Beyond Homework 0
Calculate the probability for 2 different digits in 4 cells. Set Theory, Logic, Probability, Statistics 4
What's the difference between probability and probability density Quantum Physics 5
Can someone calculate a fun probability for me? General Math 2
Probability / Probability density General Physics 2