Draw balls sequentially without replacement from green and red balls. Let be the first positive draw count at which the numbers of drawn green and red balls agree. For ,where denotes the falling factorial and is a Catalan number. Odd first return times are impossible because equality requires an even total number of draws.
To count the successful colour orders, encode green by a step and red by a step . If the first step is positive, a first return time means that the partial sums remain strictly positive until the last step. Delete the first positive step and the last negative step, and shift the remaining heights down by one. The result is a Dyck path of length , of which there are . Interchanging the colours doubles this count. Every such colour order has the same probability under sampling without replacement, namely , proving the formula. In particular, the numbers of successful colour orders at lengths two, four and six are two, two and four; balanced orders with an earlier return must not be counted.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 2 22H Solution Created 2026-09-24 Updated 2026-10-14
Read the arrows in the original diagram as follows: moves to with probability one; from an unprimed , probability leads to and probability leads to ; from the corresponding destinations are and . This is the two-lane Markov chain with a deterministic restart. It is irreducible: every state can reach zero by a finite path of transitions, and zero can reach every primed state by outward transitions and then every unprimed state by a transition. Thus all states have the same recurrence classification.
Let and be the hitting probabilities of zero starting from and , with . First-step conditioning givesSubtracting yields . Eliminating givesIts characteristic roots are and . Put , so precisely when .
For , the general solution is . The bound and force , and then gives . For , the general solution is ; boundedness again gives . In both cases, the return probability from zero is , so the Markov chain is recurrent.
For , , and the pairis a nonnegative bounded solution of the first-step equations. To identify it as the actual hitting probability, use that hitting probability is the minimal nonnegative harmonic extension. This fact follows directly by iteration: a nonnegative solution with boundary value one at zero dominates the probability of hitting zero within steps, for every . The actual bounded solution has form , where nonnegativity as requires . Minimality bounds it above by , while this form bounds it below by . Hence it is exactly the displayed solution. Starting at zero, the first return time has finite-return probability . The Markov chain is therefore transient.
It remains to distinguish positive and null recurrence. Write and for invariant probabilities. Balance at zero and at gives and . For the finite cut consisting of zero and both lanes up to level , invariance equates its outward and inward probability fluxes:Balance at the unprimed state also gives . Combining these identities yieldsTherefore every invariant probability distribution would necessarily have and . Conversely, these weights satisfy all individual balance equations, including , so their summability is the only remaining condition.
When , , and normalization givesAn irreducible Markov chain has an invariant probability distribution exactly when it is positive recurrent; equivalently its mean return time is finite and is its reciprocal. Thus this case is positive recurrent. At , and the nonzero invariant weights cannot be summed to one. Irreducibility would force in any invariant probability distribution. Since recurrence was already proved but no such distribution exists, this case is null recurrent.
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 3 9H Solution Created 2026-09-24 Updated 2026-10-06
Let and let be the first visit to strictly after , with if there is none. Put . The Strong Markov property at each finite first return time gives, by induction,The number of visits, including time zero, is . By Tonelli theorem for nonnegative terms,If , this geometric series is , and is the probability of never returning. If , every term of the final series is one and both sides are infinite. Thuswith the prescribed infinite-value convention. This covers both transient states and recurrent states.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 2 20H b Solution Created 2026-09-24 Updated 2026-10-05
Starting at zero, the next renewal is at time , and there are no intervening renewals because . Thus the first return time obeys in distribution, indeed under the original renewal construction. Its mean recurrence time isThe chain returns to zero almost surely and has a finite expected return time, so zero is a positive recurrent state. The assumption is what upgrades recurrence to positive recurrence.
Past exam of the mathematics course of the University of Cambridge 2019 ib Paper 1 20H b Solution Created 2026-09-24 Updated 2026-09-29
Conditional on , the random variable is the first return time . The Kac's lemma mean-recurrence formula for a finite irreducible Markov chain givesAveraging over therefore yields
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 28K b Solution Created 2026-09-24 Updated 2026-09-29
A continuous-time Markov chain is irreducible if every state can reach every other state with positive probability. A state is recurrent if, after leaving , the chain returns to with probability one; an irreducible chain is recurrent if one, and hence every, state is recurrent. A recurrent state is positive recurrent if its expected continuous first return time is finite, and an irreducible chain is positive recurrent when all its states are.
Past exam of the mathematics course of the University of Cambridge 2023 ib Paper 2 18H d Solution Created 2026-09-24 Updated 2026-10-03
False. Again use two states, but now takeThe support condition holds. Under , the first return time to state one is identically one, so . Under , the chain is irreducible with stationary distribution . The mean recurrence time formula givesThus enlarging transition support does not imply a smaller mean return time.
The equality must be a first return time: an order starting or would already have stopped at draw two. The only successful four-draw orders are therefore and . Their probabilities under sampling without replacement add toHere . Counting all balanced four-draw orders would include games that have already stopped.
After one draw the two counts are either or and cannot agree. ThereforeThis is the elementary parity restriction behind the first return time interpretation of this game.
Suppose the first draw is green. The excess of green over red must remain positive after draws one through five and return to zero at draw six. After deleting the first green and final red, the remaining four steps must form a Dyck path: they have equal colour counts and never go below zero relative to the new starting level. There are such orders, and , giving and in the original game.
Interchanging green and red gives and . Thus there areorders. More generally, the Catalan number counts each sign of excursion with first return time .
The two possible colour orders are and . Thus the answer isThey correspond to the positive and negative four-step excursions with first return time four.
Starting from a state , let be the first return time, with value infinity if no return occurs. The state is recurrent if and transient if this probability is less than 1. A recurrent state is positive recurrent if , and null recurrent if that expectation is infinite.
If and communicate, choose with and . The Chapman-Kolmogorov equations give, for every ,If is recurrent, the supplied criterion makes infinite. Summing this inequality shows that is also infinite, so is recurrent. The same argument with the states exchanged gives the converse. Hence recurrence and transience are class properties: states in one communicating class cannot have different answers to that dichotomy.
Start the Markov chain at a state and define the strictly positive first return time . A recurrent state satisfies ; a transient state has this probability strictly below one. Equivalently a recurrent state is visited infinitely often almost surely when started there, whereas a transient state receives finitely many visits almost surely. The recurrence criterion by return probabilities gives the equivalent testStates in a communicating class share this classification. In an irreducible Markov chain all states communicate, so the chain is called a recurrent Markov chain if all its states are recurrent and a transient Markov chain if all are transient.
For an irreducible Markov chain on a countable state space, the set has either zero or one element. By uniqueness of stationary distributions for an irreducible countable chain, a stationary probability distribution exists exactly in the positive recurrent case, and thenfor the first return time . The right-hand side fixes every entry, proving uniqueness.
For a finite state space, existence is guaranteed, so there is exactly one. A countably infinite state space can have none: the simple symmetric random walk on the integers is irreducible and null recurrent. Periodicity does not affect this existence-and-uniqueness statement.
Reset-or-increment Markov chain 2026-10-31
For , consider the Markov chain on the nonnegative integers with the displayed transition probabilities. From zero it starts a new upward run; from each positive state it either increments or resets. Writing , its stationary distribution isThe balance equations give and for ; the geometric series normalizes the result, and the zero-state equation agrees. It is an irreducible Markov chain and is positive recurrent. Equivalently, its first return time to zero is one plus a geometric random variable with success probability , so its mean recurrence time is . Return paths of lengths two and three also make it aperiodic.
An irreducible Markov chain on a finite or countably infinite state space has at most one stationary distribution. On a countably infinite state space it exists exactly when the chain is positive recurrent. In that case, for every state ,where is the first return time. The expression determines every component uniquely. The formula follows by dividing the one visit to in each return cycle by the mean recurrence time; the strong law of large numbers for successive cycles makes this occupation fraction precise.
Every irreducible finite Markov chain is positive recurrent and has exactly one stationary distribution. On an infinite state space, an irreducible null recurrent Markov chain or transient Markov chain has none. For example, the simple symmetric random walk on the integers is null recurrent. Aperiodicity affects convergence of the one-time laws, but is unnecessary for existence or uniqueness of a stationary distribution.