You throw a dice until you get 6. What is the expected number of throws (including the…
- User
You throw a dice until you get 6. What is the expected number of throws (including the throw giving 6) conditioned on the event that all throws gave even numbers.
- Assistant
We’re rolling a fair die repeatedly until we hit a 6. However, we condition on the event that every roll turned out even (i.e. every roll was one of {2, 4, 6}). LetNNNbe the number of throws (including the throw that gives 6).
Step 1. Find the Joint Probability
For a sequence ofnnnthrows to have all outcomes even and stop at a 6:
The firstn−1n-1n−1rolls must be even but not 6, i.e. they must be either 2 or 4.
Thennnth roll must be a 6.
The firstn−1n-1n−1rolls must be even but not 6, i.e. they must be either 2 or 4.
Thennnth roll must be a 6.
Since the probability of rolling a 2 or 4 is
and the probability of a 6 is
the probability for a specific sequence of lengthnnnis:
Step 2. Find the Total Probability of the Conditioning Event
Sum over all possible sequence lengths:
The sum is a geometric series:
Thus,
Step 3. Find the Conditional Distribution
The conditional probability of the sequence taking exactlynnnthrows is:
This is the probability mass function of a geometric distribution with parameterp=23p =
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.