Absorbing four-ball Ehrenfest chain 2026-10-31
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 , takeThe 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.
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 givesHere , , and . Solving these two pairs of linear equations yieldsStarting 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 asThus , 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.
Communicating class Created 2026-09-24 Updated 2026-10-14
In a finite, time-homogeneous Discrete-time Markov chain with row-stochastic transition matrix , write when is accessible from , meaning for some . States communicate, written , when both and . Communication is an equivalence relation, and a communicating class is an entire equivalence classThus communicating classes form a partition of the state space; a smaller mutually communicating subset is not itself a class. See Maria Cameron's Markov Chains notes, section 1.2.
The allowance of zero steps matters: , the identity matrix, makes true even for a state with no possible positive-time return. Symmetry is built into communication. For transitivity, concatenate a positive-probability path from to with one from to , and do the same in reverse. These observations prove the equivalence relation directly. One-way accessibility alone is not symmetric and does not define the classes; see Accessible state of a Markov chain.
A closed communicating class satisfies for every and . Once entered, it cannot be left. A singleton class is an absorbing state exactly when it is closed. An open communicating class has an outgoing transition; after a path leaves it, it cannot return, since that would make the visited outside states communicate with it. The internal motion of a closed class can nevertheless continue forever.
A constructed chain has three communicating classes: an open singleton, a closed alternating pair, and a closed absorbing singleton; dashed outlines group states into classes.
Details. For this constructed example, in state order , the transition matrix isThere are exactly three communicating classes: , , and . Only the first is open. The second is closed but neither of its states is an absorbing state; they alternate deterministically. Although via , the reverse accessibility fails. A direct matrix power check gives and .
Starting at , let be the first hitting time of either closed class. Staying at for steps has probability , so and . The two eventual destination classes each have probability . Hence the hitting probability of the absorbing state is only , and its unconditional expected hitting time from is infinite: on half the paths it is never hit. In particular, entering a closed class with certainty does not imply entering an absorbing state with certainty.
Classifying the state space separates two questions: which closed region will eventually be entered, and how does the Markov chain move inside that region? In this example the restriction to is an irreducible Markov chain with period two; the restriction to is a one-state irreducible Markov chain with period one. The whole Markov chain is reducible. The absorbing state example illustrates a different possibility: every closed class is a singleton, so eventual class selection is also terminal outcome selection.
Constant-drift hitting-time identity 2026-10-14
For a finite Markov chain, let be the first hitting time of , assume almost surely, on and on its complement, with . The stopped martingale has mean . Boundedness of and bounded convergence theorem give ; monotone convergence then gives the stated finite expected hitting time. No drift condition is required after entry into .
Discrete-time Markov chain 2026-10-14
A time-homogeneous Discrete-time Markov chain is a sequence of random variables indexed by nonnegative integers, with the displayed conditional probabilities. Here is its natural filtration and is a row-stochastic transition matrix. The Markov property removes dependence on earlier observations once is specified; the time-homogeneous Markov property makes independent of .
Consider states (sunny) and (rainy), with the constructed transition matrixRows give today's state and columns tomorrow's, in order . These numbers define an illustrative model, with one step interpreted as one day; they are not estimates of real weather. Let . The law of total probability gives the recurrence relationSubtracting makes the deviation multiply by at each step. ThusStarting sunny gives , , and ; starting rainy gives and . The two predictions approach the same stationary distribution while retaining a shrinking trace of the initial probability distribution.
Constructed sunny/rainy transitions and the exact sunny probabilities from three initial distributions.
Details. An expected hitting time answers a different question. Starting sunny, let . Every day before the first rain remains sunny, soThis geometric distribution has finite expected value. A first-step calculation gives , with , hence days. The same result follows from the geometric series . This is a mean waiting time, not a prediction that rain first occurs exactly five days later.
A probability row vector is a stationary distribution when . The Markov chain is reversible in that law when detailed balance holds: . Multiplying those equations along a finite path gives equal forward and reversed stationary path probabilities.
Five-state harmonic absorption example 2026-10-14
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.
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 giveThe interior equation says adjacent differences are equal. Four equal increments must bridge the boundary values and , soFor 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 givesThis is a discrete Poisson equation, in the interior. The extra counts the step just taken. The quadratic valuessatisfy 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 givesThe 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.
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 identityFor 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 givesThe 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
For a finite Markov chain in which an absorbing state is accessible from every state, order the nonabsorbing states first and writeHere is the identity matrix and is the matrix inverse of . With the first hitting time of the absorbing set,Thus gives the expected occupation count before absorption, including the initial visit; is the absorption probability of state ; and is the expected hitting time of the absorbing set. The vector has every entry one. See Grinstead and Snell, section 11.2, theorems 11.4-11.6.
For the toy routine in absorbing state, direct matrix multiplication givesThe first row of says that starting at gives visits to and to before termination. Their sum is the mean duration . The identities , , and independently verify the inverse, outcome, and duration calculations. The absorbing set must be reachable from every state for these finite formulas: applying them to all nonabsorbing states in the closed-cycle example would leave a persistent cycle in and make singular.
Suppose a nonnegative stopping time and constants , satisfy on . Take to be a positive integer in discrete time. ThenOn the surviving event, conditional survival is at most . The tower property of conditional expectation therefore givesInduction proves the geometric bound. Partitioning the tail integral into intervals of length then gives ; in discrete time, group the tail sum into successive integer indices instead. This proves finite expected hitting times when every surviving state has a uniform positive chance of escaping within a fixed time. It works in discrete or continuous time without assuming independence of successive survival events.
Hitting time of the bridge vertex between two cliques Created 2026-10-06 Updated 2026-10-14
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 .
Past exam of the mathematics course of the University of Cambridge 2009 ib Paper 1 19H Solution Created 2026-09-24 Updated 2026-10-14
Read the maze as two four-cycles: outer vertices , inner vertices for modulo four, edges , , and , together with edges from every to the target . The starting vertex is an outer vertex. Outer degrees are three and inner degrees are four.
For the ordinary random walk on a graph, symmetry gives a common expected hitting time from an outer vertex and from an inner one. First-step conditioning givesThus and , yielding and the requested starting mean moves.
For the non-backtracking random walk, the current vertex alone does not form a Markov chain. Use states recording previous and current vertices. Before hitting , its transitions are with probability for each neighbor . Add a starting state with no preceding vertex, choosing its first neighbor with probability , and an absorbing hit state. This specifies the full Markov chain.
Its directed edges aggregate into types , determined by the two vertex layers. From the next type is or with probability each. From it is with probability and the absorbing state with probability . From it is always . From it is , or the absorbing state with probability each. Every nonabsorbing type has a positive uniformly bounded chance of hitting within at most three more moves, so its mean time is finite.
Transition probabilities between the four directed-edge types of the non-backtracking maze walk and its absorbing target
. Details. Let their remaining mean times be in that order. The first-step equations areSolving gives , , , . The first move from the initial outer vertex reaches type with probability and type with probability , so the intelligent starting mean isThis hitting a hub from two four-cycles calculation reduces the mean from to , saving moves. Excluding immediate reversal removes wasteful two-step returns, although it does not guarantee that the next move is toward the target.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 214 3 b Solution Created 2026-10-03 Updated 2026-10-20
Use simple random walk on the loopless undirected unweighted graph, with transition probability to each graph neighbour, and take . Set . Returns to before visiting do not end the commute. After its first visit to , stop at the subsequent first visit to , so . Count transitions with departure times , including the final step arriving at . The expected hitting times are finite: in a finite connected graph there is a uniformly positive probability to reach any fixed target within a fixed number of steps, giving a geometric tail bound.
We prove the needed killed-walk occupation voltage identity from its visit balance equation. DefineFor , counting arrivals before absorption givesHence, for the graph Laplacian , we have away from . Since the sum of all Laplacian coordinates is zero, . Thus is the electrical voltage of a unit flow from to , grounded at , and .
Construct for the opposite killed leg. It satisfies and . Therefore . The harmonic maximum principle on a finite graph makes constant: at a maximum its value equals the average over its graph neighbours, forcing all of them to share that value, and connectedness propagates it. At the constant equals .
For any oriented edge , each visit to before the target hit produces a transition to with conditional probability . The expected traversals during the first killed leg are therefore , and those during the second leg are by the Strong Markov property at . This proves directed edge occupation in a random-walk commute:In particular, both directions of every unoriented edge have this same expected value, although their counts on an individual commute need not coincide. Summing over the directed edges also recovers the commute time identity .
The distinct-terminal convention is necessary for the printed “returns” interpretation. If and is the first positive return, a graph with two graph vertices and one edge gives while . Thus either take , as intended, or explicitly define the degenerate commute as . A general nonuniform random walk is not covered by the unweighted simple-walk formula.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 215 1 c Solution Created 2026-10-03 Updated 2026-10-06
Let interchange the two complete graphs, sending to and fixing . This involution preserves the transition matrix of the simple random walk. A mirror coupling under an involution starts at , keeps until the hitting time of , and then makes the two walks move identically. Each coordinate has the correct transition probabilities, and they coalesce precisely at . The coupling inequality for total variation gives
There is a genuine error in the printed expected hitting time bound, as well as an unspecified initial law. For , write and for . From every clique vertex there is a positive chance of reaching within two steps, uniformly over the finite state space for each fixed , so has finite expected value. First-step analysis, using the degree of a vertex at and at the other clique vertices, givesSolving these linear equations yieldsIn particular even the attachment vertex exceeds the printed bound by one. The valid uniform replacement is , the hitting time of the bridge vertex between two cliques formula.
We must also handle arbitrary starting states, including , before applying the mirror argument. Identify related vertices and consider the lumped Markov chain on . Its transition matrix has for , , for and , and , with all other entries zero. Here the row for only ranges over .
For and , direct two-step calculation givesAll these entries are at least . Thus for every , where is the uniform distribution on a finite set and . This is a Doeblin condition. At each two-step block couple the two quotient endpoints to the same sample from with probability , using the residual probability distributions otherwise. The first successful block has expected value at most , so the alignment time has . Lift each endpoint coupling of probability distributions to the original walks by their conditional two-step path laws; this preserves every marginal path law. The success test uses fresh block randomness and so permits restarting the walks with their original transition matrix at the aligned endpoints.
At alignment the original walks are equal or related. Use identical transitions in the first case and the mirror coupling under an involution in the second. The resulting coalescing coupling has coalescence time satisfying for every pair of initial states. Therefore Markov inequality and the pairwise mixing diameter implyFor the hint's particular starting states, the quotient one-step laws from two different clique indices have a common component of mass at least : for two ordinary indices it is ; for one attachment index it is . A maximal coupling therefore aligns those indices with probability , as suggested. The two-step argument above additionally covers .
The nonlazy walk is an aperiodic Markov chain for , because the connected graph contains a triangle. For it is a periodic Markov chain on a bipartite graph; each bipartition class has stationary mass , and the walk stays on a single class at each time. Hence and the mixing time is infinite. The asymptotic conclusion is valid for .
Past exam of the mathematics course of the University of Cambridge 2019 ib Paper 2 20H a Solution Created 2026-09-24 Updated 2026-09-29
Until the walk first reaches , it is the simple random walk on a path of length with reflection at the endpoint . If is the expected hitting time of from the vertex at distance from , thenSolving this second-difference equation gives . Therefore
Past exam of the mathematics course of the University of Cambridge 2021 ib Paper 2 18H b iii Solution Created 2026-09-24 Updated 2026-09-25
Let be the expected hitting time of state . For , first-step analysis givesWith this becomesThe minimal nonnegative solution hasso
Equivalently, Kac's lemma gives . A first step from either returns immediately with probability or moves to with probability , soSubstituting gives the same result.
Past exam of the mathematics course of the University of Cambridge 2023 ib Paper 4 7H a Solution Created 2026-09-24 Updated 2026-09-25
Let . First-step analysis givesand, because state moves to or remains at with equal probabilities,The last equation gives . Substitution into the second gives , and the first then gives . HenceThese are the expected hitting times of the absorbing state.
Let be the expected hitting time of either absorbing state. The boundary values are . The colour symmetry gives , and first-step analysis givesSolving gives and . Thus the expected total number of draws from the stated initial condition is seven. The additive one counts the current draw. Finiteness follows from the uniform two-step absorption bound in part (i), so the first-step equations do not hide an assumption of finite expectation.
Uniform decreasing Markov chain Created 2026-10-05 Updated 2026-10-06
On , make an absorbing state and let each state move uniformly to . Its expected hitting time of , allowing zero time when started at , is . First-step analysis gives ; subtracting consecutive recurrences yields and hence the formula.





