Bovada is the only Internet casino endorsed by the Wizard.
Here are my reasons why and my promise of support.

Expected Number

November 3rd, 2011 at 6:55:34 AM permalink
SixHorse
Member since: Nov 3, 2011
Threads: 1
Posts: 3
First time at this site. I was hoping someone could help me derive a classical process to calculate the expected number of dice throws with two dice to obtain all of the eleven sums. I understand the same problem with one die and the six possible outcomes, but I'm having difficulty when the outcomes are not equally likely. Thanks for any help.
November 3rd, 2011 at 7:00:38 AM permalink
FleaStiff
Member since: Oct 19, 2009
Threads: 75
Posts: 4829
The faces are equally likely, they just add up differently.
November 3rd, 2011 at 10:29:44 AM permalink
dm
Member since: Apr 29, 2010
Threads: 14
Posts: 699
Quote: FleaStiff
The faces are equally likely, they just add up differently.


Really? You think that is the answer?
November 3rd, 2011 at 11:17:06 AM permalink
dwheatley
Member since: Nov 16, 2009
Threads: 10
Posts: 550
Let X be a random variable (r.v.) that represents the sum of both dice.
Let X1 be r.v. for outcome of die 1
Let X2 be r.v. for outcome of die 2

P( X = 2 ) = P( X1 = 1 ) * P( X2 = 1 ) = 1/36
P( X = 3 ) = P( X1 = 1 ) * P( X2 = 2 ) + P( X1 = 2 ) * P( X2 = 1 ) = 2/36

and so forth.

E[X] = 7

Edit: I clearly misunderstood the OP
Wisdom is the quality that keeps you out of situations where you would otherwise need it
November 3rd, 2011 at 1:45:28 PM permalink
mustangsally
Member since: Mar 29, 2011
Threads: 5
Posts: 170
Quote: SixHorse
First time at this site. I was hoping someone could help me derive a classical process to calculate the expected number of dice throws with two dice to obtain all of the eleven sums.
You want to know the average wait time for all 11 numbers to roll from 2 dice. Excellent math question.
This was solved this past summer over at 2+2 forum by the handsome math guru BruceZ.

Dice rolling question
Some wild math.
Hope this helps.

This is not even a normal distribution.
The mean of 61.2 is not even close to a mode of around 35-38 and they are not close to the median of 52.

I would like to see someone here at WoV create a formula that would solve for the distribution.
But, A Markov Chain may be the easiest way to go.

I can solve it only by simulation only.


grouped data
items: 1,000,000

minimum value: 11.00
first quartile: 36.00
median: 52.00
third quartile: 76.00
maximum value: 531.00

mean value: 61.21
midrange: 271.00

range: 520.00
interquartile range: 40.00
mean abs deviation: 26.53

sample variance (n): 1296.43
sample variance (n-1): 1296.43
sample std dev (n): 36.01
sample std dev (n-1): 36.01

Sorry I forgot the axis labels. Should be easy to figure out.
x-axis is the number of trials for a complete set of all 11 numbers.


Some sim data

