Absorbing four-ball Ehrenfest chain Created 2026-10-31 Updated 2026-11-05
Stop the four-ball Ehrenfest urn model upon reaching count zero or four. From count , the transitions are to with Probability and to with Probability . First-step analysis with absorbing boundary values gives the displayed vector of probabilities of absorption at zero and vector of expected hitting times of either endpoint. For instance, and , with , give . From any interior state, absorption has Probability at least within two steps; the resulting geometric tail bound proves both almost-sure absorption and finiteness of the expectations.
Absorbing state Created 2026-10-03 Updated 2026-10-14
For a finite, time-homogeneous Discrete-time Markov chain with row-stochastic transition matrix , a state is absorbing exactly when . Nonnegativity and the row sum then force for : once entered, is never left. Equivalently, is a closed communicating class. A larger closed communicating class may keep moving internally; closure means confinement to a set, whereas absorption at a state means remaining at one point.
An absorbing state is useful for recording a terminal outcome: after a toy routine finishes, keep its outcome in the state space so that the same transition matrix still describes subsequent steps. Calling a finite Markov chain absorbing usually also requires that some absorbing state be accessible from every state. Merely containing an absorbing state is insufficient: another closed communicating class could prevent absorption. See Grinstead and Snell, Introduction to Probability, section 11.2 for this convention.
Consider a constructed routine with unfinished modes and terminal outcomes . All the following transition probabilities are chosen for illustration, not estimated from observations. In state order , take
The communicating class is open, while and are closed communicating classes consisting of absorbing states. Both terminal outcomes are accessible from both unfinished modes, sometimes by an indirect path.
Figure 1.
A constructed four-state routine: arrows give transition probabilities, and the two absorbing outcomes have different eventual probabilities and waiting times.
Details.
Let be the terminal hitting time. Write for the absorption probability and for the expected hitting time, with the subscript denoting the starting state. First-step analysis gives
Here , , and . Solving these two pairs of linear equations yields
Starting at therefore ends at with probability and takes steps on average to reach either terminal state. The terminal hitting time counts the transition into the outcome, but no later self-transitions. Outcome and duration answer different questions: from , outcome is less likely, yet termination is faster on average.
The matrix power gives the probability distribution after two steps from as
Thus , and the probability of having already reached is , still below its eventual absorption probability . From either unfinished mode, each next step has terminal probability at least . Consequently , proving termination almost surely and finite expected hitting time directly. The Fundamental matrix of a finite absorbing Markov chain packages both calculations and counts visits to unfinished modes.
Biased random walk hitting probability Created 2026-09-24 Updated 2026-11-05
For a biased random walk on the nonnegative integers with upward probability , the hitting probability of zero from is . Indeed, first-step analysis gives for , with . Its characteristic roots are and , so any solution is . Nonnegativity as forces and hence a value at least . This candidate itself satisfies the recurrence. The theorem on the minimal nonnegative solution for hitting probabilities therefore identifies it with . A walk on all of has the same probability until it first reaches zero.
Commute time identity Created 2026-09-24 Updated 2026-11-05
For a finite connected loopless undirected electrical network without killing, give each edge a positive electrical conductance , put , and use transition probabilities , where . Then the commute time identity is
The factor is total electrical conductance, not total electrical resistance. A killed random walk can fail to reach its target and is outside this statement.
Here is a direct proof. Let and define the network operator . First-step analysis gives off . Summing over all graph vertices gives zero, so . Therefore has divergence at , at , and zero elsewhere. Its voltage drop is , which is the effective resistance for unit electric current.
For an unweighted path with edges, and endpoint effective resistance is , giving commute time . Uniformly multiplying all electrical conductances changes and effective resistance inversely and leaves the Markov chain unchanged. [ref]
Expected duration of biased gambler's ruin Created 2026-10-06 Updated 2026-11-05
For a nearest-neighbour fortune on , with win Probability , loss Probability and , put . First-step analysis gives , with zero endpoint values. Solving the recurrence gives the displayed mean duration. Its symmetric limit is .
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
Gambler's ruin Created 2026-09-24 Updated 2026-11-05
Gambler's ruin is the absorption problem for a fortune that changes by one unit per game. Let , with independent wins of Probability and losses of Probability . Stop when the fortune reaches zero or the target . Zero is ruin; reaching is success.
The success Probability has boundary values , and satisfies . Solving this second-order recurrence gives
Finite-interval exit times have geometric tails, so absorption occurs almost surely and ruin has Probability . The fair case is linear because the fortune itself is harmonic; the biased case uses the harmonic exponential .
For a fair game with initial fortune three and target ten, success has Probability . The Expected duration of symmetric gambler's ruin is , giving 21 steps in this example. The same local first-step method produces expected durations, discounted absorption probabilities and conditional durations; their different boundary conditions encode different questions about the same paths.
Hitting probabilities for a velocity-switching Markov ladder Created 2026-10-14 Updated 2026-11-05
Consider states for integer levels and strictly positive rates . From the chain moves to at rate and to at rate . From , , it moves to at rate or to at rate . At the reflecting boundary there is only the switch to ; no negative level is allowed. All rates are bounded, so the chain is nonexplosive.
Let be the probability of hitting , with . First-step equations are
with the first equation also valid at . Put . If , then and
Substitution verifies both equations and the boundary. Eliminating the variables gives a second-order recurrence with modes . The displayed decaying solution is the minimal nonnegative harmonic solution and hence the Hitting probability.
When , the growing mode is excluded by boundedness; at equality the second mode is linear and is likewise excluded. The only bounded solution with the boundary value is one, proving almost-sure hitting. Since the specified reflected chain is irreducible, these cases classify it as recurrent or transient respectively. Specifying the boundary rule is essential for that recurrence statement; making absorbing would be a different chain.
On , stop at zero, move left with probability and right with probability at interior states, and move deterministically from to . For , the first-step analysis gives , and . Setting gives , , hence . Summing these differences proves the displayed formula, and more generally . A downward block has a uniformly positive probability of reaching zero, which supplies a geometric tail bound and justifies finiteness of these expectations.
Hitting time of the bridge vertex between two cliques Created 2026-10-06 Updated 2026-11-05
For simple random walk on two disjoint complete graphs of size joined through one new vertex , let be the expected hitting time of from either vertex attached to , and the expected hitting time from any other clique vertex. First-step analysis gives and , so and . The expected hitting time from is zero. In discrete time the random walk is an aperiodic Markov chain only for .
Holding probabilities cancel from hitting-probability equations Created 2026-10-31 Updated 2026-11-05
Outside a target set, first-step analysis for a Markov chain gives . Moving the holding term and dividing gives the displayed average over the next distinct state. Thus inserting or removing self-loops preserves eventual hitting probabilities, provided the state is not made absorbing and the relative probabilities of its exits are unchanged. Boundary values are one on the target and zero in closed classes unable to reach it. The waiting time changes, but the sequence of distinct visited states does not.
J. Laurie Snell Created 2026-10-14 Updated 2026-11-05
J. Laurie Snell worked on Markov chains and their applications and wrote Introduction to Probability by Charles M. Grinstead and J. Laurie Snell with Charles M. Grinstead. His autobiographical research statement also describes work on finite mathematics and teaching people to assess probability and statistical claims in the news.[ref] A Markov chain replaces the full history by a specified present-state transition law; first-step analysis then turns hitting probabilities and expected hitting times into linear equations. That link between a stochastic model and solvable equations is central to the subject's practical usefulness.
Mean absorption time of a lazy symmetric random walk Created 2026-10-25 Updated 2026-11-05
Consider a random walk on with absorbing states . At each interior state it stays in place with probability , and moves one position in either direction with probability , where . Its mean absorption time from is
Proof. A sequence of at most consecutive leftward moves ensures absorption, with probability at least . Dividing time into blocks of length gives a geometric series bound on the survival probabilities, so the expected value is finite. Let . The law of total expectation and first-step analysis give
Thus . A particular solution of this linear recurrence relation is ; its homogeneous solutions are . The two boundary conditions give , , proving both the formula and its uniqueness. Holding slows the usual symmetric random walk by the factor .
Use and the positive return time . The walk has transitions , ; its transition matrix defines a reversible Markov chain, although the transition probabilities need not be symmetric.
The voltage equals one at , zero at , and is a harmonic function on a graph away from the terminals: . For this unit electric potential difference the electric current is
The first-step analysis therefore proves the return probability from effective resistance identity:
Finite irreducibility ensures eventual hitting of one of the terminals, so no missing escape event appears in this finite-network calculation.
For an infinite locally finite connected graph, exhaust it by finite sets and wire their exteriors to one sink. The event of exiting before the first return decreases to the event of never returning. Thus
with . In particular recurrence is equivalent to infinite effective resistance to infinity.
After deleting an edge, consider any infinite component and choose a root away from that edge's endpoints. Its vertex degree is unchanged. On every finite wired exhaustion the Rayleigh monotonicity principle makes the resistance no smaller; the limit of a sequence does too. A recurrent original network consequently leaves a recurrent component. Finite components give recurrent walks as well, with an isolated graph vertex viewed as an absorbing state. This proves that edge deletion preserves recurrence. The phrase “no less recurrent” refers to this recurrence comparison: at a deleted-edge endpoint the vertex degree factor also changes, so monotonicity of its first-return probability alone should not be inferred.
The printed hitting-time formula is false for the stated transition probabilities. For example, take and , put , and write . A first step gives
so . The printed expression gives , not . This discrepancy is present in the original PDF, not just in its converted text. The quantifier mentioning every positive integer must also be restricted to positive starting states ; states larger than are not in .
Here is the exact solution for the chain as specified. Until , only is visited. From any such state, a sequence of downward steps reaches zero within steps with probability at least ; the forced step at only increases that probability. The Markov property therefore gives
Thus is finite almost surely and has finite expectation, without needing the supplied transience assumption. Set . The first-step analysis gives
Put , , and . The equations become
Backward iteration, or substitution into this recursion, gives
Summing from to gives the corrected hitting time of a downward-biased walk reflected at an upper barrier:
and in particular
These values also supply the appropriate test function for part (b): , , and at every state before absorption. The finite-state stopped argument is applied on , with zero made absorbing.
For , the printed hint cannot produce constant drift by choosing its single constant . With for and , the expected downward drift is at ordinary interior states, at , and at . Making the top drift requires , but then the drift at is , not . For there is no ordinary interior state; a different constant drift can be arranged, but still gives rather than the printed formula. This identifies precisely the missing correction at the neighboring state for the intended drift ; the geometric term in the correct test function repairs it throughout the interval.
Let be the expected remaining hitting time of either endpoint, measured in minutes. The first step consumes one minute, after which first-step analysis gives
The expectation is finite: from any interior state, a block of twenty leftward steps guarantees absorption and has probability . Thus the survival probability over successive twenty-step blocks has a geometric upper bound. This justifies using finite expectations in the recurrence.
Assume , or use nonnegative with extended expectations. Let and . For , the discrete conditional expectation is . Therefore Fubini's theorem, or Tonelli theorem in the nonnegative case, gives the tower property of conditional expectation:
Values of a conditional expectation on zero-probability conditioning events do not affect the sum. An unrestricted signed whose expectation is undefined is outside this assertion.
Write . The waiting time for two increments larger than dominates for and has mean , so is finite. Conditioning on the first increment, one step is always consumed; if that increment is below , the remaining independent sequence has the original law. Thus first-step analysis and the tower property of conditional expectation give
This first makes continuous and then gives , with . Hence the uniform-sum crossing time below one has
An independent explanation uses the tail-sum formula: for , since this region is an -dimensional simplex inside the unit cube. Summing from gives . In particular the strict-crossing convention gives almost surely and .
  • for every .
  • .
  • For pairwise disjoint events, .
For arbitrary events, Boole's inequality is . To prove it, replace each by . The are disjoint, have the same union, and satisfy . Countable additivity and monotonicity give . Finite unions are included by taking subsequent events empty.
Let be the th heads event. For every , the event of infinitely many heads lies inside . By the union bound, its probability is at most , which tends to zero. Thus the probability of infinitely many heads is . This is the First Borel-Cantelli lemma, and requires no independence of the coin tosses.
For the dice experiment there are ordered outcomes giving a sum of and giving , out of . Each trial therefore has , and irrelevant-outcome probability . By independence between trials, summing over the number of initial irrelevant outcomes gives
The geometric series also shows that one of the two relevant sums eventually appears almost surely. Equivalently, first-step analysis gives .
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.
Let be the probability of ever hitting starting at . A first-step analysis gives a direct success with probability , a return to the same problem with probability , and entry into the closed class with probability , after which cannot be reached. Therefore
The possibility of infinitely many self-loops has probability zero and introduces no extra solution of this equation.