Biased random walk Created 2026-09-24 Updated 2026-10-14
A biased random walk on the integer line takes unit steps right and left with unequal probabilities and , using independent and identically distributed random variables as increments. For , the expected value is : positive for and negative for . Changing to reverses the preferred direction. The exact endpoint probability mass function is given under simple random walk on the integer line.
For example, with each step has expected value and variance . After steps,
The displacement of the expected value from zero is about standard deviations, yet individual sample paths still move left as well as right, as the figure under simple random walk illustrates. Bias lets this elementary stochastic process model an average directional tendency while retaining fluctuations. Boundary and return questions have their own treatments under gambler's ruin and the specialized children below.
Embedded Markov chain at level exits Created 2026-10-25 Updated 2026-10-31
Suppose motion within each level ends on hitting one of two boundaries, and each boundary transition resets the process to a fixed entry state of an adjacent level. Observe only the successive level exits. The resulting level process is a Markov chain, with transition probabilities equal to the within-level boundary-hitting probabilities. The fixed-entry condition matters: without it, retaining only the level may discard information needed for the next transition law.
For a simple symmetric random walk on local rooms , starting each excursion at room , the gambler's ruin probability of reaching first is . Thus the level chain moves up with probability and down with probability . Independent future decisions, or more generally the Strong Markov property, justify restarting this calculation after each exit.
For two active levels between absorbing levels and , starting on level , put and . The success probabilities satisfy and , hence
For , the result is . This compression illustrates how unbiased microscopic choices can produce a biased coarse random walk when entry points are close to one boundary.
Let and be integers. A simple symmetric random walk started at exits the integer interval at . Its expected occupation of before exit, including its initial state, is
A block of consecutive positive steps forces exit, so the geometric tail bound from a uniform escape probability proves almost surely. Optional stopping at the bounded stopping time , followed by the bounded convergence theorem for , gives the gambler's ruin probabilities
Translate the absolute value martingale of a simple symmetric random walk from zero to . Bounded-time optional stopping yields
Use monotone convergence on the increasing visit count and the bounded convergence theorem on the right. Substituting the exit probabilities gives
which simplifies to the displayed expression by considering and . In particular, when .
The proof establishes finite expected value of the visit count. Therefore each translated stopped absolute-value martingale is dominated in absolute value by a constant plus that total count, an integrable random variable; its family of values is uniformly integrable. This supplies the limit justification without assuming uniform integrability in advance.
Expected time to expand a random-walk range Created 2026-10-05 Updated 2026-10-06
For a simple symmetric random walk on the integers, let be the first time that distinct vertices have been visited. The visited set is an interval, and at the walk is at an endpoint. The Strong Markov property turns the time to add one vertex into gambler's ruin between the two immediately exterior vertices, starting one step from a boundary. The expected duration of symmetric gambler's ruin is therefore . This also holds at .
For a simple symmetric random walk starting at zero, let be its first hitting time of . The infinite mean first passage of a simple symmetric random walk shows that almost surely but . Since , assuming a finite expected value for would let Wald's equation assert , a contradiction. The formal expression is not an allowed use of the theorem.[ref]
Compare . From every surviving position in , three consecutive positive increments force absorption within three steps. Each fresh block has probability of this event, so and . This establishes finiteness before invoking the theorem. If is the average remaining time from position , the law of total expectation gives
so . Symmetry gives equal exit probabilities at and , and , as Wald's equation predicts. This is a small gambler's ruin problem with two absorbing barriers.
Figure 1.
Almost sure stopping can have either a finite or an infinite mean
. Original exact simple symmetric random walk calculation from zero. The left compares survival probabilities for first hitting and first hitting either or ; the right sums these tails to obtain capped average waiting times . These are calculated laws, not simulated measurements. Details.
Even for , each bounded stopping time satisfies . The stopped process tends to almost surely, but its expected value does not tend to . Rare long negative excursions retain the balancing contribution. The existing stopped-walk martingale with almost sure but not L1 convergence explains the related failure of uniform integrability; almost sure convergence alone does not permit exchanging a limit and an expected value.
Take a birth-death chain on . At each interior state, move up one state with probability and down one state with probability . The endpoints are absorbing states: . This is a small gambler's ruin model in which the state can represent capital, and reaching is success.
Figure 1.
Five states with fair interior transitions and absorbing endpoints; each displayed value is the probability of reaching 4 before 0.
Details.
Let be the hitting time of endpoint , and let be the first endpoint hitting time. The desired hitting probability is . First-step analysis and the Markov property give
The interior equation says adjacent differences are equal. Four equal increments must bridge the boundary values and , so
For example, from state the hitting probability is , and its one-step average is . Individual sample paths can wander back and forth, but the same averaging rule already accounts for all of them.
Now ask how long it takes to reach either endpoint. The expected hitting time counts steps, including the transition that first reaches an endpoint. First-step analysis gives
This is a discrete Poisson equation, in the interior. The extra counts the step just taken. The quadratic values
satisfy the equations; from state , steps. The hitting probability is harmonic, whereas the expected hitting time has a nonzero source term. These are special cases of expected duration of symmetric gambler's ruin; see Hao Wu's MIT lecture 16, gambler's ruin, slide 9.
For a biased random walk with upward and downward, keep the same absorbing states. The interior harmonic equation becomes . Using biased gambler's ruin probability with these boundary values gives
The three interior hitting probabilities are approximately , , and . Thus starting at now succeeds about of the time. A direct check is . The curved profile reflects the unequal transition weights: its successive increments shrink by the factor . The formula, with the endpoint denoted there, is verified in Karger and Lynch's MIT lecture 26, sections 2.3-2.4; the five-state numbers here are direct substitutions.
Figure 2.
Hitting 4 before 0 for fair and upward-biased walks, compared with the fair walk's expected number of steps to either endpoint; lines join discrete state values.
Details.
Why does harmonic averaging produce the correct hitting probability? With the natural filtration , the Markov property gives the conditional expectation identity
For a function harmonic everywhere, this makes a martingale whenever it is integrable. For a function harmonic only in the interior, is a stopped martingale. In either five-state example, . Also, from any interior state at most three consecutive upward steps reach , with probability at least . Repeated three-step blocks give , so is almost surely finite and has finite expected value; compare finite-interval exit times have geometric tails. Applying optional stopping at and then the bounded convergence theorem gives
The boundedness and finite hitting time justify this passage to the limit. See Steven Lalley's notes, harmonic functions and stopped expectations, theorem 1, and stopped martingale in discrete time for this bounded version of optional stopping.
Uniqueness has a short maximum principle explanation. On a finite state space, the difference of two harmonic extensions with the same boundary conditions is zero on the boundary. If its positive maximum occurs inside, the weighted average forces every successor with positive transition probability to have the same maximum. A path to the boundary propagates that maximum to zero, a contradiction. Applying the argument to the negative of the difference proves uniqueness. Reachability of the boundary is essential: an interior closed communicating class can retain an arbitrary constant.
// Target: markov-process.bigb
A simple symmetric random walk on a cycle of vertices, started at vertex zero, has its last newly visited vertex uniformly distributed on the other vertices. To prove this for a specified vertex , cut the cycle at , representing it by a path with absorbing endpoints both corresponding to . All other vertices are visited before exactly when both interior endpoints are visited before absorption. After the first hit on either interior endpoint, the probability of reaching the other before the adjacent absorbing endpoint is by gambler's ruin. The Strong Markov property makes this the desired probability, independent of the original start position. For the sole unvisited vertex has probability one.
For a continuous-time Markov chain with absorbing endpoints and rates , the jump chain is a simple symmetric random walk. On leaving , absorption before returning has probability , by gambler's ruin on each side. The geometric return count before absorption and independent rate- holding times give . The rates at other states affect elapsed excursion times but not their return probabilities.
For the exit law, the two identified processes have the same argument. Starting at zero, neither can skip or : Brownian motion is continuous, and the symmetric Poisson difference process has unit jumps with integer boundary levels. Therefore , and if is finite, .
To justify finiteness rather than presume it, apply the optional stopping theorem to the martingale at the bounded stopping time :
The first boundary hitting time is a stopping time in both cases: in the continuous case use the continuous-path hitting criterion, and in the jump case inspect the successive jump times. Monotone convergence now gives , so almost surely. The stopped position tends to as and is bounded, making dominated convergence applicable. Stopping at and taking this limit yields .
If , then . Thus in both cases the entire distribution is
This is the same balanced gambler's ruin law despite the different one-time distributions. As a further consistency check, passing to the limit in the stopped square-martingale identity gives
All uses of an unbounded exit time were obtained by limits of bounded-time sampling with an explicit bound on the stopped position.
On the negative branch set . Its outward step probability is and inward probability is . The same finite gambler's ruin recurrence as in part (a), with root , gives . Hence, following one departure from zero, the probability of returning is
At each return the Strong Markov property restarts the same excursion experiment. The probability of at least returns is , tending to zero. Thus almost surely there is a last visit to zero.
After that visit the walk remains strictly positive or strictly negative, because nearest-neighbour steps cannot change sign without crossing zero. On the positive branch it can be coupled, up to any return, to independent steps of mean . The strong law of large numbers gives a walk tending to almost surely. This conclusion remains true on the event that the excursion never returns: conditioning on a positive-probability event cannot make a probability-zero failure of the law occur. On the negative branch the mean step is , giving in the same way. Apply this at each possible departure time, a countable family, or use the Strong Markov property at the successive returns. Therefore
Finite visits to zero alone would not prove divergence on an arbitrary chain; the outward-drift argument is the additional step needed here.
This is a gambler's ruin hitting problem. For , let be the probability of reaching before when the current difference is . Conditioning on the next independent game gives
Stopping occurs almost surely: conditional on being inside the barriers, three consecutive wins by either player force absorption within the next three games. This event has probability , so the chance of surviving such blocks is at most , which tends to zero.
If , the characteristic roots of the interior recurrence are and , so . Imposing the two boundary values yields
In particular,
For the recurrence instead has affine solutions, and the boundary values give , hence . The deterministic cases give zero and one respectively. The formula covers all of them continuously:
The stopping argument and the boundary recurrence show why the answer concerns the first barrier reached rather than the win difference after a predetermined number of games.
Let be the last vertex visited for the first time, and assume . Every vertex is eventually painted with probability one: from any position, consecutive clockwise steps visit the entire cycle, and the probability of such a block is . Thus the probability that coverage has not occurred after successive blocks is at most , which tends to zero.
Fix and cut the cycle at . Represent it as the path with positions , where the two endpoints both represent and the original starting vertex is at position . Up to the first visit to , the walk is a simple symmetric random walk on this path, killed at either endpoint. The event is precisely that it visits both and before being killed: travelling between these two positions visits all intermediate vertices, while visiting all non- vertices necessarily includes these two.
For , first wait until the walk reaches one of . This happens almost surely before it can reach an absorbing endpoint. If it reaches first, it must next reach before zero. The gambler's ruin probability is : the hitting probability on satisfies
so its successive differences are constant and . Starting at gives the stated probability. If the first endpoint reached is , reflection of the path gives the same probability of reaching before . The Strong Markov property at the first such hit therefore gives , independently of which endpoint was hit first and of the start position.
Consequently the last visited vertex of a simple random walk on a cycle has distribution
For the same formula follows directly since the only other post must be last. For , painting the initial post already completes the task, so there is no subsequent last unpainted post.
This is the simple symmetric random walk on the integers, starting at zero. It is recurrent: it returns to zero infinitely often almost surely, and in fact visits every integer infinitely often. To see the two-sided unboundedness explicitly, gambler's ruin gives, for positive integers ,
Letting shows that is hit with probability one; the analogous argument hits every negative integer. From any state the same argument gives return to zero with probability one. Repeated use of the Strong Markov property then gives infinitely many returns and visits. Therefore
In particular has no limit almost surely, and does not tend to infinity because of the returns to zero. In contrast, the strong law of large numbers gives almost surely, while the central limit theorem gives . These distinguish oscillation of the path from scaling limits of its probability distribution.
For , the total rate out of is . The holding time of the continuous-time Markov chain and its next state satisfy
The holding time is independent of the direction of this jump: the conditional probability of destination is the rate divided by the total rate , independently of the elapsed holding duration. This is the exponential-clock construction of a continuous-time Markov chain with the given infinitesimal generator matrix.
At or , all rates out are zero. These are absorbing states; the path remains at its initial endpoint and almost surely. There is no next visited state, so is not a finite-time jump value at either endpoint. If one separately uses for the limiting state, that limit is the same endpoint.
The embedded jump chain in the interior is a simple symmetric random walk on , stopped at the endpoints. From any interior state it has probability at least of hitting a boundary in the next jumps, by following successive leftward choices. Thus its number of jumps before absorption is finite almost surely. Each of this finite number of holding times is finite almost surely, so absorption also occurs in finite continuous time. The finite set of positive interior rates causes no explosion; in particular their maximum bounds the total jump rate. When , the chain starts at an already absorbing endpoint.
The rates alter the clock but not the sequence of visited states. The gambler's ruin calculation from part (a), translated to an initial state between endpoints , therefore gives
This includes probability one at zero and probability zero at .
Use the positive-integer convention for the geometric distribution:
Conditional on , independence gives . Taking expectations gives
This is the convention required below because a chain starting at makes at least one visit to . If instead counts failures on , its mean is , and the corresponding answer for that different random sum is .
For the chain of part (b), let count visits to , including the initial visit, before absorption. After a departure to , gambler's ruin on gives probability of reaching zero before returning to . After a departure to , the analogous probability of reaching before returning is . The departure is equally likely in either direction, so the probability of absorption before a return is
At every return to , the Strong Markov property resets these alternatives. Hence the geometric return count before absorption gives on positive integers. One may construct the chain from its embedded jump chain and a separate sequence of fresh independent exponential clocks. Then its successive holding times at are independent and identically distributed rate- exponential random variables, independently of , and
Using the first calculation gives the occupation time at an interior state of a variable-rate symmetric walk:
For , and the only visit is the initial one; the degenerate positive-integer geometric distribution at one handles this case. Other states' rates affect the time of each excursion, but not its probability of return, which explains why only appears in this expectation.
A martingale describes an observable after its predictable drift has been removed. For a Markov chain the drift is the change produced by its transition operator; for Brownian motion it is one half of the Laplacian. Requiring the resulting processes to be martingales for a sufficiently rich class of observables determines the transition law itself. The same identities, combined with optional stopping, determine hitting probabilities, expected exit times and recurrence or transience. The duplicated Q5 paragraph in the PDF is a repeated printing of this one essay request.
For a finite or countable-state Markov chain with transition matrix , define for a bounded test function . The Markov property says . Consequently
is a martingale, since each increment has conditional expected value zero. Conversely, if these processes are martingales for every bounded , taking the conditional expectation of an increment recovers that identity. With it gives for every state . Thus, given the initial law, these identities characterize the Markov chain, not merely a few of its moments. This is the discrete-time Markov chain martingale characterization.
The drift operator is . If away from a target set, is a stopped martingale, where is the first hit of that set. Under boundedness or suitable uniform integrability, the optional stopping theorem expresses in terms of boundary hitting probabilities. Similarly, if away from the target and on it, then is a martingale, giving when the terminal limit is justified.
For a concrete calculation, take a simple symmetric random walk on stopped at , its first hit of or . In the interior, has zero drift, while satisfies
The stopped identity gives , proving finite with finite mean. Bounded convergence in both stopped identities now yields the gambler's ruin answers
This illustrates why the integrability justification is part of using a martingale, rather than an automatic consequence of writing an equation.
For a finite-state continuous-time Markov chain with generator matrix , the corresponding martingale problem for a continuous-time Markov chain uses
These are martingales. Conversely, suppose an adapted càdlàg finite-state process satisfies these identities. Let , fix , and set . Then . Apply deterministic integration by parts to the finite collection of indicator martingales to obtain the time-dependent Dynkin formula: is a martingale. Therefore
This recovers the Markov property and the entire semigroup, proving the characterization. On countable spaces one uses nonexplosion and localization to justify the analogous unbounded-rate formulas.
For -dimensional Brownian motion, the Itô formula shows that, for ,
is a true martingale, since its bounded derivatives make the integral square-integrable on each bounded horizon. This is the martingale problem for Brownian motion with generator .
Here is why it also characterizes Brownian motion. Suppose a continuous adapted process , with , satisfies that martingale problem. Use smooth cutoff test functions equal to and inside successively larger balls, and stop before leaving those balls. The coordinate tests show that are continuous local martingales; the product tests show that are local martingales. The Itô product rule consequently gives
the difference between the two proposed compensators is a continuous finite-variation local martingale, hence constant and zero at time zero. For each , another application of the Itô formula gives the exponential local martingale
Its modulus is the deterministic quantity , so it is a true martingale on every bounded time interval. Taking its conditional expectation and dividing by its known value at time gives
The conditional characteristic function identifies a centered multivariate normal distribution of covariance , independent of the past. Together with continuity, this is the defining law of Brownian motion. This proves the Lévy characterization of multidimensional Brownian motion in the form needed for the generator characterization.
The analytic use of these martingales parallels the chain case. A harmonic function satisfies , so it yields a stopped local martingale until the process leaves its domain of harmonicity. Bounded stopped observables permit optional stopping and solve boundary hitting problems. A solution of with zero boundary values gives an expected exit time. For example, in the ball of radius , gives ; stopping first at proves finiteness and justifies the limiting calculation. The Brownian local time construction in Q4 is another example: the predictable compensators of approximations to recover its increasing occupation term.
We now prove the required three-dimensional transience of Brownian motion in dimension at least three, in the strong sense almost surely. Start first at a point with , and let be the first exit from this annulus. The radial Laplacian in dimension three gives
Thus is a bounded martingale. The exit time is finite: stopping gives . At exit, continuity puts at either or . The optional stopping theorem therefore yields
and hence the Brownian sphere-hitting probability in dimension three
As , the events increase to : a continuous path is bounded on the finite interval preceding any finite inner hit. This argument assumes no transience. Consequently
To pass from a positive escape probability to almost-sure eventual escape, take Brownian motion started at zero. Let be its first hit of the sphere of radius . Stopping the squared-norm martingale proves . At , the Strong Markov property and the preceding hitting formula give
The Strong Markov property here follows from independent Brownian increments by approximating a stopping time from above with dyadic-valued stopping times and using path continuity. Choose . The exit times increase to infinity, since a continuous path is bounded on every compact time interval. The events of a return to the closed ball of radius after decrease and have probabilities . Their intersection has probability zero. Thus almost surely there is some finite exit time after which the path never again enters that ball. Apply this simultaneously to all positive integer . This proves the last visit to a bounded ball for three-dimensional Brownian motion conclusion and therefore
The homogeneous linear recurrence relation has characteristic polynomial , hence general solution . For the expected-time recurrence, rearrangement gives , for which is a particular solution. Thus
Imposing the absorbing boundary conditions from the preceding parts gives the gambler's ruin formulas
The initial position is . Applying the gambler's ruin hitting probability and mean hitting time gives
For comparison, the original central starting position would give probability and mean time minutes.
Now the event is to hit before , starting at . Up to the first of those two hitting times, translate the interval by one unit; its endpoints become and the starting point becomes . The gambler's ruin hitting probability is therefore
Stopping at is essential: using the original absorbing endpoint would answer a different event.
Let and measure Lionel's fortune in unit stakes. This is gambler's ruin: the fortune moves by with probability and with probability , stopping at or . Let be the expected value of the absorption time starting at . It is finite: from any interior state, a run of wins or losses has a fixed positive probability of absorption within steps, giving a geometric bound on survival over successive blocks. First-step analysis therefore gives
For , the homogeneous solution of the recurrence is , and a particular solution is . Put . Imposing the two endpoint boundary conditions gives the expected duration of biased gambler's ruin
Consequently the expected number of games is
The denominator and numerator have matching signs, so this is positive. As a check its continuous limit at is , the expected duration of symmetric gambler's ruin.