A stationary distribution is a probability distribution that remains unchanged under the evolution of a Markov chain or a more general Markov process. If the initial state has this distribution, the state at every later time has the same distribution, although individual trajectories may continue moving between states. Also called an invariant distribution, it describes a probabilistic equilibrium rather than a state in which movement stops. Stationarity is distinct from convergence: a stationary distribution can exist even when distributions from other initial conditions do not approach it. (ocw.mit.edu)
Mathematical definition
Consider a time-homogeneous, discrete-time chain on a finite or countable state space . Its transition matrix has entries
which are nonnegative and sum to one across each row. Writing distributions as row vectors, a stationary distribution satisfies
Equivalently, for every state . These global balance equations express the preservation of probability at each state. (ocw.mit.edu)
In linear algebra, is a normalized, nonnegative left eigenvector of with eigenvalue . It is also a fixed point of the distribution update map . For a finite chain, its entries can be found by solving a system of linear equations together with the normalization constraint. An eigenvector alone is insufficient unless it represents a probability distribution. (people.csail.mit.edu)
Existence and uniqueness
Every finite-state Markov chain has at least one stationary distribution. If it is irreducible, meaning every state can be reached from every other state with positive probability in some number of steps, its stationary distribution is unique and strictly positive. Irreducibility is sufficient, but not necessary, for uniqueness. (lancaster.ac.uk)
For a finite reducible chain, each closed communicating class has its own stationary distribution, extended by zero outside that class. All stationary distributions of the chain are convex combinations of these class distributions. Thus uniqueness holds precisely when there is only one closed communicating class; transient states receive zero stationary probability. (en.wikipedia.org)
On a countably infinite state space, irreducibility alone does not guarantee existence. An irreducible chain has a stationary probability distribution exactly when it is positive recurrent: the expected time to return to a state is finite. In that case,
where denotes expectation starting at . An invariant measure with infinite total mass cannot be normalized into a stationary probability distribution. (statslab.cam.ac.uk)
Stationarity and long-run behavior
For an irreducible, positive recurrent, aperiodic chain,
Aperiodicity excludes systematic restrictions on possible return times. It is needed for this convergence theorem, not for the existence or uniqueness of a stationary distribution. (statslab.cam.ac.uk)
For example,
has the unique stationary distribution . Starting from either individual state, however, the chain alternates deterministically, so its distribution does not converge. Starting with the stationary distribution preserves equal probabilities at every time. (people.csail.mit.edu)
Time averages behave differently. For an irreducible positive recurrent chain, the fraction of steps spent in state converges almost surely to , even if the chain is periodic. This is an ergodic theorem, related to the law of large numbers. Moreover, initializing a time-homogeneous chain with produces a strictly stationary process: shifting all observation times equally leaves its finite-dimensional distributions unchanged. (statslab.cam.ac.uk)
Detailed balance and examples
A useful sufficient condition for stationarity is detailed balance:
Summing over yields global balance. Detailed balance equates probability flow in both directions between every pair of states and characterizes reversibility in equilibrium. It is stronger than stationarity: a stationary chain can sustain directional circulation without satisfying detailed balance. (lancaster.ac.uk)
For the two-state chain
balance gives , hence
This illustrates how occupancy depends on transition probabilities in both directions. Another example is a random walk around a finite circle with identical clockwise, counterclockwise, and holding probabilities at every state. Its stationary distribution is uniform, even when clockwise and counterclockwise probabilities differ and detailed balance fails. (lancaster.ac.uk)
Continuous time and applications
For a finite-state continuous-time Markov chain with generator matrix , the stationary equations become
Equivalently, for every elapsed time . A finite irreducible continuous-time chain has a unique stationary distribution, and its transition probabilities converge to that distribution without a separate aperiodicity requirement. (ocw.mit.edu)
In Markov chain Monte Carlo, the transition mechanism is constructed to preserve a chosen target distribution. Under appropriate recurrence and convergence conditions, simulated trajectories provide samples and time averages associated with that target. Detailed balance offers one construction method, but invariant distributions can also be preserved by nonreversible dynamics. (people.csail.mit.edu)