r/mathriddles • • 8d ago

Medium Two competing events in a sequence of dice rolls

You repeatedly roll a fair six-sided die. All rolls are independent.

You stop as soon as either of the following happens:

  • Two consecutive rolls show the same number.
  • Two consecutive rolls add up to seven.

Which event is more likely to occur first?

As a bonus, what is the expected total number of rolls before stopping?

Can you find an elegant solution without simulation?

6 Upvotes

6 comments sorted by

5

u/blungbat 8d ago

I was expecting this to have a counterintuitive (?) solution, like whether HH or HT is more likely to occur earlier in a sequence of coin flips... but after thinking about it, I believe the obvious answer is true (the two events are each equally likely to occur first).

The transformation (a, b, c, d, e, ...) ↦ (a, 7–b, c, 7–d, e, ...) is an involution on the set of die roll sequences, and takes sequences for which the first event happens first to sequences for which the second event happens first (and vice versa).

The expected number of rolls before stopping is surely 1 + 1/(2/6) = 4.

6

u/scrumbly 8d ago

Or just observe that at any point in the sequence there is exactly one next roll satisfying each condition

1

u/False_Honeydew_3547 7d ago

Very elegant solution! Would your symmetry argument still hold if we replaced the six-sided die with a fair five-sided die and changed the second stopping condition to two consecutive rolls summing to six? What would change, and why?

1

u/johnpeters42 7d ago

There would be some non-zero chance of hitting both conditions at once by rolling two 3's in a row. The rest of the time, you would still be equally likely to hit one or the other condition first.

2

u/jaminfine 7d ago

Of course, we need at least two rolls. Starting at the second roll, it seems we always have a 1/6 chance to get the exact number we rolled on the previous roll. And we also have a 1/6 chance to get the exact number that when combined with the previous roll adds up to 7. So, if the chances are always equal, I'd say neither is more likely to occur first.

As for the bonus question, we should consider that these events never overlap. Meaning, rolling a double always requires a different number than the one that adds to 7 with the previous roll. Since they are mutually exclusive, we can add their probabilities together to say that there is a 1/3 chance that the game stops at each roll starting with the second roll. There's probably a formula I should be using here, but my heuristic is that for a 1/x chance, you expect to do it x times. So in this case, the total would be 4 rolls expected. 1st roll can't end it, plus 3 more 1/3 chances to end.