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 .
Past exam of the mathematics course of the University of Cambridge 2006 ib Paper 2 20C b Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 2 10F ii Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 1 19H Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 2 11F c Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 2 11F d Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 2 11F e Solution Created 2026-09-24 Updated 2026-09-24
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 2015 ii Paper 2 26K Solution Created 2026-09-24 Updated 2026-10-06
Write . The Bellman equation implies for every available action. Under any competing policy, repeated conditioning givesThe last inequality uses . The monotone convergence theorem now gives , even when . If the comparison is immediate; otherwise the nonnegative conditional bounds justify each finite induction step. This proves Bellman comparison with nonnegative rewards and superunit discount without a vanishing-terminal-term assumption.
For the unit-bet policy in this gambler's ruin problem, put . The value satisfiesThe characteristic equation has the repeated root , so . The boundary values giveTo justify that this finite recurrence solution is the expected reward despite , let be the transition matrix on transient states . The matrix is diagonally similar, with diagonal factors , to the symmetric tridiagonal matrix with off-diagonal entries . Its eigenvalues are , , with absolute value below one. Thus its Neumann series converges and yields exactly the absorbed-payoff expectation and the unique recurrence solution.
When , at wealth bet once and then follow the unit-bet policy. Its expected value is , since . Therefore the unit-bet policy is not optimal.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 1 27K c Solution Created 2026-09-24 Updated 2026-10-05
Write . The embedded birth-death chain moves upward with probability and downward with probability away from zero. The gambler's ruin formula, obtained by solving its two-point difference equation on and then letting , gives . Translation gives return probability from to . From the chain hits almost surely: before that hit it remains in a finite reflecting interval, from every state of which a uniformly positive finite-step chance of hitting is available. This also proves that starting at zero it hits each almost surely.
After departure from the return probability is thereforeThe holding rate is , so the exponential occupation-time parameter is . Applying the Strong Markov property at the almost-sure first hit givesAt zero the holding rate is and return probability after departure is , again giving parameter . From initial state , the expected occupation time at zero is , since the time is zero unless zero is reached. Averaging over the initial law with probability generating function yieldsFor , the interpretation is , for , and ; the same formulas hold.
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, .
Past exam of the mathematics course of the University of Cambridge 2024 ia Paper 2 11F iii Solution Created 2026-09-24 Updated 2026-09-25
Let be the expected remaining time when the walk is at . The first-step recurrence for gambler's ruin iswith . The quadraticsatisfies both the recurrence and the boundary conditions, and their finite linear system has a unique solution. Starting from zero therefore gives