waitfreqrfcf
11250.0000250.000025
121140.0001140.000139
133550.0003550.000494
148660.0008660.00136
1514190.0014190.002779
1622410.0022410.00502
1733250.0033250.008345
1843420.0043420.012687
1957500.005750.018437
2068990.0068990.025336
2180150.0080150.033351
2293560.0093560.042707
23104060.0104060.053113
24116040.0116040.064717
25125880.0125880.077305
26136360.0136360.090941
27141830.0141830.105124
28154050.0154050.120529
29160790.0160790.136608
30164050.0164050.153013
31166550.0166550.169668
32168270.0168270.186495
33169900.016990.203485
34173040.0173040.220789
35175700.017570.238359
36174580.0174580.255817
37172950.0172950.273112
38175710.0175710.290683
39175050.0175050.308188
40171530.0171530.325341
41168790.0168790.34222
42167800.016780.359
43167000.01670.3757
44161570.0161570.391857
45159180.0159180.407775
46159370.0159370.423712
47155240.0155240.439236
48149800.014980.454216
49148390.0148390.469055
50144750.0144750.48353
51140670.0140670.497597
52139030.0139030.5115
53136330.0136330.525133
54133130.0133130.538446
55128690.0128690.551315
56125470.0125470.563862
57122780.0122780.57614
58119070.0119070.588047
59114500.011450.599497
60112860.0112860.610783
61109560.0109560.621739
62108860.0108860.632625
63105780.0105780.643203
64101090.0101090.653312
6598030.0098030.663115
6694770.0094770.672592
6792420.0092420.681834
6888680.0088680.690702
6988270.0088270.699529
7084470.0084470.707976
7183590.0083590.716335
7281300.008130.724465
7378150.0078150.73228
7476190.0076190.739899
7576470.0076470.747546
7674250.0074250.754971
7769720.0069720.761943
7867950.0067950.768738
7966280.0066280.775366
8063820.0063820.781748
8161990.0061990.787947
8260700.006070.794017
8357690.0057690.799786
8457550.0057550.805541
8555520.0055520.811093
8655150.0055150.816608
8753080.0053080.821916
8852680.0052680.827184
8949250.0049250.832109
9048050.0048050.836914
9147690.0047690.841683
9243900.004390.846073
9341780.0041780.850251
9442640.0042640.854515
9540670.0040670.858582
9639530.0039530.862535
9738060.0038060.866341
9837220.0037220.870063
9936700.003670.873733
10035660.0035660.877299
10134460.0034460.880745
10233920.0033920.884137
10331590.0031590.887296
10431310.0031310.890427
10530930.0030930.89352
10630140.0030140.896534
10729180.0029180.899452
10828420.0028420.902294
I Heart Vi Hart
November 6th, 2011 at 11:39:11 AM permalink
SixHorse
Member since: Nov 3, 2011
Threads: 1
Posts: 3
I tried to find BrunoZ and could not find the post. I did arrive at the same results in different simulation. Thanks for the info, but I would like to find BrunoZ.
November 6th, 2011 at 5:38:56 PM permalink
Wizard
Administrator
Member since: Oct 14, 2009
Threads: 313
Posts: 6784
Quote: mustangsally
This was solved this past summer over at 2+2 forum by the handsome math guru BruceZ.


I used the BruceZ method and agree with his answer.

For now, I don't think I can explain his answer any better than he did, but will try for my next Ask the Wizard column. Meanwhile, the following table shows the expected number of rolls to get a 2, 2-3, 2-4, 2-5, ...

Highest Number Prob Exp wait Prob rolled before last Prob rolled last Exp rolls
2 0.027778 36.0 0.000000 1.000000 36.000000
3 0.055556 18.0 0.666667 0.333333 42.000000
4 0.083333 12.0 0.850000 0.150000 43.800000
5 0.111111 9.0 0.922222 0.077778 44.500000
6 0.138889 7.2 0.956044 0.043956 44.816484
7 0.166667 6.0 0.973646 0.026354 44.974607
8 0.138889 7.2 0.962994 0.037006 45.241049
9 0.111111 9.0 0.944827 0.055173 45.737607
10 0.083333 12.0 0.911570 0.088430 46.798765
11 0.055556 18.0 0.843824 0.156176 49.609939
12 0.027778 36.0 0.677571 0.322429 61.217385
It's not whether you win or lose; it's whether or not you had a good bet.
November 6th, 2011 at 8:50:59 PM permalink
SixHorse
Member since: Nov 3, 2011
Threads: 1
Posts: 3
Thanks heaps Sally - I knew it was something simple. SixHorse
November 6th, 2011 at 10:40:56 PM permalink
MathExtremist
Member since: Aug 31, 2010
Threads: 46
Posts: 2521
Quote: mustangsally
You want to know the average wait time for all 11 numbers to roll from 2 dice. Excellent math question.

This is not even a normal distribution.
The mean of 61.2 is not even close to a mode of around 35-38 and they are not close to the median of 52.

I would like to see someone here at WoV create a formula that would solve for the distribution.

It's not normal, it's Poisson. See this post for the formula (from a textbook by Sheldon Ross).
"In my own case, when it seemed to me after a long illness that death was close at hand, I found no little solace in playing constantly at dice." -- Girolamo Cardano, 1563
November 8th, 2011 at 4:52:07 PM permalink
mustangsally
Member since: Mar 29, 2011
Threads: 5
Posts: 170
Quote: MathExtremist
It's not normal, it's Poisson. See this post for the formula (from a textbook by Sheldon Ross).
Thank you kind Sir.
Just seeing BruceZ, The Wizard and MathExtremist all on the same page, the start of an awesome fantasy... right girls...math speaking that is.
I Heart Vi Hart

 

Bovada is the only Internet casino endorsed by the Wizard.
Here are my reasons why and my promise of support.