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.
Biased random walk hitting probability Created 2026-09-24 Updated 2026-10-31
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.
Expected duration of biased gambler's ruin Created 2026-10-06 Updated 2026-10-14
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 .
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
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-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 .
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.
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 isProof. 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 giveThus . 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 .
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 30 1 b Solution Created 2026-10-03 Updated 2026-10-14
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 isThe 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. Thuswith . 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.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 101 3 c Solution Created 2026-10-03 Updated 2026-10-14
The printed hitting-time formula is false for the stated transition probabilities. For example, take and , put , and write . A first step givesso . 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 givesThus is finite almost surely and has finite expectation, without needing the supplied transience assumption. Set . The first-step analysis givesPut , , and . The equations becomeBackward iteration, or substitution into this recursion, givesSumming from to gives the corrected hitting time of a downward-biased walk reflected at an upper barrier:and in particularThese 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.
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 2 11F b Solution Created 2026-09-24 Updated 2026-10-14
Let be the expected remaining hitting time of either endpoint, measured in minutes. The first step consumes one minute, after which first-step analysis givesThe 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.
Past exam of the mathematics course of the University of Cambridge 2014 ia Paper 2 11F Solution Created 2026-09-24 Updated 2026-10-06
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 giveThis first makes continuous and then gives , with . Hence the uniform-sum crossing time below one hasAn 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 .
Past exam of the mathematics course of the University of Cambridge 2014 ia Paper 2 9F Solution Created 2026-09-24 Updated 2026-10-06
A probability space consists of a sample space , a sigma-algebra of events, and a probability measure satisfying:
- 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 givesThe geometric series also shows that one of the two relevant sums eventually appears almost surely. Equivalently, first-step analysis gives .
Past exam of the mathematics course of the University of Cambridge 2015 ia Paper 2 9F Solution Created 2026-09-24 Updated 2026-10-06
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 givesFor , 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 ruinConsequently the expected number of games isThe 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.
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 2 20H b ii Solution Created 2026-09-24 Updated 2026-10-06
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. ThereforeThe possibility of infinitely many self-loops has probability zero and introduces no extra solution of this equation.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 1 20H Solution Created 2026-09-24 Updated 2026-10-05
Assume the intended initial fortune satisfies and put . Conditional on current fortune , the next gift is uniform on and independent of the previous choices. The remaining fortune is therefore uniform on that same set. At fortune the process stays there. Consequently the future conditional distribution depends only on the current fortune, proving the Markov property, and the transition matrix on isThe uniform decreasing Markov chain has state as an absorbing state, and until absorption the fortune strictly decreases, so the hitting time is at most .
Let be the expected number of additional transitions to hit , taking . First-step analysis givesIn particular . For , multiplying this recurrence by and the recurrence for by , then subtracting, gives . Hence for every , and telescoping yieldsThe PDF defines using times . If were included, that definition would give although the displayed empty sum is zero; the initial instruction to choose an integer between and also requires . The result above uses that intended assumption. A hitting time allowing time zero would have expectation zero from state , but that is a different definition.
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 2018 ib Paper 2 20H iii Solution Created 2026-09-24 Updated 2026-10-03
Measure vertices by their Hamming distance from the target and let be the expected hitting time when that distance is . We already know . From distance one, one of the coordinate flips reaches the target and the other flips move to distance two. First-step analysis therefore givesFor ,
Past exam of the mathematics course of the University of Cambridge 2019 ia Paper 2 10F Solution Created 2026-09-24 Updated 2026-09-29
Let be the probability that the simple random walk started at hits before zero. The first-step analysis recurrence and boundary conditions areIf , the characteristic equation of a linear recurrence has roots and , so the boundary conditions giveIf , the repeated root gives the limiting formula . This is the gambler's ruin probability.
For a fixed integer stake , the fact that divides lets us measure Patricia's wealth in units of £. She starts at and succeeds upon reaching . The formula above factors asFor , , so this probability increases as decreases. She should therefore choose the largest stake, . For , , so the probability increases as increases; she should choose the smallest stake, .


