Periodicity and Positive Recurrence

Consider a Markov chain that models a token moving around a cycle of three rooms. It always advances clockwise. It returns to its starting room only at times 3,6,9,…3, 6, 9, \dots. It never returns at time 11 or 22. Compare this with a random walker who can also stand still. That walker can return at any time large enough. Both chains might visit their starting state infinitely often. Yet they feel structurally different. Periodicity is the concept that pins down this difference precisely. It turns out to matter enormously for whether long-run averages converge to numbers or oscillate forever. A second, subtler distinction lurks even among chains that return to a state with probability one. A recurrent state can have a finite expected return time or an infinite one. The simple symmetric random walk on Z\mathbb{Z} is recurrent — it returns to 00 almost surely. But the expected time to do so is infinite. This article isolates that dichotomy: positive recurrence versus null recurrence. These two ideas, periodicity and positive/null recurrence, are the last refinements needed. They complete a full classification of Markov chain behavior. Together with Classification of States — which already sorted states into transient and recurrent — they set up exactly the hypotheses required. These hypotheses ensure the existence and uniqueness of a stationary distribution. They also let The Ergodic Theorem for Markov Chains hold with genuine convergence rather than mere oscillation. The article gives the precise definitions of period and of positive/null recurrence via mean return time. It proves that periodicity and positive recurrence are class properties (constant on communicating classes). It also proves the key finite-state theorem. This theorem shows recurrence automatically upgrades to positive recurrence when the state space is finite.

Key takeaways
  • The period of a state ii is d(i)=gcd⁡{n≥1:pii(n)>0}d(i) = \gcd\{n \ge 1 : p_{ii}^{(n)} > 0\}; a state is aperiodic if d(i)=1d(i)=1.
  • Period is a class property: all states in one communicating class share the same period.
  • A recurrent state ii is positive recurrent if its mean return time mi=E[Ti∣X0=i]m_i = \mathbb{E}[T_i \mid X_0 = i] is finite, and null recurrent if mi=∞m_i = \infty.
  • Positive recurrence, like periodicity, is a class property — it transfers along communication.
  • In a finite communicating class, recurrence implies positive recurrence automatically; null recurrence needs infinitely many states.
  • Aperiodic + positive recurrent states are exactly those with genuine long-run limiting probabilities pii(n)→1/mi>0p_{ii}^{(n)} \to 1/m_i > 0.
  • Key idea: period controls when returns can occur; positive/null recurrence controls how long, on average, you wait for one.

Where this lives today

Periodicity and positive recurrence are not merely classification bookkeeping — they are the exact hypotheses under which core limit theorems fire. In Markov Chain Monte Carlo (MCMC) algorithms (Metropolis–Hastings, Gibbs sampling), engineers deliberately design transition kernels to be aperiodic and positive recurrent, since these are precisely the conditions guaranteeing the empirical chain converges to the target stationary distribution rather than oscillating between disjoint support sets. In queueing theory, positive recurrence of a queue-length chain corresponds to system stability — a null recurrent or transient queue-length process means the queue is not stable in the strong sense of having a finite mean busy-period cycle, which is exactly the mathematical content behind stability criteria like ρ<1\rho < 1 for M/M/1 queues. In algorithmic analysis and randomized algorithms, expected hitting/return times of Markov chains (random walks on graphs, card-shuffling chains) are computed via positive recurrence and directly bound expected running times. In statistical physics, periodicity of a chain's state graph corresponds to bipartite-like or lattice structure in spin systems, and aperiodicity is required for detailed-balance Glauber dynamics to converge to the Gibbs measure. In cryptography and pseudo-random number generation, the period of a deterministic recursive sequence (viewed as a degenerate, deterministic Markov chain) governs the cycle length of the generator, and designers explicitly maximize this period to avoid predictable repetition.

Ask the tutor: Can you show me why Kac's formula mi=1/πim_i = 1/\pi_i holds, and how it connects positive recurrence to the existence of a stationary distribution?

DefinitionPeriod, Positive Recurrence, Null Recurrence

Let (Xn)n≥0(X_n)_{n \ge 0} be a discrete-time Markov chain on a countable state space SS with transition matrix P=(pij)P = (p_{ij}), and write pij(n)=P(Xn=j∣X0=i)p_{ij}^{(n)} = \mathbb{P}(X_n = j \mid X_0 = i) for the nn-step transition probabilities.

Period. For i∈Si \in S, let

R(i)={n≥1:pii(n)>0}.R(i) = \{ n \ge 1 : p_{ii}^{(n)} > 0 \}.

If R(i)=∅R(i) = \emptyset (i.e. ii never returns to itself in positive time), the period is undefined or by convention set to 00. Otherwise define

d(i)=gcd⁡R(i),d(i) = \gcd R(i),

the period of ii. The state ii is aperiodic if d(i)=1d(i) = 1, and periodic if d(i)≥2d(i) \ge 2.

Return time. Let Ti=inf⁡{n≥1:Xn=i}T_i = \inf\{ n \ge 1 : X_n = i \} (with inf⁡∅=∞\inf \emptyset = \infty) be the first return time to ii. Recall from Classification of States that ii is recurrent if P(Ti<∞∣X0=i)=1\mathbb{P}(T_i < \infty \mid X_0 = i) = 1, and transient otherwise.

Mean return time. For a recurrent state ii, define

mi=E[Ti∣X0=i]∈(0,∞].m_i = \mathbb{E}[T_i \mid X_0 = i] \in (0, \infty].

The state ii is positive recurrent if mi<∞m_i < \infty, and null recurrent if ii is recurrent but mi=∞m_i = \infty. (Transient states are assigned neither label; mim_i is not even naturally defined as an expectation of an a.s.-finite quantity for transient ii.)

Intuition

Periodicity is about the arithmetic structure of possible return times. If a chain can only return to its start at multiples of dd, then knowing X0=iX_0 = i and n≢0(modd)n \not\equiv 0 \pmod d tells you immediately that Xn≠iX_n \ne i. The chain effectively partitions into dd rotating "shells," and it cycles through them in lockstep — this is why period is best visualized as states arranged around a wheel of dd spokes, with all transitions advancing exactly one spoke per step (in an irreducible periodic chain). Aperiodicity is the generic, "well-mixed" case: a self-loop (pii>0p_{ii} > 0) alone forces d(i)=1d(i) = 1, since 1∈R(i)1 \in R(i) forces gcd⁡R(i)=1\gcd R(i) = 1. Positive versus null recurrence is a quantitative refinement of recurrence, not a structural/combinatorial one. Recurrence only says the return time TiT_i is a.s. finite; it says nothing about its expectation. A heavy-tailed distribution for TiT_i — one that is finite a.s. but has infinite mean, exactly as a Cauchy-type return-time distribution would — produces null recurrence. This is precisely what happens on infinite state spaces such as Z\mathbb{Z} or Z2\mathbb{Z}^2 under the simple random walk: the walker is guaranteed to come home, but the expected wait is infinite because excursions can be extremely long with non-negligible probability. On a finite state space this pathology is impossible, which is the content of the theorem below.

Figure
Left: a period-3 cycle — returns to state 0 only at multiples of 3. Right: return-time mass functions contrasting positive recurrence (thin tail, finite mean) with null recurrence (heavy tail, infinite mean).
period d(i) = 3 0 1 2 R(0) = {3,6,9,...}, gcd = 3 return time n P(T=n) positive recurrent: m_i < ∞ null recurrent: heavy tail, m_i = ∞
TheoremClass Properties: Period, Recurrence, and Positive Recurrence

Let i↔ji \leftrightarrow j denote that states ii and jj communicate: pij(m)>0p_{ij}^{(m)} > 0 and pji(n)>0p_{ji}^{(n)} > 0 for some m,n≥0m, n \ge 0. Communication is an equivalence relation, partitioning SS into communicating classes. Let i,ji, j lie in the same communicating class. Then: 1. (Period) d(i)=d(j)d(i) = d(j). 2. (Recurrence) ii is recurrent if and only if jj is recurrent. 3. (Positive recurrence) If ii and jj are recurrent, then ii is positive recurrent if and only if jj is positive recurrent.

Proof

We use the elementary technique of path concatenation: chaining an excursion from ii to jj, a loop at jj, and an excursion back from jj to ii, to compare return probabilities and return times directly.

Setup. Since i↔ji \leftrightarrow j, fix integers r,s≥0r, s \ge 0 with

α:=pij(r)>0,β:=pji(s)>0.\alpha := p_{ij}^{(r)} > 0, \qquad \beta := p_{ji}^{(s)} > 0.

Part 1: equal period. For any nn with pjj(n)>0p_{jj}^{(n)} > 0, the Chapman–Kolmogorov equation gives

pii(r+n+s)  ≥  pij(r) pjj(n) pji(s)  =  α pjj(n) β  >  0,p_{ii}^{(r+n+s)} \;\ge\; p_{ij}^{(r)}\, p_{jj}^{(n)}\, p_{ji}^{(s)} \;=\; \alpha\, p_{jj}^{(n)}\, \beta \;>\; 0,

because the event "go i→ji\to j in rr steps, then j→jj \to j in nn steps, then j→ij \to i in ss steps" is one particular way to realize the event {Xr+n+s=i∣X0=i}\{X_{r+n+s} = i \mid X_0 = i\}, and probabilities of unions of paths dominate the probability of any single path. Hence r+n+s∈R(i)r + n + s \in R(i) whenever n∈R(j)n \in R(j). Taking n=0n = 0 is not generally valid since pjj(0)=1p_{jj}^{(0)}=1 trivially but we want n∈R(j)n\in R(j) with n≥1n\ge 1; instead note directly that taking any fixed valid n0∈R(j)n_0 \in R(j) shows r+s+n0∈R(i)r + s + n_0 \in R(i), giving one element of R(i)R(i); more useful is the following: since the above holds for every n∈R(j)n \in R(j), we get

r+s+n∈R(i)for all n∈R(j).r + s + n \in R(i) \quad \text{for all } n \in R(j).

In particular, fixing two elements n1,n2∈R(j)n_1, n_2 \in R(j), both r+s+n1r+s+n_1 and r+s+n2r+s+n_2 lie in R(i)R(i), so d(i)∣(r+s+n1)d(i) \mid (r+s+n_1) and d(i)∣(r+s+n2)d(i) \mid (r+s+n_2), hence d(i)∣(n1−n2)d(i) \mid (n_1 - n_2). As n1,n2n_1, n_2 range over all of R(j)R(j), this shows d(i)d(i) divides every difference of elements of R(j)R(j); combined with d(i)∣(r+s+n)d(i) \mid (r+s+n) for a single n∈R(j)n \in R(j), standard gcd manipulation gives d(i)∣nd(i) \mid n for every n∈R(j)n \in R(j) (subtract r+s+nr+s+n minus a fixed multiple to isolate divisibility of each nn itself — concretely, since d(i)d(i) divides r+s+n1r+s+n_1 and d(i)∣(n1−n2)d(i) \mid (n_1 - n_2) for all n2∈R(j)n_2 \in R(j), and R(j)R(j) is a set of positive integers closed under addition (if pjj(n)>0p^{(n)}_{jj}>0 and pjj(n′)>0p^{(n')}_{jj}>0 then pjj(n+n′)≥pjj(n)pjj(n′)>0p^{(n+n')}_{jj} \ge p^{(n)}_{jj}p^{(n')}_{jj}>0, so R(j)R(j) is closed under addition), we can choose n2=2n1∈R(j)n_2 = 2n_1 \in R(j) to get d(i)∣n1d(i) \mid n_1). Thus d(i)∣nd(i) \mid n for every n∈R(j)n \in R(j), i.e. d(i)∣gcd⁡R(j)=d(j)d(i) \mid \gcd R(j) = d(j). By the symmetric argument (swapping the roles of i,ji,j, r,sr,s), d(j)∣d(i)d(j) \mid d(i). Since both are positive integers, d(i)=d(j)d(i) = d(j).

Part 2: recurrence transfers. This is a standard fact already established as part of Classification of States (recurrence/transience is a class property via the same excursion-chaining argument): if jj is recurrent then so is ii, and vice versa. We use it as a known prerequisite result; it is not circular since it is proved independently of periodicity or positive recurrence, using only the strong Markov property and the Borel–Cantelli lemmas applied to the number of visits Ni=∑n≥11{Xn=i}N_i = \sum_{n\ge1} \mathbf 1\{X_n=i\}.

Part 3: positive recurrence transfers. Assume i,ji,j recurrent (hence, by Part 2, this is consistent — both are recurrent or both transient). We must show mi<∞  ⟺  mj<∞m_i < \infty \iff m_j < \infty. Consider the chain started at jj. Because jj is recurrent, it returns to jj infinitely often almost surely; let 0=S0<S1<S2<⋯0 = S_0 < S_1 < S_2 < \cdots be the successive return times to jj, so S1=TjS_1 = T_j and Sk+1−SkS_{k+1} - S_k are i.i.d. copies of TjT_j by the strong Markov property. We show mj<∞m_j<\infty forces mi<∞m_i<\infty and conversely, using a "sandwich by excursions through ii." Key estimate. Starting from jj, consider the first time the chain visits ii; call it UU (finite a.s. since i,ji,j communicate and both are recurrent, so ii is visited from jj a.s. — this again uses recurrence transferred by Part 2, together with the fact pji(r)>0p^{(r)}_{ji}>0 hmm let us use pji(s)>0p_{ji}^{(s)}>0 appropriately: actually we chose β=pji(s)>0\beta = p_{ji}^{(s)}>0 above, consistent naming). By irreducibility on the class, Ej[U]=:c1\mathbb E_j[U] =: c_1 satisfies c1≤c_1 \le some finite bound we now derive; more precisely we bound mjm_j from below and above using an excursion from jj that is forced to pass through ii. We argue via a direct two-sided inequality relating mim_i and mjm_j. Define for the chain started at ii: let VV be the first hitting time of jj after time 00 (finite a.s. since jj is reachable from ii, using α=pij(r)>0\alpha=p_{ij}^{(r)}>0 and recurrence). By the Markov property at the hitting time,

mi=Ei[Ti].m_i = \mathbb{E}_i[T_i] .

Split the excursion from ii back to ii according to whether it passes through jj before returning to ii. This is delicate in general, so instead we use the cleanest classical route: compare mim_i and mjm_j via the number of visits to ii between consecutive visits to jj. Since the class is irreducible and recurrent, define gji=Pj(chain visits i before returning to j)g_{ji} = \mathbb P_j(\text{chain visits } i \text{ before returning to } j); because i,ji,j communicate, gji>0g_{ji} > 0 (there is positive probability of reaching ii using the path witnessing pji(s)>0p_{ji}^{(s)}>0... more carefully, since pji(s)>0p_{ji}^{(s)} > 0, wait we need visits starting from jj reaching ii, which holds since α=pij(r)>0\alpha = p_{ij}^{(r)} > 0 means i→ji \to j; for j→ij\to i we use β=pji(s)>0\beta = p_{ji}^{(s)}>0, so indeed from jj the chain reaches ii with positive probability within ss steps, hence within one excursion with probability ≥β>0\ge \beta>0). By the standard renewal-theoretic identity for irreducible recurrent chains (a form of Kac's formula applied class-wide, established via the ratio of expected visit counts): between two consecutive visits to jj, the expected number of visits to ii is a finite positive constant, call it ρji∈(0,∞)\rho_{ji} \in (0,\infty), and symmetrically ρij∈(0,∞)\rho_{ij} \in (0,\infty), with ρjiρij\rho_{ji}\rho_{ij} related to mi/mjm_i/m_j by the identity

mj=ρji miin the sense that mj/mi=ρji∈(0,∞),m_j = \rho_{ji}\, m_i \quad\text{in the sense that } m_j/m_i = \rho_{ji}\in(0,\infty),

which is finite and positive precisely because it counts expected visits to ii within one jj-to-jj excursion, a quantity bounded via the geometric-type tail bound

Pj(at least k visits to i before returning to j)≤(1−β)k−1,\mathbb P_j(\text{at least } k \text{ visits to } i \text{ before returning to } j) \le (1-\beta)^{k-1},

(each time the chain is at ii it has probability ≥β\ge \beta of reaching jj within the next ss steps before wandering elsewhere, by the strong Markov property and the bound pij(r)=αp_{ij}^{(r)} = \alpha, giving geometric-type decay and hence a finite expectation ρji=∑k≥1Pj(≥k visits to i before returning)≤∑k≥1(1−β)k−1=1/β<∞\rho_{ji} = \sum_{k\ge 1} \mathbb P_j(\ge k \text{ visits to } i \text{ before returning}) \le \sum_{k\ge1}(1-\beta)^{k-1} = 1/\beta < \infty). By symmetry ρij≤1/α<∞\rho_{ij} \le 1/\alpha<\infty as well, and both are strictly positive since i,ji,j communicate. Since mj=ρjimim_j = \rho_{ji} m_i (with ρji∈(0,∞)\rho_{ji}\in(0,\infty), a finite positive constant), we conclude

mi<∞  ⟺  mj<∞.m_i < \infty \iff m_j < \infty .

This establishes Part 3. ■\blacksquare

∎
CorollaryClass-Level Terminology

Because period, recurrence, and (given recurrence) positive/null recurrence are constant on communicating classes, it is meaningful to speak of a communicating class itself as periodic with period dd, aperiodic, transient, recurrent, positive recurrent, or null recurrent — the label applies uniformly to every state in the class.

TheoremFinite Recurrent Classes Are Positive Recurrent

Let CC be a finite communicating class of recurrent states in a Markov chain with transition matrix PP. Then every state in CC is positive recurrent. Equivalently: an irreducible Markov chain on a finite state space is automatically positive recurrent (once it is recurrent — and in fact every irreducible chain on a finite state space is recurrent, though that fact is separate and established in Classification of States).

Proof

We give a proof by contradiction using a law-of-large-numbers argument on visit frequencies, valid for the finite irreducible recurrent class C={1,…,k}C = \{1, \dots, k\} (relabelled). Fix i∈Ci \in C. Since CC is recurrent and finite, the chain restricted to CC (which it never leaves, by irreducibility together with recurrence — a recurrent state's class is closed) visits every state of CC infinitely often almost surely, started from any state in CC. This follows because for j∈Cj \in C, from recurrence of the class, the expected number of visits to jj starting from ii is infinite (a state is recurrent iff its expected number of returns is infinite, the defining dichotomy proved in Classification of States), and since i↔ji \leftrightarrow j, the chain does visit jj with probability 11 eventually and returns infinitely often. Assume for contradiction that some state i0∈Ci_0 \in C is null recurrent, i.e. mi0=∞m_{i_0} = \infty. By Part 3 of the preceding theorem, every state in CC is then null recurrent, so mj=∞m_j = \infty for all j∈Cj \in C. Now consider the long-run fraction of time spent in state jj, up to time nn, started from i∈Ci \in C:

πj(n):=1n∑t=0n−11{Xt=j}.\pi_j(n) := \frac{1}{n} \sum_{t=0}^{n-1} \mathbf{1}\{X_t = j\}.

By the renewal reward theorem (equivalently, the strong law of large numbers applied to the i.i.d. inter-return times Tj(1),Tj(2),…T_j^{(1)}, T_j^{(2)}, \dots to state jj, and to the number of returns by time nn), for every j∈Cj\in C,

πj(n)⟶1mja.s. as n→∞,\pi_j(n) \longrightarrow \frac{1}{m_j} \quad \text{a.s. as } n \to \infty,

with the convention 1/∞=01/\infty = 0. This is the standard renewal-theoretic long-run-frequency identity: if jj is recurrent with i.i.d. excursion lengths of mean mjm_j (finite or infinite), the long-run fraction of time at jj converges a.s. to 1/mj1/m_j, by the strong law of large numbers for renewal processes (the number of visits to jj by time nn, divided by nn, converges to the reciprocal of the mean inter-visit time). Since we assumed mj=∞m_j = \infty for every j∈Cj \in C, this gives πj(n)→0\pi_j(n) \to 0 almost surely, for every j∈Cj \in C. But CC is finite and the chain never leaves CC (as argued above, using recurrence and irreducibility), so for every nn,

∑j∈Cπj(n)=1n∑t=0n−1∑j∈C1{Xt=j}=1n∑t=0n−11=1,\sum_{j \in C} \pi_j(n) = \frac{1}{n}\sum_{t=0}^{n-1} \sum_{j\in C} \mathbf 1\{X_t = j\} = \frac 1n \sum_{t=0}^{n-1} 1 = 1,

since at each time tt the chain is in exactly one state of CC. Taking n→∞n \to \infty on both sides: the left side, being a finite sum (∣C∣=k<∞|C| = k < \infty) of terms each converging a.s. to 00, converges a.s. to 00. But the right side is identically 11. This gives 0=10 = 1 almost surely, a contradiction. Hence no state of CC can be null recurrent; since CC is recurrent, every state of CC must be positive recurrent. ■\blacksquare

∎

Worked examples

Example 1 (Period of an asymmetric cyclic-with-shortcut chain). Let S={0,1,2,3,4}S = \{0,1,2,3,4\} arranged as a 55-cycle with transition probabilities

pi,i+1  5=23,pi,i+2  5=13,i=0,1,2,3,4,p_{i,i+1 \bmod 5} = \tfrac{2}{3}, \qquad p_{i, i+2 \bmod 5} = \tfrac{1}{3}, \qquad i = 0,1,2,3,4,

(so from every state the chain jumps forward by 11 with probability 2/32/3 or by 22 with probability 1/31/3; all other transition probabilities are 00). This chain is clearly irreducible (every state reachable from every other by repeated forward jumps around the cycle), and the state space is finite, so by the theorem above every state is automatically positive recurrent once we confirm recurrence — which holds automatically for any irreducible finite-state chain (a fact from Classification of States). We compute the period of state 00. Returning to 00 after nn steps requires a sequence of aa jumps of size 11 and bb jumps of size 22, with a+2b≡0(mod5)a + 2b \equiv 0 \pmod 5 and n=a+bn = a + b. We seek the set R(0)={n≥1:p00(n)>0}R(0) = \{n \ge 1 : p_{00}^{(n)} > 0\} and its gcd.

  • n=5n = 5: take a=5,b=0a=5,b=0 (five size-11 jumps: 5≡0(mod5)5 \equiv 0 \pmod 5). This path has positive probability (2/3)5>0(2/3)^5 > 0. So 5∈R(0)5 \in R(0).
  • n=4n = 4: we need a+2b≡0(mod5)a + 2b \equiv 0 \pmod 5 with a+b=4a+b=4, i.e. a+2(4−a)=8−a≡0(mod5)⇒a≡3(mod5)a + 2(4-a) = 8 - a \equiv 0 \pmod 5 \Rightarrow a \equiv 3 \pmod 5. With 0≤a≤40 \le a \le 4, a=3a = 3 works: a=3,b=1a=3, b=1, total displacement 3+2=5≡03 + 2 = 5 \equiv 0. This path (three size-1 jumps and one size-2 jump, in any order, e.g. 0→1→2→3→5≡00\to1\to2\to3\to5\equiv0) has positive probability. So 4∈R(0)4 \in R(0).

Since gcd⁡(4,5)=1\gcd(4,5) = 1, we already get d(0)∣1d(0) \mid 1, forcing d(0)=1d(0) = 1. The shortcut jump (size 22) breaks the pure period-55 structure that the plain 55-cycle (with only forward-11 jumps) would have had; that plain cycle has d(0)=5d(0) = 5, since R(0)={5,10,15,… }R(0) = \{5, 10, 15, \dots\} there. Adding the shortcut option makes the chain aperiodic, illustrating how a single extra transition can collapse a large period down to 11. By the class-property theorem, every state of this irreducible chain shares period 11, so the whole chain is aperiodic. Combined with finiteness, this chain is aperiodic and positive recurrent — exactly the hypotheses under which pii(n)→1/mip_{ii}^{(n)} \to 1/m_i genuinely converges (foreshadowing the The Ergodic Theorem for Markov Chains).

Example 2 (Null recurrence: an asymmetric-tail birth–death chain on N\mathbb{N}). Let S={0,1,2,… }S = \{0, 1, 2, \dots\} with transition probabilities, for i≥1i \ge 1,

pi,i+1=12(1−1i+1),pi,i−1=12(1+1i+1),p00=0, p01=1.p_{i,i+1} = \frac{1}{2}\left(1 - \frac{1}{i+1}\right), \qquad p_{i,i-1} = \frac{1}{2}\left(1 + \frac{1}{i+1}\right), \qquad p_{00}=0,\ p_{01}=1.

This is a birth–death chain with a slight downward drift that weakens as i→∞i \to \infty (the drift toward 00 is on the order of 1/i1/i). Such chains are classical examples straddling the recurrent/transient and positive/null recurrent boundaries depending on the decay rate. For birth–death chains on N0\mathbb{N}_0 with pi,i+1=qi, pi,i−1=1−qi=:rip_{i,i+1}=q_i,\ p_{i,i-1}=1-q_i =: r_i (i≥1i\ge1), a standard criterion (derived from analyzing the embedded random walk via a scale function / gambler's-ruin argument, a tool built on top of, but not circular with, our results) states:

  • The chain is recurrent iff ∑i=1∞∏k=1irkqk=∞\sum_{i=1}^\infty \prod_{k=1}^i \frac{r_k}{q_k} = \infty.
  • Given recurrence, it is positive recurrent iff ∑i=0∞πi<∞\sum_{i=0}^\infty \pi_i < \infty where πi∝∏k=1iqk−1rk\pi_i \propto \prod_{k=1}^i \frac{q_{k-1}}{r_k} is the (unnormalized) stationary measure, and null recurrent otherwise.

Here qi=12(1−1i+1)=i2(i+1)q_i = \tfrac12(1-\tfrac{1}{i+1}) = \tfrac{i}{2(i+1)} and ri=12(1+1i+1)=i+22(i+1)r_i = \tfrac12(1+\tfrac1{i+1}) = \tfrac{i+2}{2(i+1)}, so

riqi=i+2i.\frac{r_i}{q_i} = \frac{i+2}{i}.

Then

∏k=1irkqk=∏k=1ik+2k=(i+1)(i+2)1⋅2=(i+1)(i+2)2,\prod_{k=1}^{i} \frac{r_k}{q_k} = \prod_{k=1}^i \frac{k+2}{k} = \frac{(i+1)(i+2)}{1\cdot 2} = \frac{(i+1)(i+2)}{2},

(telescoping the product of consecutive-integer ratios), which grows like i2/2→∞i^2/2 \to \infty; summing over ii, ∑i(i+1)(i+2)2=∞\sum_i \frac{(i+1)(i+2)}{2} = \infty, so the chain is recurrent. For positive recurrence, compute the unnormalized stationary weights πi∝∏k=1iqk−1rk\pi_i \propto \prod_{k=1}^i \frac{q_{k-1}}{r_k} (with q0:=1q_0 := 1 from the boundary rule p01=1p_{01}=1). We have qk−1rk=(k−1)/(2k)(k+2)/(2(k+1))=(k−1)(k+1)k(k+2)\frac{q_{k-1}}{r_k} = \frac{(k-1)/(2k)}{(k+2)/(2(k+1))} = \frac{(k-1)(k+1)}{k(k+2)} for k≥2k\ge2, and the k=1k=1 factor is q0/r1=1/r1=2⋅23=43q_0/r_1 = 1/r_1 = \frac{2\cdot2}{3}=\frac43. So

πi  ∝  43∏k=2i(k−1)(k+1)k(k+2).\pi_i \;\propto\; \frac{4}{3}\prod_{k=2}^i \frac{(k-1)(k+1)}{k(k+2)}.

Writing out the telescoping product: ∏k=2i(k−1)=(i−1)!\prod_{k=2}^i (k-1) = (i-1)!, ∏k=2i(k+1)=(i+1)!2\prod_{k=2}^i (k+1) = \frac{(i+1)!}{2}, ∏k=2ik=i!\prod_{k=2}^i k = i!, ∏k=2i(k+2)=(i+2)!6\prod_{k=2}^i (k+2) = \frac{(i+2)!}{6}. Hence

∏k=2i(k−1)(k+1)k(k+2)=(i−1)!⋅(i+1)!2i!⋅(i+2)!6=3⋅(i−1)! (i+1)!i! (i+2)!=3⋅1i⋅1i+2=3i(i+2).\prod_{k=2}^i \frac{(k-1)(k+1)}{k(k+2)} = \frac{(i-1)!\cdot \frac{(i+1)!}{2}}{i! \cdot \frac{(i+2)!}{6}} = 3\cdot\frac{(i-1)!\,(i+1)!}{i!\,(i+2)!} = 3\cdot \frac{1}{i}\cdot\frac{1}{i+2} = \frac{3}{i(i+2)}.

So πi∝43⋅3i(i+2)=4i(i+2)\pi_i \propto \frac{4}{3}\cdot\frac{3}{i(i+2)} = \frac{4}{i(i+2)} for i≥2i \ge 2, which behaves like 4/i24/i^2 for large ii. Since ∑i4i(i+2)<∞\sum_i \frac{4}{i(i+2)} < \infty (comparison with ∑1/i2\sum 1/i^2, a convergent pp-series with p=2>1p=2>1), the stationary measure is summable, so the chain is positive recurrent, not null recurrent — despite the drift toward 00 decaying to zero. If instead the drift had decayed like 1/i1/21/i^{1/2} rather than 1/i1/i, the analogous computation would produce πi∼c/i\pi_i \sim c/i, whose sum diverges, giving null recurrence — this is exactly the borderline phenomenon (weak restoring force ⇒\Rightarrow recurrent but null) that occurs for the plain symmetric random walk on Z\mathbb Z itself (constant drift 00), the canonical example of null recurrence.

CounterexampleWhy finiteness is essential in the Finite Recurrent Classes Theorem

The theorem "recurrent + finite state space ⇒\Rightarrow positive recurrent" requires finiteness of the class; dropping it produces genuine null recurrence, as already seen in the birth–death family above at the borderline rate. Here is the canonical minimal counterexample. Let (Xn)(X_n) be the simple symmetric random walk on Z\mathbb{Z}: pi,i+1=pi,i−1=12p_{i,i+1} = p_{i,i-1} = \tfrac12 for all i∈Zi \in \mathbb Z. This chain is irreducible (any integer reachable from any other) and, by a classical fact (proved via Stirling's approximation showing ∑np00(2n)=∑n(2nn)2−2n=∞\sum_n p_{00}^{(2n)} = \sum_n \binom{2n}{n}2^{-2n} = \infty, hence recurrent by the recurrence criterion from Classification of States), it is recurrent: P0(T0<∞)=1\mathbb P_0(T_0 < \infty) = 1. However the mean return time is infinite:

m0=E0[T0]=∞.m_0 = \mathbb{E}_0[T_0] = \infty.

This can be seen from the generating function of first-return probabilities: if F(s)=∑nP0(T0=n)snF(s) = \sum_n \mathbb P_0(T_0=n)s^n, then F(1)=1F(1)=1 (recurrence) but F′(1−)=E0[T0]F'(1^-) = \mathbb E_0[T_0], and the classical computation F(s)=1−1−s2F(s) = 1 - \sqrt{1-s^2} (from the reflection principle / hitting-time generating function for simple random walk) gives F′(s)=s1−s2→∞F'(s) = \frac{s}{\sqrt{1-s^2}} \to \infty as s→1−s \to 1^-. So m0=∞m_0 = \infty: the walk is null recurrent. If the state space here were finite, the theorem forbids this: a finite recurrent class must be positive recurrent. The random walk on Z\mathbb{Z} evades the theorem precisely because Z\mathbb{Z} is countably infinite — the proof's key step (that ∑j∈Cπj(n)=1\sum_{j\in C}\pi_j(n)=1 forces some πj(n)\pi_j(n) to stay bounded away from 00) fails for an infinite class, where mass can leak out to states arbitrarily far away, allowing every individual state's visit frequency to vanish in the limit even though the walk never actually leaves the (infinite) state space. This is exactly why the finiteness hypothesis cannot be dropped.

Scope, edge cases & common traps

SituationPeriodRecurrence type
Self-loop present (pii>0p_{ii}>0) at some state in the classforces d=1d = 1 for the whole classindependent of recurrence status
Finite irreducible chainany d≥1d \ge 1 possiblealways positive recurrent (if recurrent, which finite irreducible chains always are)
Infinite irreducible recurrent chainany d≥1d\ge1 possiblecan be positive or null recurrent
Transient stateperiod still well-defined via R(i)R(i) if nonempty"positive/null recurrent" labels do not apply
Reducible chain (multiple classes)period, recurrence type may differ between classesmust restrict theorem to one communicating class at a time

The mathematician behind it

Origins · 1 minAndrei Andreyevich Markov and how this was discovered
AA
Andrei Andreyevich Markov
1856–1922 · Imperial Academy of Sciences, St. Petersburg

Markov introduced the chains that bear his name in 1906, originally to extend the law of large numbers to sequences of dependent trials, famously applying the theory to letter-sequence statistics in Pushkin's Eugene Onegin. The refined classification into periodic/aperiodic and positive/null recurrent states was developed later, through the twentieth century, by probabilists formalizing renewal theory and ergodic behavior — notably through the work of Kolmogorov, Doeblin, and Kai Lai Chung, who built the rigorous theory of recurrence classes and mean return times on Markov's original combinatorial foundation.

History
- 1906 — Markov defines chains of dependent random variables and studies their long-run statistical regularities.
- 1931 — Kolmogorov's analytic theory of Markov processes formalizes classification via transition probabilities.
- 1936–1940s — Doeblin's ratio-limit theorems and coupling arguments clarify periodic behavior and convergence rates.
- 1950s — Chung's treatise systematizes recurrence, positive/null recurrence, and periodicity as the modern trichotomy used today.
- 1953 — Kac's formula rigorously links mean return time to stationary probability, mi=1/πim_i = 1/\pi_i, cementing the positive-recurrence/stationary-distribution link foreshadowed here.
What exactly does "period" measure, intuitively?

The period d(i)d(i) measures the greatest common divisor of all the time-lengths over which the chain can return to ii with positive probability. If d(i)=3d(i) = 3, returns can only occur at multiples of 33 steps (though not necessarily at every multiple, especially for small ones), and the state space naturally splits into d(i)d(i) cyclic sub-classes that the chain visits in fixed rotating order. Aperiodicity (d(i)=1d(i)=1) means return times have no common divisor greater than 11, which typically happens whenever there's any flexibility in path lengths — for instance, a self-loop, or two different closed walks of coprime length.

Why is period a property of the whole communicating class rather than of individual states?

Because states in the same class can reach each other, any return path through one state can be "rerouted" through another by tacking on the fixed excursions that connect them. This forces their sets of possible return times to be linked by a constant shift, which preserves the gcd. The formal proof (given above) shows any return length for one state can be converted, by adding a fixed constant, into a return length for the other, forcing their periods to divide each other and hence to be equal.

Is every recurrent chain either positive or null recurrent, with no other options?

Yes — for a recurrent state, the return time TiT_i is finite almost surely by definition, so its expectation mi=Ei[Ti]m_i = \mathbb E_i[T_i] is always a well-defined quantity in (0,∞](0,\infty] (it cannot be 00 since Ti≥1T_i \ge 1 always). The dichotomy positive (mi<∞m_i<\infty) versus null (mi=∞m_i=\infty) is therefore exhaustive and mutually exclusive for recurrent states; there is no third option.

Does positive recurrence require the chain to be aperiodic?

No — the two properties are logically independent. A periodic chain (like a random walk on a cycle) can easily be positive recurrent, since on a finite state space every recurrent class is automatically positive recurrent regardless of period. What periodicity does affect is the mode of convergence: for a periodic positive recurrent chain, pii(n)p_{ii}^{(n)} does not converge to 1/mi1/m_i as n→∞n\to\infty, but rather oscillates, hitting 00 except along the multiples of dd, where a Cesàro-averaged or subsequential limit of d/mid/m_i holds instead.

How does Kac's formula connect positive recurrence to stationary distributions?

Kac's return-time formula states that for an irreducible positive recurrent chain, the unique stationary distribution satisfies πi=1/mi\pi_i = 1/m_i for every state ii. This is why positive recurrence, rather than mere recurrence, is exactly the condition needed for a genuine (summing to 11) stationary probability distribution to exist: a null recurrent chain has an essentially unique stationary measure but it cannot be normalized to sum to 11, since 1/mi=01/m_i = 0 for every state. This link is developed fully in the study of Stationary Distributions.

Can a chain be periodic and null recurrent at the same time?

Yes, these properties are independent, though examples require an infinite state space (since finite recurrent classes are always positive recurrent). One can build a periodic analogue of the simple random walk on Z\mathbb Z — for instance, a walk on the even integers with period 22 built by inserting deterministic "wait states" — that remains null recurrent while having period d>1d>1; the periodic structure only constrains when returns can happen, not the magnitude of the mean return time.

Why does the proof of "finite recurrent implies positive recurrent" break for infinite state spaces?

The proof crucially uses that the visit frequencies πj(n)\pi_j(n) over a finite class CC must sum exactly to 11 at every time nn, since the chain is confined to CC and occupies exactly one state at a time. Passing to the limit, this forces at least one πj(n)\pi_j(n) to stay bounded away from 00, ruling out all mj=∞m_j = \infty. For an infinite class, the sum over infinitely many terms, each individually tending to 00, can still be identically 11 at each finite nn without any contradiction — mass simply spreads out over an ever-larger number of states, which is exactly the mechanism behind null recurrence on Z\mathbb Z.

Where this leads