Author |
Topic: Nice Dice (Read 779 times) |
|
Noke Lieu
Uberpuzzler
pen... paper... let's go! (and bit of plastic)
Gender:
Posts: 1884
|
Once again, my lack of probability skills leaves me wanting... I created a nice question that has left me scratching my head. Trying to *see* the answer resulted in gibberish. What's the minimum number of dice that one needs to roll to be >50% certain that there's going ot be at least one of each 1 ,2, 3 , 4, 5, 6?
|
|
IP Logged |
a shade of wit and the art of farce.
|
|
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Re: Nice Dice
« Reply #1 on: Feb 17th, 2010, 1:01am » |
Quote Modify
|
The expected number of throws = 6#SIGMA((1/r) for r = 1 to 6 This comes to 14.7 throws. Sometimes we will need more, sometimes less. On average we will need more half the time and less half the time. So I guess 15 is the answer to your question.
|
|
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: Nice Dice
« Reply #2 on: Feb 17th, 2010, 1:04am » |
Quote Modify
|
The probability of having at least one of each after n throws is 1 + 0n - 5*2(2 - n) + 5*3(1 - n) + 5*2n*3(1 - n) - 6(1 - n) - 5n*6(1 - n) (Kindly relying on quickmath.com's matrix exponentiation. The 0n is solely there to get the right answer for 0 throws, so its a bit superfluous.) [edit]13 throws is enough, this gives you a probability of 485485/944784 ~= 0.5139[/edit]
|
« Last Edit: Feb 17th, 2010, 1:14am by towr » |
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7527
|
|
Re: Nice Dice
« Reply #3 on: Feb 17th, 2010, 1:26am » |
Quote Modify
|
I got the same as towr. f(n,k) = prob of having k different values in n throws. f(0,0) = 1, f(0,k) = 0, f(n,0) = 0 f(n,k) = f(n-1,k-1)*(6-(k-1))/6 + f(n-1,k)*k/6 I.e. on the last throw, either you get a new value (left term) or you don't (right term). (Kindly relying on Excel's formula evaluation) I get f(13,6) = 0.51386
|
« Last Edit: Feb 17th, 2010, 1:29am by Grimbal » |
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: Nice Dice
« Reply #4 on: Feb 17th, 2010, 1:51am » |
Quote Modify
|
If you rewrite my formula as 1*(0/6)n - 6*(1/6)n + 15*(2/6)n - 20* (3/6)n + 15*(4/6)n - 6*(5/6)n + 1* (6/6)n it's interesting to note that the coefficients form a row from pascal's triangle, 1 6 15 20 15 6 1, except with alternating sign. Which suggest it might easily be generalized to k-sided dice, and also that there is probably an easier way to find the formula. [edit] For k-sided dice, p = S(n,k)*k!/kn, where S(n,k) is a Stirling number of the second kind [/edit]
|
« Last Edit: Feb 17th, 2010, 3:28am by towr » |
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Re: Nice Dice
« Reply #5 on: Feb 18th, 2010, 12:12pm » |
Quote Modify
|
Ah, so a Monte Carlo simulation would give a skewed distribution about the mean of 14.7?
|
|
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Re: Nice Dice
« Reply #7 on: Feb 19th, 2010, 4:17am » |
Quote Modify
|
on Feb 17th, 2010, 1:01am, ThudanBlunder wrote: On average we will need more half the time and less half the time. So I guess 15 is the answer to your question.[/hide] |
| I obviously didn't spend too much time on that answer. It is clear from towr's graph why the distribution must be skewed to the left.
|
|
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
|