Markov chain

A Markov chain is a stochastic process that moves among states according to transition probabilities, with the distribution of the next state depending only on the current state rather than the full history. In a time-homogeneous chain, these probabilities are represented by a transition matrix, and repeated matrix multiplication describes the process over multiple steps. Markov chains model evolving systems under uncertainty, but their predictions are conditional on the chosen states and transition model.

Last updated
30 October 2026
Confidence
High (99%)
Sources
3
Versions
2
This article was researched and drafted with AI assistance and checked by an automated review pass. It is not guaranteed to be accurate — verify important facts against the references below.

Definition and the Markov property

A Markov chain is a sequence of random variables X₀, X₁, X₂, … whose values belong to a set of possible states. In a discrete-time chain, the Markov property says that, once the current state is known, the probability distribution of the next state does not depend on earlier states: the conditional probability of moving to state j at the next step, given the current state i and any earlier states, equals the conditional probability of moving to j given only the current state i, whenever these conditional probabilities are defined. The word “memoryless” refers to this conditional transition rule; it does not mean the process has no history, or that the present state must summarize history in every real-world model. A modeler may need to define a richer state so that the assumption is reasonable.

States, transition probabilities and matrices

The state space is the set of possible values of the process. For a time-homogeneous chain, the probability of moving from state i to state j is a fixed transition probability pᵢⱼ, independent of the step number. These probabilities form a transition matrix P: entries are non-negative, and the probabilities in each row sum to one. The chain also needs an initial distribution describing the probabilities assigned to its starting states. A transition diagram can represent states as nodes and possible moves as directed edges labeled with their probabilities.

Predicting future states

If the current state distribution is a row vector μ, then after one step it is μP; after n steps it is μPⁿ. The entry (i, j) of Pⁿ gives the probability of being in state j after n steps when starting in state i. The Chapman–Kolmogorov equations express how multi-step probabilities combine over intermediate states. These calculations provide distributions of possible future states, not a guarantee that any single trajectory follows an average or most likely path.

Long-run behavior

Some chains have a stationary distribution π satisfying πP = π. If the chain begins with this distribution, its state distribution remains π after every step. Under additional conditions—such as irreducibility, aperiodicity and suitable recurrence conditions—the distribution from other starting states can converge to a unique stationary distribution. These conditions matter: a chain may have multiple stationary distributions, or its step-by-step distribution may oscillate instead of converging. For an irreducible, positive recurrent chain, the stationary probabilities also describe the long-run fractions of time spent in its states under the usual ergodic result.

Applications and limits

Markov chains are used to model systems in which transitions between defined states can be described probabilistically. Examples include queues, random walks on networks, board games, reliability analysis and methods for sampling from probability distributions. Their simplicity makes them useful for calculation and simulation, but the Markov assumption and the choice of states, transition probabilities, and time scale must be justified for each application. A poorly specified state representation or transition model can yield misleading forecasts, and a stationary distribution should not be confused with a causal explanation or a guarantee about an individual outcome.

Key facts

Markov property
Given the present state, the next-state distribution is independent of the earlier history.
Transition matrix
For a time-homogeneous chain, each row contains the probabilities of moving from one state to all possible next states and sums to one.
Multiple steps
The n-step transition probabilities are given by the entries of Pⁿ.
Stationary distribution
A probability vector π is stationary when πP = π; convergence to it requires further conditions.
Modeling caution
Results depend on the chosen states, transition probabilities, and whether the Markov assumption is appropriate.

Ask about this article

Answers use only “Markov chain” and its references, with citations.

References

  1. 1.
    Markov Chains

    University of Cambridge, Statistical Laboratory; Richard Weber · other · reliability: unverified · retrieved 30 October 2026

    Supports: Course notes define discrete-time Markov chains, transition matrices and n-step probabilities, and discuss communicating classes, recurrence, invariant distributions, convergence and applications.

  2. 2.
    Lecture 1: Markov Chains—Part I

    University of Illinois Urbana-Champaign, ECE 586; Dimitrios Katselis · other · reliability: unverified · retrieved 30 October 2026

    Supports: Lecture notes give the Markov property and transition-matrix definition, derive the n-step transition matrix, and discuss irreducibility, stationary distributions, and conditions for limiting behavior.

  3. 3.
    The Fundamental Theorem of Markov Chains and Stationary Distributions

    Stanford University, CS265/CME309; Gregory Valiant and Mary Wootters · other · reliability: unverified · retrieved 30 October 2026

    Supports: Lecture notes explain irreducibility, periodicity and stationary distributions, state convergence results for finite irreducible aperiodic chains, and describe Markov chain Monte Carlo as an application.

References are suggested by the research engine and may be incomplete. Unverified URLs are omitted rather than guessed.

Article history

  1. Version 230 October 2026 · EditorUpdated by Zapia
  2. Version 130 October 2026 · EditorCreated by Zapia