Overview
A Markov chain is a stochastic model whose present state contains the information from its past needed to predict the next step. This article treats discrete time and a finite state space, with transition probabilities that do not change with time.
The Markov property is conditional. Consecutive states can be strongly dependent. It also depends on what is recorded as the state: omitting a relevant component can make an observed process fail the property.
Prerequisites
Know conditional probability, finite probability distributions, and matrix multiplication. A stochastic process is an indexed family of random variables. Here its index is , and its state space is a finite set .
Use row vectors for distributions. This fixes the direction of matrix multiplication and prevents ambiguity in formulas for evolution and stationarity.
Definition and conventions
A time-homogeneous Markov chain has an initial law and a matrix with nonnegative entries and row sums one. For every positive-probability history,
Equivalently, almost surely. This latter formulation avoids assigning ratios to impossible histories.
The matrix being independent of is time homogeneity, an additional convention beyond the Markov property itself. A stationary distribution is a probability row vector satisfying .
Intuition
The current state is a summary for prediction, not a statement that the past never influences the present. For instance, a machine's current operating mode can reflect its earlier history while still being sufficient to specify its next transition probabilities.
An iid finite-valued sequence is a special case, obtained when every row of is the same distribution and the initial law agrees with it. Most transition matrices have different rows, so knowledge of the current state changes the next-state prediction.
Examples and non-examples
On , take
Starting from , the probability of being at after two steps is . Solving and gives .
Even when started in , the chain is not independent: , whereas .
For a nonexample, choose independent fair bits , and define , , . Knowing alone leaves fair, while knowing determines . The current state has lost information needed to predict the future.
The deterministic alternation is a Markov chain. Its matrix has zero diagonal and unit off-diagonal entries. It has stationary law , but from state its distributions alternate forever.
Important properties
Multiplying one-step probabilities along a path and summing over intermediate states gives the Chapman–Kolmogorov identity. Hence the -step matrix is and the time- law is .
Every finite stochastic matrix has a stationary distribution. One existence proof averages , takes a convergent subsequence in the probability simplex, and observes that multiplying the average by changes it by .
If the finite chain is irreducible, every state can reach every other and the stationary distribution is unique and positive. If it is also aperiodic, the greatest common divisor of possible positive return times is one, and for every initial law.
Proof idea for convergence: irreducibility and aperiodicity make some power of a finite transition matrix strictly positive. This permits coupling with a uniformly positive chance to make two copies meet in each block. Their remaining disagreement probability decays geometrically.
Connections and further reading
Stopping times describe first visits; conditional expectation extends the transition rule to functions of the next state. Cambridge, §§1, 8 and 9 develops the theory. Chen's course outline, Chapter 2 documents 马尔可夫链 as literature usage.