The objective
Many interview questions are not one conditioning step but a chain of them: a game with several phases, a match that can go on indefinitely, a draw that continues until something happens. Candidates go wrong by trying to sum over every path. The objective is a method that works every time.
The method
- Define the state. What is the minimum you must remember to continue the game? In tennis it is the score, and from 3–3 onwards only the difference. Fewer states means fewer equations.
- Mark the absorbing states and their values (win = 1, loss = 0, or a payoff).
- Write first-step equations. For each state , condition on what happens next: , plus 1 per step if you want an expected time.
- Exploit self-similarity. If a state recurs (deuce, a re-roll, "start again"), it appears on both sides of its own equation; solve for it.
- Use races. If only the first of two events matters, per trial, ignoring trials where neither happens.
- Sanity-check at , and , and check that the probabilities of all absorbing outcomes add to 1.
Separate the problem into phases with a clean hand-off. The answer is then the sum over ways of entering the final phase, each multiplied by that phase's value.
Worked example
winning a tennis game
You win each point independently with probability . A game is won by the first player to 4 points with a lead of at least 2. What is your probability of winning the game, and how many points does a game last on average once it reaches deuce?
Show solutionHide solution
Phase 1: before 3–3. You win without deuce if you reach 4 points while the opponent has 0, 1 or 2. Your 4th point is the last point played, so the opponent's points are placed among the earlier ones:
with . The game reaches 3–3 (deuce) with probability .
Phase 2: from deuce. The state is the score difference: (deuce), , , and absorbing . Look at the next two points: you win both with probability , lose both with , or split them with and return to deuce. Deuce recurs, so
Combine. With : , , , , and . So
A 55% edge per point becomes about 62% per game: longer contests amplify an edge.
Expected length from deuce. Each two-point block ends the game with probability , so the number of blocks is geometric with mean , and the expected number of points is .
Checks. At , and the game probability is by symmetry. As , . A brute-force recursion over all scores gives the same .
Best-of series: pretend every game is played
In a best-of-7, the first to 4 wins. Summing over how the series ends gives
where is the number of games you lose and your 4th win is the final game. A cleaner route: imagine all 7 games are played even after the series is decided. Extra games cannot change who reached 4 first, and you win the series exactly when you win at least 4 of the 7. So . At both give .
The same trick handles conditional questions. In an even series () you are down 0–2 in a best-of-7: play the remaining 5 games out, and you need at least 4 of them, so the probability is .
Worked example
the pass line in craps
Roll two dice. On the first roll you win with 7 or 11 and lose with 2, 3 or 12. Any other total (4, 5, 6, 8, 9, 10) becomes your point: you then roll repeatedly, winning if the point comes again before a 7 and losing if a 7 comes first. What is your probability of winning?
Show solutionHide solution
Phase 1, the come-out roll. Totals of have probability . You win at once with probability .
Phase 2, a race. With point , every roll that is neither nor 7 is irrelevant, so
This gives for 4 or 10, for 5 or 9, and for 6 or 8.
Combine by conditioning on the point, using the symmetry :
The structure is the lesson: a one-shot phase that either ends the game or sets a state, then a race whose answer depends only on that state. The house edge is of the stake.
Drawing until a condition: condition on the right event
"Roll a die until you get a 6. Given that every roll was even, what is the expected number of rolls?" The tempting answer is 3: restricted to the even faces , a 6 comes with probability per roll. That is wrong, because the conditioning event is not "rolls are drawn from the even faces"; it is "no odd face appeared before the first 6", and long sequences are much less likely to survive it.
Do it properly. Each roll is a 6 with probability , a 2 or 4 with probability , and odd with probability . The game reaches a 6 at roll with all rolls even with probability . Summing, , which is the race of 6 against an odd face: . Then
A quicker view: , which is a geometric distribution with continuation probability , so success probability per roll and mean . Conditioning on survival selects short runs. A simulation of 300,000 runs gives 1.50.
Knowledge check
You win each point with probability . The game is at deuce (you must get two points ahead). What is your probability of winning the game?
Knowledge check
Two evenly matched teams play a best-of-7 series, and one team has lost the first two games. What is its probability of winning the series?
Knowledge check
You roll a fair die until the first 6. Given that no odd number appeared, what is the expected number of rolls?
Key takeaways
- Define the smallest state that lets the game continue, mark the absorbing states, and write one first-step equation per state.
- A recurring state (deuce, a re-roll) appears on both sides of its own equation: deuce gives .
- Split the problem into phases and combine: P(enter final phase in each way) × value of that phase.
- For best-of series, imagine all games are played: P(win best of ) = P(Bin(, ) ≥ ).
- Races ignore irrelevant trials: P(A before B) = P(A) / (P(A) + P(B)).
- Conditioning on how a process ended selects short paths; recompute the distribution under the condition instead of changing the per-step odds by intuition.
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).