Spoiler for had thought...
Please explain further. I can't parse this in any sensible way.
![]() |
Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account. As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends. Of course, you can also enjoy our collection of amazing optical illusions and cool math games. If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top. If you have a website, we would appreciate a little link to BrainDen. Thanks and enjoy the Den :-) |
Best Answer superprismatic, 23 January 2013 - 05:40 PM
Posted 26 January 2013 - 03:39 AM
Spoiler for had thought...this was an expected value problem with the expected number of rolls needed to get all six numbers equal to the sum of the expected number of rolls needed to get each new number. The average number of rolls to roll a new number being the inverse of the probability to roll a new number. So 14.7?
Please explain further. I can't parse this in any sensible way.
Posted 26 January 2013 - 05:16 AM
you have a 100% chance of rolling a number 1-6 with 1 dice.
you have 5/6 of a chance of rolling a new number with the next dice.
you have 4/6 of a chance of rolling a new number with the next dice.
and so on.
so the number of dice required is 6/6 +6/5 +6/4 +6/3 +6/2 +6/1 = 14.7
Posted 26 January 2013 - 05:23 AM
Spoiler for had thought...this was an expected value problem with the expected number of rolls needed to get all six numbers equal to the sum of the expected number of rolls needed to get each new number. The average number of rolls to roll a new number being the inverse of the probability to roll a new number. So 14.7?
Yes. Simple concept that cuts thru all the computational complexity.
This concept, does not apply to the question in the OP. The problem called for finding the minimum number of rolls (or dice) to get a winning bet. A winning bet is one, where your probability of winning is better than 0.5. It is not the same concept as average number of rolls (dice) required to get to the objective.
A simple example:
If you roll repeatedly a fair dice, then any given number, say "1", will occur on average once in six rolls. However, if I bet on "1" coming up just after 4 rolls or sooner, I am going to come out ahead. (Same as rolling 4 dice and betting that at least one of them will roll "1".)
P = 1 - (5/6)4 = 0.5177
The answer to the problem as stated is like Sp and myself have found. I have another equation, which is not recursive, but encompasses all variations. It yields the same result. I'll make a separate post for it.
But of course you still get a winning bet with 14.7 rolls. Your winning chance is better than 60%, but it is not the minimum number of rolls.
Edited by Prime, 26 January 2013 - 05:31 AM.
Past prime, actually.
Posted 26 January 2013 - 07:04 AM
The bottom line, the ultimate truth for calculation of a probability is the number of all variations that meet your criteria divided by the number of all possible variations.
Past prime, actually.
Posted 26 January 2013 - 09:42 AM
Prime, that analysis is convincing. Consider the following as well.
I wonder, in light of your betting on "1" appearing in just four die rolls
means we should be looking at median outcomes rather than average.
will give indistinguishable results.
OP thus asks:
On average, how many rolls of a single die are required to get all six results?
Betting on a smaller number loses, on average; a greater number gives a win.
The "waiting time" to expect a particular result [measured in actual time, or (more often) in number of trials]
is simply the reciprocal of the probability of obtaining the result in unit time, or in a single trial.
In the present case the reciprocal probabilities for the 1st, 2nd, 3rd, ..., 6th distinct value to appear are, trivially,
6/6, 6/5, 6/4, 6/3, 6/2, and 6/1, which sum to 14.7 trials.
The partial sums of this sequence, with obvious interpretations, are:
1, 2.2, 3.7, 5.7, 8.7, 14.7.
Since simulation is the method de rigueuer, and I avoid complicated formulas when possible, I love simulations,
I simulated a million rolls of 100 dice [to ensure all six face values would be obtained.]
I counted into each 100-vector string of values until I encountered
1, then 2, then 3, then 4, then 5, and finally 6 distinct die values.
This models rolling a die multiple times until these result are obtained.
I then averaged the counts.
Here are the results:
1 2.20138 3.70155 5.69817 8.70078 14.70568
On the other hand, all six values appear more than half the time in 13 rolls of a die.
Posted 26 January 2013 - 10:28 AM
You throw m fair six-sided dice and bet that all numbers from 1 to 6 will show at least once.
What is the smallest value of m that gives you a winning bet on average?
That's the OP. A computer, or real life simulation of this simply and economically stated probability problem must be simple and straightforward.
I look at it as a gambling game, where I can bet $1 on the outcome.
Edited by Prime, 26 January 2013 - 10:34 AM.
Past prime, actually.
Posted 26 January 2013 - 05:00 PM
Prime, that analysis is convincing. Consider the following as well.
I wonder, in light of your betting on "1" appearing in just four die rolls
means we should be looking at median outcomes rather than average.Spoiler for Translating the OP into mathSince dice rolls are independent, rolling m dice once and one die m times
will give indistinguishable results.
OP thus asks:
On average, how many rolls of a single die are required to get all six results?
Betting on a smaller number loses, on average; a greater number gives a win.
The "waiting time" to expect a particular result [measured in actual time, or (more often) in number of trials]
is simply the reciprocal of the probability of obtaining the result in unit time, or in a single trial.
In the present case the reciprocal probabilities for the 1st, 2nd, 3rd, ..., 6th distinct value to appear are, trivially,
1, 2.2, 3.7, 5.7, 8.7, 1 2.20138 3.70155 5.69817 8.70078 14.70568
On the other hand, all six values appear more than half the time in 13 rolls of a die.
I agree with the note about median. I think the problem here is that the OP and post 14 (see blue-colored part in spoiler above) are conflating the median and the average (or mean) in the interpretation of the winning condition
2) Post 14: On average, how many rolls of a single die are required to get all six results?
This definitely asks for the expected value of the number of rolls required to get 6 different numbers. In mathematical notation, we are looking for the average A
The key here is that for this puzzle, the median is roughly 13, while the mean is roughly 14.7.
Posted 26 January 2013 - 10:23 PM
The statement of the problem is unambiguous. It requires finding the smallest number of dice for the winning bet on average (not the average).
Bonanova is a Grandmaster of stating problems. If he wanted us to find the average number of rolls before you get all 6 numbers, he would say so (in a better way.)
Edited by Prime, 26 January 2013 - 10:26 PM.
Past prime, actually.
Posted 27 January 2013 - 06:44 AM
I brought up the idea of median, since the distribution is skewed and I needed a way for both 13 and 14.7 to have significance. Bushindo stated exactly, and clearly, why it suggested itself. Prime explained well why and how wait times and <p> = .5 are different conditions. I've thought about it for a day now and I haven't decided for sure how a puzzle like this one might be worded in order to require finding a skewed median. but i think it could make an interesting puzzle. For sure, the wording would need to be precise.
For this puzzle, I had in mind the cute 14.7 calculation. But I didn't word the OP to ask for it. I was surprised to confirm by simulation that 13 is the answer, as I worded it. Prime is way too kind to say a mistake on my part is anything close to a noteworthy event. But it is clear that (using his example) since betting on a "1" in four rolls wins, wait time (six rolls) isn't the answer for an even bet.
Well guys, I enjoyed this puzzle too. Thanks for teaching me something. ![]()
Footnote: sorry plainglazed, the solution post goes now to SP! ![]()
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board 3.4.4
Licensed to: BrainDen
