The Coin That Remembers Its Past
You flip a fair coin repeatedly. At each step, you record whether the flip matches the previous flip (call it a "match") or differs (a "change").
Question: Starting fresh (no previous flip), after flips, what is the probability that you have seen an even number of changes? (Count 0 as even.)
For concreteness: if the sequence is H H T H, the changes occur at positions 3 and 4, giving 2 changes — even.
Surprisingly, the answer is not . Find the exact probability.
Answer: The Coin That Remembers Its Past
Key Idea / Intuition
The parity of the number of changes after flips depends only on whether the last coin equals the first coin — because each "change" flips the running parity, and the sequence of changes is just a record of when the coin differs from its predecessor. So instead of tracking the full sequence, track a single bit: does the current coin match the first? This turns the problem into a simple random walk on , and the answer pops out cleanly.
Formal Proof / Solution
Setup. Label the flips . Define for . We want
Key observation. The parity of the total number of changes equals the parity of (XOR), because each change flips the running "have we switched from the original value?" bit. More precisely:
(where we encode ). This is a telescoping: each change toggles the value, and the cumulative parity of toggles is just whether the final value differs from the initial value.
Reduction. So we need:
Computing . Since the coin is fair, by symmetry is uniform on regardless of . But we need the joint distribution of .
Let (they match). Conditioning on :
Since the coin is fair, always. So:
Wait — this gives for all , with .
Answer.
The surprise revealed. For , the answer is exactly — but the reason is subtle. It's not obvious from the raw definition, yet the telescoping XOR argument makes it crisp. The "memory" of the sequence collapses entirely into a single coin flip: does the last coin match the first?
Sanity check for : Only one potential change. . ✓
Sanity check for : Two potential changes. , . Total even . ✓
Source: Mathematical folklore / probability puzzle