The reflection principle
The question
In 12 steps of a fair walk, how often does the walker reach height 4 or higher?
- 1 SeeChoose where to flip the walk.
- 2 TryCompare crossing counts with endpoint counts.
- 3 ProveBuild the path-pairing argument.
- 4 ApplyCalculate barrier and extreme-value probabilities.
Before you start · 3 quick checks on unit steps, equal probabilities, and undoing a map
Two ideas before you start
2 ideasA finish and a high point
Two walks with the same end position and different high points.
The endpoint records where the walker finishes. The running maximum records the highest position visited so far, including the start.
Exact definition
In a simple symmetric random walk, position starts at \(S_0=0\). An independent fair coin decides each step, up by one on heads and down by one on tails. Write \(S_k\) for the position after step \(k\). The maximum up to step \(n\) is \(M_n=\max_{0\le k\le n}S_k\).
For a positive integer barrier \(a\), reaching or passing \(a\) by step \(n\) is the event \(M_n\ge a\). Unit steps from below must land exactly at \(a\) before going above it. A touch at the final step counts.
Count finishes by position
Bars show how many fair-coin sequences finish at each possible position.
Each column groups paths that finish together. Change the horizon to see which endpoint positions are available.
Exact definition
If \(h\) of the \(n\) steps go up, the endpoint is \(b=h-(n-h)\). So an endpoint \(b\) needs \(h=(n+b)/2\) up steps. The number of ways to choose those steps is \(\binom{n}{h}\), read as “\(n\) choose \(h\).”
A count is zero if \(h\) is fractional, negative, or greater than \(n\). Because the steps are independent and fair, there are \(2^n\) equally likely step sequences. Divide an endpoint count by \(2^n\) to get its probability.
Fine print about checking a barrier
The walk is checked at each integer time. The straight segments in its picture connect successive positions. The walk's maximum is taken over the marked times; with straight segments the positions between those times add no higher value. For Brownian motion, the barrier test runs over an entire interval of time.
Pick a place to flip the path
- Choose a visit to the barrier. Leave the walk through that visit in place, then turn every later up step into a down step and vice versa.
- The page then tries to undo your flip without knowing your pick. It looks only at the flipped path, finds that path's earliest visit to the barrier, and flips every step after it.
Choose a step to try the recovery rule.
What the pair counts
The solid path touched the barrier and finished below it. The dashed path finishes above it. From that new endpoint alone you know the dashed path had to visit the barrier at some point. To recover the solid path with this rule, look for the earliest such visit in the dashed path, with no record of the original pick.
Every fair-coin sequence of this length has the same probability, so a valid pairing counts equal shares of probability. The rule also applies when a walk touches the barrier and then stays below it. The flip can begin there even if no up step ever takes the original walk above the barrier.
Compare hitting with finishing high
- Commit to a comparison before seeing the counts.
- Then move the barrier and use the exact counts to reach the goals.
The explorer opens after you check your prediction.
Move the barrier
Each bar counts paths with the same endpoint. The dashed line marks the barrier. The tiles separate paths that finish on the barrier, finish above it, or hit it and return below. Those groups are disjoint, so their counts can be added.
Goals
Why an empty endpoint bar can matter
The parity of the time fixes the parity of the endpoint. The maximum is allowed to occur at an earlier time of either parity. So a barrier between two neighboring possible endpoints can have a positive hitting probability even though its endpoint count is zero.
At the highest reachable barrier, the only contact comes from taking all up steps. At that height the walk must use the entire horizon to get there, which leaves no time to return.
Show why the two groups pair
Take \(n\ge 1\) independent steps from \(S_0=0\), each \(\pm1\) with equal probability. Let \(a\gt0\) be an integer and \(b\lt a\) an integer. Write \(M_n\) for the running maximum. Then
\[\begin{aligned} &P(M_n\ge a,\ S_n=b) \\ &\quad = P(S_n=2a-b). \end{aligned}\]The formula includes empty events. For example, if \(2a-b\gt n\), there can be no path in either group.
Build the pairing for paths in the two groups when they exist. If one group is empty, the pairing shows that the other is empty too.
For the same fair walk and positive integer \(a\), split the hit event according to whether the walk finishes at or above \(a\), or strictly below it. Reflection puts the latter group in one-to-one correspondence with all paths ending strictly above \(a\). Therefore
\[\begin{aligned} P(M_n\ge a) &= P(S_n\ge a) \\ &\quad + P(S_n\gt a). \end{aligned}\]Doubling the inclusive tail would count the endpoint mass at the barrier twice. To get the chance that the maximum equals a particular positive integer, subtract the chance of reaching the next integer. The chance the maximum is zero is the complement of reaching one.
Let \(B_t\) be standard Brownian motion started at zero. Its paths are continuous. Its increments over disjoint time intervals are independent, and an increment over duration \(s\) has a centered normal law with variance \(s\). Fix \(T\gt0\) and a real level \(a\gt0\). Write \(M_T^B\) for the maximum of \(B_t\) over \([0,T]\), and let \(\Phi(z)\) be the standard normal probability to the left of \(z\). Then
\[\begin{aligned} P(M_T^B\ge a) &= 2P(B_T\ge a) \\ &= 2\Phi(-a/\sqrt{T}). \end{aligned}\]Stop at the first touch of \(a\), or at time \(T\) if the touch has not occurred. On paths that touch the barrier, leave the stopped prefix in place and negate the increments after it. The strong Markov property makes this new suffix have the same conditional law as the original suffix. It takes a terminal position below \(a\) to one above \(a\), with signed distance from \(a\) reversed.
Any path that ends above \(a\) must touch it by continuity. Its first touch stays fixed under the same flip, so applying the rule again sends it back to the below-barrier group. This pairs the two events with equal probability. The endpoint law at positive \(T\) has a density, so \(P(B_T=a)=0\). That leaves equal strict and inclusive tails.
To get the minimum \(L_T^B=\min_{0\le t\le T}B_t\), use the whole path \(-B_t\). It has the standard Brownian law, since negating centered Gaussian increments preserves their distributions and independence. Thus \(P(L_T^B\le -a)=P(M_T^B\ge a)\), so \(L_T^B\) has the same distribution as \(-M_T^B\).
Why a random stopping time is allowed
A stopping time tells you when to stop using only observations up to the current time. At time \(t\) the event “the barrier has been touched by \(t\)” is determined by the path so far. This makes the first touch, capped at \(T\), a bounded stopping time.
The ordinary Markov property, discussed in Markov chains, describes the future given the present at a fixed time. The strong Markov property of Brownian motion applies at the stopping time as well. If you call that time \(\rho\), the process of increments \(B_{\rho+u}-B_\rho\), \(u\ge0\), is fresh standard Brownian motion independent of the stopped history. Given that history, the remaining duration \(T-\rho\) is known, so these increments can be negated through that duration without changing their conditional law. When the stopping time is \(T\), the suffix has length zero.
This property is used here as a theorem. The same equal-law argument needs symmetry of the future increments. With a nonzero constant drift, negating those increments reverses the drift, so this doubling formula does not follow.
A related construction keeps a process above a lower wall at zero. At each time \(t\), add the correction \(-L_t^B\) to \(B_t\), where \(L_t^B\) is its minimum so far. This produces a nonnegative path, and the correction increases only when that path is at zero. This construction is called the Skorokhod reflection map.
Problems
For each problem identify what is observed. An endpoint constraint fixes or restricts the final position. A barrier constraint concerns the whole history. In the walk problems, each step comes from a fresh fair coin and the walk starts at zero.
Further reading
- William Feller, An Introduction to Probability Theory and Its Applications, Volume I.
- Peter Mörters and Yuval Peres, Brownian Motion.