Probability
1,1. 1,2. 1,3. 1,4. 1,5. 1,6
2,2. 2,3. 2,4. 2,5. 2,6
3,3 3,4. 3,5. 3,6
4,4. 4,5. 4,6
5,5. 5,6
6,6
So the probability of rolling all these combinations before a 7 comes up? Thanks!
https://wizardofodds.com/games/craps/appendix/5/
so all 21 combos B4 any 7Quote: DferrarioSo the probability of rolling all these combinations before a 7 comes up? Thanks!
instead of the 10 sums that the All Bonus Craps bet is. that is 1 in 190
so I say very close to 0 (how close do you want?)
without calculating it.
too many states for a simple transition matrix solution and too small values for inclusion-exclusion
there might be one that could do this while having fun with it
edit
Sally
1,6Quote: DferrarioWhat is the probability of rolling 2 dice and rolling every combination of dice before a 7 comes up?
1,1. 1,2. 1,3. 1,4. 1,5. 1,6
2,2. 2,3. 2,4. 2,5. 2,6
3,3 3,4. 3,5. 3,6
4,4. 4,5. 4,6
5,5. 5,6
6,6
2,5
3,4
are the combos for a 7
you do not want that right?
so 18 combos in all?
this was easier than I thought.Quote: DferrarioSo the probability of rolling all these combinations before a 7 comes up? Thanks!
> p
[1] 0.0001345821
> a=1/p
> a # 1 in
[1] 7430.409
> a-1 # odds against
[1] 7429.409
compare All Bonus bet too below
I used R
##################################################################
> # Probability of rolling a subset of numbers before a single number
> ##################################################################
> start.time <- Sys.time()
> options(scipen=999)
>
> numbers = c(2,3,4,5,6,8,9,10,11,12,7) # Last must occur only after all others in any order
>
> in_36 = ifelse(numbers <= 7, numbers-1, 13-numbers) # Ways to make each number
> i = length(in_36)
> p = 0
> for (j in 1:(i-1)) { # Last number before j numbers
+ terms = combn(in_36[1:(i-1)],j) # Matrix w/combos of j numbers in C(i-1,j) columns
+ for (k in 1:ncol(terms)) { # Sum each column, compute and add probabilities
+ p = p + (-1)^(j+1) * in_36/(in_36 + sum(terms[1:j,k]))
+ }
+ }
> end.time <- Sys.time()
> time <- end.time - start.time
> time
Time difference of 0.1562679 secs
> p = 1-p
> p
[1] 0.005257704
> a=1/p
> a # 1 in
[1] 190.1971
> a-1 # odds against
[1] 189.1971
> ##################################################################
> # Probability of rolling a subset of numbers before a single number
> ##################################################################
> start.time <- Sys.time()
> options(scipen=999)
>
> numbers = c(2,3,4,5,6,4,5,6,8,6,8,9,8,9,10,10,11,12,7) # Last must occur only after all others in any order
>
> in_36 = c(1,2,2,2,2,1,2,2,2,1,2,2,1,2,2,1,2,1,6) # Ways to make each number
> i = length(in_36)
> p = 0
> for (j in 1:(i-1)) { # Last number before j numbers
+ terms = combn(in_36[1:(i-1)],j) # Matrix w/combos of j numbers in C(i-1,j) columns
+ for (k in 1:ncol(terms)) { # Sum each column, compute and add probabilities
+ p = p + (-1)^(j+1) * in_36/(in_36 + sum(terms[1:j,k]))
+ }
+ }
> end.time <- Sys.time()
> time <- end.time - start.time
> time
Time difference of 1.200368 secs
> p=1-p
> p
[1] 0.0001345821
> a=1/p
> a # 1 in
[1] 7430.409
> a-1 # odds against
[1] 7429.409
Sally
it is what you said at 1st.Quote: DferrarioGreat point, yes, without the 7 combinations! Thanks for catching this!
the subset of combos can roll in any order (the order does not matter)
in the code I used
you can also use the code for smaller subsets of combos too
wondering why the question?
Sally
Hope you won your side bet!Quote: DferrarioThanks Mustangsally. My dealer friend and I had a side bet. So to confirm it is roughly a 1-7,500 chance of rolling all 18 combinations before a seven comes up?
yes, closer to 1 in 7431
most everything can be calculated.Quote: DferrarioIt’s amazing you are able to calculate this, I should have paid more attention in school!😄
credit is to BruceZ who did the original code.
I changed it to suit my interests.
The math behind it is more involved as it uses a concept in set counting named inclusion- exclusion.
the code looks to see the probability of NOT getting all the combos and we subtract that from 1 to get the answer.
a dice example. the chance to NOT get at least one 1 on 2 dice =
5 ways * 5 ways = 25 ways out of 6*6 = 36 total ways = 25/36.
so 1 - 25/36 = 11/36 = the probability of getting at least one 1 when rolling 2d6
or 1/6 + 1/6 = 2/6 or 12/36
so we overcounted when the dice rolls 1,1
that should only count as one 1.
so 12/36 - 1/36 = 11/36
(one can see this in a list of all the possible sums)
Permutations with repetition (n=6, r=2)
Using Items: 1,2,3,4,5,6
List has 36 entries.
1,1
1,2
1,3
1,4
1,5
1,6
2,1
2,2
2,3
2,4
2,5
2,6
3,1
3,2
3,3
3,4
3,5
3,6
4,1
4,2
4,3
4,4
4,5
4,6
5,1
5,2
5,3
5,4
5,5
5,6
6,1
6,2
6,3
6,4
6,5
6,6
many ways to use the math to our advantage of finding the right answer.
Sally
Do you know the odds of not rolling a 7, for 10, 20, 30, 40 and 50 rolls?
Looking for 1 in 6, 1 in 50 etc.
a table like this should work for youQuote: DferrarioLooking for 1 in 6, 1 in 50 etc.
| roll X | on X | X or less | no roll | 1 in |
|---|---|---|---|---|
| 1 | 0.166666667 | 0.166666667 | 0.833333333 | 1.20 |
| 2 | 0.138888889 | 0.305555556 | 0.694444444 | 1.44 |
| 3 | 0.115740741 | 0.421296296 | 0.578703704 | 1.73 |
| 4 | 0.096450617 | 0.517746914 | 0.482253086 | 2.07 |
| 5 | 0.080375514 | 0.598122428 | 0.401877572 | 2.49 |
| 6 | 0.066979595 | 0.665102023 | 0.334897977 | 2.99 |
| 7 | 0.055816329 | 0.720918353 | 0.279081647 | 3.58 |
| 8 | 0.046513608 | 0.767431961 | 0.232568039 | 4.30 |
| 9 | 0.03876134 | 0.806193301 | 0.193806699 | 5.16 |
| 10 | 0.032301117 | 0.838494417 | 0.161505583 | 6.19 |
| 11 | 0.026917597 | 0.865412014 | 0.134587986 | 7.43 |
| 12 | 0.022431331 | 0.887843345 | 0.112156655 | 8.92 |
| 13 | 0.018692776 | 0.906536121 | 0.093463879 | 10.70 |
| 14 | 0.015577313 | 0.922113434 | 0.077886566 | 12.84 |
| 15 | 0.012981094 | 0.935094528 | 0.064905472 | 15.41 |
| 16 | 0.010817579 | 0.945912107 | 0.054087893 | 18.49 |
| 17 | 0.009014649 | 0.954926756 | 0.045073244 | 22.19 |
| 18 | 0.007512207 | 0.962438963 | 0.037561037 | 26.62 |
| 19 | 0.006260173 | 0.968699136 | 0.031300864 | 31.95 |
| 20 | 0.005216811 | 0.973915947 | 0.026084053 | 38.34 |
| 21 | 0.004347342 | 0.978263289 | 0.021736711 | 46.01 |
| 22 | 0.003622785 | 0.981886074 | 0.018113926 | 55.21 |
| 23 | 0.003018988 | 0.984905062 | 0.015094938 | 66.25 |
| 24 | 0.002515823 | 0.987420885 | 0.012579115 | 79.50 |
| 25 | 0.002096519 | 0.989517404 | 0.010482596 | 95.40 |
| 26 | 0.001747099 | 0.991264503 | 0.008735497 | 114.48 |
| 27 | 0.001455916 | 0.992720419 | 0.007279581 | 137.37 |
| 28 | 0.001213263 | 0.993933683 | 0.006066317 | 164.84 |
| 29 | 0.001011053 | 0.994944736 | 0.005055264 | 197.81 |
| 30 | 0.000842544 | 0.99578728 | 0.00421272 | 237.38 |
| 31 | 0.00070212 | 0.9964894 | 0.0035106 | 284.85 |
| 32 | 0.0005851 | 0.9970745 | 0.0029255 | 341.82 |
| 33 | 0.000487583 | 0.997562083 | 0.002437917 | 410.19 |
| 34 | 0.000406319 | 0.997968403 | 0.002031597 | 492.22 |
| 35 | 0.0003386 | 0.998307002 | 0.001692998 | 590.67 |
| 36 | 0.000282166 | 0.998589169 | 0.001410831 | 708.80 |
| 37 | 0.000235139 | 0.998824307 | 0.001175693 | 850.56 |
| 38 | 0.000195949 | 0.999020256 | 0.000979744 | 1,020.67 |
| 39 | 0.000163291 | 0.999183547 | 0.000816453 | 1,224.81 |
| 40 | 0.000136076 | 0.999319622 | 0.000680378 | 1,469.77 |
| 41 | 0.000113396 | 0.999433018 | 0.000566982 | 1,763.73 |
| 42 | 9.44969E-05 | 0.999527515 | 0.000472485 | 2,116.47 |
| 43 | 7.87474E-05 | 0.999606263 | 0.000393737 | 2,539.77 |
| 44 | 6.56229E-05 | 0.999671886 | 0.000328114 | 3,047.72 |
| 45 | 5.46857E-05 | 0.999726571 | 0.000273429 | 3,657.26 |
| 46 | 4.55714E-05 | 0.999772143 | 0.000227857 | 4,388.71 |
| 47 | 3.79762E-05 | 0.999810119 | 0.000189881 | 5,266.46 |
| 48 | 3.16468E-05 | 0.999841766 | 0.000158234 | 6,319.75 |
| 49 | 2.63724E-05 | 0.999868138 | 0.000131862 | 7,583.70 |
| 50 | 2.1977E-05 | 0.999890115 | 0.000109885 | 9,100.44 |
| 51 | 1.83141E-05 | 0.999908429 | 9.15707E-05 | 10,920.53 |
| 52 | 1.52618E-05 | 0.999923691 | 7.63089E-05 | 13,104.63 |
| 53 | 1.27182E-05 | 0.999936409 | 6.35908E-05 | 15,725.56 |
| 54 | 1.05985E-05 | 0.999947008 | 5.29923E-05 | 18,870.67 |
| 55 | 8.83205E-06 | 0.99995584 | 4.41602E-05 | 22,644.80 |
| 56 | 7.36004E-06 | 0.9999632 | 3.68002E-05 | 27,173.76 |
| 57 | 6.13337E-06 | 0.999969333 | 3.06668E-05 | 32,608.52 |
| 58 | 5.11114E-06 | 0.999974444 | 2.55557E-05 | 39,130.22 |
| 59 | 4.25928E-06 | 0.999978704 | 2.12964E-05 | 46,956.26 |
| 60 | 3.5494E-06 | 0.999982253 | 1.7747E-05 | 56,347.51 |
Each of the 18 values makes up 1.67 in 36, or 1 in 22 rounded, of all possibilities leaving 4 in 22 of hitting a seven.
Therefore the chance of hitting all 18 before a seven is 18/22 * 17 /21 * 16/20 ....* 1/5
Which simplifies to (4 * 3 * 2) / (22 * 21 * 20 * 19) = 1 in 7,315.
Join the discussion
Log in or create a free account to reply to this thread.

