ilikevp
ilikevp
  • Threads: 6
  • Posts: 14
Joined: Feb 10, 2014
April 23rd, 2014 at 5:36:14 AM permalink
Hi all,
in craps, after a number has come out, how to calculate the average number of rolls before a 7 or the number is rolled out? i like to know the formula.

thanks.
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
April 23rd, 2014 at 7:18:55 AM permalink
point is 4 or 10
the game ends when the point number or a 7 is rolled.

9/36 = that probability (p)
for the expected number of rolls = 1/p

so 1 / 9/36 = 1 * 36/9 = 4

the distribution looks like this
from (1-p)^N * p (on roll N)
rollby roll Non roll N
10.250.25
20.43750.1875
30.5781250.140625
40.683593750.10546875
50.7626953130.079101563
60.8220214840.059326172
70.8665161130.044494629
80.8998870850.033370972
90.9249153140.025028229
100.9436864850.018771172
110.9577648640.014078379
120.9683236480.010558784
130.9762427360.007919088
140.9821820520.005939316
150.9866365390.004454487
160.9899774040.003340865
170.9924830530.002505649
180.994362290.001879237
190.9957717170.001409428
200.9968287880.001057071
210.9976215910.000792803
220.9982161930.000594602
230.9986621450.000445952
240.9989966090.000334464
250.9992474570.000250848
260.9994355920.000188136
270.9995766940.000141102
280.9996825210.000105826
290.9997618917.93698E-05
300.9998214185.95274E-05



5 or 9 point
p=10/36
average = 36/10 = 3.6
what is that .6?

the distribution
rollby roll Non roll N
10.2777777780.277777778
20.4783950620.200617284
30.6232853220.144890261
40.7279282880.104642966
50.8035037640.075575475
60.8580860520.054582288
70.8975065930.039420541
80.9259769840.028470391
90.9465389330.020561949
100.9613892290.014850296
110.9721144430.010725214
120.9798604310.007745988
130.9854547560.005594325
140.9894951010.004040346
150.9924131290.002918027
160.9945205930.002107464
170.9960426510.001522057
180.9971419140.001099264
190.9979358270.000793913
200.9985092080.000573381
210.9989233170.000414109
220.9992223960.000299079
230.9994383970.000216001
240.9995943980.000156001
250.9997070650.000112667
260.9997884368.13708E-05
270.9998472045.87678E-05
280.9998896474.24434E-05
290.9999203013.06536E-05
300.9999424392.21387E-05



6 or 8 point
p=11/36
average = 36/11 = 3 and 3/11
what is that?

the distribution
rollby roll Non roll N
10.3055555560.305555556
20.5177469140.212191358
30.6651020230.14735511
40.7674319610.102329937
50.8384944170.071062456
60.8878433450.049348928
70.9221134340.034270089
80.9459121070.023798673
90.9624389630.016526856
100.9739159470.011476983
110.9818860740.007970127
120.9874208850.005534811
130.9912645030.003843619
140.9939336830.00266918
150.995787280.001853597
160.99707450.00128722
170.9979684030.000893903
180.9985891690.000620766
190.9990202560.000431087
200.9993196220.000299366
210.9995275150.000207893
220.9996718860.00014437
230.9997721430.000100257
240.9998417666.9623E-05
250.9998901154.83493E-05
260.9999236913.35759E-05
270.9999470082.33166E-05
280.99996321.61921E-05
290.9999744441.12445E-05
300.9999822537.80869E-06


Sally
I Heart Vi Hart
ThatDonGuy
ThatDonGuy
  • Threads: 122
  • Posts: 6679
Joined: Jun 22, 2011
April 23rd, 2014 at 7:50:35 AM permalink
Like Sally said, it depends on the point.

