HHT comes first with probability 2/3. That is the Jane Street coin triplets answer: HTT wins only 1/3 of the time, even though both patterns look equally likely.
Most candidates say 1/2. After all, any three flips produce HHT with probability 1/8, and HTT also has probability 1/8. However, the Jane Street coin triplets race is not one fixed block of three flips. The overlap between flips decides this puzzle, and the clean solution takes under a minute once you track the right state.
The Question
Flip a fair coin again and again. Stop as soon as you see either HHT or HTT in a row, where H means heads and T means tails. What is the probability that HHT appears before HTT?
A candidate has reported the Jane Street coin triplets question from an Assistant Trader interview at the firm. It sounds like a symmetry question, so the trap is built into the wording. In fact, the two patterns are not symmetric in a race, and spotting why is the whole test.
Jane Street Coin Triplets: The Three States That Matter
First, ignore every tail that arrives before the first head. Neither pattern can start without an H, so those early tails change nothing. The race really begins when the first head lands.
Next, call that moment state H. You have just seen a head, and neither pattern is complete yet. From state H, the next flip splits the puzzle into two branches.
Branch 1: The Next Flip Is Heads
With probability 1/2, the next flip is heads, so the last two flips read HH. Now HHT is almost locked in. Keep flipping heads and nothing changes, because the last two flips still read HH.
Then the first tail arrives, and the last three flips read HHT. So this branch always ends with HHT. HTT never gets a chance, because HTT would need an HT followed by a tail, and the tail that follows HH completes HHT first.
Branch 2: The Next Flip Is Tails
With probability 1/2, the next flip is tails, so the last two flips read HT. Now HTT is one tail away. However, this branch is not locked in at all.
If the next flip is tails, HTT is complete and HTT wins. But if the next flip is heads, the last three flips read HTH. Neither pattern has appeared, and the last flip is a head. In other words, you are back in state H, and the race starts again from there.
Jane Street Coin Triplets: Reading the Branch Table
The table below collects every branch from state H in one place. Read it slowly, because the whole solution is already inside it.
| From state H | Probability | What happens next |
|---|---|---|
| Next flip is H, giving HH | 1/2 | HHT wins for certain at the first tail |
| Next flip is T, then T, giving HTT | 1/4 | HTT wins at once |
| Next flip is T, then H, giving HTH | 1/4 | Back to state H, race restarts |
Notice the asymmetry in the table. One branch ends the race in favour of HHT with certainty. Meanwhile, the branch that favours HTT can still loop back and give HHT another chance. That loop is where the extra probability comes from.
Jane Street Coin Triplets: Solving for P
Let P be the probability that HHT eventually wins the Jane Street coin triplets race, starting from state H. Because the early tails change nothing, P is also the answer from the very first flip.
Now read the table as one equation. HHT wins for certain with probability 1/2. HTT wins with probability 1/4, so HHT gets 0 from that branch. The race restarts in state H with probability 1/4, so HHT wins with probability P again.
P = 1/2 + (1/4 x 0) + (1/4 x P)
So P = 1/2 + P/4. Move the P term across and you get 3P/4 = 1/2. Therefore P = 2/3, and HTT wins with probability 1/3. In short, HHT wins twice as often as HTT.
For a quick sanity check, picture 300 races. On average, HHT wins about 200 of them and HTT wins about 100. If your intuition still says 150 each, the table above shows exactly where the missing 50 races went.
Why Equal 1 in 8 Does Not Mean a Fair Race
Here is the subtle point. In any fixed block of three flips, HHT and HTT are equally likely, at 1/8 each. Even the average waiting time is the same: each pattern takes 8 flips to appear, on average, when you wait for that pattern alone.
However, a race rewards the pattern that can lock in early. Once HH appears, HHT cannot lose, because the first tail completes it. By contrast, once HT appears, HTT can still lose its grip, because a head sends the race back to state H.
For example, compare the sequences HHHHT and HTHTT. The first sequence ends in HHT, and HTT never appears inside it. The second sequence ends in HTT, but only after HTH reset the race once. Resets help HHT, because every reset gives the HH branch another chance to lock in.
Therefore, equal probability in one block does not mean equal probability in a race. The order in which partial matches build up, and break down, is what matters.
The Follow-Up: THH Against HHH
Strong candidates often get a harder follow-up from the same family, known as Penney’s game. This time, one player backs HHH and the other backs THH. Which pattern comes first?
The answer is THH, with probability 7/8. The logic is short. HHH can win only if the first three flips are HHH, which has probability 1/8. Otherwise, look at the first run of three heads: the flip just before that run must be a tail, so THH was already complete one flip earlier.
Meanwhile, the waiting-time contrast is even sharper here. THH takes 8 flips to appear on average, while HHH takes 14 flips on average. So the follow-up tests the same idea at higher speed: partial matches and overlaps, not raw symmetry.
What the Interviewer Is Testing
First, the interviewer is testing whether you condition on the right state. Weak answers count blocks of three flips and stop at 1/8 each. Strong answers ask what the last flip was, because only the recent flips can still grow into a pattern.
Second, they are testing comfort with a restart. The HTH branch does not end the race, so you need an equation with P on both sides. Candidates who force every branch to end at once usually land on 1/2, and that answer is wrong.
Finally, they are testing clear communication under pressure. The winning explanation is three sentences long: ignore tails before the first head, HH locks in HHT, and HT either loses or restarts. If you can say that calmly, then write the equation, you have shown the exact thinking a trading desk wants.
Common Traps to Avoid
Saying 1/2 by symmetry. This is the most common Jane Street coin triplets mistake. The patterns share the same block probability, but they do not share the same overlap structure. Symmetry of blocks is not symmetry of races.
Counting the eight triplets. Listing HHH, HHT, HTT and the rest feels thorough, but it answers the wrong question. The race uses overlapping windows, so the windows are not independent trials.
Forgetting the restart branch. After HT, a head does not end anything. Instead, it returns you to state H with probability 1/4 overall. Drop that branch and the equation collapses to the wrong answer.
Using waiting time as the decider. Both patterns take 8 flips on average when waited for alone. Even so, HHT wins the head-to-head race 2/3 of the time. Average wait and race probability are different questions.
Frequently Asked Questions
What is the probability that HTT comes before HHT?
It is 1/3. Because one of the two patterns must appear eventually, the two race probabilities add to 1. So HTT gets 1 minus 2/3, which is 1/3.
Does the answer change if tails come first?
No. Tails before the first head cannot start either pattern, so they change nothing. The race effectively starts at the first head, and the answer stays 2/3 for HHT.
How long does each pattern take to appear on average?
Each pattern takes 8 flips on average when you wait for that pattern alone. Surprisingly, that equal average still sits alongside a 2/3 to 1/3 race. Overlap, not average wait, decides the race.
Try the Next Puzzle
If this race surprised you, try the bear puzzle next, where one walk around a sphere names the animal. Or test your probability instincts on the Goldman Sachs two friends puzzle, where a 15 minute wait gives a 7/16 chance to meet. Both reward the same habit: name the state, then count from there.
Enjoying this? Add StudyFromNotes as a preferred source on Google to see our latest notes and updates more often:

Lauren Brooks is a finance professional who writes about the CPA and CFA exams, study strategy, and global finance careers. Lauren has sat professional finance exams and builds notes from the official syllabus and exam blueprints, with worked examples and one-page revision boxes. The beat covers US and UK exam routes, interview preparation, and the study habits that carry candidates through long exam seasons.
Leave a Reply