I have three dice and I keep rolling all of them until they all show different numbers.
What is the expected number of rolls?
For example:
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Good solution. This is also a geometric distribution with p = 9 5 and expectation p 1 = 5 9 = 1 . 8 .
Let N be the number of rolls, so N ∼ Geom ( p ) .
E ( N ) S ⟹ S ′ ∴ E ( N ) = 1 ⋅ p + 2 ⋅ ( 1 − p ) p + 3 ⋅ ( 1 − p ) 2 p + . . . = p ( 1 + 2 x + 3 x 2 + . . . ) { x : = 1 − p } = 1 + x + x 2 + . . . = 1 − x 1 = 1 + 2 x + 3 x 2 + . . . = d x d ( 1 − x 1 ) = ( 1 − x ) 2 1 = p S ′ = ( 1 − ( 1 − p ) ) 2 p = p 1 □ = 1 . 8 where p = 9 5
@Matthew Christopher , would you please verify my solution.
I typed two, there's nothing like 1.8 rolls
Also I just did 6 6 × 6 5 × 6 4 = 3 6 2 0
Which divides 1 and gives 1 . 8
Log in to reply
Hmm, there's a difference between expected number of rolls and not absolute number of rolls. Expected value can be any real number. :)
@Devbrat Dandotiya , I think your solution is wrong as you just forced the answer to come out of nowhere.
The question asks about the Expected number of moves and not the probability of getting different results on each individual die .
Log in to reply
If it's about dividing 1 by that fraction, it's not wrong. And no, 'I never force the value to come out of nowhere', there's reasoning behind that. If you're really questioning where did that 1 come from, it's the 100% probability of having all numbers differ
Log in to reply
Sorry If you my initial comment was hurtful.
Log in to reply
@Saket Goyal – No I'm really insecure
The solution is actually correct, though needs some additional explanation.
The probability of attaining different values is 3 6 2 0 = 9 5 as shown. Importantly, the expected number of rolls before and including the "stop" roll follows a geometric distribution, and the expectation of this is ( 9 5 ) 1 as I proved above. For the reason why this follows a geometric distribution, see the parent solution and my comment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
Let Expected number of moves = E .
E can be one if I get all of the numbers different on first roll. This has a probability 5/9.
Or I can increase E by 1 if I do not get all numbers different. This has a probability 4/9.
So E = ( 1 ) ( 5 / 9 ) + ( E + 1 ) ( 4 / 9 )
By solving recursion E = 1 . 8
Nice use of conditional expectation.
Log in to reply
https://brilliant.org/problems/triangles-and-circles-but-not-geometry-part-3/ Can you please help me with this one.
I use Absorbing Markov chain
Answer 1 . 8
And Python Monte Carlo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
Problem Loading...
Note Loading...
Set Loading...
Now, Probability of getting all different P = 6 × 6 × 6 6 × 5 × 4
Or P = 9 5
E = ∑ (Number of times dice is rolled) × (Probability that it is rolled that many times)
E = 1 × 9 5 + 2 × ( 9 4 ) 1 × 9 5 + 3 × ( 9 4 ) 2 × 9 5 + 4 × ( 9 4 ) 3 × 9 5 + … ∞
E = r = 1 ∑ ∞ r × ( 9 4 ) r − 1 × 9 5
Apply A.G.M. summation to get
E = 1 . 8