Dice Probability: Calculating Consecutive Numbers

  • Context: Undergrad 
  • Thread starter Thread starter boneill3
  • Start date Start date
  • Tags Tags
    Dice Probability
Click For Summary
SUMMARY

The probability of rolling consecutive numbers with three dice is calculated as 1/36. This is derived from the total permutations of three consecutive numbers (6) divided by the total possible outcomes of rolling three dice (216). Brendan confirmed this calculation and further validated the result using an R simulation, which produced a probability of approximately 0.029, closely aligning with the theoretical value of 1/36.

PREREQUISITES
  • Understanding of basic probability concepts
  • Familiarity with permutations and combinations
  • Basic programming skills in R
  • Knowledge of statistical simulation techniques
NEXT STEPS
  • Learn R programming for statistical simulations
  • Explore advanced probability concepts in combinatorial analysis
  • Study the implications of independent events in probability
  • Investigate the use of Monte Carlo methods for probability estimation
USEFUL FOR

Mathematicians, statisticians, data analysts, and anyone interested in probability theory and statistical programming.

boneill3
Messages
126
Reaction score
0
Not sure if I should ask this here but

I'm trying to find the probability of consecutive numbers on tossing three dice. eg 1 2 3 , 4 5 6 etc

My workings so is

nPr = 3P3 (how many permutaions of 3 numbers in order)

= n!/(n-r)! = 3!/0! = 6

What
I did next is calulate all possible outcomes of three dice = 6 x 6 x 6 = 216

Therfore the probability of consecutive numbers on three dice = 6/216 = 1/36

Does this look right ?
I'm not quite sure if the permutaion calculation is right or if i have to multiply it by six...
regards
Brendan
 
Physics news on Phys.org
boneill3 said:
What
I did next is calulate all possible outcomes of three dice = 6 x 6 x 6 = 216

Therfore the probability of consecutive numbers on three dice = 6/216 = 1/36

Does this look right ?

Yep.

Going up: 3 ways of choosing the first die, other two are fixed: 3/216
Going down: 3 ways of choosing the first die, other two are fixed: 3/216
 
Thanks for your reply.
I've created an function using R to simulate rolling the dice 1000 times and I needed to compare it with the calculated probability.

Here' my code

RollDie=function(n) sample(1:6,n,replace=T) #function to roll 1 dice

result=0 #results hold the number of successive throws


for (x in c(1:1000) ) #loop 1000 times
{
die1 = RollDie(1) #roll first die

die2 = RollDie(1) #roll second die

die3 = RollDie(1) #roll third die


if (((die1 == die2-1) & (die2 == die3-1)) || ((die1 == die2+1) & (die2 == die3+1))) #if dice in consecutive order add to result
{
result = result+1

}
else
{}
}

print(result) #print number of successive values

P3succesivenumbers=(result/1000) #calculate probability

print(P3consecutivenumbers) #print probability



And the probability came out as:

print(P3consecutivesivenumbers) #print probability
[1] 0.029


Which is pretty close to 1/36 = .0277

thanks
Brendan
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 41 ·
2
Replies
41
Views
6K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K