If it is 4 or 10, one of two things happens on each roll: either you roll your point or a 7 (probability 3/36 + 6/36 = 1/4) and stop, or you roll something else (probability 1 - 1/4 = 3/4) and keep rolling.
You will require N rolls with probability (1/4 + (N-1) x 3/4), since your last roll (point or 7) has probability 1/4, and the other N-1 rolls have probability 3/4.
The "average" is the sum of (1 x 1/4) + (2 x 3/4 x 1/4) + (3 x (3/4)2 x 1/4) + (4 x (3/4)3 x 1/4) + ...
= 1/4 x (1 + 2 x 3/4 + 3 x (3/4)2 + 4 x (3/4)3 + ...)
= 1/4 x ( (1 + 3/4 + (3/4)2 + (3/4)3 + ...)2
= 1/4 x (1 / (1 - 1/4))2
= 1/4 x 42 = 4

In general terms, let P be the probability of rolling the point or 7; obviously (1-P) is the probability of rolling something else.
The average = (1 x P) + (2 x (1-P) x P) + (3 x (1-P)2 x P) + (4 x (1-P)3 x P) + ...
= P x (1 + 2 (1-P) + 3 (1-P)2 + 4 (1-P)3 + ...)
= P x (1 / (1-(1-P))2
= P x (1 / P)2
= 1 / P
For a point of 4 or 10, P = 1/4, so the average number of rolls is 4
For a point of 5 or 9, P = 4/36 + 6/36 = 5/18, so the average number of rolls is 18/5 = 3.6
For a point of 6 or 8, P = 5/36 + 6/36 = 11/36, so the average number of rolls is 36/11 = 3.272727
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
April 23rd, 2014 at 9:24:04 AM permalink
Quote: ilikevp

after a number has come out, how to calculate the average number of rolls before a 7 or the number is rolled out? i like to know the formula.

for "before any number has come out", not knowing what point number it will be
we would have to weight each average

4 = 36/9 * 3/24 = 108/216 = 0.5
10 is the same as 4
only 4 more to do
and add them up = 3.563636364
or 196/55

How about the average number of rolls until a point decision counting the come out roll.
we already have 196/55
and add to that 36/24 for the average number of rolls it takes to establish a point

that comes to 5.063636364
or 557/110

is this information useful?
Sally
I Heart Vi Hart
ilikevp
ilikevp
  • Threads: 6
  • Posts: 14
Joined: Feb 10, 2014
April 23rd, 2014 at 10:14:20 PM permalink
Quote: mustangsally

point is 4 or 10
the game ends when the point number or a 7 is rolled.

9/36 = that probability (p)
for the expected number of rolls = 1/p
...
Sally




Why is "expected number of rolls = 1/p" ? Actually that is what i have been wandered.


Thanks.
ilikevp
ilikevp
  • Threads: 6
  • Posts: 14
Joined: Feb 10, 2014
April 23rd, 2014 at 10:29:32 PM permalink
Quote: ThatDonGuy

Like Sally said, it depends on the point.

...
In general terms, let P be the probability of rolling the point or 7; obviously (1-P) is the probability of rolling something else.
The average = (1 x P) + (2 x (1-P) x P) + (3 x (1-P)2 x P) + (4 x (1-P)3 x P) + ...
= P x (1 + 2 (1-P) + 3 (1-P)2 + 4 (1-P)3 + ...)
= P x (1 / (1-(1-P))2
= P x (1 / P)2
= 1 / P



Why is "The 'average' is the sum of (1 x P) + (2 x (1-P) x P) + (3 x (1-P)2 x P) ..." ?
and, does this series have a former name?

Thanks
mustangsally
mustangsally
  • Threads: 25
  • Posts: 2463
Joined: Mar 29, 2011
April 23rd, 2014 at 11:10:20 PM permalink
Quote: ilikevp

Why is "expected number of rolls = 1/p" ? Actually that is what i have been wandered.

Thanks.

from
http://www.mathsisfun.com/data/probability-events-independent.html


Probability of an event happening =
Number of ways it can happen DIVIDED BY
Total number of outcomes

we can easily invert this to
Total number of outcomes DIVIDED BY
Number of ways it can happen
a very simple way to get an average
it is how independent events are

example
coin flip for first Head wait time.
p=1/2
average number of flips to see a Head = 1/ 1/2 or 1 * 2/1 = 2

another way for the average that Don first showed
it could happen on the first flip by 1*p
if not the first flip it could happen on the second flip. 1-p * p * 2
the 3rd flp = (1-p)^2 (2 failures in a row) * p * 3
it could happen on the 123,456th flip
it could happen way into the future. this is an infinite geometric series.
we can sum them all to see what number the series converges to
the first 17 flips
0.5 = 1*p
0.5 = 1-p * p * 2
0.375 = (1-p)^2 * p * 3
0.25 and so on with (1-p)^(N-1) * p * N
0.15625
0.09375
0.0546875
0.03125
0.017578125
0.009765625
0.005371094
0.002929688
0.001586914
0.000854492
0.000457764
0.000244141
0.0001297
this sums to 1.999855042
the first 30 flips = 1.99999997

sure looks like we are going towards 2 here
same a 1/p

the infinite geometric series (or wait time for a success) describes the probability distribution
more on that here
http://www.mathsisfun.com/algebra/sequences-sums-geometric.html

there still must be a reason you want to know this about rolls to a point decision
Sally
I Heart Vi Hart
ilikevp
ilikevp
  • Threads: 6
  • Posts: 14
Joined: Feb 10, 2014
April 24th, 2014 at 7:45:19 PM permalink
i was kinda interested in the math of craps, and happened to find that a sum of infinite series of p(roll out a push) equals the average # of rolls. i think it's not coincident but can't explain it, that's why i asked the question in the first place.

btw,
the 3rd flp = (1-p)^2 (2 failures in a row) * p * 3
where does '* 3' come from ?



thanks
  • Jump to: