Mathematics · Article
Markov chains and state transitions
Markov models connect transition laws, long-run behavior, stopping, dependent sampling, hidden-state inference and physical-time rates through explicit assumptions and complete finite-state proofs.
Back to MathematicsAfter reading, you can
- Construct finite path laws, conditional observables and stopped future laws from the actual state, transition orientation and information available.
- Derive stationary and closed-class structure, periods, ordinary and Cesaro limits, and quantitative finite convergence without assuming reversibility.
- Prove and use total-variation contraction, common minorization, coupling and reversible spectral bounds with their exact constants and boundary cases.
- Compute proper hitting and absorption probabilities, passage moments, signed cumulative rewards and finite return-cycle identities from full arguments.
- Derive Poisson decompositions, a complete time-average law, dependent sampling variance, concentration, entropy contraction and kernel-sensitivity bounds.
- Distinguish countable-state normalization limits, hidden-state prediction and filtering, time-dependent kernels and finite continuous-time generators with physical units.
What the present state remembers
A Markov model says that the declared present state contains the information from the past needed to predict the next transition. That is a statement about a model and an information set, not a claim that every observed record forgets its history. A transition matrix, an initial law and a timing convention specify finite path probabilities. Those choices let us ask precise questions about future events, observables and what happens when observations are incomplete.
Long-run behavior has several meanings. A stationary probability can exist while a point-start distribution oscillates. A time average can settle even when the single-time law does not. Closed classes can produce several stationary laws, and an infinite state space can support recurrent visits without any stationary probability. This lesson proves the finite-state structure before examining those limitations, and keeps convergence of distributions, sample averages and normalized weights distinct.
The same transition rules connect absorbing failures, rewards accumulated before exit, Monte Carlo sampling, a hidden-state filter and a continuous-time process. Each connection needs its own premises: actual stopping times, proper exit, correct coupling marginals, conditional emission independence or finite exit rates. Worked examples and full exercise solutions expose what changes when those premises fail. General proofs establish the results; a numerical pattern or a source heading does not replace them.
A transition kernel and an actual finite path law
Fix a finite state set S={1,...,s}. Write distributions as rows and real observables as columns. A transition matrix P has P_ij>=0 and sum_j P_ij=1. Given a probability row mu, assign a finite path (i0,...,in) mass mu_i0 P_i0i1 ... P_i(n-1)in. These masses are nonnegative. Summing first over in, then successively over the preceding final coordinates, uses one row sum at a time and leaves sum_i0 mu_i0=1. Thus they form a probability law on each finite path space.
Summing the mass of (i0,...,in,in+1) over its final coordinate gives exactly the mass already assigned to (i0,...,in). This proves consistency when a final time is deleted, and repeated deletion gives consistency for all shorter initial paths. Marginals at selected nonconsecutive times are obtained by ordinary finite summation. The construction here proves these finite path laws and their consistency; an infinite-product probability-space extension, when needed, is a separate existence theorem rather than a consequence of silently declaring infinitely many coordinates.
On a history (X0,...,Xn)=(i0,...,in) having positive path mass, division of the extended path mass by the history mass gives P(Xn+1=j | X0=i0,...,Xn=in)=P_in,j. The current state is therefore sufficient for this conditional next-step law, and the same matrix applies at every time. If the history has probability zero, that division is undefined. A conditional-kernel version may be assigned there, but its values cannot be learned from the zero-probability event or used to contradict an almost-sure Markov property.
Conversely, suppose a finite-state process has initial row mu and this homogeneous conditional next-step rule on every positive-probability history. The probability chain rule gives the displayed path product by induction on path length. If an earlier history has mass zero then all its extensions also have mass zero, so the product remains valid without dividing by zero. The row orientation is part of the definition: P_ij means an arrow from i to j, distributions multiply P on the right, and P acts on observable columns by left multiplication as P f. Related reading: [Transition laws and conditional paths](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [The stopped history and the strong Markov property](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The finite path factorization is proved by normalization and conditioning, including histories with probability zero. Consistent finite laws are kept distinct from an infinite-path extension theorem.
Chapman-Kolmogorov and state observables
For a fixed starting state i, sum all length-two path masses whose endpoint is j. The intermediate state k is disjointly enumerated, giving P(X2=j | X0=i)=sum_k P_ik P_kj=(P^2)_ij. Inductively, summing one more intermediate state produces the matrix power P^n. These powers are stochastic because a product of nonnegative matrices is nonnegative and (AB)1=A(B1)=A1=1 whenever A and B are stochastic. The identity matrix is the zero-step kernel.
To travel m+n steps from i to j, first partition the finite path space by the state k at time m. Its initial segment has total probability (P^m)_ik. Summing the remaining segment gives (P^n)_kj, independently of the earlier history conditional on k. Thus the full probability is sum_k (P^m)_ik(P^n)_kj. This proves Chapman-Kolmogorov in the stated homogeneous setting and identifies that sum with (P^(m+n))_ij. It is a path-summation argument, not an assumption that all times or states are independent.
Now average the conditional n-step row from i over the initial row mu0. For each j the result is sum_i mu0_i(P^n)_ij, so mu_n=mu0 P^n and mu_(n+1)=mu_n P. For a column f with coordinate f(j), its expectation at time n is mu0 P^n f. The same formula applies to signed observables because the state space is finite and every such column is bounded. In particular P1=1 expresses preservation of constants, while distribution mass is preserved by right multiplication.
The Markov property multiplies successive conditional transition probabilities by the specified initial mass. Matrix multiplication sums over the intermediate states. If any selected transition is impossible, the joint path is impossible even if the final state is reachable by another path.
| Quantity | Exact result |
|---|---|
| Transition matrix P³ | [[43/64, 21/64], [21/32, 11/32]] |
| Specified sequence | 0 → 1 → 1 → 0 |
| Product factors | 1 × 1/4 × 1/2 × 1/2 |
| Joint path probability | 1/16 |
| Final marginal μP³ | [43/64, 21/64] |
| Final state total probability | 43/64 |
| Total mass | 1 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| P | [["3/4","1/4"],["1/2","1/2"]] |
| mu | [1,0] |
| path | [0,1,1,0] |
| Step | State 0 | State 1 |
|---|---|---|
| 0 | 1 | 0 |
| 1 | 3/4 | 1/4 |
| 2 | 11/16 | 5/16 |
| 3 | 43/64 | 21/64 |
Let F_n be the sigma-field generated by X0,...,Xn. Conditional on a positive-probability history ending at i, the future k-step endpoint law just derived is row i of P^k. Its conditional expected observable is therefore sum_j(P^k)_ij f(j)=(P^k f)(i). Consequently E[f(X_(n+k)) | F_n]=(P^k f)(Xn) almost surely, including k=0. This identity concerns conditional future values, not the generally false claim that X_(n+k) is independent of F_n without conditioning on the present state. Related reading: [Transition laws and conditional paths](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [The stopped history and the strong Markov property](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Summing over the intermediate state proves the semigroup and future-observable identity. Probability rows and observable columns keep their declared orientation.
Compensating a state observable
For a real state function g define its one-step conditional drift b(i)=(Pg)(i)-g(i). The Markov observable identity gives E[g(X_(k+1))-g(Xk) | F_k]=b(Xk). Hence D_(k+1)=g(X_(k+1))-(Pg)(Xk) has conditional mean zero. It is measurable at time k+1 and bounded on the finite state space. Define M0=0 and M_n=sum_(k=0)^(n-1)D_(k+1); conditioning its next increment proves E[M_(n+1)|F_n]=M_n.
Expanding the increment sum and telescoping the g terms gives M_n=g(Xn)-g(X0)-sum_(k=0)^(n-1)b(Xk). Thus subtracting predictable accumulated drift from the observed state-function change is exactly what produces this martingale. It does not require stationarity, reversibility, independent states or a centered initial distribution. The finite-state bound also makes each M_n integrable and square-integrable at every finite n, so the conditional and second-moment operations here are justified.
For indices a<b, D_a is F_(b-1)-measurable. The tower property then gives E[D_a D_b]=E[D_a E(D_b|F_(b-1))]=0. Expanding the square of M_n consequently leaves E[M_n^2]=sum_(k=0)^(n-1)E[D_(k+1)^2]. Conditional on Xk=i, this squared increment has expectation sum_j P_ij g(j)^2-((Pg)(i))^2. Averaging over Xk gives the exact sum of conditional variances; no cross terms have been discarded by an independence assertion.
Let R=max_i g(i)-min_i g(i). Each (Pg)(i) is a convex average between those extrema, so |D_(k+1)|<=R, and E[M_n^2]<=n R^2 follows from the exact orthogonal sum. If R=0, every increment and M_n vanish. Bounded martingale differences alone do not yet prove a strong law or an exponential concentration inequality; those later claims need their own maximal or moment-generating-function arguments. The statement proved here is the compensated martingale and its finite-time second moment. Related reading: [Conditional increments and justified stopping](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Transition laws and conditional paths](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Subtract the actual one-step conditional drift. Finite-state boundedness justifies square integrability and orthogonality of the martingale differences.
Strong Markov reasoning at an actual stopping time
A nonnegative integer-valued random time tau is a stopping time when {tau<=n} belongs to F_n for every n; equivalently {tau=n} belongs to F_n. Define F_tau by the requirement A intersect {tau=n} belongs to F_n for all finite n, with the usual additional infinite-time clause if tau can be infinite. This is the history available when a decision to stop can be made from information already observed. A random time selected with a look at later observations need not satisfy this condition.
Choose a bounded function Phi of the next k states. For a deterministic time n, finite path factorization proves E[Phi(X_(n+1),...,X_(n+k)) | F_n]=psi(Xn), where psi(i)=sum_(j1,...,jk) P_i,j1 P_j1,j2 ... P_j(k-1),jk Phi(j1,...,jk). This is a finite sum, hence bounded. It describes the ordinary future path law starting at i, and not only the expectation of a single future observable.
For A in F_tau, the event A intersect {tau=n} is in F_n. Multiply the deterministic-time conditional identity by its indicator and take expectations. On {tau=n}, the future variables indexed by tau equal those indexed by n, so the resulting equality is E[1_A 1_(tau=n) Phi(future after tau)]=E[1_A 1_(tau=n) psi(X_tau)]. Sum over n>=0. Boundedness and disjointness of the events justify this countable sum, giving the same equality with 1_(tau<infinity) in place of 1_(tau=n).
The defining property of conditional expectation therefore gives E[1_(tau<infinity) Phi(future after tau) | F_tau]=1_(tau<infinity) psi(X_tau), with arbitrary values assigned to the undefined variables outside that event. This is the discrete strong Markov property at an actual stopping time. It does not require E[tau]<infinity, since only a bounded future function was used. It does require the stopping-time measurability used in the multiplication step; a last-visit time chosen using future data cannot inherit the conclusion without a separate proof. Related reading: [The stopped history and the strong Markov property](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Conditional increments and justified stopping](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). A stopping event is measurable using information already available at that time. Summing over those events proves the stopped finite-future law; looking into the future changes the problem.
Communication classes and eventual closed-class entrance
Place a directed edge i->j whenever P_ij>0. Say i reaches j when some finite directed path connects them, allowing the zero-length path. Mutual reachability is an equivalence relation, so it partitions the finite graph into communicating classes. Edges between distinct classes cannot form a directed cycle, because that would make those classes mutually reachable. The resulting finite directed acyclic graph has terminal classes, and from every class a finite directed path reaches a terminal one.
A terminal class C has no outgoing positive-probability edge, so sum_(j in C)P_ij=1 for i in C. Once entered, it cannot be left. Conversely, any communicating class with no probability of leaving is terminal. Let A be the union of these closed classes and T its complement. If T is empty there is no entrance problem. Otherwise, for each i in T choose one directed path from i into A, removing graph loops if needed. Its finite length ell_i is at least one and its probability a_i, the product of its positive edge probabilities, is strictly positive.
Set m=max_(i in T)ell_i and epsilon=min_(i in T)a_i>0. Starting from i, following its selected path enters A by time m with probability at least epsilon; no padding is needed, because A is closed after the earlier entrance. At a deterministic block boundary, condition on the current state if A has not yet been hit. The same lower bound applies to its next m steps. With tau_A=inf{n>=0:Xn in A}, this gives P_i(tau_A>(k+1)m)<= (1-epsilon)P_i(tau_A>k m) and hence P_i(tau_A>k m)<=(1-epsilon)^k.
The bound tends to zero, proving almost-sure finite entrance into a closed class and a geometric survival estimate for the transient region. If epsilon=1, entrance occurs by m almost surely; subsequent survival is exactly zero. If 0<epsilon<1, summing the block bound also proves finite entrance moments of every fixed order. Each visit to T precedes tau_A, so all transient expected visit counts are finite. Finiteness of the graph was essential in taking a positive minimum over starting states; no analogous uniform conclusion has been proved for an arbitrary countable graph. Related reading: [Reversal and closed communicating classes](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). A finite condensation graph has a terminal class. Explicit positive paths into terminal classes give a common block and a uniform entrance probability.
A finite stationary law exists
Choose any initial probability row mu and form its Cesaro averages a_N=(1/N)sum_(n=0)^(N-1)mu P^n. Each average lies in the finite probability simplex, a closed bounded subset of a finite-dimensional real space and thus compact. Some subsequence a_(N_k) converges to a probability row pi. This compactness step applies to averages of distributions; it makes no claim that the individual sequence mu P^n converges.
Telescoping gives a_N P-a_N=(mu P^N-mu)/N. Its L1 norm is at most 2/N, since both rows in the numerator are probabilities. Matrix multiplication is continuous, so taking the convergent subsequence yields pi P-pi=0. Therefore a stationary probability exists for every finite stochastic matrix. No irreducibility, aperiodicity, reversibility or diagonalization was needed for this existence argument.
Suppose now the finite chain is irreducible. At least one coordinate pi_i is positive because its total mass is one. For any state j there is a finite path from i to j, so (P^n)_ij>0 for some n. Stationarity iterated to that n gives pi_j=sum_k pi_k(P^n)_kj>=pi_i(P^n)_ij>0. Thus all stationary coordinates are strictly positive. This positivity uses reachability, not aperiodicity and not a claim that all entries of the original matrix P are positive.
Conversely, pi P=pi means that if the chain is initialized with row pi, then its distribution remains pi at every deterministic time by induction. A stationary initial distribution is distinct from convergence toward it from other initial rows. A deterministic cycle already illustrates this distinction: a uniform initial row remains uniform, while a point mass rotates forever. Uniqueness and convergence require further arguments and, for ordinary convergence from every state, the appropriate periodicity hypothesis. Related reading: [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Cesaro averages remain in the compact probability simplex. A subsequential limit is stationary, and irreducible positive paths propagate positive stationary mass.
Irreducibility, uniqueness and the unit eigenvalue
Let P be finite and irreducible. If a real column h obeys Ph=h, choose i where h attains its maximum. The equality h(i)=sum_j P_ij h(j) is an average of values no larger than h(i), so every j with P_ij>0 also attains that maximum. Propagating along positive paths and using irreducibility shows h is constant. A complex harmonic column has real and imaginary parts harmonic, so the complex right eigenspace at eigenvalue one is likewise one-dimensional.
Let pi be a strictly positive stationary row, already constructed, and let nu be any real stationary row, initially not assumed nonnegative. Define a reversed stochastic matrix R by R_ji=pi_i P_ij/pi_j. Its row sum is (pi P)_j/pi_j=1, and reversing paths preserves irreducibility. Put h_i=nu_i/pi_i. Then (Rh)_j=sum_i pi_i P_ij h_i/pi_j=(nu P)_j/pi_j=nu_j/pi_j=h_j. The maximum principle for R makes h constant, so nu is a scalar multiple of pi. In particular every stationary probability equals pi.
For a complex column z, |(Pz)_i|<=sum_j P_ij |z_j|<=||z||_infinity. Thus ||P^n z||_infinity<=||z||_infinity for every n, and each eigenvalue lambda has |lambda|<=1. Suppose a unit-modulus eigenvalue had a Jordan chain v,w with v nonzero, Pv=lambda v and Pw=lambda w+v. Induction gives P^n w=lambda^n w+n lambda^(n-1)v. Its norm is at least n||v||_infinity-||w||_infinity, contradicting the uniform bound on ||P^n w||_infinity.
Every larger Jordan block contains such a length-two chain, so all unit-modulus eigenvalues are semisimple. At lambda=1 the eigenspace already has dimension one; semisimplicity therefore makes its algebraic multiplicity one. Other eigenvalues on the unit circle can still exist, as periodic cycles show. The argument proves a simple stationary eigenvalue and excludes polynomial growth at unit modes, but it does not incorrectly replace irreducibility by aperiodicity or conclude that all remaining eigenvalues have modulus strictly below one. Related reading: [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Weighted symmetry and absolute spectral rates](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Harmonic maxima and finite rank give uniqueness. Power boundedness supplies the separate argument excluding generalized eigenvectors on the unit circle.
Periods and cyclic classes
For a state i, let R_i={n>=1:(P^n)_ii>0} be its positive return lengths and d_i their greatest common divisor. Irreducibility on a finite stochastic graph ensures at least one positive return path at every state. Given states i and j, choose paths i->j of length a and j->i of length b. Then a+b is a return length at i, and for every ell in R_j, a+ell+b is another. Thus d_i divides ell for every ell in R_j, so d_i divides d_j. Reversing i and j gives equality; call the common period d.
Fix a reference state o. Assign state j the residue modulo d of any path length from o to j. This is well-defined: if two such lengths are a and a_prime, append one fixed path j->o of length b. Both a+b and a_prime+b are return lengths at o, or zero in the trivial zero-length case, so d divides a-a_prime. Any positive edge i->j then increases the residue by one, because appending that edge to a path o->i gives a path to j. The residue classes therefore advance cyclically under P.
All d residues occur. Indeed take a positive return walk from o of length L, a positive multiple of d. The vertices encountered at its first d times have residues 0,1,...,d-1 by the edge rule. These are nonempty disjoint cyclic classes, and after d transitions the chain stays in its starting class. If i and j lie in the same cyclic class, any positive path from i to j has length divisible by d: prepend a fixed path from o to i and compare its resulting residue with that of j. Such a path exists by irreducibility.
Consequently the restriction of P^d to a cyclic class is stochastic and irreducible: any within-class path of length kd gives a positive entry of the k-th power of that restriction. Its return lengths at i are exactly the integers n/d for n in R_i, since each return length of P is a multiple of d. Their gcd is d_i/d=1, so the restriction is aperiodic. The cyclic classes need not be single communicating classes for P itself, which can be irreducible across all of them; they are the invariant classes for the d-step kernel. Related reading: [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The full residue-class argument gives cyclic classes and aperiodic restrictions of the d-step kernel. A period-two picture alone is not the general proof.
Why aperiodicity eventually gives positive powers
Fix a reference state o in a finite irreducible aperiodic chain. Its positive return lengths have gcd one. There is already a finite subset ell1,...,ellr with gcd one: start with any return length and adjoin lengths whenever the current gcd is greater than one and fails to divide some return length. Each such addition strictly decreases a positive integer divisor of the initial length, so only finitely many decreases are possible. Concatenating return walks shows that every nonnegative integer combination of these selected lengths is also a possible return length, except the all-zero combination which is the zero-step loop.
Set L=ell1 and work modulo L. Residues of nonnegative combinations of ell1,...,ellr form a subsemigroup of the finite additive group of residues. This semigroup is a group: for any available residue a, repeating it through its finite order produces zero and then a nonnegative multiple representing -a. Its subgroup is the whole residue group, since the gcd of L and the other lengths is one; an integer Bezout combination gives the residue one, and negative coefficients can be replaced by the available inverses. Hence each residue r modulo L has a representative c_r that is a nonnegative combination of the selected return lengths.
Choose one such c_r for each residue and let M=max(1,max_r c_r). If n>=M and n has residue r, then n-c_r is a nonnegative multiple of L. Concatenating the selected walks for c_r with that many length-L return walks realizes a positive-probability return walk of length n at o. Thus every sufficiently large integer is a return length. This is the needed nonnegative-length conclusion; a Bezout identity alone, with possibly negative coefficients, would not have produced an actual walk.
For each i choose a positive path i->o of length a_i and for each j a positive path o->j of length b_j, permitting zero length when the endpoint is o. Let N=M+max_(i,j)(a_i+b_j), increasing it to at least one if necessary. For every n>=N, the remaining length n-a_i-b_j is at least M and hence realizable as a return walk at o. Concatenation gives a positive path of total length n from i to j, so (P^n)_ij>0 for every pair simultaneously. This proves eventual positivity using finite irreducibility and period one, with no unproved diagonalizability assumption. Related reading: [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The number-theoretic step is proved with finitely many return lengths and nonnegative residue representatives. It is not left as a deferred source lemma.
Total variation and the sharp Dobrushin coefficient
For probability rows mu and nu put z=mu-nu. Its coordinates sum to zero, so the positive-coordinate sum and the absolute negative-coordinate sum are equal, both t=(1/2)sum_i|z_i|. For any event A contained in the finite state space, z(A) is between -t and t. The event {i:z_i>0} attains t, proving TV(mu,nu)=sup_A|mu(A)-nu(A)|=t. If t=0 the rows coincide. Otherwise write z=t(alpha-beta), where alpha_i=max(z_i,0)/t and beta_i=max(-z_i,0)/t are probability rows with disjoint supports.
Define tau(P)=max_(i,j)TV(P(i,.),P(j,.)). For any probability rows alpha and beta, alpha P-beta P=sum_(i,j)alpha_i beta_j(P(i,.)-P(j,.)). The triangle inequality for half the L1 norm bounds its TV by tau(P). Apply this to the preceding normalized positive and negative parts to obtain TV(mu P,nu P)<=tau(P)TV(mu,nu). Taking mu and nu to be point masses at a pair of rows attaining the maximum proves that this coefficient is sharp whenever the state space has at least two states; for one state the coefficient and every probability difference are zero.
For a real column f let osc(f)=max f-min f. If probability rows a,b differ, their normalized positive and negative parts express (a-b)f as TV(a,b) times a difference of two averages of f. Its absolute value is at most TV(a,b)osc(f), also valid when a=b. Applying this to pairs of rows of P gives osc(Pf)<=tau(P)osc(f). Conversely a pair attaining tau(P), together with the indicator of its positive row-difference coordinates, attains the same oscillation coefficient. For a constant f both sides are zero.
Every stochastic kernel has 0<=tau(P)<=1, so it cannot increase total variation. For stochastic P and Q, apply the contraction bound for Q to the two probability rows P(i,.) and P(j,.). Their images are the corresponding rows of PQ, so tau(PQ)<=tau(Q)tau(P). Iteration gives the product bound for a sequence of possibly different kernels. These statements use TV as half L1, not the unnormalized L1 norm, and compare full rows; closeness of only one observed row would not control the maximum coefficient. Related reading: [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Positive and negative parts of a signed probability difference yield the sharp row coefficient. The same event normalization controls function oscillation and kernel products.
Minorization and a quantitative mixing bound
Suppose each row of P dominates epsilon times a probability row nu, with 0<epsilon<1. Define R_ij=(P_ij-epsilon nu_j)/(1-epsilon). The numerator is nonnegative and its row sum is 1-epsilon, so R is stochastic and P=epsilon 1 nu+(1-epsilon)R. The common-reset part cancels in a probability-row difference, giving (mu-nu_prime)P=(1-epsilon)(mu-nu_prime)R. TV nonexpansion under R yields contraction by at most 1-epsilon.
A stationary probability pi exists by finite-simplex Cesaro compactness. If pi_prime is another, their TV equals TV(pi P,pi_prime P) and is at most (1-epsilon)TV(pi,pi_prime), forcing equality of the rows. Iterating the same contraction against pi gives TV(mu P^n,pi)<=(1-epsilon)^n TV(mu,pi). Thus minorization supplies both uniqueness and a quantitative convergence estimate, even without separately assuming irreducibility. It need not give strict positivity of every stationary coordinate if nu and all reachable rows avoid some states.
More generally suppose Q=P^m has a common minorization epsilon nu for an integer m>=1 and 0<epsilon<1. The unique stationary law of Q must be stationary for P: its product with P is another stationary row of Q because P commutes with P^m. Consequently it is the stationary law pi of P as well. Write n=km+r with 0<=r<m and apply the Q contraction k times, then stochastic nonexpansion for P^r. This gives TV(mu P^n,pi)<=(1-epsilon)^floor(n/m) TV(mu,pi), with no fictitious fractional number of blocks.
If epsilon=1, domination and equal row sums force every row of Q to equal nu exactly. The same commutation argument makes nu stationary for P, and every initial law reaches nu after m steps and remains there. For n<m only nonexpansion is asserted. If epsilon=0, the decomposition does not yield a strict contraction and proves neither uniqueness nor mixing; the identity kernel is a counterexample. A claimed minorization must hold for every row on the stated domain, and its reset row must itself be a probability law. Related reading: [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). A common reset component cancels from probability differences. A block minorization gives a floor-indexed bound; zero and unit reset weights are treated separately.
Finite irreducible convergence and its periodic obstruction
For a finite irreducible aperiodic matrix P, eventual positivity supplies an integer m>=1 for which all entries of Q=P^m are positive. Let a_j=min_i Q_ij and epsilon=sum_j a_j. Then epsilon>0 and epsilon<=1, because each a_j is no larger than the corresponding entry of any one row. Set nu_j=a_j/epsilon. Every row of Q dominates epsilon nu, so the established block-minorization theorem gives a unique stationary row pi and uniform geometric convergence from all initial distributions.
More precisely TV(mu P^n,pi)<=(1-epsilon)^floor(n/m) TV(mu,pi) when 0<epsilon<1, and TV(mu,pi)<=1 makes this a uniform bound over starting rows. If epsilon=1, convergence is exact from time m onward. Irreducibility separately makes pi strictly positive. This proof establishes convergence quantitatively without assuming P is symmetric, reversible or diagonalizable, and does not confuse positivity of one large power with positivity of the original one-step matrix.
Now suppose instead the finite irreducible chain has period d>1. Its cyclic classes C0,...,C_(d-1) move deterministically in phase: all outgoing probability from C_r goes into C_(r+1 modulo d). Stationarity implies pi(C_(r+1))=pi(C_r), so each class has stationary mass 1/d. Starting from a point state in C_r, the law at time n is supported entirely on C_(r+n modulo d). Comparing the event consisting of that current class with pi gives TV(delta_i P^n,pi)>=1-1/d for every n.
Therefore ordinary convergence from every starting distribution fails in the periodic case, even though the stationary probability is unique and positive. If the starting distribution is pi, its law remains pi at every time and does converge trivially. Some other special initial mixtures can also remove oscillatory modes. The obstruction proved here is to convergence from all starts, not to stationarity itself, existence of time averages or every possible individual initial distribution. Cesaro and ergodic-average statements require their own arguments below. Related reading: [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Aperiodicity gives convergence from all starts in the finite irreducible setting. A periodic point start keeps a phase obstruction, while a stationary initial law remains stationary.
Detailed balance and reversing a stationary path
Let pi be a stationary probability with pi_i>0 for every state, without initially requiring irreducibility. Define the reversed kernel Pstar_ij=pi_j P_ji/pi_i. Its entries are nonnegative and its ith row sum is sum_j pi_j P_ji/pi_i=(pi P)_i/pi_i=1. Moreover (pi Pstar)_j=sum_i pi_i pi_j P_ji/pi_i=pi_j sum_i P_ji=pi_j, where the final sum is the row sum of row j in P. Thus the reversed process has the same stationary distribution.
For a path i0,...,in in the original stationary chain, its probability is pi_i0 times the product of its forward transition factors. The reversed path in Pstar has probability pi_in Pstar_in,i(n-1) ... Pstar_i1,i0. Substitute the definition of each reversed factor; consecutive stationary-coordinate ratios cancel, leaving exactly pi_i0 P_i0i1 ... P_i(n-1)in. This telescoping identity proves equality of full finite path probabilities under reversal, including paths of probability zero because no positive transition factor was divided by.
The original stationary path law is invariant under time reversal with the same kernel precisely when Pstar=P. Coordinatewise this is pi_i P_ij=pi_j P_ji, the detailed-balance equations. Sufficiency follows by inserting Pstar=P in the path identity. Necessity already follows from equality of the two-time probabilities of (i,j) and (j,i). Therefore reversibility is a statement about stationary path laws, while detailed balance is its finite-kernel equivalent under the stated positive stationary law.
Summing detailed balance over i gives stationarity, but the converse fails. A deterministic directed cycle of three or more states has the positive uniform stationary row while its forward edge flow has no matching reverse edge flow. Irreducibility is not enough to restore detailed balance. If some stationary coordinates are zero, the displayed ratio is not defined there; reversal can first be restricted to the stationary support, but arbitrary rows outside that support are not determined by the stationary path law. Related reading: [Reversal and closed communicating classes](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Constructing a stationary target with Metropolis transitions](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). A positive stationary law permits the reversed-kernel ratio and path telescoping. Detailed balance identifies equality with the original kernel and is stronger than stationarity.
Reversible chains as weighted symmetric operators
Assume detailed balance with a strictly positive stationary row pi. On real columns define <f,g>_pi=sum_i pi_i f_i g_i and ||f||_pi^2=<f,f>_pi. Expand <f,Pg>_pi=sum_(i,j)pi_i P_ij f_i g_j. Detailed balance exchanges pi_i P_ij with pi_j P_ji, and swapping indices then gives <Pf,g>_pi. Thus P is self-adjoint in this weighted Euclidean space. The complex version uses conjugation and gives the same Hermitian identity.
Let D be the diagonal matrix with positive entries pi_i. Under the change of coordinates z=D^(1/2)f, the matrix becomes B=D^(1/2) P D^(-1/2). Its ij entry is sqrt(pi_i)P_ij/sqrt(pi_j), which equals its ji entry by detailed balance. It is therefore an ordinary real symmetric matrix. The finite-dimensional spectral theorem supplies an orthonormal basis of real weighted eigenvectors for P, with real eigenvalues and no Jordan blocks.
Jensen for the probability weights in row i gives ((Pf)_i)^2<=(P(f^2))_i. Sum against pi and use stationarity to obtain ||Pf||_pi^2<=||f||_pi^2. Applying this to an eigenvector bounds the absolute value of its eigenvalue by one, so the reversible spectrum lies in [-1,1]. The lower endpoint is possible in periodic chains; self-adjointness alone does not make all eigenvalues nonnegative or remove alternating behavior.
Expand one half of sum_(i,j)pi_i P_ij(f_i-f_j)^2. The f_i^2 term sums to one half ||f||_pi^2 by row stochasticity, the f_j^2 term contributes the other half by stationarity, and the cross term is -<f,Pf>_pi. Hence the result equals <f,(I-P)f>_pi, the nonnegative Dirichlet quadratic form. This formula weights actual directed edges by stationary flow and counts both directions with a factor one half; omitting that factor would double the energy. Related reading: [Weighted symmetry and absolute spectral rates](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [The half-edge Dirichlet identity](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Author-posted corrections to the second edition](https://pages.uoregon.edu/dlevin/MARKOV/errata2e.pdf). The weighted symmetric transform and half-edge energy expansion are explicit. The source correction distinguishes stationarity of the scalar identity from reversible spectral structure.
Spectral mixing and laziness
Take a finite irreducible aperiodic reversible chain with positive stationary row pi. Apart from the simple constant eigenvector at eigenvalue one, all eigenvalues have absolute value below one. To see the strictness, a sufficiently large power Q=P^m has every entry positive. If a nonconstant eigenvector of P had unit-modulus eigenvalue, Q would preserve its L2 norm; equality in the weighted Jensen contraction for positive Q forces all its coordinates to agree, a contradiction. Let rho be the largest absolute value of the nonconstant eigenvalues, with the one-state case treated separately.
For an initial row mu define h_i=mu_i/pi_i and f=h-1, so <f,1>_pi=0. Detailed balance gives (mu P)_j/pi_j=sum_i P_ji h_i=(Ph)_j; the density therefore evolves by P acting on a column. Expand f in the weighted orthonormal nonconstant eigenvectors. After n steps each coefficient is multiplied by its eigenvalue to the nth power, giving ||P^n f||_pi<=rho^n||f||_pi. Finally TV(mu P^n,pi)=(1/2)sum_i pi_i|(P^n f)_i|<=(1/2)||P^n f||_pi by Cauchy-Schwarz.
Combining the inequalities yields TV(mu P^n,pi)<=(1/2)rho^n sqrt(sum_i mu_i^2/pi_i-1). For a point start at i, the square root becomes sqrt(1/pi_i-1). At n=0 the factor rho^0 is interpreted as one, including rho=0; when rho=0 all centered densities vanish after one step. In the single-state case every distribution is already pi, so TV is identically zero and no maximum over an empty spectrum is needed. This is a bound rather than an equality for every starting row.
All probabilities lie in a one-dimensional affine segment. Subtracting the stationary probability leaves a single signed mode. Total variation for two states is the absolute difference in the first probability. Adding half identity preserves π and maps λ to (1+λ)/2.
| Quantity | Exact result |
|---|---|
| Stationary π | [2/3, 1/3] |
| Detailed balance π₀a = π₁b | 1/6 |
| Original / half-lazy mode | (1/4, 5/8) |
| Selected μPⁿ | [171/256, 85/256] |
| Original total variation | 1/768 |
| Half-lazy total variation | 625/12288 |
| Convergence | Both converge geometrically. A negative original mode alternates. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1/4 |
| b | 1/2 |
| start | 0 |
| n | 4 |
Ordering eigenvalues as 1=lambda1>=lambda2>=... does not make 1-lambda2 alone a mixing parameter: lambda_min can be close to -1 and alternate slowly. Replace P by L=(I+P)/2 to obtain eigenvalues (1+lambda_j)/2 in [0,1], retaining stationarity and reversibility while removing negative modes. Each L step inserts a holding probability and is a different transition experiment. A faster bound per L step cannot be silently reported as the same number of physical transitions of the original P chain. Related reading: [Weighted symmetry and absolute spectral rates](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Dependence and the variance of a time average](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Absolute eigenvalue size controls the centered L2 contraction. The total-variation estimate keeps its initial-density factor, and laziness changes the clock as well as the spectrum.
What a coupling proves
A coupling of probability rows mu and nu is a joint law (U,V) whose two marginals are those rows. For any event A, the difference mu(A)-nu(A) equals E[1_A(U)-1_A(V)]. The integrand is zero on {U=V} and has absolute value at most one otherwise. Thus |mu(A)-nu(A)|<=P(U!=V), and taking the event supremum proves TV(mu,nu)<=P(U!=V). This holds for every valid coupling; it does not assume independence of U and V.
For finite rows define their common mass c_i=min(mu_i,nu_i) and c=sum_i c_i. Since min(a,b)=(a+b-|a-b|)/2, c=1-TV(mu,nu). If 0<c<1, build a joint experiment that, with probability c, chooses one common state from the probability row c_i/c and sets U=V there. With remaining probability 1-c, choose U from (mu_i-c_i)/(1-c) and V from (nu_i-c_i)/(1-c), using for example independent residual draws.
At each coordinate at least one of the two residual masses is zero, so the residual supports are disjoint and the residual draws cannot coincide. The first marginal of this mixture is c_i+(mu_i-c_i)=mu_i, and the second is nu_i. Its mismatch probability is exactly 1-c=TV(mu,nu), attaining the universal lower bound. This is a maximal coupling in the sense of maximizing agreement, not a claim that every coupling achieves the optimal value.
If c=1, the rows are identical and a single draw with U=V has mismatch zero; no residual normalization is used. If c=0, their supports are disjoint and any coupling has mismatch one; draw them independently if a construction is required. A one-time maximal coupling of distributions does not by itself construct a Markovian coupling of whole paths or a meeting-time estimate. Such a path construction must separately maintain each marginal transition kernel at every step. Related reading: [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The common-mass construction attains the coupling bound. Identical laws and disjoint supports are separate cases, with no division by a vanished branch probability.
Meeting, sticking and mixing
Construct a joint process (Xn,Yn) so that, conditional on its joint past, the next X marginal is P(Xn,.) and the next Y marginal is P(Yn,.). Summing out the other coordinate then proves that each marginal process is an ordinary P chain from its stated initial law. Let T=inf{n>=0:Xn=Yn}, and require that the joint transition uses the same random next state on the diagonal, so equality persists after T. These marginal and sticking requirements are part of a valid construction, not consequences of naming two processes a coupling.
At time n the joint pair is a coupling of its two marginal laws. The coupling inequality gives TV(Law(Xn),Law(Yn))<=P(Xn!=Yn)<=P(T>n); with sticking, the last two events in fact coincide. To bound distance to a stationary row pi, initialize Y0 with pi, choose any coupling with the desired X0 law, and preserve the marginal rules thereafter. The Y marginal remains pi, so the same meeting tail bounds TV(Law(Xn),pi). A meeting experiment with an incorrect Y marginal cannot prove this conclusion.
Suppose for some m>=1 and epsilon>0, conditional on every joint history surviving without a meeting through time km, the probability of meeting during the next m steps is at least epsilon. Then P(T>(k+1)m | joint past through km)<=1-epsilon on {T>km}. Taking expectations gives P(T>(k+1)m)<=(1-epsilon)P(T>km), and iteration yields P(T>km)<=(1-epsilon)^k P(T>0). For n=km+r the survival probability is at most the bound at km, yielding the properly rounded exponent floor(n/m).
One explicit construction is available from a row minorization P(i,.)=epsilon nu+(1-epsilon)R(i,.). Before meeting, use a shared Bernoulli reset: on its epsilon outcome draw one nu state for both chains, and otherwise use any coupling of their residual rows. After meeting draw one common next state from their identical P row. Both marginals are correct at each step, and each reset forces a meeting. Other path couplings may give better tails, but neither a numerical resemblance nor a one-time maximal coupling automatically supplies a uniform multi-step meeting probability. Related reading: [Constructing a pair of coupled Markov paths](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The coupled kernel must have the correct conditional coordinate laws and keep equality after meeting. The conditional block argument then gives the meeting tail.
Hitting probabilities and minimal harmonic solutions
Let A and B be disjoint boundary sets, C the remaining states, and tau_A and tau_B their first hitting times, counting time zero. Define h(i)=P_i(tau_A<tau_B), with the comparison false when both times are infinite. Then h=1 on A and h=0 on B. Starting from i in C, conditioning on the first step gives h(i)=sum_j P_ij h(j). With Q=P_CC and a_i=sum_(j in A)P_ij, this is h_C=a+Qh_C.
The probability of success at A within the next n transitions before touching B is h_C^(n)=sum_(k=0)^(n-1)Q^k a. Indeed Q^k enumerates paths that remain undecided in C for k steps, and a supplies the subsequent first entrance to A. These success events increase with n and have union {tau_A<tau_B}, so h_C is the limit of their probabilities. This also proves 0<=h<=1, even if the chain has a closed class entirely inside C and never decides on some paths.
Let v be any nonnegative solution with the same boundary values. Repeatedly substitute v_C=a+Qv_C to obtain v_C=sum_(k=0)^(n-1)Q^k a+Q^n v_C. Nonnegativity of Q and v makes the remainder nonnegative, so v_C>=h_C^(n) for every n and v_C>=h_C after taking the limit. Thus the hitting probability is the minimal nonnegative harmonic solution. The adjective minimal is essential: a closed undecided class can carry an arbitrary nonnegative harmonic value without changing the boundary equations.
If every state in C eventually exits C almost surely, finiteness of C upgrades that fact to a uniform block-exit estimate. For each state choose a finite horizon with positive exit probability, and take a common maximum horizon and positive minimum probability. Hence Q^n 1 tends to zero geometrically. The difference of two finite solutions satisfies z=Q^n z and has sup norm at most ||z||_infinity max_i(Q^n 1)_i, forcing z=0. Proper exit therefore gives uniqueness; the boundary equations alone do not establish it. Related reading: [Finite gambler hitting equations](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Hitting times, returns and first-step reasoning](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Reversal and closed communicating classes](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Finite-horizon hitting events increase to the actual hitting event. Proper exit is what upgrades the minimal nonnegative boundary solution to a unique one.
The absorbing fundamental matrix
Partition states into a transient working set C and a declared absorbing boundary A, stopping the process at its first entrance to A even if the original dynamics there were not absorbing. Write Q=P_CC and R=P_CA. Assume every state of C eventually reaches A and C is finite. A uniform block-exit estimate gives integers m>=1 and 0<=rho<1 with Q^(km)1<=rho^k 1. Thus the nonnegative series N=sum_(k>=0)Q^k converges entrywise and in any finite-dimensional matrix norm.
For its finite partial sums N_n, multiplication on either side gives (I-Q)N_n=N_n(I-Q)=I-Q^(n+1). The tail estimate sends Q^(n+1) to zero, so (I-Q)N=N(I-Q)=I. Hence N=(I-Q)^(-1). This both proves invertibility and identifies its inverse as a nonnegative visit series. Starting from C, the entry (Q^k)_ij is the probability of being at j at time k while still not absorbed, so N_ij is E_i[sum_(k=0)^(tau_A-1)1_(Xk=j)]. The initial visit is included.
For a boundary state a, the probability of first absorption there at transition k+1 is sum_j(Q^k)_ij R_ja: stay in C for k steps and then take the first boundary transition. These events are disjoint over k, so the matrix of absorption probabilities is sum_(k>=0)Q^k R=NR. Its row sums equal one under proper exit. Algebraically (I-Q)1=R1 and N(I-Q)=I also give NR1=1, consistently with the probabilistic interpretation.
If C is empty the statement has no transient coordinates; starting in A the hitting time is zero. If C contains an internally closed class, Q may have eigenvalue one, the visit series may diverge and some absorption row sums are below one. In that case writing an inverse without checking existence is invalid. The finite proper-exit premise, not the label absorbing-chain calculation, justifies all three conclusions: convergent visit counts, an inverse and complete boundary absorption probabilities. Related reading: [Hitting times, returns and first-step reasoning](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Finite gambler hitting equations](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The geometric survival bound makes the matrix series converge. Its entries count visits, and multiplying by boundary transitions gives the declared absorption law.
First and second passage-time moments
Let tau be the number of transitions until first entrance to the absorbing boundary, equal to zero when starting there and at least one when starting transient. The uniform geometric survival bound implies all fixed moments are finite: group integer times into blocks and compare powers of time against a convergent geometric series. In particular h_i=E_i[tau] and s_i=E_i[tau^2] exist. The survival identity E_i[tau]=sum_(n>=0)P_i(tau>n)=sum_(n>=0)(Q^n1)_i already gives h=N1.
The first-step description is tau=1+tau_prime from a transient state, where tau_prime is zero if the first transition exits and otherwise is the remaining hitting time from the next transient state. Conditional expectations give h=1+Qh, hence (I-Q)h=1 and h=N1 again. The time-zero boundary values are h=0 on the absorbing set. Paying an additional waiting step after absorption would describe a different random time and would change these equations.
Square the same first-step identity before averaging. Its terms are 1, twice the remaining lifetime, and the square of that remaining lifetime, so s=1+2Qh+Qs. Since Qh=h-1, this becomes (I-Q)s=2h-1 and s=N(2h-1). The vector 1 here is the all-ones transient column. Substitution of h into the second-moment equation is legitimate because its finiteness was proved first, rather than assuming an unknown infinite moment could be moved across an equality.
The geometric matrix series N exists because each row of Q has sum less than one. The first-step equations are (I−Q)m=1 and (I−Q)s=2m−1. Thus s=2Nm−m and the variance is s minus the square of m. The row-sum bound directly yields almost-sure absorption.
| Quantity | Exact result |
|---|---|
| Fundamental matrix N | [[8/3, 4/3], [4/3, 8/3]] |
| Mean E[τ] | [4, 4] |
| Raw second moment E[τ²] | [28, 28] |
| Variance of τ | [12, 12] |
| Maximum row sum of Q | 3/4 |
| Survival bound after k steps | (3/4)^k |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| Q | [["1/2","1/4"],["1/4","1/2"]] |
The coordinatewise variance is Var_i(tau)=s_i-h_i^2, with the square taken entry by entry, not as a matrix product. On the boundary all three quantities vanish. The second moment s is not h squared: randomness normally makes it larger, as a geometric waiting-time example shows. A formal solution of these finite linear equations is not a passage-time theorem if proper exit fails; infinite lifetimes or moments must then be treated from their actual probabilistic definitions. Related reading: [Hitting times, returns and first-step reasoning](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Finite gambler hitting equations](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). First-step expansion gives the mean and second moment only after finite moments have been justified. Time spent at the absorbing boundary is not counted as another transient step.
Rewards accumulated before absorption
Assign each transient state i a bounded real reward r_i paid on the visit before its outgoing transition, and stop rewards at absorption. Define Y=sum_(k=0)^(tau-1)r(Xk), with Y=0 on an initially absorbed path. If C_r=max_i|r_i|, then |Y|<=C_r tau and Y^2<=C_r^2 tau^2. Finite first and second hitting-time moments therefore justify the expectations even for rewards of mixed sign. Nonnegativity of rewards is not required for these integrability bounds.
Write v_i=E_i[Y]. The first-step identity is Y=r_i+Y_prime, with Y_prime zero on immediate exit and otherwise drawn from the continuation process in the next transient state. Taking expectations gives v=r+Qv, so v=Nr. Equivalently, the visit representation gives E_i[Y]=sum_j N_ij r_j. The finite expected absolute reward just established justifies exchanging expectation with the reward sum; a cancellation of divergent positive and negative series was not used.
For the full second moment w_i=E_i[Y^2], square before averaging: w_i=r_i^2+2 r_i sum_j Q_ij v_j+sum_j Q_ij w_j. Therefore (I-Q)w=r^2+2 r composed-with (Qv), where every square and the indicated product are coordinatewise. Multiplying by N yields w=N[r^2+2 r composed-with (Qv)]. This includes the cross term between the present deterministic reward and the random future reward; omitting it would generally underestimate the second moment.
The reward variance is w-v^2 coordinatewise and is nonnegative because it is an actual expected squared deviation. Starting already absorbed gives v=w=0. Scaling all rewards by a constant a scales v by a and w and the variance by a^2, consistent with their units. State-dependent random rewards, transition-dependent rewards or a terminal payment can also be studied, but their conditional second and cross terms must be derived for that altered timing model rather than inserted into this deterministic state-reward formula unchanged. Related reading: [Hitting times, returns and first-step reasoning](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Signed cumulative rewards require absolute integrability. Expanding the square gives coordinatewise cross terms and a separate variance calculation.
Return cycles and Kac identity
Fix a state i in a finite irreducible chain and let tau_i_plus=inf{n>=1:Xn=i} when X0=i. For every state j choose a positive-length path reaching i, using a positive return walk if j=i. Finitely many choices give a common horizon m and a minimum positive path probability epsilon. Starting from i there is probability at least epsilon of a positive return within m steps; after any block with no return, the same hitting estimate applies to the present state. The return survival tail is therefore geometrically bounded and E_i[tau_i_plus] is finite.
Define the cycle occupation row nu_j=E_i[sum_(k=0)^(tau_i_plus-1)1_(Xk=j)]. It is finite, nonnegative and sums to E_i[tau_i_plus]. For each k, the event {k<tau_i_plus} is measurable at time k, so conditional expectation gives E_i[1_(k<tau_i_plus)P_Xk,j]=E_i[1_(k<tau_i_plus)1_(X_(k+1)=j)]. Nonnegative sums and the finite expected cycle length justify summing this identity over k.
It follows that (nu P)_j=E_i[sum_(k=0)^(tau_i_plus-1)1_(X_(k+1)=j)]. Subtract nu_j; along each finite cycle the two occupation sums telescope to 1_(X_tau_i_plus=j)-1_(X0=j), which is zero because both endpoint states are i. Thus nu P=nu. Its normalization by the finite positive total cycle length is a stationary probability, so uniqueness in the finite irreducible chain identifies nu=E_i[tau_i_plus] pi.
Before the first positive return to i, the only visit to i counted in the cycle is the initial visit at time zero. Hence nu_i=1 and E_i[tau_i_plus]=1/pi_i. Periodicity causes no problem: return lengths may lie on a sublattice while their finite mean still obeys the identity. The proof has established the finite-chain result using an actual return-tail and occupation argument. It does not assume that arbitrary countably infinite recurrent chains have a finite invariant probability or a finite expected return. Related reading: [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Recurrence and the normalization of countable-state weights](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The first return is strictly positive in time. Finite mean return and the occupation measure of a complete cycle give the reciprocal stationary mass.
The Poisson equation and additive rewards
For a finite irreducible chain let pi be its positive stationary row and Pi=1 pi the rank-one matrix with every row pi. For a reward column r put f=r-(pi r)1, so pi f=0. Consider A=I-P+Pi. If Az=0, multiplication by pi gives pi z=0 because pi(I-P)=0 and pi Pi=pi. The original equation then reduces to (I-P)z=0. Every right harmonic column is constant by irreducibility, and a constant with pi mean zero is zero. Thus A has trivial kernel and, being square and finite-dimensional, is invertible.
Define g=A^(-1)f. Multiplication of Ag=f by pi gives pi g=pi f=0. Consequently Pi g=0 and the equation becomes (I-P)g=f. If another pi-centered solution existed, their difference would be a centered harmonic column and therefore zero. All unrestricted solutions differ only by an additive constant. This argument works even in a periodic chain, where the often-written infinite sum sum_(n>=0)P^n f need not converge.
The drift-compensated martingale for this g is M_n=sum_(k=0)^(n-1)[g(X_(k+1))-(Pg)(Xk)]. Since (Pg)(i)=g(i)-f(i), summing and telescoping gives sum_(k=0)^(n-1)f(Xk)=M_n+g(X0)-g(Xn). This is an exact path identity at every finite n. In particular E[sum f(Xk)]=E[g(X0)-g(Xn)], because each martingale increment has mean zero from any initial row.
Centering first removes the constant stationary mean. On the centered subspace I−P multiplies by a+b. The expected changes of h across each transition sum to the difference of their first and last expectations.
| Quantity | Exact result |
|---|---|
| Stationary reward πf | 7/2 |
| Centered reward | [−3/2, 3/2] |
| πh=0 solution | [−9/4, 9/4] |
| Centered contributions by time | [−3/2, −1/2, −1/6, −1/18] |
| Expected h(Xₙ) | −1/36 |
| Exact centered reward sum | −20/9 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1/3 |
| b | 1/3 |
| f | [2,5] |
| start | 0 |
| n | 4 |
With R=osc(g), the endpoint difference has absolute value at most R and each martingale increment has absolute value at most R. Therefore the expected time-average bias satisfies |E[(1/n)sum r(Xk)]-pi r|<=R/n. That is a bound on the expectation, not on every realized average; the martingale term remains random. The decomposition will support later strong-law, variance and concentration results, each with the additional reasoning required for its specific conclusion. Related reading: [Conditional increments and justified stopping](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Dependence and the variance of a time average](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Time averages without an aperiodicity assumption](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The centered Poisson inverse is valid even when single-time laws oscillate. Its exact martingale decomposition does not rely on a convergent infinite sum of kernel powers.
A full finite-chain time-average law
Use the centered reward decomposition S_n=M_n+g(X0)-g(Xn), with bounded martingale differences D_k and R=osc(g). Its second-moment sum gives E[M_N^2]<=N R^2. To prove the needed maximal inequality, fix a>0 and partition the event max_(0<=k<=N)|M_k|>=a by the first crossing time k. On that event at time k, conditional mean zero of M_N-M_k removes the cross term in M_N^2=M_k^2+2M_k(M_N-M_k)+(M_N-M_k)^2. Each such part therefore contributes at least a^2 times its probability to E[M_N^2].
Adding the disjoint crossing events and using nonnegativity on the remaining event proves P(max_(k<=N)|M_k|>=a)<=E[M_N^2]/a^2<=N R^2/a^2. No optional-stopping theorem at an unbounded random time was invoked; the proof used only finite deterministic k and conditional means. If R=0 the martingale vanishes identically, so the eventual strong-law statement is immediate. Otherwise apply the inequality with N=2^m and a=epsilon 2^m.
The resulting probabilities are at most R^2/(epsilon^2 2^m), a summable sequence in m. The elementary summable-event argument is a union bound: the probability of at least one such event for m>=K is at most the tail sum, which tends to zero as K increases. Hence the probability of infinitely many of the events is zero. For each fixed positive rational epsilon, almost surely max_(k<=2^m)|M_k|/2^m<epsilon for all sufficiently large m. Taking the countable intersection over those rationals makes this ratio converge to zero almost surely.
For 2^(m-1)<n<=2^m, |M_n|/n<=2 max_(k<=2^m)|M_k|/2^m, so M_n/n tends to zero at every integer time almost surely. The bounded endpoint difference divided by n also tends to zero. Thus (1/n)sum_(k=0)^(n-1)r(Xk) tends to pi r almost surely from any initial row. Only finite irreducibility was used to solve the Poisson equation; no aperiodicity is needed. Almost-sure convergence of averages is therefore compatible with a periodic distribution that never converges at individual times. Related reading: [Time averages without an aperiodicity assumption](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Conditional increments and justified stopping](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The maximal inequality, dyadic probability bounds and summable-event step are all proved. Periodicity does not prevent this finite-chain time-average law.
Correlation and asymptotic sampling variance
Start a finite irreducible aperiodic chain in its stationary row pi and center the real reward as f=r-(pi r)1. Let c_k=E_pi[f(X0)f(Xk)]=<f,P^k f>_pi. Stationarity makes the covariance for any ordered pair depend only on its lag. Expanding the square of S_n=sum_(j=0)^(n-1)f(Xj) counts n diagonal terms and n-k pairs in each direction at lag k, giving Var(S_n)=n c0+2 sum_(k=1)^(n-1)(n-k)c_k. Divide by n^2 for the exact sample-mean variance.
Uniform geometric convergence of finite irreducible aperiodic kernels bounds |P^k f(i)| geometrically, because pi f=0 and an expectation difference of f is bounded by osc(f) times total variation. Hence sum_k|c_k| is finite. Multiplying the mean-variance formula by n and passing to the limit gives sigma_squared=c0+2 sum_(k>=1)c_k: the factors 1-k/n tend to one and are bounded by one, so the summable covariance tail justifies the limit. This coefficient is nonnegative because it is a limit of nonnegative variances.
The column g=sum_(k>=0)P^k f also converges by that geometric bound. Its pi mean is zero and telescoping proves (I-P)g=f, so it is exactly the centered Poisson solution. Consequently sum_(k>=0)c_k=<f,g>_pi and sigma_squared=2<f,g>_pi-<f,f>_pi. This formula is valid without reversibility under the present aperiodic assumptions, but the convergent-series derivation must not be reused unchanged for a periodic chain where the terms may oscillate without decay.
If the chain is reversible, write f=sum_(j>=2)a_j e_j in its weighted orthonormal eigenbasis. Then c_k=sum_(j>=2)a_j^2 lambda_j^k and sigma_squared=sum_(j>=2)a_j^2(1+lambda_j)/(1-lambda_j), since |lambda_j|<1. Negative lambda values can reduce this coefficient below the independent-sample value ||f||_pi^2, while positive persistent modes increase it. This establishes exact finite variances and a variance asymptotic. Neither formula alone proves a central-limit theorem, independence of draws or a finite-sample normal confidence interval. Related reading: [Dependence and the variance of a time average](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Weighted symmetry and absolute spectral rates](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The exact covariance sum retains dependence and stationarity. The Poisson and reversible spectral expressions identify a variance coefficient without asserting a central-limit theorem.
A nonasymptotic reward certificate
Let g solve the centered Poisson equation in a finite irreducible chain, and set R=osc(g). Conditional on F_k, the martingale difference D_(k+1)=g(X_(k+1))-(Pg)(Xk) has mean zero and lies in an interval of width at most R. To prove a bounded-range exponential estimate, consider any such conditional finite distribution Z with mean zero and support in [a,b]. Its log moment-generating function K(t)=log E[exp(tZ)] has K(0)=K_prime(0)=0 and K_doubleprime(t) equal to the variance of Z under its exponentially tilted probability law.
That tilted law still has support in [a,b]. With midpoint c=(a+b)/2, Var_t(Z)<=E_t[(Z-c)^2]<=(b-a)^2/4<=R^2/4. The exact second-order integral identity K(t)=t^2 integral_0^1(1-s)K_doubleprime(st) ds is valid for either sign of t. It follows that K(t)<=t^2 R^2/8 and E[exp(tZ)]<=exp(t^2 R^2/8). Applying this argument to each conditional difference gives the same deterministic bound almost surely, with no assumption that successive differences are independent.
Condition successively on F_(n-1),...,F_0 to obtain E[exp(tM_n)]<=exp(n t^2 R^2/8). For a>0 and t>0, Markov inequality bounds P(M_n>=a) by exp(-ta+n t^2 R^2/8). If R>0, choosing t=4a/(nR^2) yields exp(-2a^2/(nR^2)). Repeating with -M_n and adding gives P(|M_n|>=a)<=2 exp(-2a^2/(nR^2)), capped by one if desired. Every constant follows from the actual conditional range rather than treating the rewards as independent.
The exact reward decomposition is S_n=M_n+g(X0)-g(Xn), and the last difference has absolute value at most R. For n>=1 and epsilon>0, the event |S_n|/n>=R/n+epsilon implies |M_n|>=n epsilon. Therefore P(|(1/n)sum_(k=0)^(n-1)r(Xk)-pi r|>=R/n+epsilon)<=2 exp(-2n epsilon^2/R^2) when R>0. If R=0 then g is constant, the centered reward is zero and the deviation is identically zero. The boundary correction R/n cannot be removed for an arbitrary initial law without a new argument. Related reading: [Conditional increments and justified stopping](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Time averages without an aperiodicity assumption](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The conditional exponential estimate is derived from the actual bounded potential range. Its endpoint correction and zero-range case prevent an independent-sample shortcut.
Relative entropy and total variation
For finite probability rows p and q define D(p||q)=sum_i p_i log(p_i/q_i), with natural logarithms. A zero p_i contributes zero, including when q_i=0; a positive p_i with q_i=0 gives infinite divergence. The log-sum inequality is sum_i a_i log(a_i/b_i)>=A log(A/B), where A=sum a_i and B=sum b_i. For positive B it follows from Jensen for the convex function u log u with weights b_i/B, and zero b_i cases follow by limits or give infinity. When A=0 both sides use the zero convention.
Let K be any stochastic kernel and first suppose D(p||q) is finite. For each output j apply log-sum to a_i=p_i K_ij and b_i=q_i K_ij. Their sums are (pK)_j and (qK)_j, while each nonzero common K_ij cancels inside the logarithm. Sum over j and use sum_j K_ij=1 to obtain D(pK||qK)<=D(p||q). Columns with zero total q mass also have zero p mass in this finite-divergence case. If the original divergence is infinite, the inequality holds in the extended-real sense. Taking the kernel with one output also proves D(p||q)>=0.
Choose A={i:p_i>q_i}. Its probability difference t=p(A)-q(A) equals TV(p,q). Coarse-grain the states into A and its complement using a deterministic stochastic kernel. Data processing gives D(p||q)>=d(u||v), where u=p(A), v=q(A) and d is binary divergence. For fixed 0<v<1, the binary function has d(v||v)=0, first derivative zero there and second derivative in u equal to 1/[u(1-u)]>=4 on (0,1). Integrating the curvature twice, or using its integral Taylor formula on either side of v, gives d(u||v)>=2(u-v)^2.
The endpoints u=0 or u=1 follow by continuity. If v is zero or one, finite binary divergence forces u=v; otherwise it is infinite, and the same inequality remains valid. Thus D(p||q)>=2 TV(p,q)^2, or TV(p,q)<=sqrt(D(p||q)/2). The factor depends on natural logarithms and on TV being half L1. Data processing is non-strict in general: an identity kernel preserves divergence, and no mixing theorem follows merely from nonincrease of this information-theoretic quantity. Related reading: [Finite divergence and zero-mass conventions](https://people.lids.mit.edu/yp/homepage/data/LN_fdiv.pdf); [Data processing and finite joint convexity](https://people.lids.mit.edu/yp/homepage/data/LN_fdiv.pdf); [Binary coarse graining and Pinsker constants](https://people.lids.mit.edu/yp/homepage/data/LN_fdiv.pdf). The finite log-sum proof supplies nonnegativity and data processing, then binary curvature gives the natural-log Pinsker constant with explicit boundary conventions.
Entropy decay under an actual minorization
Assume a finite kernel P has a positive stationary row pi and common minorization epsilon nu with 0<epsilon<1. Write P=epsilon 1 nu+(1-epsilon)R with stochastic residual R. For an arbitrary initial row mu, stationarity gives pi=epsilon nu+(1-epsilon)pi R and mu P=epsilon nu+(1-epsilon)mu R. These are two mixtures with the same weights and the same first component; their divergence can be compared by an explicit joint-convexity inequality.
For any pairs a,b and c,d of probability rows and weight theta in [0,1], apply the two-term log-sum inequality separately at each coordinate to the masses theta a_j,(1-theta)b_j and theta c_j,(1-theta)d_j. Summing yields D(theta a+(1-theta)b || theta c+(1-theta)d)<=theta D(a||c)+(1-theta)D(b||d), with the established zero-mass conventions. This proves the particular joint convexity needed here rather than assuming cancellation inside a logarithm.
Use that inequality with common component nu to obtain D(mu P||pi)<= (1-epsilon)D(mu R||pi R). Data processing under R then gives D(mu P||pi)<=(1-epsilon)D(mu||pi). Iterating yields D(mu P^n||pi)<=(1-epsilon)^n D(mu||pi); positivity of pi makes the initial divergence finite for every finite probability row mu. Pinsker converts it to the additional TV bound sqrt((1-epsilon)^n D(mu||pi)/2). This is one valid quantitative bound, not necessarily the sharpest available TV rate.
At epsilon=1 all rows equal nu=pi and the divergence becomes zero after one transition. At epsilon=0 only ordinary data processing remains, and the identity kernel shows that strict decay need not occur. The reference pi must be stationary for this iteration; comparing to an unrelated changing distribution is a different statement. Relative entropy here measures distinguishability of finite probability laws in natural-log units. Connecting it to physical entropy production requires a declared thermodynamic model, states and units, which this stochastic-kernel inequality alone does not supply. Related reading: [Data processing and finite joint convexity](https://people.lids.mit.edu/yp/homepage/data/LN_fdiv.pdf); [Finite divergence and zero-mass conventions](https://people.lids.mit.edu/yp/homepage/data/LN_fdiv.pdf); [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The same common mixture is applied to both probability laws. Finite joint convexity and data processing give the declared entropy factor; monotonicity alone is weaker.
Kernel errors and stationary sensitivity
Let P and P_hat be stochastic kernels on the same finite state set and delta=max_i TV(P_hat(i,.),P(i,.)). For every probability row a, the row a(P_hat-P) is a convex combination of the row errors, so its half L1 norm is at most delta. The finite matrix telescoping identity is P_hat^n-P^n=sum_(k=0)^(n-1)P_hat^k(P_hat-P)P^(n-1-k). From the same initial row mu, each left factor mu P_hat^k is a probability row and each right stochastic factor cannot increase the norm of a zero-sum signed row.
The triangle inequality consequently gives TV(mu P_hat^n,mu P^n)<=n delta, with the universal cap one and equality zero at n=0. The same reasoning from every point start bounds the maximum row TV between P_hat^m and P^m by min(1,m delta). This accumulation is controlled by the actual number of transitions, not an elapsed physical time unless a time-per-transition convention has separately been specified.
Suppose the reference kernel has tau(P)=c<1, with stationary row pi, and let pi_hat be any stationary row of P_hat. Subtracting their stationarity equations gives pi_hat-pi=pi_hat(P_hat-P)+(pi_hat-pi)P. Thus TV(pi_hat,pi)<=delta+c TV(pi_hat,pi), and division by 1-c yields the bound min(1,delta/(1-c)). Existence of pi_hat follows from finiteness, but this inequality by itself does not assert uniqueness for the perturbed chain.
If only a block power satisfies tau(P^m)=c_m<1, use the same stationary rows for the two m-step kernels. Their uniform row error is at most m delta, giving TV(pi_hat,pi)<=min(1,m delta/(1-c_m)). The denominators require strict contraction and cannot be silently used when they vanish. All premises concern every full transition row on the declared state set. Agreement of a fitted model on only the states seen in a short sample supplies neither the uniform delta nor a justified stationary sensitivity guarantee. Related reading: [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Every transition row enters the uniform error bound. A strict reference contraction, or an explicit block contraction, is needed before dividing by a stability denominator.
When lumping preserves the Markov property
Partition the finite state set into nonempty blocks B1,...,Br and observe only the block index Z_n containing Xn. Suppose for each source block Ba and target block Bb, the sum sum_(j in Bb)P_ij has the same value for every i in Ba. Define that value as R_ab. It is nonnegative and its sum over target blocks is one because the blocks partition the state space. Thus R is a candidate stochastic kernel on observed blocks.
Condition on any positive-probability observed history (Z0,...,Zn) ending at Ba. Its conditional hidden state at time n is some probability mixture over the states i in Ba, generally depending on the entire observed history. Conditional on Xn=i, the probability of Z_(n+1)=b is the specified block sum R_ab by the original Markov rule. Averaging this constant value over the conditional hidden mixture leaves R_ab. Therefore the block process has homogeneous kernel R for every initial hidden-state distribution.
For necessity, require a single same aggregated kernel R to work for every initial hidden law. Start once at the point state i and once at i_prime in the same block Ba. Both block processes start deterministically at a, so their first-step probability to Bb must equal the same R_ab. Those probabilities are exactly the corresponding outgoing block sums from i and i_prime. They must agree for each target block, establishing the row-sum criterion. This all-initial-law condition is the strong lumpability statement proved here.
An initial mixture chosen specially can conceal different outgoing hidden rows, and its stationary one-step observed table can exist even when the full observed history changes the next-symbol law. Such a table does not prove this criterion or the Markov property. A general hidden-state emission model is likewise not automatically a Markov chain on observations. The proof above preserved every observed history, rather than replacing the conditional hidden mixture by a fixed uniform or stationary distribution without justification. Related reading: [Transition laws and conditional paths](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [The posterior distribution as a sufficient state](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). Full-history sufficiency follows from equal outgoing block sums. Delta starts in a single block prove necessity for one common aggregated kernel for every initial law.
All stationary laws of a reducible finite chain
Let C1,...,Cr be the closed irreducible communicating classes of a finite chain, and T all remaining states. The uniform closed-class entrance bound implies that, from any transient starting state, the probability of still being in T at time n tends geometrically to zero. If pi is any stationary probability, pi(T)=P_pi(Xn in T)=sum_(i in T)pi_i P_i(Xn in T), since no closed class can exit into T. The finite sum on the right tends to zero, so pi(T)=0.
Distinct closed classes have no transitions between them. In the stationary equation for coordinates of a class Ca, all incoming contributions from T vanish because pi has zero transient mass, and all contributions from other closed classes vanish by closure. Thus the restricted row pi_Ca is stationary for P_Ca,Ca. If its mass w_a=pi(Ca)>0, normalization gives the unique stationary probability pi^(a) of that finite irreducible restriction. If w_a=0, every coordinate of that restricted row is zero.
Embed each pi^(a) as a full-state row with zeros outside Ca. The preceding reasoning gives pi=sum_a w_a pi^(a), with w_a>=0 and sum_a w_a=1. Conversely any such convex combination is stationary: every embedded class row is stationary in the full kernel by closure, and multiplication is linear. Disjoint supports make the mixture weights unique. This describes all stationary probabilities, rather than selecting one arbitrarily from a possibly multidimensional left eigenspace.
There is a unique stationary probability exactly when there is one closed communicating class. The full chain may still be reducible because transient states can feed that class. Irreducibility is therefore sufficient, but not necessary, for uniqueness. Multiple closed classes give genuinely distinct stationary laws even if their internal chains are aperiodic and individually mixing. Periodicity instead affects convergence within each class and is separate from the number of stationary mixtures. Related reading: [Reversal and closed communicating classes](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Transient survival eliminates stationary mass outside closed classes. The remaining class masses give the complete convex family, including reducible uniqueness.
Cesaro convergence for every finite chain
For any finite stochastic matrix, ||P^n z||_infinity<=||z||_infinity, so every eigenvalue has modulus at most one. A Jordan chain at a unit-modulus eigenvalue would produce a term n lambda^(n-1)v and contradict that power bound; hence all unit-circle blocks are semisimple. On a block with |lambda|<1, powers are finite sums of polynomial factors in n times decaying powers of lambda and tend to zero, including the nilpotent zero-eigenvalue case. Their Cesaro averages consequently tend to zero as well.
For a unit eigenvalue lambda distinct from one, its scalar Cesaro mean is (1-lambda^N)/(N(1-lambda)), which tends to zero. The eigenvalue-one blocks are identity blocks and their averages remain identity. Applying these facts in a finite Jordan representation proves that K_N=(1/N)sum_(n=0)^(N-1)P^n converges to a matrix K. Each K_N is stochastic, so K is stochastic. The telescoping identity P K_N-K_N=(P^N-I)/N and its right-multiplied counterpart yield PK=KP=K.
Every row of K is therefore a stationary probability and has the closed-class mixture form sum_a w_ia pi^(a). Let h_a(i) be the probability of eventual entrance to closed class Ca. Uniform eventual entrance to some closed class gives sum_a h_a(i)=1, and first-step conditioning gives Ph_a=h_a. On class Cb, h_a is the constant delta_ab. Therefore P^n h_a=h_a, K_N h_a=h_a and K h_a=h_a. Applying the row mixture to this last identity gives w_ia=h_a(i), identifying the previously unspecified weights.
Thus the exact limit is K_ij=sum_a h_a(i)pi_j^(a), where the embedded class laws vanish off their class. Multiplying K by itself and using pi^(a)h_b=delta_ab gives K^2=K, so it is a projection, though generally not an orthogonal one. Cesaro averages from initial row mu converge to sum_a(mu h_a)pi^(a), even if individual class dynamics are periodic. This proves the limit of averaged powers for every finite chain and keeps class-entry probabilities distinct from a freely chosen stationary mixture. Related reading: [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Reversal and closed communicating classes](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Weighted symmetry and absolute spectral rates](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Power-bounded spectral modes and class-hitting columns identify the Cesaro projection. This finite matrix argument does not promise countable-state compactness.
Ordinary convergence with several closed classes
Suppose every closed irreducible class of a finite chain is aperiodic. Let tau be the first entrance time to their union and C(X_tau) the class entered. The finite transient-region argument makes tau almost surely finite with a uniform geometric tail, including tau=0 for an initially closed state. On each closed class, the restricted kernel is finite, irreducible and aperiodic, so its distribution from any state converges uniformly to its own stationary row pi^(a).
For an initial law mu, compare Law(Xn) with K_mu=E_mu[pi^(C(X_tau))], the stationary mixture weighted by class-entry probabilities. Fix an integer L and take n>=L. On {tau<=L}, strong Markov gives the continuation law from X_tau as the corresponding class kernel raised to n-tau. There are finitely many entry times at most L and finitely many entry states, so their maximum TV error from the class law tends to zero as n tends to infinity. This step uses the actual stopping time tau and the previously proved stopped-path law.
The contribution from {tau>L} has total mass P_mu(tau>L) in both the actual law and the target class-law mixture, so their TV difference there is at most that mass. Thus the full TV distance is at most the early-entry maximum error plus P_mu(tau>L). First let n tend to infinity with L fixed, and then let L tend to infinity. The distance tends to zero. Its limit is K_mu=sum_a(mu h_a)pi^(a), the same mixture found by the Cesaro argument, proving ordinary convergence of all rows and hence of P^n.
Conversely, if some closed irreducible class has period d>1, start at a point within that class. Its laws remain inside the class and have TV distance at least 1-1/d from its unique stationary row. Any ordinary limiting row would have to be stationary, since taking the limit in mu_(n+1)=mu_n P gives invariance, and would still be supported on that class. It would therefore be that unique row, a contradiction. Hence all powers converge exactly when every closed class is aperiodic. Special stationary or suitably mixed starts can still converge when a periodic class is present. Related reading: [Periods, irreducibility and stationary probability](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Reversal and closed communicating classes](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Ordinary matrix powers converge when every closed class is aperiodic. A periodic class prevents convergence of the whole matrix sequence even if selected initial mixtures converge.
A countable birth-death normalization test
Consider states 0,1,2,... with p,q>0 and p+q=1. At state zero set P00=q and P01=p, and at every n>=1 set P_n,n+1=p and P_n,n-1=q. This defines the reflecting nearest-neighbor convention explicitly; reflection here includes a hold at zero instead of a negative-state move. If a stationary probability pi exists, its zero-coordinate equation is pi0=q pi0+q pi1, so p pi0=q pi1.
For n>=1 the stationary equation is pi_n=p pi_(n-1)+q pi_(n+1). Define the net adjacent flow J_n=p pi_n-q pi_(n+1). Rearranging the interior equation gives J_n=J_(n-1), while the boundary equation gives J0=0. Hence every J_n is zero and pi_(n+1)=(p/q)pi_n. Induction forces pi_n=pi0 r^n with r=p/q. This derivation shows necessity for every stationary probability, not merely a detailed-balance guess.
If p<q then 0<r<1, and the geometric sum normalizes these weights uniquely: pi0=1-r and pi_n=(1-r)r^n. The adjacent balance identities and the boundary equation verify stationarity directly. All entries are positive and sum to one, so a genuine stationary probability has been constructed. For example its mean state, when desired, is (1-r)sum_n n r^n=r/(1-r), obtained from the convergent geometric derivative.
If p>=q then r>=1. A positive pi0 would make the weights nonsummable, while pi0=0 forces every coordinate zero and cannot give total mass one. Thus no stationary probability exists in that range, although the transition rows remain perfectly valid. The compact probability-simplex argument for finite state spaces cannot be copied to this countable setting, where probability mass may move arbitrarily far from every fixed finite set. Existence requires the actual normalization check just performed. Related reading: [Recurrence and the normalization of countable-state weights](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Formal geometric weights must be normalized over all states, including zero. The resulting probability exists exactly in the declared downward-drift regime.
A recurrent countable chain without a stationary probability
For the symmetric nearest-neighbor walk on all integers, each step moves by +1 or -1 with probability one half. Finite directed paths show irreducibility. On a finite interval {0,...,N}, stop at either endpoint. The interior is a finite proper-exit region, and the probability of reaching N before zero solves u0=0,uN=1 and u_j=(u_(j-1)+u_(j+1))/2. Its first differences are constant, so u_j=j/N. From state one, the probability of hitting zero before N is 1-1/N and is bounded above by the probability of ever hitting zero on the whole line.
Let N increase. The last lower bound tends to one, proving almost-sure eventual hitting of zero from one. More generally from any fixed positive j it is at least 1-j/N for N>j and hence also one; negative starts follow by symmetry. A first step from zero lands at either one or minus one, from which the same argument returns almost surely. Translation invariance gives recurrence of every state. This proves recurrence directly from finite-interval probabilities, without assuming that recurrence entails a normalizable invariant law.
Let tau be the hitting time of zero starting from one. Suppose E[tau] were finite. Pathwise X_tau=1+sum_(k>=0)1_(tau>k)(X_(k+1)-Xk). The expected sum of the absolute stopped increments is sum_k P(tau>k)=E[tau], so absolute integrability justifies exchanging expectation and the series. The event {tau>k} is F_k-measurable and the next fair increment has conditional mean zero, making every expected summand zero. Thus E[X_tau]=1, contradicting X_tau=0 almost surely. Therefore E[tau]=infinity, and the first positive return time to zero also has infinite mean after its first step.
Finally a stationary probability would satisfy pi_j=(pi_(j-1)+pi_(j+1))/2 for every integer j. Its successive differences are constant, so pi_j=a+bj on the entire two-sided integer line. Nonnegativity at both positive and negative infinity forces b=0. A positive constant is not summable and the zero constant has no mass, so no stationary probability exists. Recurrence, infinite mean return and failure of probability normalization have thus each received a separate proof; the finite irreducible Kac identity was not applied outside its proved domain. Related reading: [Recurrence and the normalization of countable-state weights](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Finite gambler hitting equations](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Conditional increments and justified stopping](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Recurrence, infinite mean return and absence of a stationary probability are proved separately. A finite return almost surely does not imply a finite mean.
Prediction and filtering in a hidden finite chain
Declare a finite hidden state chain X0,X1,... with transition matrix P and initial row alpha0. At each time t>=1, transition first to Xt and then draw a finite observed symbol Yt. Given the entire hidden path, emissions at different times are independent with P(Yt=y | hidden path)=b_Xt(y), where each b_j is a probability row on the symbol alphabet. These conditional-independence and timing assumptions are part of the model, not facts inferred from a short observed sequence.
Suppose a positive-probability observation prefix through time t-1 has posterior alpha_(t-1) on X_(t-1). Conditioning on that hidden state and using the transition rule gives the predictive row beta_t=alpha_(t-1)P for Xt before seeing Yt. For a new observed symbol y_t, the unnormalized joint weights are beta_t(j)b_j(y_t). Their sum c_t=sum_j beta_t(j)b_j(y_t) is its conditional likelihood. If c_t>0, ordinary Bayes division yields alpha_t(j)=beta_t(j)b_j(y_t)/c_t.
Induction applies the same argument at every time and shows that alpha_t represents the entire observation record through its current posterior, rather than only the latest symbol. The probability chain rule gives P(Y1=y1,...,Yn=yn)=product_(t=1)^n c_t, provided the earlier factors are positive so each conditional step is defined. If a factor is zero, the full prefix already has probability zero and its posterior is not defined by this division. An arbitrary normalized replacement would be an additional convention, not evidence from the impossible observation.
Advance the hidden chain before applying the likelihood of the actual observation. Bayes normalization applies only when the denominator is positive. The next prediction propagates the resulting posterior through the same transition matrix.
| Quantity | Exact result |
|---|---|
| Initial law | [1, 0] |
| Prediction at time 1 | [3/4, 1/4] |
| Likelihood-weighted masses | [3/20, 1/5] |
| Observation evidence | 7/20 |
| Posterior given the observed symbol | [3/7, 4/7] |
| Following prediction | [43/84, 41/84] |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| P | [["3/4","1/4"],["1/3","2/3"]] |
| mu | [1,0] |
| emission | ["1/5","4/5"] |
The emissions themselves need not be Markov. With deterministic emissions that merge two states of a three-cycle into one symbol, distinct observed histories can lead to different hidden mixtures despite the same latest symbol, producing different next-symbol laws. The filter remains valid because it retains the hidden-state posterior. No parameter-learning theorem, conditional independence among observed symbols or universal identifiability conclusion follows from these known-model prediction and normalization identities. Related reading: [The posterior distribution as a sufficient state](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf); [Transition laws and conditional paths](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). Prediction comes before the new-state emission in this model. The positive normalizer is a conditional likelihood, and an impossible observation gives no posterior by this division.
Time-dependent kernels and loss of initial memory
For time-dependent finite kernels P0,P1,..., let Pn describe the transition from time n to time n+1. The row distribution at time n is mu_n=mu0 P0 P1 ... P_(n-1), in chronological left-to-right order. This follows by successive conditioning and differs from a power of a single matrix unless the kernels actually agree. The product is stochastic, and the empty product at n=0 is the identity.
For two initial rows mu0 and nu0 propagated through this same sequence, apply the Dobrushin contraction one step at a time. The result is TV(mu_n,nu_n)<=TV(mu0,nu0) product_(k=0)^(n-1)tau(Pk). If this product tends to zero, the final-time law uniformly loses dependence on the initial row. A simple sufficient condition is tau(Pk)<=c<1 for all k, yielding c^n. More general block or product bounds can also work, but their chronological kernels must be the actual ones applied.
Loss of initial memory does not ensure a limiting row. On two states take A with both rows (1,0) and B with both rows (0,1), and alternate A then B forever. Each kernel has coefficient zero, so all starting rows are forgotten after the first step. Yet the common final law alternates (1,0),(0,1),... and does not converge. Products satisfy AB=B and BA=A, so swapping kernel order would change the result. No row is stationary for both A and B.
If a common stationary row pi is separately known to satisfy pi Pk=pi for every k, then choosing nu0=pi makes nu_n=pi and a vanishing coefficient product does prove mu_n tends to pi. This is a sufficient extra premise, not an automatic consequence of weak loss of initial memory. Time-dependent driving, changing environments or policies therefore require explicit kernel order and an actual target-law argument; the homogeneous stationary theorem cannot be applied just because every individual row is a probability. Related reading: [Total variation, common mass and geometric convergence](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf); [Transition laws and conditional paths](https://pages.uoregon.edu/dlevin/MARKOV/mcmt2e.pdf). The ordered product uses the actual time sequence of kernels. Loss of initial memory does not by itself create a common stationary law or a limiting distribution.
Finite continuous-time generators and uniformization
Let G be a finite real matrix whose off-diagonal entries are nonnegative rates and whose rows sum to zero. Its diagonal entry is minus its total exit rate. If the maximum exit rate a is positive, choose any lambda>=a with lambda>0 and put R=I+G/lambda. Every off-diagonal entry of R is nonnegative, each diagonal is 1-a_i/lambda>=0 and every row sums to one. Thus R is a genuine stochastic matrix, whereas choosing a smaller lambda can give a negative diagonal and invalidates this probabilistic uniformization.
Since G=lambda(R-I) and R commutes with I, the absolutely convergent finite matrix-exponential series gives exp(tG)=exp(-lambda t) exp(lambda t R)=sum_(k>=0)exp(-lambda t)(lambda t)^k R^k/k! for t>=0. The scalar weights are nonnegative and sum to one, and every R^k is stochastic, so exp(tG) is stochastic. At t=0 it is I. This proves a family of valid transition kernels directly from the declared rate conditions, without treating rates themselves as one-step probabilities.
Absolute convergence permits differentiation term by term and proves dP(t)/dt=G P(t)=P(t)G with P(t)=exp(tG). Commuting exponentials give P(t+s)=P(t)P(s), and P_prime(0)=G. A probability row pi satisfies pi G=0 exactly when it is stationary for every P(t): one direction follows from the exponential series, and the other by differentiating pi P(t)=pi at zero. For the chosen positive lambda, the same condition is equivalent to pi R=pi, so existence of a finite stationary probability also follows from the discrete kernel.
Choose a clock rate at least as large as the exit rates. Adding self-transitions makes I+G/λ stochastic. Condition on the Poisson number of rings and average the corresponding powers. All omitted summands are nonnegative and each row power has mass one.
| Quantity | Exact result |
|---|---|
| Embedded transition matrix | [[1/2, 1/2], [1/2, 1/2]] |
| Exact transition matrix | [[1/2 + (1/2)e^(−2), 1/2 + (−1/2)e^(−2)], [1/2 + (−1/2)e^(−2), 1/2 + (1/2)e^(−2)]] |
| Partial transition kernel | e^(−2) · [[11/3, 8/3], [8/3, 11/3]] |
| Omitted Poisson mass | 1 − (19/3) e^(−2) |
| Entrywise error bound | At most the exact tail 1 − (19/3) e^(−2) (approximately 0.1428765) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1 |
| b | 1 |
| lambda | 2 |
| t | 1 |
| n | 3 |
| Included count k | Probability |
|---|---|
| 0 | 2^0·e^(−2)/1 |
| 1 | 2^1·e^(−2)/1 |
| 2 | 2^2·e^(−2)/2 |
| 3 | 2^3·e^(−2)/6 |
| All k>3 | 1 − (19/3) e^(−2) |
If G=0, set P(t)=I directly; every probability row is stationary, and no division by a zero uniformization rate is needed. A positive arbitrary lambda would also give R=I. Rate entries have units inverse time, and tG must be dimensionless. Uniformization includes virtual self-transitions of R, so its common tick rate is not each state's physical exit rate. The stochastic-series and semigroup identities proved here do not by themselves supply a separate construction of a Poisson counting process, which belongs to its own subsequent lesson. Related reading: [Holding intervals, jump probabilities and rates](https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/39a87732501aeba518cb3cc47e7e3541_MIT6_262S11_chap06.pdf); [Finite generators and a common Poisson clock](https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/39a87732501aeba518cb3cc47e7e3541_MIT6_262S11_chap06.pdf). Uniformization uses a positive clock rate at least as large as every exit rate. The full series preserves probability mass and distinguishes virtual ticks from actual state changes.
Compare finite transition paths, exact mixing, hitting moments, filtering and continuous-time uniformization. Each selected case retains its assumptions and exact calculations.
Conditional paths and three-step kernels
A single route shares its final state
The Markov property multiplies successive conditional transition probabilities by the specified initial mass. Matrix multiplication sums over the intermediate states. If any selected transition is impossible, the joint path is impossible even if the final state is reachable by another path.
| Quantity | Exact result |
|---|---|
| Transition matrix P³ | [[43/64, 21/64], [21/32, 11/32]] |
| Specified sequence | 0 → 1 → 1 → 0 |
| Product factors | 1 × 1/4 × 1/2 × 1/2 |
| Joint path probability | 1/16 |
| Final marginal μP³ | [43/64, 21/64] |
| Final state total probability | 43/64 |
| Total mass | 1 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| P | [["3/4","1/4"],["1/2","1/2"]] |
| mu | [1,0] |
| path | [0,1,1,0] |
| Step | State 0 | State 1 |
|---|---|---|
| 0 | 1 | 0 |
| 1 | 3/4 | 1/4 |
| 2 | 11/16 | 5/16 |
| 3 | 43/64 | 21/64 |
One reversible mode governs two-state convergence
Positive decay mode
All probabilities lie in a one-dimensional affine segment. Subtracting the stationary probability leaves a single signed mode. Total variation for two states is the absolute difference in the first probability. Adding half identity preserves π and maps λ to (1+λ)/2.
| Quantity | Exact result |
|---|---|
| Stationary π | [2/3, 1/3] |
| Detailed balance π₀a = π₁b | 1/6 |
| Original / half-lazy mode | (1/4, 5/8) |
| Selected μPⁿ | [171/256, 85/256] |
| Original total variation | 1/768 |
| Half-lazy total variation | 625/12288 |
| Convergence | Both converge geometrically. A negative original mode alternates. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1/4 |
| b | 1/2 |
| start | 0 |
| n | 4 |
Absorption moments solve two linked matrix equations
Symmetric transient recycling
The geometric matrix series N exists because each row of Q has sum less than one. The first-step equations are (I−Q)m=1 and (I−Q)s=2m−1. Thus s=2Nm−m and the variance is s minus the square of m. The row-sum bound directly yields almost-sure absorption.
| Quantity | Exact result |
|---|---|
| Fundamental matrix N | [[8/3, 4/3], [4/3, 8/3]] |
| Mean E[τ] | [4, 4] |
| Raw second moment E[τ²] | [28, 28] |
| Variance of τ | [12, 12] |
| Maximum row sum of Q | 3/4 |
| Survival bound after k steps | (3/4)^k |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| Q | [["1/2","1/4"],["1/4","1/2"]] |
The Poisson equation separates the mean reward from transients
Starting below stationary reward
Centering first removes the constant stationary mean. On the centered subspace I−P multiplies by a+b. The expected changes of h across each transition sum to the difference of their first and last expectations.
| Quantity | Exact result |
|---|---|
| Stationary reward πf | 7/2 |
| Centered reward | [−3/2, 3/2] |
| πh=0 solution | [−9/4, 9/4] |
| Centered contributions by time | [−3/2, −1/2, −1/6, −1/18] |
| Expected h(Xₙ) | −1/36 |
| Exact centered reward sum | −20/9 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1/3 |
| b | 1/3 |
| f | [2,5] |
| start | 0 |
| n | 4 |
A prediction is not a filtered probability
Evidence favors the other state
Advance the hidden chain before applying the likelihood of the actual observation. Bayes normalization applies only when the denominator is positive. The next prediction propagates the resulting posterior through the same transition matrix.
| Quantity | Exact result |
|---|---|
| Initial law | [1, 0] |
| Prediction at time 1 | [3/4, 1/4] |
| Likelihood-weighted masses | [3/20, 1/5] |
| Observation evidence | 7/20 |
| Posterior given the observed symbol | [3/7, 4/7] |
| Following prediction | [43/84, 41/84] |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| P | [["3/4","1/4"],["1/3","2/3"]] |
| mu | [1,0] |
| emission | ["1/5","4/5"] |
Uniformization sums an exact Poisson mixture
An extra self-transition clock
Choose a clock rate at least as large as the exit rates. Adding self-transitions makes I+G/λ stochastic. Condition on the Poisson number of rings and average the corresponding powers. All omitted summands are nonnegative and each row power has mass one.
| Quantity | Exact result |
|---|---|
| Embedded transition matrix | [[1/2, 1/2], [1/2, 1/2]] |
| Exact transition matrix | [[1/2 + (1/2)e^(−2), 1/2 + (−1/2)e^(−2)], [1/2 + (−1/2)e^(−2), 1/2 + (1/2)e^(−2)]] |
| Partial transition kernel | e^(−2) · [[11/3, 8/3], [8/3, 11/3]] |
| Omitted Poisson mass | 1 − (19/3) e^(−2) |
| Entrywise error bound | At most the exact tail 1 − (19/3) e^(−2) (approximately 0.1428765) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 1 |
| b | 1 |
| lambda | 2 |
| t | 1 |
| n | 3 |
| Included count k | Probability |
|---|---|
| 0 | 2^0·e^(−2)/1 |
| 1 | 2^1·e^(−2)/1 |
| 2 | 2^2·e^(−2)/2 |
| 3 | 2^3·e^(−2)/6 |
| All k>3 | 1 − (19/3) e^(−2) |
Worked examples
Two-state weather and an exact mixing time
Use P=[[4/5,1/5],[3/10,7/10]] and initial row (1,0). Derive the stationary law, exact nth distribution, total-variation error and the least integer n for which that error is at most 1/100. Include n=0.
- Write a stationary row as (a,1-a). Its first coordinate after one step is (4/5)a+(3/10)(1-a)=3/10+a/2. Stationarity therefore requires a=3/10+a/2, giving a=3/5 and the second coordinate 2/5. Both coordinates are positive and sum to one; the two cross flows are (3/5)(1/5)=3/25 and (2/5)(3/10)=3/25. These are probability rows, not column updates.
- For an arbitrary first coordinate a_n, the same forward update is a_(n+1)=3/10+a_n/2. Subtracting its fixed point gives a_(n+1)-3/5=(a_n-3/5)/2. Starting with a_0=1, finite induction yields a_n=3/5+(2/5)2^(-n). The second coordinate is its complement. At n=0 the formula returns exactly (1,0), and at n=1 it returns the actual first row (4/5,1/5).
- The difference from pi is the signed row ((2/5)2^(-n),-(2/5)2^(-n)). Its L1 norm is twice the positive first entry, so total variation, defined as half that norm, is (2/5)2^(-n). The row difference also shows the nontrivial eigenvalue 1/2 directly; no independent-sample assumption or matrix-power computation is being substituted for the recurrence.
- The required inequality is (2/5)2^(-n)<=1/100, equivalently 2^n>=40. At n=5 the exact error is 1/80, which is larger than 1/100, while at n=6 it is 1/160, which is smaller. Since the error halves at each step, every earlier nonnegative integer fails and 6 is the least. The answer counts transitions; a physical duration requires a separately declared duration per step.
pi=(3/5,2/5); mu_n=(3/5+(2/5)2^(-n),2/5-(2/5)2^(-n)); TV=(2/5)2^(-n). The first admitted integer meeting 1/100 is n=6.
Two transient states and two absorbing outcomes
Order states (T1,T2,A,B), with Q=[[1/2,1/4],[0,1/2]], R=[[1/4,0],[1/4,1/4]] and absorbing identity on A,B. Compute N, both full absorption rows, mean/second/variance absorption times and the expected total pre-absorption reward for r=(2,-1).
- Before absorption the two-state block is Q=[[1/2,1/4],[0,1/2]]. From T2 there is exit probability 1/2 each step; from T1 there is at least immediate exit probability 1/4, so survival has a uniform geometric bound. Thus the visit series converges. Solving (I-Q)N=I with I-Q=[[1/2,-1/4],[0,1/2]] gives N=[[2,1],[0,2]]; multiplying in either order verifies the identity without discarding a transient state.
- Each row of NR sums the probabilities of all transient visits followed by the final boundary transition. Here NR=[[2,1],[0,2]]*[[1/4,0],[1/4,1/4]]=[[3/4,1/4],[1/2,1/2]]. These rows sum to one because eventual exit is proved. Starting T1 therefore reaches A with probability 3/4 and B with 1/4; starting T2 gives one half each. N itself counts visits including the initial transient visit and is not an absorption-probability matrix.
- Let tau be the number of transitions until first reaching A or B, with tau=0 if already absorbed. The first-step recursions on transient states are h=1+Qh and s=1+2Qh+Qs. Hence h=N1=(3,2), 2h-1=(5,3), and s=N(5,3)=(13,6). The coordinate variances are s-h^2=(13-9,6-4)=(4,2). Geometric survival justifies these second moments and the first-step conditioning, rather than inferring finiteness from an inverse alone.
- Receive r=(2,-1) at each transient visit before its outgoing transition and zero after absorption. Then the total reward has expectation v=r+Qv, so v=Nr=(2*2-1,-2)=(3,-2). A negative second coordinate is valid because these are signed rewards, not nonnegative times or probability masses. Its absolute expectation is finite since the absolute reward is at most 2 per visit and the mean lifetime is finite. All quantities use the same pre-transition reward and initial-visit convention.
N=[[2,1],[0,2]]; absorption rows (3/4,1/4),(1/2,1/2); h=(3,2), s=(13,6), variance=(4,2); reward mean=(3,-2).
A periodic cycle and its lazy alternative
For the deterministic directed cycle 0->1->2->0, find its stationary law, period and exact transition powers/Cesaro limit. For the changed kernel L=(I+P)/2, compute L^2, a common row minorization and its Dobrushin coefficient; explain why this changes the dynamics.
- The transition matrix P has one unit entry along each directed cycle edge. Applying it n times moves state i to i+n modulo 3, so P^3=I and P^(3k+r)=P^r. Stationarity requires equal consecutive coordinates, giving the uniform row pi. Every return length to a state is a positive multiple of 3 and every such multiple occurs, so the period is 3. Starting from a single state, the distribution keeps cycling and does not approach pi.
- The Cesaro average of each full group of three successive powers is (I+P+P^2)/3, whose rows are uniform. A partial final group has at most two stochastic matrices and contributes at most a constant divided by the number of terms, so the average tends to the matrix with all rows pi. A stationary initial row is stationary at every time despite the periodic obstruction from a point mass; these are different initial-law statements.
- For the changed kernel L=(I+P)/2, direct algebra gives L^2=(I+2P+P^2)/4, with the three displayed rows. Their componentwise minimum is (1/4,1/4,1/4), of total mass 3/4. Thus L^2(i,.)>=(3/4)nu with nu uniform. Any two distinct rows differ by 1/4 in two coordinates and zero in the third, so their total variation is 1/4. This equals the sharp Dobrushin coefficient and the bound 1-3/4.
- Uniform pi is stationary for both I and P, hence for L. The block coefficient yields TV(mu L^(2k),pi)<=(1/4)^k TV(mu,pi), and an extra stochastic step cannot increase it. For a point start its initial TV is 2/3. This proves a mixing bound for L, not for P: adding holding probability changes every path law and the number of actual moves per recorded step. It is an algorithmic modification, not a relabeling of the original time parameter.
The directed cycle has pi=(1/3,1/3,1/3), period 3 and cycling powers. L^2 has rows (1/4,1/2,1/4),(1/4,1/4,1/2),(1/2,1/4,1/4); its common mass is 3/4 and tau(L^2)=1/4.
Weighted symmetry and an exact spectral mode
Use P=[[1/2,1/2,0],[1/4,1/2,1/4],[0,1/2,1/2]]. Derive the stationary law, detailed balance, all eigenvalues and the action on f=(-1,0,1),g=(1,-1,1). Compute the exact nth law from the left endpoint for n>=1, its total variation and the comparison spectral bound.
- The candidate pi=(1/4,1/2,1/4) sums to one. Each neighboring stationary flow is 1/8 in either direction: pi0 P01=(1/4)(1/2)=1/8=pi1 P10, and pi1 P12=(1/2)(1/4)=1/8=pi2 P21. The two nonneighbor flows are both zero; diagonal terms agree trivially. Detailed balance therefore proves stationarity and weighted self-adjointness. A zero direct edge 0->2 does not prevent communication through state 1.
- Let 1 denote the constant function, f=(-1,0,1) and g=(1,-1,1). Row multiplication on functions gives P1=1, Pf=f/2 and Pg=0. These three functions are linearly independent, so they supply the whole three-dimensional spectrum. Both f and g have zero pi mean and are orthogonal in L2(pi); ||f||^2_pi=1/2. Thus the Dirichlet form for f is <f,(I-P)f>_pi=(1/2)(1/2)=1/4, with the normalization explicit.
- For initial delta0 the centered density with respect to pi is (3,-1,-1)=-2f+g. Reversibility makes the centered density evolve under P itself. At every n>=1 the g component vanishes and the remaining density is -2*2^(-n)f. Multiplying coordinatewise by pi gives the stated distribution. At n=1 it is (1/2,1/2,0), the actual first row. The formula was not asserted at n=0, where the initial law is delta0 and the g component is still present.
- The two nonzero probability errors at n>=1 are opposite and each has magnitude (1/2)2^(-n), so TV has exactly that value. The general point-start spectral estimate uses rho=1/2 and ||delta0/pi-1||_pi=sqrt(1/pi0-1)=sqrt3, giving TV<=sqrt3*2^(-n)/2. It is a valid larger bound, not an exact error. Starting from the center is a distinct special case: its first transition row is already pi.
pi=(1/4,1/2,1/4); eigenvalues 1,1/2,0. For n>=1, mu_n=(1/4+(1/2)2^(-n),1/2,1/4-(1/2)2^(-n)) from state 0, with TV=(1/2)2^(-n), below the spectral bound (sqrt(3)/2)2^(-n).
A refresh coupling on two bits
On {00,01,10,11}, choose either coordinate with probability 1/2 each step and refresh it with a fresh fair bit. Derive the transition matrix/stationary law. Couple two initial strings by the same chosen coordinate and same fresh bit, derive a valid worst-case meeting tail and use it to bound mixing. Treat n=0 separately.
- At any string, updating either coordinate to its existing bit leaves the string unchanged. Each of those two disjoint events has probability (1/2)(1/2)=1/4, giving self probability 1/2. Flipping a chosen coordinate has probability 1/4 and cannot flip the other at the same step. This yields the four displayed rows. The matrix is symmetric with row sums one, so uniform pi is stationary; neighboring single-bit moves connect all states and positive self-loops remove periodicity.
- To couple two chains, independently at every time choose one fair coordinate and one fresh fair bit, and give BOTH chains those same two random inputs. Each marginal has exactly the prescribed refresh rule. Once a coordinate has been refreshed, that coordinate agrees in the two chains; future shared refreshes preserve agreement. Once both coordinates agree, all later strings agree. This is a valid sticking coupling, rather than merely comparing two independently drawn strings after the fact.
- For opposite starting strings, meeting has occurred exactly when both coordinates have been selected at least once. For n>=1, failure means that all n choices were coordinate 1 or all were coordinate 2. These disjoint events each have probability 2^(-n), giving P(tau>n)=2^(1-n). Other initial pairs have at most that tail, because some coordinates may agree already. At n=0 the worst tail is 1; the two empty-choice events coincide there and must not be counted twice.
- Take the first chain at any chosen initial state and the second initially uniform, with the later shared refresh randomness independent of those initial states. Its second marginal stays pi. The coupling inequality gives TV(Law(X_n),pi)<=min(1,2^(1-n)) for n>=1, and the trivial bound 1 at n=0. The bound can be conservative because disagreement probability of this particular coupling need not be the maximal-coupling mismatch. No claim of independent observed samples or an exact TV formula follows from it.
In order 00,01,10,11 the rows are (1/2,1/4,1/4,0),(1/4,1/2,0,1/4),(1/4,0,1/2,1/4),(0,1/4,1/4,1/2). Uniform pi is stationary, and worst meeting tail is 1 at n=0 and 2^(1-n) for n>=1.
Return cycles and a Poisson potential
Use P=[[3/4,1/4],[1/2,1/2]] and reward r=(0,3). Find the stationary mean, expected first return to state 0, the unique pi-centered Poisson solution and its oscillation. State the exact martingale reward decomposition and its finite-time expectation-bias bound.
- Stationarity gives pi0*(1/4)=pi1*(1/2), hence pi0=2*pi1 and pi=(2/3,1/3). The reward mean is (2/3)*0+(1/3)*3=1. For first return to 0, with probability 3/4 the next state is already 0 and the return length is 1. With probability 1/4 it is 1, where each next step hits 0 with probability 1/2, so the additional mean length is 2. Therefore E0[tau0+]=(3/4)*1+(1/4)*(1+2)=3/2, consistent with 1/pi0.
- The centered reward f=r-1 is (-1,2). The first Poisson row is (1/4)(g0-g1)=-1, while the second is (1/2)(g1-g0)=2; they are the same condition g1-g0=4. Impose the declared pi-centered normalization (2/3)g0+(1/3)g1=0. Substitution gives g0=-4/3,g1=8/3. The additive constant has been fixed by an actual normalization, rather than treating the singular matrix I-P as ordinarily invertible.
- Define D_(k+1)=g(X_(k+1))-(Pg)(X_k) and M_n=sum_(k=0)^(n-1)D_(k+1). Conditional on the history through k, the next-state expectation of g is (Pg)(X_k), so each D has conditional mean zero. Since g-Pg=f, summing D=g(X_(k+1))-g(X_k)+f(X_k) telescopes to M_n=g(X_n)-g(X_0)+sum f(X_k). Rearrangement gives the full stated reward decomposition on every realized finite path.
- Taking expectations gives E[sum_(k=0)^(n-1)(r(X_k)-1)]=E[g(X_0)-g(X_n)]. Both endpoint values lie between -4/3 and 8/3, so the absolute difference is at most the oscillation 4. For n>=1 the expected sample-mean bias is therefore at most 4/n, from any initial law. This is an expectation-bias bound, not a realized-error bound or a claim that M_n vanishes. Mixing, variance and a probabilistic concentration bound require their separate arguments.
pi=(2/3,1/3), pi*r=1, E0[tau0+]=3/2; centered g=(-4/3,8/3), osc(g)=4. Sum(r(X_k)-1)=M_n+g(X0)-g(Xn), so the expected sample-mean bias is at most 4/n.
Negative correlation changes sampling variance
Start P=[[1/4,3/4],[3/4,1/4]] in its stationary law and use reward (-1,1). Derive its covariance at every lag, the exact sample-mean variance expression and its asymptotic coefficient. Evaluate the n=2 variance and compare with two independent stationary draws without asserting a central-limit theorem.
- The matrix is symmetric, so pi=(1/2,1/2) is stationary. For the centered reward f=(-1,1), direct row multiplication gives Pf=(-1/2)f. Iterating this identity gives E[f(X_k)|X_0]=(-1/2)^k f(X_0). Under the specified stationary start, E[f]=0 and E[f^2]=1. Consequently Cov(f(X_0),f(X_k))=(-1/2)^k, including the alternating sign; stationarity makes the covariance depend only on the lag.
- Let S_n be the sum of the first n rewards, indexed from 0 through n-1. Expanding its square counts n diagonal terms and two copies of every pair at lag k, of which there are n-k. Thus Var(S_n)=n+2 sum_(k=1)^(n-1)(n-k)lambda^k. For lambda not equal to 1, summing the finite geometric progression and its first derivative gives the inner sum n*lambda/(1-lambda)-lambda*(1-lambda^n)/(1-lambda)^2. This is an exact finite sum, not an infinite-tail approximation.
- At lambda=-1/2 the inner sum is -n/3+(2/9)(1-(-1/2)^n). Therefore Var(S_n)=n/3+(4/9)(1-(-1/2)^n), and dividing by n^2 yields the stated sample-mean formula for every n>=1. At n=1 it returns 1. At n=2 it is 1/6+(1/9)(3/4)=1/4; equivalently the two rewards have covariance -1/2 and variance of their mean (2-1)/4.
- Multiplying the exact mean variance by n and taking the limit gives 1/3, because the bounded correction is divided by n. Two independent stationary draws would instead give variance 1/2, and n independent draws would give 1/n. The reduction comes from negative temporal covariance. It does not make the chain samples independent, establish a central-limit theorem or justify replacing a finite confidence statement by a variance asymptotic.
With lambda=-1/2, covariance at lag k is lambda^k. Var(sample mean)=1/(3n)+4[1-(-1/2)^n]/(9n^2); its asymptotic n-times-variance is 1/3 and its n=2 variance is 1/4, compared with iid variance 1/2.
A geometric lifetime with signed-reward formulas kept honest
A transient state stays with probability 3/4 and moves to its absorbing state with probability 1/4. Starting transient, receive reward 2 before each transition until absorption. Compute the visit fundamental matrix, first/second lifetime moments and full first/second/variance accumulated-reward moments from their recursions.
- The transient block is the one-by-one matrix Q=[3/4]. Its nth power is [(3/4)^n], and the visit series is the convergent geometric sum N=1/(1-3/4)=4. Starting in the transient state, tau counts the transition that finally exits, so it takes values 1,2,... . In particular P(tau>n)=(3/4)^n for n>=0; starting already absorbed would instead give tau=0.
- The first-step lifetime equation is h=1+(3/4)h, giving h=4. Squaring the same first-step identity, with remaining lifetime zero after exit, gives s=1+2*(3/4)h+(3/4)s. Substitution yields s/4=1+6=7, so s=28 and variance s-h^2=28-16=12. The geometric survival tail justifies the moment equations; a formal inverse without that proper-exit argument would not do so.
- A reward of 2 is paid at every transient visit before its outgoing transition, including the final pre-absorption visit. Its sum is therefore Y=2*tau path by path. The mean equation v=2+(3/4)v gives v=8. The full second-moment equation is w=4+2*2*(3/4)v+(3/4)w; hence w/4=4+24=28 and w=112. This also agrees with the path identity E[Y^2]=4 E[tau^2].
- The accumulated-reward variance is w-v^2=112-64=48, also equal to 4 Var(tau). No square of the mean was substituted for the second moment. Reward units scale v linearly and w/variance quadratically, whereas lifetime is measured in transitions. Even though this example has positive deterministic rewards, the transient reward formulas remain applicable to bounded signed rewards; their moment justification comes from the absorption tail.
N=4; E[tau]=4, E[tau^2]=28, Var(tau)=12. For total reward Y=2*tau, E[Y]=8, E[Y^2]=112 and Var(Y)=48.
A genuine four-state lumping
Use P=[[1/4,1/4,1/2,0],[1/2,0,1/4,1/4],[0,1/4,1/4,1/2],[1/8,1/8,3/4,0]] and partition A={1,2},B={3,4}. Prove strong lumpability for all initial laws, derive the two-state kernel and its square, and identify the aggregated stationary probabilities without assuming a uniform four-state stationary law.
- For source state 1, the probabilities of the next state lying in A and B are 1/4+1/4=1/2 and 1/2+0=1/2. For state 2 they are 1/2+0=1/2 and 1/4+1/4=1/2. For state 3 they are 0+1/4=1/4 and 1/4+1/2=3/4; for state 4 they are 1/8+1/8=1/4 and 3/4+0=3/4. Thus the outgoing block probabilities agree within each source block exactly.
- Condition on any positive-probability history of observed blocks. If its last block is A, the conditional hidden law can be any mixture of states 1 and 2, but each gives next-block probabilities (1/2,1/2); their mixture gives the same row. If the last block is B, every mixture of states 3 and 4 gives (1/4,3/4). This proves a homogeneous aggregated Markov kernel for all initial laws, without assuming equal hidden weights or merely checking a stationary one-step table.
- Multiplying the two block rows gives R^2(A,A)=(1/2)(1/2)+(1/2)(1/4)=3/8 and R^2(B,A)=(1/4)(1/2)+(3/4)(1/4)=5/16. Their complements are 5/8 and 11/16. The two-step block probabilities computed through hidden intermediate states must agree because the full-history lumpability proof already applies at each step; this is stronger than coincidence from a single chosen initial mixture.
- For a stationary block row (a,1-a), the first coordinate must satisfy a=a/2+(1-a)/4, yielding a=1/3. Any stationary full-chain law therefore aggregates to (1/3,2/3). Uniform weight on all four states would put block mass 1/2 on A, and one transition would change that mass to 3/8, so it cannot be silently declared stationary. Lumping specifies the block dynamics; it neither reconstructs the conditional hidden-state law nor makes every observation map Markov.
The exact aggregated kernel is R=[[1/2,1/2],[1/4,3/4]], R^2=[[3/8,5/8],[5/16,11/16]], and its stationary block probabilities are (1/3,2/3). The hidden four-state law need not be uniform within either block.
A uniform perturbation with an exact comparison
Reference P=[[4/5,1/5],[2/5,3/5]], perturbed P_hat=[[3/4,1/4],[2/5,3/5]]. Compute both stationary laws, the actual maximum row total-variation error, the reference Dobrushin coefficient and the actual stationary-law error. Compare the valid perturbation bound and the finite-n accumulation bound.
- In a two-state irreducible chain with cross probabilities p=P01 and q=P10, stationarity requires pi0*p=pi1*q and pi0+pi1=1. For the reference p=1/5,q=2/5 this gives (2/3,1/3). For the perturbed p=1/4,q=2/5 it gives (8/13,5/13). Each calculation uses the actual complete kernel and both stationary coordinates; a single initial-row transition is not a stationary law.
- The first rows differ by (-1/20,1/20), whose total variation is 1/20, and the second rows coincide. Thus the maximum full-row error delta is 1/20. The two reference rows differ by (2/5,-2/5), so their total variation, and hence the sharp Dobrushin coefficient, is 2/5. L1 would be twice each of these row distances; keeping that factor prevents an incorrect perturbation constant.
- Using stationarity, pi_hat-pi=pi_hat*(P_hat-P)+(pi_hat-pi)*P. The first term has TV at most delta by a convex combination of row errors, and the second at most (2/5)TV(pi_hat,pi). Rearranging gives TV(pi_hat,pi)<=delta/(1-2/5)=1/12. The actual error is |2/3-8/13|=2/39, which is smaller. The contraction factor is strictly below one; dropping that premise would make this rearrangement an unsupported bound.
- For the same initial row mu, expand P_hat^n-P^n as sum_(k=0)^(n-1) P_hat^k*(P_hat-P)*P^(n-1-k). Each left factor mu*P_hat^k is a probability row, each middle term has TV at most delta and the right stochastic factor cannot increase it. The triangle inequality gives n*delta=n/20, capped by the universal probability distance 1. This is a full-domain mathematical error bound; agreement only on the rows visited in a short record would not establish its premise.
pi=(2/3,1/3), pi_hat=(8/13,5/13), delta=1/20 and tau(P)=2/5. Actual stationary TV is 2/39, below the valid bound 1/12. From the same initial row, finite-n TV is at most min(1,n/20).
Two observations of a hidden state
Hidden P=[[9/10,1/10],[1/5,4/5]], prior alpha0=(1/2,1/2). Transition first, then emit red with probabilities (4/5,3/10) in states (0,1); blue is its complement. For observations red then blue, compute each predicted row, observation likelihood and posterior, and the full two-observation likelihood. Keep the time convention explicit.
- The declared timing first transitions X0 to X1, then observes Y1. Prediction is therefore alpha0*P, whose first coordinate is (1/2)(9/10)+(1/2)(1/5)=11/20 and second coordinate 9/20. Weighting that prediction by the red likelihoods gives (11/20)(4/5)=88/200 and (9/20)(3/10)=27/200. Their sum is 115/200=23/40, a strictly positive probability of the first observation.
- Bayes normalization divides those two weights by their sum, giving alpha1=(88/115,27/115). This is a posterior on the hidden state X1 after observing red, not a new transition row or a probability law for the visible symbols alone. The likelihood factor and the posterior are separate objects: multiplying by an emission and forgetting to normalize would leave only total mass 23/40.
- Transition the posterior through P before the second emission. Its first predicted weight is (88/115)(9/10)+(27/115)(1/5)=423/575; the second is 152/575. Blue has conditional probabilities (1/5,7/10), giving unnormalized weights 423/2875 and 532/2875. Their sum is 955/2875=191/575, and normalization gives alpha2=(423/955,532/955). Each conditioning uses the current entire observation record through its posterior.
- By the probability chain rule the two-observation likelihood is (23/40)(191/575). Since 575=25*23, it simplifies exactly to 191/1000. Both normalization constants here are positive. For a zero-likelihood observation no posterior is supplied by this division; choosing arbitrary normalized numbers would not be Bayesian evidence. Nothing in this two-state filtering calculation by itself makes the observed red/blue sequence a Markov chain or identifies an unknown hidden model.
Prediction 1=(11/20,9/20), red likelihood 23/40, posterior 1=(88/115,27/115). Prediction 2=(423/575,152/575), blue likelihood 191/575, posterior 2=(423/955,532/955). Joint red/blue likelihood=191/1000.
A continuous-time two-state kernel
The generator per hour is G=[[-2,2],[1,-1]]. Uniformize at rate 3 per hour. Derive the discrete uniformization kernel, stationary law and full exact exp(tG), including the law from state 0. Explain virtual self-transitions, the actual exit rates and the t=0 boundary.
- The generator has nonnegative off-diagonal entries 2 and 1 and each row sums to zero. With lambda=3 per hour, R=I+G/3=[[1/3,2/3],[1/3,2/3]]. Write Pi for this rank-one stochastic matrix. It satisfies Pi^2=Pi, and its common row pi obeys pi*G=0; equivalently the stationary cross rates (1/3)*2 and (2/3)*1 both equal 2/3. Generator entries carry inverse-hour units while R entries are dimensionless probabilities.
- Because G=3(Pi-I), the commuting matrix-exponential series gives exp(tG)=exp(-3t)*exp(3t Pi). For every integer k>=1, Pi^k=Pi, so exp(3t Pi)=I+(exp(3t)-1)Pi. Consequently the full transition matrix is E*I+(1-E)*Pi, with the displayed four entries. This derives every row, not just a candidate stationary row or one formal solution of a scalar equation.
- At t=0, E=1 and the matrix is I. Its derivative there is 3(Pi-I)=G; at all t it solves both matrix equations dP(t)/dt=G P(t)=P(t)G. The row from state 0 is (1/3+(2/3)E,(2/3)(1-E)). All entries are nonnegative and rows sum to one for t>=0. The semigroup identity follows as well from Pi^2=Pi, and pi is stationary for every t, while finite t retains initial-state dependence.
- Uniformization expresses this matrix as sum_(k>=0) exp(-3t)*(3t)^k/k!*R^k. Its virtual ticks run at the common rate 3, but a tick may leave the state unchanged: R00=1/3 and R11=2/3. The physical exit rates remain -G00=2 and -G11=1 per hour. Thus the virtual tick count is not the actual number of state changes. The product 3t is dimensionless only when t is measured in the declared hours; a different time unit requires transforming the rates too.
R=I+G/3 has both rows pi=(1/3,2/3). With E=exp(-3t), exp(tG)=[[1/3+2E/3,2(1-E)/3],[(1-E)/3,2/3+E/3]]. The actual state exit rates are 2 and 1 per hour, rather than the common virtual rate 3.
Try it yourself
For P=[[0,1,0],[1/2,0,1/2],[0,0,1]], mu0=(1/3,2/3,0) and f=(1,0,-1)^T, compute mu1,mu2,Pf and E[f(X2)]. Explain why reversing row/column conventions without transposing changes the calculation.
Show the answer and reasoning
mu1=(1/3,1/3,1/3), mu2=(1/6,1/3,1/2), Pf=(0,0,-1)^T and E[f(X2)]=-1/3. Probability rows multiply P on the right; a column-law convention requires P transposed.
The first next-state row is the initial mixture of transition rows: mu1=(1/3)(0,1,0)+(2/3)(1/2,0,1/2)=(1/3,1/3,1/3). Its entries sum to one. The zero third initial coordinate contributes nothing at this step, although mass can enter that absorbing state immediately from state 1. The calculation uses P_ij as a transition from i to j, rather than interpreting a column as its outgoing row. Propagating once more gives mu2=(1/3)(0,1,0)+(1/3)(1/2,0,1/2)+(1/3)(0,0,1)=(1/6,1/3,1/2). The third coordinate has accumulated mass from two distinct sources and is not reset by absorption. Summing gives 1/6+1/3+1/2=1, so the second row is again a probability law. For the observable f=(1,0,-1)^T, row 0 has next expected value zero, row 1 has (1/2)*1+(1/2)*(-1)=0, and row 2 has value -1. Hence Pf=(0,0,-1)^T. The expected value at time 2 is mu2 f=1/6-1/2=-1/3. Equivalently mu1(Pf)=-(1/3), which checks the observable and distribution orientations against one another. If distributions are represented as columns instead, their correct update is mu_next_column=P^T mu_column, the transpose of the row identity. Multiplying the untransposed P by the stated initial column would give (2/3,1/6,0)^T, whose mass is only 5/6, so it is not the same propagation. Changing notation is valid only when the operator orientation changes consistently; it cannot reverse the meaning of the transition indices silently.
Start the deterministic three-cycle A->B->C->A in its uniform stationary law and observe Z=0 on A,B and Z=1 on C. Compare the next-Z law after the positive-probability observation histories (1,0) and (0,0). Show why the stationary one-step observed transition table does not make Z a Markov chain.
Show the answer and reasoning
After histories (1,0) and (0,0), the next observed symbol is respectively 0 and 1 with probability one. The stationary one-step row from observed 0 is (1/2,1/2), so that table omits information carried by the earlier observation.
Under the uniform initial hidden law, the history (Z0,Z1)=(1,0) occurs when X0=C and X1=A, with probability 1/3. Determinism of the cycle then gives X2=B and Z2=0. Thus the conditional probability of the next observed 1 after this history is zero, even though the latest observed symbol is 0. The history (Z0,Z1)=(0,0) occurs only when X0=A and X1=B, also with probability 1/3. It gives X2=C and Z2=1 with certainty. Starting instead from B would give observations (0,1), so it is excluded from this conditioning. Both compared histories have positive probability and the same latest symbol, but their next-symbol probabilities differ. At stationarity, conditional on a single observation Z1=0, the hidden state X1 is equally likely to be A or B. Their next observed values are respectively 0 and 1, giving the one-step observed row (1/2,1/2). Conditional on Z1=1 the hidden state is C and the next observation is 0, giving row (1,0). These are valid one-step conditional tables, with stationary observed proportions (2/3,1/3). The Markov property requires that the same next-symbol row apply after every positive-probability observed history ending in that symbol. The two histories above violate it. A stationary marginal and a stationary one-step transition table do not remove this full-history condition. The hidden three-cycle remains a Markov chain; its deterministic merging of A and B into one symbol destroys the requisite sufficiency of the observed present.
Let X0=0 and X1,X2,... be independent fair bits. Set tau equal to the last time at or before 1 when X is 0. Show tau is not a stopping time for the natural filtration. Compute P(X_(tau+1)=1) and compare it with the ordinary row from the stopped state; do not apply strong Markov without its premise.
Show the answer and reasoning
tau=0 when X1=1 and tau=1 when X1=0, so tau is not a stopping time. X_tau=0 always, yet P(X_(tau+1)=1)=3/4, whereas the ordinary next-step probability from state 0 is 1/2.
Since X0=0, there is always a zero at or before time 1. If X1=0 the last such time is 1; if X1=1 the last such time is 0. Thus {tau<=0}={X1=1}. The natural sigma-field F0 contains only the deterministic initial value, so this event of probability 1/2 is not F0-measurable. This explicitly violates the stopping-time requirement at time zero. On {X1=1}, of probability 1/2, tau=0 and the selected next value X_(tau+1) is X1, known to equal 1 because of the selection. On {X1=0}, also of probability 1/2, tau=1 and the selected next value is X2, an independent fair bit. The two contributions to its probability of being 1 are therefore 1/2 and 1/4, giving total 3/4. The selected current value X_tau is always 0 by construction. For the ordinary homogeneous fair-bit chain, either current state has next-step row (1/2,1/2), including state 0 at deterministic times. If strong Markov were applied to this inadmissible random time, it would incorrectly predict a next-one probability 1/2. The discrepancy is selection by the future value X1, not a failure of the actual Markov transition rule. No expectation or unbounded-time subtlety is involved: tau takes only 0 and 1, and every random variable here is bounded. Measurability, rather than boundedness alone, is the missing hypothesis. A last-visit description needs special scrutiny because deciding that the earlier zero was the last one required observing time 1 before assigning the earlier time 0.
Order states (A,B,C,D), with A,B absorbing, C going to (A,B) with probabilities (3/10,7/10), and D going to (C,D) with probabilities (1/2,1/2). Find every stationary probability, the limiting law from D, the probability of eventual A absorption and the mean time to the absorbing set.
Show the answer and reasoning
All stationary rows are (alpha,1-alpha,0,0), 0<=alpha<=1. From D the limiting row is (3/10,7/10,0,0), eventual A absorption has probability 3/10 and the mean time to {A,B} is 3 transitions.
In a stationary row, the D coordinate must satisfy pi_D=(1/2)pi_D, since only D can transition into D. Hence pi_D=0. The C coordinate receives only the other half of D mass, so pi_C=0 as well. Both A and B are absorbing, so every remaining split (alpha,1-alpha,0,0) is stationary and every stationary probability has exactly that form. Starting from C, the first transition absorbs into A with probability 3/10 or B with probability 7/10. Starting from D, the chain repeats D until its first exit to C; the probability of never exiting is the limit of (1/2)^n, namely zero. Thus it reaches C almost surely and then has the same A/B split. Alternatively the A-hitting equation h_D=(1/2)h_C+(1/2)h_D, with h_C=3/10, gives h_D=3/10. Let m_C and m_D count transitions until first entrance to {A,B}. From C, m_C=1. From D, first-step conditioning gives m_D=1+(1/2)m_C+(1/2)m_D, so m_D/2=3/2 and m_D=3. Integrability is justified by the geometric D-exit tail followed by one final transition from C. Equivalently the mean two-transition waiting count to exit D is 2, then one more transition absorbs. At time n>=1, the D mass is 2^(-n) and the C mass is also 2^(-n), since C can only be entered directly from D at the preceding step and cannot persist. Their total tends to zero. The absorbed mass converges to the A/B probabilities already derived, yielding the stated limiting row. A reducible chain has therefore selected one stationary mixture from this initial state, while other initial mixtures can select different stationary rows.
Use P=[[0,0,1/2,1/2],[0,0,1/2,1/2],[1/2,1/2,0,0],[1/2,1/2,0,0]]. Prove irreducibility and period 2, find its stationary law, the alternating distributions from state 0 and their Cesaro limit. Find the eigenvalues of P and (I+P)/2 and distinguish stationary initial behavior from convergence from every start.
Show the answer and reasoning
The chain is irreducible with period 2 and stationary row (1/4,1/4,1/4,1/4). From state 0 it alternates uniform opposite-block and own-block laws after the first step; their Cesaro limit is uniform. Eigenvalues are (1,-1,0,0), and laziness changes them to (1,0,1/2,1/2).
Partition states into A={0,1} and B={2,3}. Every step moves to the opposite block uniformly. Any state can reach an opposite-block state in one step and another same-block state in two, proving irreducibility. Returns have even lengths, and a two-step return has positive probability, so the return gcd is exactly 2. Column sums as well as row sums are one, making the uniform row stationary; irreducibility makes it unique. From state 0 the time-one law is (0,0,1/2,1/2). At time two it is (1/2,1/2,0,0), and these two rows alternate at all subsequent odd and positive even times. The initial time-zero row is the point mass and must not be replaced by the positive-even row. Long Cesaro averages assign asymptotically one half of their terms to each of the two displayed rows, so their limit is uniform even though the ordinary sequence does not converge. The constant column has eigenvalue 1. The block-sign column (1,1,-1,-1)^T has eigenvalue -1, and the within-block contrast columns (1,-1,0,0)^T and (0,0,1,-1)^T each have eigenvalue zero, since their values average to zero in every opposite block. These four independent columns form a basis, giving all four eigenvalues without a numerical eigensolver. For L=(I+P)/2, each of those eigenvectors is retained and its eigenvalue becomes (1+lambda)/2, producing 1,0,1/2,1/2. The stationary row is unchanged and the alternating mode is removed, but L is a different chain with additional holds. Starting the original P chain already uniformly gives a constant law at every time; that special stationary start does not contradict failure of convergence from the point start or from every initial law.
For the reversible three-state matrix of W04, compute P^2, the componentwise common row mass and its total. Derive the associated normalized minorizing row and compare the resulting block contraction with the actual Dobrushin coefficient and a uniform-row-minimum minorization.
Show the answer and reasoning
P^2 has rows (3/8,1/2,1/8),(1/4,1/2,1/4),(1/8,1/2,3/8). Their common mass is (1/8,1/2,1/8), totaling 3/4, with normalized row (1/6,2/3,1/6). This gives contraction 1/4, equal to tau(P^2); uniform-row minorization only gives 5/8.
Use P=[[1/2,1/2,0],[1/4,1/2,1/4],[0,1/2,1/2]] from W04. The first row of P^2 is one half its first row plus one half its second, giving (3/8,1/2,1/8). The middle row is one quarter first plus one half middle plus one quarter last, giving (1/4,1/2,1/4). Symmetry reverses the first row for the last, giving (1/8,1/2,3/8). Each squared row sums to one. Take componentwise minima across these three rows. They are 1/8 in column 0, 1/2 in column 1 and 1/8 in column 2, with sum epsilon=3/4. Dividing that common mass by epsilon yields nu=(1/6,2/3,1/6). Thus P^2(i,.) dominates (3/4)nu for every i, and the residual stochastic decomposition gives a two-step TV contraction coefficient at most 1-epsilon=1/4. Compare the first and last squared rows. Their difference is (1/4,0,-1/4), whose TV is 1/4. Comparing either extreme row with the middle gives difference (1/8,0,-1/8) up to sign, with TV 1/8. Hence the largest row-pair TV is exactly 1/4. In this example the componentwise common-row construction attains the sharp Dobrushin coefficient, although that equality is not automatic for every finite kernel. If the minorizing row is forced to be uniform on three states, its largest possible weight is 3 times the smallest matrix entry, namely 3/8. Its resulting contraction bound is 1-3/8=5/8, weaker than 1/4. A positive block therefore supplies different numerical guarantees depending on the actual common mass retained. The block is P^2, so its coefficient applies per two original transitions, with floor(n/2) complete blocks in a bound after n transitions.
Target pi=(1/2,1/3,1/6) on three states. Propose either different state with probability 1/2 and accept i->j with min(1,pi_j/pi_i), otherwise stay. Derive every transition entry, verify detailed balance and show irreducibility/aperiodicity. This is one explicitly checked kernel, not a general convergence-rate claim.
Show the answer and reasoning
P=[[1/2,1/3,1/6],[1/2,1/4,1/4],[1/2,1/2,0]]. The three undirected pair flows are 1/6,1/12,1/12 in both directions. The chain is irreducible and aperiodic, with the specified target stationary.
From state 0, proposals to states 1 and 2 each have probability 1/2, with acceptance ratios (1/3)/(1/2)=2/3 and (1/6)/(1/2)=1/3. The accepted entries are therefore P01=1/3 and P02=1/6, leaving P00=1/2. From state 1, the proposal to state 0 is always accepted and the proposal to state 2 has acceptance 1/2, giving P10=1/2,P12=1/4 and P11=1/4. From state 2, both other targets have larger target weight, so both proposals are accepted. Thus P20=P21=1/2 and P22=0. These three rows are nonnegative and sum to one. Staying is the total rejected-proposal probability for the stated rule; it is not another independent proposal probability that could be added without adjusting the row sum. Check every off-diagonal detailed-balance pair. pi0 P01=(1/2)(1/3)=1/6=(1/3)(1/2)=pi1 P10. Similarly pi0 P02=1/12=pi2 P20 and pi1 P12=1/12=pi2 P21. Diagonal balance is automatic. Summing the pair identities proves pi P=pi, and the symmetric pair flows verify reversibility directly for this exact accepted kernel. All off-diagonal entries are positive, so the graph is irreducible. State 0 has a positive one-step return, giving period one there and hence throughout the irreducible chain. The finite-chain convergence theorem applies qualitatively, with unique stationary target pi. No numerical mixing rate, efficiency ranking or general theorem about every Metropolis proposal was established by this one explicit calculation.
Use P=[[1/100,99/100],[99/100,1/100]]. Derive the exact total-variation distance from state 0 to stationarity at time n and compare the signed gap with the absolute spectral radius. Repeat the eigenvalue/error comparison for (I+P)/2 and explain the change of chain.
Show the answer and reasoning
The stationary row is (1/2,1/2), the nonconstant eigenvalue is -49/50 and TV from state 0 is (1/2)(49/50)^n. The signed gap is 99/50, but the absolute radius is 49/50. Laziness changes the nonconstant eigenvalue to 1/100 and the exact error to (1/2)(1/100)^n.
The symmetric kernel is doubly stochastic, so pi=(1/2,1/2). The constant column has eigenvalue one and the sign column (1,-1)^T has eigenvalue 1/100-99/100=-98/100=-49/50. Let Pi have both rows pi. Then P=Pi+lambda(I-Pi) and P^n=Pi+lambda^n(I-Pi), including n=0 with the usual identity interpretation. From state 0 the row is (1/2+lambda^n/2,1/2-lambda^n/2). Its distance to pi is half the L1 difference, namely |lambda|^n/2=(1/2)(49/50)^n. The coordinate excess changes sign on every step, while its magnitude decays slowly. The signed gap 1-lambda=99/50 is large, but it neglects the nearly minus-one eigenvalue in a mixing estimate; the controlling absolute radius is 49/50 and its complementary gap is 1/50. For L=(I+P)/2, the constant eigenvalue remains one and the sign eigenvalue becomes (1-49/50)/2=1/100. Its row from state 0 is (1/2+(1/2)(1/100)^n,1/2-(1/2)(1/100)^n), with exact TV error (1/2)(1/100)^n. Here the signed and absolute gaps both equal 99/100 because the only nonconstant eigenvalue is nonnegative. Both errors at n=0 equal 1/2, consistently with the same initial point law. Their different later behavior concerns two different kernels. A lazy step includes an extra hold and cannot be counted as an unchanged original transition or used to rewrite a physical time record. The example specifically shows why a signed eigenvalue gap that ignores negative modes can misdescribe an alternating chain.
State 1 is the declared target but P=I on states (0,1), and the start is 0. Determine the hitting probability and mean hitting time. Describe all nonnegative boundary harmonic solutions and explain why neither an arbitrary solution nor a nonexistent (I-Q)^(-1) gives an absorption certificate.
Show the answer and reasoning
The target is never reached from 0: hitting probability 0 and mean hitting time infinity. Nonnegative harmonic boundary solutions are h=(c,1), c>=0; the true hitting probability is the minimal one c=0. For Q=[1], I-Q=[0] has no inverse.
With P=I, a path starting at 0 remains at 0 at every time. Its first hitting time of state 1 is therefore infinity almost surely. Consequently the probability of eventual hitting is zero and its extended nonnegative mean is infinity. Calling state 1 the target does not alter the closed class at 0 or create a possible path to the target. The boundary condition is h1=1. At the undecided state 0, the harmonic equation is h0=P00 h0=h0, which places no restriction on its value. Thus every h=(c,1) with c>=0 is a nonnegative boundary harmonic solution. Even adding the probability range 0<=h<=1 leaves every c in [0,1]. Only the minimal nonnegative solution c=0 equals the actual hitting probability. The transient-block label would be false here: on the working set {0}, Q=[1] and Q^n=[1] for every n. The visit series sum_(n>=0)Q^n diverges and I-Q=[0] is singular. There is no fundamental inverse (I-Q)^(-1) to multiply by a reward or an exit column, and no proper-exit hypothesis that could justify one. This failure is a mathematical property of the declared kernel, not a rounding issue or a need to choose a different linear-system solver. Replacing an infinite lifetime by a finite formal value or choosing c arbitrarily would contradict the path law. The example separates the harmonic equations, their minimal probabilistic solution and the stronger invertibility conclusions available only under actual eventual exit.
On {0,1,2,3,4}, absorb at 0 and 4 and, at each interior state, move up with probability 3/5 and down with probability 2/5. Derive the exact target 4 hitting probabilities and all mean exit times from the boundary recursions, then specialize to start 2.
Show the answer and reasoning
h=(0,27/65,9/13,57/65,1) and mean exit times m=(0,43/13,50/13,33/13,0). From state 2, target 4 is reached with probability 9/13 and the mean boundary hitting time is 50/13 transitions.
For interior i the target 4 probability obeys h_i=(3/5)h_(i+1)+(2/5)h_(i-1), with h0=0 and h4=1. The characteristic equation has roots 1 and r=2/3, so h_i=A+B r^i. Applying the two boundaries gives h_i=(1-r^i)/(1-r^4). Since 1-r^4=65/81, this yields h1=27/65,h2=45/65=9/13 and h3=57/65. Exit has a finite geometric-block tail because from every interior state there is a positive-probability path to a boundary in at most four transitions, with a uniform positive minimum over the three states. Thus finite mean exit times exist and satisfy m_i=1+(3/5)m_(i+1)+(2/5)m_(i-1), with m0=m4=0. A particular solution is -i/(p-q)=-5i, since the step drift p-q equals 1/5. Adding the homogeneous solutions gives m_i=-5i+A+B r^i. The zero boundary at 0 requires B=-A, and the zero boundary at 4 gives A(1-r^4)=20. Therefore m_i=20h_i-5i=5(4h_i-i). Substitution produces m1=43/13,m2=50/13 and m3=33/13, with zero values at both boundaries. These are transition counts, not reciprocal target-success probabilities. At start 2 the exact desired pair is (9/13,50/13). The asymmetry of the neighboring mean times is consistent with the upward drift and the closer successful boundary from state 3. The hitting-probability and time equations were solved with different inhomogeneous terms and boundary data; using a probability as though it were an expected duration would not satisfy the first-step time recursion.
The two-state chain flips deterministically each step and has reward (2,0). Find pi, its centered Poisson potential, the martingale increments and the time-average error from each start for even and odd sample lengths. Distinguish state-distribution convergence, sampling variance and reward time averages.
Show the answer and reasoning
pi=(1/2,1/2), centered reward f=(1,-1), centered potential g=(1/2,-1/2) and every martingale increment is zero. Even-length averages equal 1; odd-length averages are 1+1/n from 0 and 1-1/n from 1. Under stationary start their variance is 0 for even n and 1/n^2 for odd n.
The flip kernel has rows (0,1) and (1,0), so its stationary row is pi=(1/2,1/2). The reward mean is 1 and centered reward is f=(1,-1). The equations g0-g1=1 and pi g=0 give g=(1/2,-1/2). The deterministic next value satisfies g(X_(k+1))=-g(Xk)=(Pg)(Xk), so every increment g(X_(k+1))-(Pg)(Xk) is exactly zero and M_n=0 pathwise. From state 0 the rewards alternate 2,0,2,0,... and from state 1 they alternate 0,2,0,2,... . If n is even, there are equal numbers of each reward and the average is 1. If n is odd, the sum is n+1 from 0 and n-1 from 1, giving averages 1+1/n and 1-1/n. The centered sum is precisely g(X0)-g(Xn), consistent with the Poisson decomposition even though the chain is periodic. For a deterministic initial state the path and its sample mean are deterministic, so their sampling variance is zero for every n. Under a stationary random start, the two signs of the odd-length error are equally likely. Thus the average has expectation 1, variance 1/n^2 at odd n and zero variance at even n. In either parity n times this stationary mean variance tends to zero; no positive iid-like variance coefficient should be manufactured. From a point initial state the state distribution alternates forever and has no ordinary limit; from pi it stays pi. In both cases the reward time average tends to 1, and here the exact error is already known. Distribution convergence, time-average convergence and randomness of a sampled average are distinct questions. This explicit periodic example answers all three without claiming a central-limit theorem from an asymptotic variance calculation.
A hidden two-state chain has both rows (1/2,1/2). Both states emit symbol 1 with probability 1/4 and symbol 0 with probability 3/4. Starting from any prior, derive prediction/posterior after the first transition and every positive-likelihood observation, and the likelihood of any finite binary observation string. Explain what would happen on an impossible third symbol.
Show the answer and reasoning
After every transition the prediction and every positive-likelihood posterior are (1/2,1/2), regardless of the initial prior. A binary string with a ones and b zeros has likelihood (1/4)^a(3/4)^b. An impossible third symbol has zero likelihood and no Bayes posterior.
Both hidden transition rows are (1/2,1/2), so multiplying any initial probability row by P gives that same row. Every later posterior, whatever its form, is likewise reset by the next transition. With the declared transition-then-emission timing, the prediction at the first and all later observation times is therefore (1/2,1/2). This says nothing about a pre-transition observation, which would use a different prior timing. For symbol 1 the two unnormalized state weights are each (1/2)(1/4)=1/8. Their sum is 1/4, and division returns posterior (1/2,1/2). For symbol 0 the two weights are each 3/8, their sum is 3/4 and the normalized posterior is again uniform. Because each emission probability is identical in the two hidden states, either observed binary symbol carries no information about the current hidden state. The conditional probability of each next 1 is always 1/4 and of each next 0 is always 3/4, independent of the earlier observed string. The likelihood product is therefore (1/4)^a(3/4)^b for a ones and b zeros. In this particular model the observations are indeed independent identically distributed Bernoulli variables, as the full joint factorization shows. That special conclusion follows from these state-independent emissions, not from a general hidden-Markov-model rule. If an additional third symbol has probability zero from both hidden states, its two unnormalized weights are zero and its likelihood is zero. A posterior would require division by zero, so no conditional posterior for that impossible record is defined by Bayes normalization. Keeping the previous posterior or choosing another row would be an explicit modeling convention for an out-of-model event, not an inferred update supported by this likelihood.
Take mu=(9/10,1/10),pi=(1/2,1/2). Give exact KL and total-variation expressions and the Pinsker comparison. Compare one step of the kernel with both rows pi against one step of identity, retaining zero-mass/logarithm conventions and distinguishing entropy monotonicity from strict decay.
Show the answer and reasoning
D(mu||pi)=(9/10)log(9/5)+(1/10)log(1/5), TV=2/5 and D>=8/25 by Pinsker. A common-pi reset makes both quantities zero after one step; identity leaves them unchanged.
All reference coordinates are positive, so the two divergence terms are finite. Their exact natural-log expression is (9/10)log((9/10)/(1/2))+(1/10)log((1/10)/(1/2))=(9/10)log(9/5)+(1/10)log(1/5). The probability difference is (2/5,-2/5), giving TV=(1/2)(4/5)=2/5. No decimal logarithm evaluation is needed to state either exact quantity. Pinsker gives D>=2 TV^2=2*(4/25)=8/25, equivalently TV<=sqrt(D/2). Although the second logarithm is negative, the weighted sum is nonnegative by log-sum and the stronger lower bound just stated. In general a zero numerator probability contributes zero, including a zero-over-zero term by convention, while a positive numerator over a zero reference mass gives infinite divergence. Neither convention is needed to assign an undefined logarithm a finite value here. Let K have both rows pi. Then mu K=pi and pi K=pi, so one step gives TV=0 and D=0 exactly. This is a unit-weight common reset, stronger than a merely nonincreasing divergence statement. For the identity kernel, mu I=mu and pi I=pi, so both the original positive TV and divergence remain unchanged at every step. Both kernels satisfy data processing, but only the reset produces strict reduction for this nonstationary initial law. Thus monotonicity alone does not establish convergence or a rate. The relative entropy in these calculations is an information divergence of declared probability rows in natural-log units, not an automatically identified physical entropy or a measurement of thermodynamic heat.
Nominal P has both rows (99/100,1/100); true P has the same first row but second row (0,1). Compare stationary laws and their total variation. Explain why perfect transition fit only at state 0 cannot supply the full-row perturbation premise.
Show the answer and reasoning
The nominal stationary row is (99/100,1/100); the true stationary row is (0,1), and their TV distance is 99/100. The full-row kernel error is also 99/100 despite exact agreement in row 0.
The nominal kernel has both rows a=(99/100,1/100), so any initial row is sent to a in one step and a is its unique stationary row. For the true kernel, state 1 is absorbing and state 0 remains at 0 with probability 99/100 or exits to 1 with probability 1/100. Stationarity of its first coordinate requires pi0=(99/100)pi0, hence pi0=0 and the unique true stationary row is (0,1). The two stationary rows differ by (99/100,-99/100), whose TV is 99/100. Their disparity is not a contradiction with matching first rows. Row 0 errors are exactly zero, but the second nominal row differs from the true second row by the same two coordinates, giving maximum full-row error delta=99/100. The nominal Dobrushin coefficient is zero because its rows coincide. The valid stationary perturbation bound using the actual uniform delta is therefore delta/(1-0)=99/100, attained here. Replacing delta by the zero error in row 0 would falsely predict no stationary change and would fail the theorem premise, which takes the maximum over all rows. A finite record that only observes transitions from state 0 cannot reveal the actual behavior after entrance to state 1. In the true model that entrance eventually occurs almost surely, since continued survival at 0 has probability (99/100)^n tending to zero. That later absorbing behavior controls its stationary law. The example is a full explicit counterexample to inferring a domain-wide kernel guarantee from perfect fit at only the observed source state.
Use P=[[0,1,0],[1,0,0],[1/5,3/10,1/2]]. Starting from state 2, derive the transient mass and the difference of the first two state probabilities at time n, the two phase limits and the Cesaro limit. Compare with a stationary start, and explain the universal-versus-selected-initial-law distinction.
Show the answer and reasoning
For n>=0, mass at state 2 is 2^(-n) and d_n=mu_n(0)-mu_n(1)=[(-1)^n-2^(-n)]/15. Even and odd limits are (8/15,7/15,0) and (7/15,8/15,0); the Cesaro limit and stationary row are (1/2,1/2,0).
Only state 2 transitions back into state 2, with probability 1/2, so its mass from the stated start is w_n=2^(-n). Write a_n=mu_n(0),b_n=mu_n(1). The other updates are a_(n+1)=b_n+(1/5)w_n and b_(n+1)=a_n+(3/10)w_n. Therefore their difference obeys d_(n+1)=-d_n-(1/10)2^(-n), with d0=0. A particular solution is -(1/15)2^(-n), because its next value is -(1/30)2^(-n) and the recurrence gives (1/15-1/10)2^(-n)=-1/30 times that power. Add a homogeneous multiple of (-1)^n and impose d0=0 to get d_n=[(-1)^n-2^(-n)]/15. Since a_n+b_n=1-w_n, the full probabilities are a_n=(1-w_n+d_n)/2 and b_n=(1-w_n-d_n)/2. As n tends to infinity through even values, w_n vanishes and d_n tends to 1/15, giving (8/15,7/15,0). Through odd values the difference tends to -1/15, giving (7/15,8/15,0). Their average is (1/2,1/2,0), and the Cesaro mean of the decaying w_n terms vanishes while that of (-1)^n tends to zero. Thus the Cesaro limit is exactly the balanced closed-class row. The closed class {0,1} flips deterministically and has period 2; state 2 is transient. A stationary start (1/2,1/2,0) remains that row at every time, but the stated transient start leaves an alternating imbalance. The unique stationary row therefore does not imply convergence from every start. The theorem about all powers distinguishes this universal requirement from a selected stationary initial law that cancels the periodic mode.
On nonnegative integers, let P00=q,P01=p and P_(n,n-1)=q,P_(n,n+1)=p for n>=1, with p+q=1. Derive stationary weights and normalization for p=1/3,q=2/3, and their mean state. Explain why the same recurrence cannot give a stationary probability when p>=q; do not appeal to finite-state compactness.
Show the answer and reasoning
The stationary law is pi_n=2^(-(n+1)) and its mean state is 1. With p,q>0 the necessary weights are proportional to (p/q)^n, which cannot normalize for p>=q; q=0 gives no stationary probability by the boundary recursion itself.
At the reflecting boundary, stationarity gives pi0=q pi0+q pi1, so p pi0=q pi1. At each positive state the same balance equation makes J_n=p pi_n-q pi_(n+1) constant in n, and the boundary forces that constant zero. For p=1/3,q=2/3 the ratio p/q is 1/2, hence pi_n=pi0 2^(-n). Normalization of the convergent geometric series gives pi0=1/2 and pi_n=2^(-(n+1)). Adjacent flows balance directly: pi_n p=pi_(n+1)q. Together with the reflecting boundary, these identities verify stationarity of the constructed probability. To compute its mean, differentiate the convergent geometric sum to obtain sum_(n>=0)n r^n=r/(1-r)^2 for 0<r<1. At r=1/2 this is 2, and multiplying by pi0=1/2 gives mean state 1. For general positive p and q the same forced recurrence gives pi_n=pi0(p/q)^n. If p>=q the ratio is at least one. A positive pi0 then gives a divergent mass sum, while pi0=0 forces the zero row, so no probability can be stationary. If q=0, then p=1 and division by q is inappropriate; the boundary instead gives pi0=0 and the interior recursion propagates pi_n=pi_(n-1)=0, again leaving no probability. The failure of normalization does not make the countable transition matrix invalid. Its rows still sum to one and its finite-time distributions exist. What fails is the inference from finite-state compactness: countably many coordinates can carry mass arbitrarily far from every fixed finite set. No finite-chain return identity or unproved countable compactness theorem was used to obtain the stationary mean in the normalizable case.
Alternate the two-state kernels A with both rows (1,0) and B with both rows (0,1), beginning with A. Derive each time distribution, the Dobrushin coefficients, AB and BA. Explain why all starts are forgotten immediately but there is no single limiting distribution or common stationary probability.
Show the answer and reasoning
For any initial row, mu_n=(1,0) at odd n and (0,1) at positive even n. tau(A)=tau(B)=0, AB=B and BA=A. A and B have different unique stationary rows, so there is no common stationary row or limiting distribution.
At time zero keep the arbitrary initial row mu0. The first kernel A sends it to (1,0), because both A rows equal that point mass. The second kernel B sends every row to (0,1), and alternating repeats this behavior: mu_n=(1,0) for odd n and (0,1) for positive even n. These assertions include every initial row, so all dependence on mu0 is already absent after the first transition. Within either kernel the two rows are identical, giving maximum row-pair TV zero and hence tau(A)=tau(B)=0. Each chronological product has the final reset row. In particular AB=B since the B step overwrites the A result, and BA=A. The order matters despite both kernels being stochastic and individually having the strongest possible one-step contraction. The odd and even final laws have TV distance one and remain distinct, so no single limiting distribution exists. A stationary probability for A must equal (1,0), while one for B must equal (0,1); there is no row stationary for both. The vanishing coefficient product compares two different initial laws at the same final time, not laws at successive times under different kernels. Thus immediate loss of initial memory is fully compatible with ongoing variation driven by the environment. To compare this inhomogeneous process to one fixed target row, an actual common invariant row or another separately justified limit argument is required. Substituting either individual stationary row into every step would erase the changing-kernel premise that produces this exact counterexample.
Per second, use G=[[-1,1,0],[0,-2,2],[3,0,-3]]. Verify generator signs/row sums, find the stationary row, and construct I+G/lambda at lambda=3. Explain why lambda=2 is invalid as a stochastic uniformization even though the matrix exponential still exists, and why generator entries are rates rather than transition probabilities.
Show the answer and reasoning
The generator is valid, pi=(6/11,3/11,2/11), and at lambda=3 the stochastic kernel is [[2/3,1/3,0],[0,1/3,2/3],[1,0,0]]. At lambda=2 its last diagonal is -1/2, so that uniformization is invalid; the valid generator still has a stochastic exponential.
All off-diagonal generator entries are nonnegative, and the three row sums are -1+1=0, -2+2=0 and 3-3=0. The exit rates are 1,2 and 3 per second. Stationary flow around this directed cycle requires pi0=2pi1=3pi2. Weights proportional to (1,1/2,1/3) sum to 11/6, yielding pi=(6/11,3/11,2/11); direct multiplication gives pi G=0. At lambda=3 per second, I+G/3 has rows (2/3,1/3,0),(0,1/3,2/3),(1,0,0). Each is nonnegative and sums to one. The relation pi G=0 also gives pi R=pi. The exponential is therefore the nonnegative stochastic mixture exp(-3t)sum_(k>=0)(3t)^k R^k/k! for t measured in seconds, with identity at t=0 and derivative G there. At lambda=2, I+G/2 instead has last row (3/2,0,-1/2), and its other rows are (1/2,1/2,0) and (0,0,1). The negative entry makes it unsuitable as a stochastic kernel. This does not invalidate G or prevent the finite matrix exponential from existing; choosing the valid rate 3 has already established that exp(tG) is stochastic. A formal exponential identity with a signed R is not a probabilistic mixture of transition kernels. Generator entries have inverse-second units. For a small time h, a transition entry behaves as delta_ij+h G_ij+o(h), rather than equaling G_ij itself. In particular a rate 3 per second is not an impossible probability 3. The common virtual tick rate can include self-transitions, while physical exits retain rates 1,2,3. Changing time units requires rescaling G so the exponent tG remains dimensionless.
What to carry forward
- The state and its information set are part of the hypothesis. Aggregated or observed symbols need not be Markov even when the hidden state is.
- Stationarity, convergence from all starts, Cesaro convergence and almost-sure time averages are different conclusions with different proofs.
- Finite closed classes determine all stationary probabilities. A reducible chain with one closed class can still have a unique stationary law.
- A contraction bound uses its actual common mass, coupling or absolute spectral rate. Negative eigenvalues and time changes cannot be ignored.
- Proper exit and finite moments justify absorbing inverse formulas and signed reward calculations. A stopping time that is finite almost surely need not have a finite mean.
- Dependent samples retain covariance. A variance limit is not a central-limit theorem, and an entropy inequality is not automatically a thermodynamic law.
- Countably many formal invariant weights require normalization. Loss of initial memory in time-dependent kernels need not produce one limiting law.
- Filtering needs a positive observed likelihood and the declared transition-emission order. Continuous-time clock rates have reciprocal-time units and may include virtual self transitions.
References
Sources for the concepts and teaching approaches in this article.
- Transition laws and conditional pathsDavid A. Levin and Yuval Peres; contributions by Elizabeth L. WilmerPrimary · PDF
- Author-posted corrections to the second editionLevin and Peres, author-hosted errataPrimary · PDF
- Finite divergence and zero-mass conventionsMIT-hosted lecture notesPrimary · PDF
- Holding intervals, jump probabilities and ratesRobert G. GallagerPrimary · PDF
- The posterior distribution as a sufficient stateDimitri P. BertsekasPrimary · PDF