The Chapman-Kolmogorov Equations
Suppose a machine can be in one of several operating states. Each day it transitions between states according to fixed probabilities. A natural question arises: what is the probability the machine is in state exactly ten days from now? This is given that it starts in state today. Answering this directly seems to require summing over every possible ten-day itinerary. This seems to require tracking an exponentially growing number of paths. The Chapman–Kolmogorov equations give a way to sidestep this explosion entirely. They show that multi-step transition probabilities decompose cleanly through any intermediate time. This decomposition is one of the most useful computational facts in the theory of Markov Chains and Transition Matrices. It converts a combinatorial counting problem into a linear-algebraic one. The combinatorial problem is to enumerate all paths of length from to . The linear-algebraic version is simply: multiply matrices. The equations state how the -step transition probabilities are obtained. Sum, over every possible intermediate state , two things. First, the probability of reaching in steps. Second, the probability of then reaching in the remaining steps. This is nothing more than the law of total probability applied to the Markov property. But its consequences are far-reaching. The big picture is that this decomposition turns the entire theory of finite-state Markov chains into a chapter of matrix algebra. Transition matrices raised to powers compute long-run behavior. Eigenvalues and eigenvectors of the transition matrix govern convergence rates. The existence of a stationary distribution becomes a fixed-point equation for a matrix. Chapman–Kolmogorov is the bridge that makes all of this legitimate. It is the reason "the -step transition matrix equals the -th power of the one-step transition matrix" is a theorem. It is not merely a suggestive analogy. This article gives the precise definition of -step transition probabilities. It states and proves the Chapman–Kolmogorov equations in full generality. It shows how they collapse into matrix multiplication for time-homogeneous chains. Two worked examples illustrate the machinery: a three-state weather model and an asymmetric random walk on a cycle. These are followed by a counterexample showing what fails without the Markov property. Finally, there is a discussion of where these equations surface in modern applications.
- The -step transition probability is the chance of going from state to state in exactly steps.
- Chapman–Kolmogorov: , decomposing any trip through an intermediate time.
- For time-homogeneous chains this is exactly the matrix identity .
- Consequently , the -th matrix power of the one-step transition matrix.
- The proof rests entirely on the Markov property and the law of total probability — no extra assumptions needed.
- Key idea: summing over an intermediate state at any intermediate time turns path-counting into matrix multiplication.
Where this lives today
The Chapman–Kolmogorov equations underlie essentially every computational use of finite-state Markov models. In Google's PageRank algorithm, the -step transition matrix of a random surfer on the web graph converges (as ) to a stationary distribution used to rank pages; computing that convergence relies on repeatedly applying . In genetics and bioinformatics, hidden Markov models for DNA sequence alignment and gene prediction use the equations to compute multi-step state probabilities efficiently via the forward algorithm, which is a direct computational instance of the intermediate-state decomposition. In queueing theory and operations research, Chapman–Kolmogorov equations (in their continuous-time differential form) give the Kolmogorov forward and backward equations governing birth-death processes used to model server queues, inventory systems, and epidemics (the SIR-type continuous-time Markov chains). In statistical physics, the equations appear as a discrete-time analogue of the master equation describing the evolution of a probability distribution over microstates. In finance, discrete-time Markov chain models of credit ratings use -step transition matrices, computed via matrix powers justified by Chapman–Kolmogorov, to estimate multi-year default probabilities. In cryptography and pseudorandom number generation, the mixing time of a Markov chain — how quickly approaches a limiting distribution — is analyzed via eigenvalues of , whose relevance to -step probabilities is precisely guaranteed by this theorem. The equations also form the conceptual seed for the later theory of Stationary Distributions, since a stationary distribution is precisely a probability vector satisfying , which forces for all by repeated application of Chapman–Kolmogorov.
Ask the tutor: How do the Chapman–Kolmogorov equations change if the Markov chain is time-inhomogeneous, and how would I compute -step probabilities in that case?
Let be a Markov chain on a countable state space , meaning that for all and all states with ,
For times and states , define the -transition probability
whenever . If the chain is time-homogeneous, meaning does not depend on , this quantity depends only on the elapsed time , and we write
with the convention and , the one-step transition probability. The Chapman–Kolmogorov equations assert that for every and all ,
Writing for the (possibly infinite) matrix with entries , and for the matrix with entries , this is equivalent to the matrix equation
Intuition
Think of as a weighted directed graph on the state space: an arrow from to carries weight , the probability of jumping there in one step. A path of length from to must pass through some state at time , whether or not we ever observe or record that state. The Chapman–Kolmogorov equations say the total probability of all length- paths from to is obtained by fixing the "waypoint" , multiplying the probability of getting from to in steps by the probability of getting from to in the remaining steps, and summing over all possible waypoints . This is exactly how matrix multiplication works: entry of a product sums over the shared index of . The theorem says probabilistic path-counting is matrix multiplication. The figure below shows this for a simple three-state chain: to compute the probability of going from state to state in two steps, we sum over the three possible states occupied after step one.
Chapman-Kolmogorov Equations
Let be a time-homogeneous Markov chain on a countable state space with one-step transition probabilities . Define for , with . Then for all integers and all ,
Equivalently, if and denote the matrices of these probabilities, then
where is the ordinary -th matrix power of (with ).
Technique: conditioning on the intermediate state via the law of total probability, then invoking the Markov property. Fix and , and suppose so that all conditional probabilities below are well defined. We compute . Step 1 (law of total probability over the intermediate state). The events partition the sample space (since takes exactly one value). By the law of total probability, conditioning throughout on ,
This step uses only countable additivity of probability and requires no property of Markov chains; it is valid for any stochastic process. Step 2 (factor each joint term using conditional probability). For each with ,
This is the definition of conditional probability applied to the events and , both conditioned on ; formally,
whenever , which is a direct consequence of the definition applied twice. If the corresponding summand is on both sides of Step 2's identity by convention, and Step 1's identity still holds since we may simply omit terms where the joint probability is zero. Step 3 (Markov property removes the conditioning on ). By the Markov property applied at time (extended, by induction on , from one step to steps — see the lemma below), we have for all with ,
Step 4 (time-homogeneity converts absolute times to elapsed times). Since the chain is time-homogeneous,
(The second equality follows because is steps after , and homogeneity says the transition law over any consecutive steps started at state is the same, namely .) Substituting Steps 2–4 into Step 1 gives
which is the Chapman–Kolmogorov equation.
Matrix form. The right-hand side is precisely the entry of the matrix product (this holds verbatim for finite state spaces, and for countable state spaces the sum converges absolutely since each term is a product of probabilities and the total sum over of is ). Hence
We now show by induction on . The base case holds since by definition, and holds since by definition. For the inductive step, suppose for some . Taking in the matrix identity just proved,
By induction, for all .
∎Let satisfy the Markov property as in the definition above. Then for all and states with ,
Technique: induction on , repeatedly applying the one-step Markov property. For the statement is trivial: both sides equal . Suppose the claim holds for ; we show it for . Write , an event with . By the law of total probability over the value of ,
using conditional factorization as in Step 2 of the main proof (terms with contribute ). By the one-step Markov property applied at time (extending the conditioning event to include , which is measurable with respect to , hence a special case of the hypothesis with the longer history , arbitrary intervening states, ), we get
Substituting, and using the inductive hypothesis ,
where the last equality is the base case of Chapman–Kolmogorov applied to the chain started at (equivalently, the same law-of-total-probability argument run in reverse). This completes the induction.
∎Worked examples
Example 1: A three-state weather model. A city's weather each day is Sunny (S), Cloudy (C), or Rainy (R). The one-step transition matrix, with rows/columns ordered (S, C, R), is
Suppose today is Sunny. We want the probability it is Rainy in exactly days, i.e. . By Chapman–Kolmogorov with ,
Substituting values,
To check via matrix powers, compute the full matrix . Row of is :
As a consistency check, , confirming these are a valid probability distribution, as required since must take some value. Now use Chapman–Kolmogorov a second time to find by splitting at : we need row of , namely , and column of , namely :
Note we could equally have split at , using row of and column of ; the theorem guarantees the same answer regardless of where we place the intermediate time, since both equal the entry of .
Example 2: An asymmetric random walk on a cycle of 4 states. Let arranged on a cycle, and at each step the walker moves clockwise (to ) with probability or counterclockwise (to ) with probability . The one-step matrix (rows/columns ) is
Start at state . We compute , the probability of being at state (the antipodal point) after steps, using Chapman–Kolmogorov summing over the intermediate state after step :
From row of , the only nonzero entries are and ; all other , so those terms vanish automatically. Thus
This makes sense: reaching the antipodal state in two steps requires two clockwise moves (, probability ) or two counterclockwise moves (, probability ); a clockwise-then-counterclockwise or counterclockwise-then-clockwise pair returns to , not . Indeed , and by symmetry of the cycle's two remaining states, (an odd number of net clockwise minus counterclockwise steps of size cannot land you at an odd-distance state after an even number of moves that only change position by each — concretely, after steps the walker's clockwise displacement is or , landing on state or again, never or ). Check: . ✓. Now extend to steps: find by splitting using the row of from state , which is (filling in the zero entries found above), and column of , which is :
This is exactly right: after an odd number of steps, the walker's position has changed parity, so it cannot be at state (same parity as ) after steps — it must be at an odd-labeled state. This parity structure, visible immediately from the zero pattern in , is a first hint of the Classification of States to come, where such periodicity is studied systematically.
The Chapman–Kolmogorov decomposition can fail entirely if is not Markov, because Step 3 of the proof (removing the conditioning on the full past) is no longer valid. Consider a simple non-Markov process on : let always. Let be fair coin flip, independent of everything else. Define (the process "remembers" and repeats exactly), and let all further for as well — the chain freezes at whatever was. This process is not Markov: knowing determines with certainty, but if we only average over the marginal distribution of (forgetting we know its value), we cannot recover . Now compute directly. We have for . Also and , by construction. The "Chapman–Kolmogorov" right-hand side would give
This matches in this particular instance — so we push further to expose the real failure, by conditioning on more of the past instead of just . Consider instead . Since deterministically, , not . But a Markov chain built from the same one-step marginal transition probabilities and estimated marginally would predict using only the pair 's law, which here is also degenerate () — the point is that these two "transition kernels" computed (a) marginally and (b) conditionally on the further past genuinely coincide only because the process happens to have no other history to condition on beyond at this depth. To see an outright numerical clash, extend the construction: let deterministically, let be a fair coin as before, and now let equal with probability and with probability , but let this "flip probability" itself depend on having been exactly two steps back in a longer chain where existed and depended on it — concretely, take any process where genuinely varies depending on which earlier state preceded . Then the quantity uses the marginal kernel (averaged over all the ways of reaching ), while the true conditional probability requires the kernel specific to arriving at via . These differ whenever the transition out of depends on the path used to reach — precisely the failure of the Markov property — and no valid single matrix of "transition probabilities" exists to make the two sides equal in general. This is exactly why the hypothesis that is Markov cannot be dropped: without it, "" is not even well-defined independent of history, so the sum has no reason to equal .
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| Chain is time-homogeneous | depends only on elapsed time ; Chapman–Kolmogorov becomes . |
| Chain is time-inhomogeneous | Equations still hold in the two-time form for ; no single power of one matrix suffices. |
| Infinite (countable) state space | The sum converges absolutely (bounded by ), so the identity holds without extra convergence hypotheses. |
| Continuous state space | Sums become integrals against transition kernels/densities; same proof structure (measure-theoretic law of total probability). |
| Process is not Markov | Equations can fail, as shown in the counterexample; there is no single valid transition kernel to use. |
| or | Reduces to the trivial identity , consistent but uninformative — always check base cases separately in inductive proofs. |
The mathematician behind it
Origins · 1 minAndrei Andreyevich Markov and how this was discovered
Andrei Markov was a Russian mathematician working in probability theory and number theory, a student of Pafnuty Chebyshev. He introduced what are now called Markov chains around 1906, originally to demonstrate that the law of large numbers could hold for sequences of dependent random variables, deliberately challenging the prevailing assumption that independence was essential to probabilistic limit theorems. His examples included an analysis of vowel-consonant sequences in Pushkin's poem Eugene Onegin, an early instance of what would later be called a discrete-time stochastic process with dependent structure. The equations bearing the joint name Chapman–Kolmogorov were developed independently and put on a rigorous, general measure-theoretic footing by Sydney Chapman (a British mathematician and geophysicist) in 1928 and by Andrei Kolmogorov in 1931, in the broader context of continuous-time and continuous-space Markov processes, extending Markov's original discrete framework.
Is the Chapman–Kolmogorov equation only true for finite state spaces?
No. The proof given uses only the law of total probability and countable additivity, both of which hold for any countable state space. The sum converges absolutely because each and , so the series is dominated termwise. For uncountable (e.g. continuous) state spaces, the same identity holds with the sum replaced by an integral against a transition kernel, proved by the analogous measure-theoretic law of total probability; this is the setting Kolmogorov treated in full generality in 1931.
Does Chapman–Kolmogorov require the chain to be time-homogeneous?
No, though the compact matrix-power form does require it. In general, for , the equations hold in the form , where the transition probabilities may depend on the actual times , not merely on elapsed time. Time-homogeneity is what lets us collapse this two-time-parameter family into a single-parameter family and hence into powers of a single fixed matrix .
Why is this useful if I can already simulate the chain forward step by step?
Simulation gives you one sample path at a time and requires many repetitions to estimate a probability accurately, with statistical error shrinking only like . Chapman–Kolmogorov gives the exact probability via a finite, deterministic linear-algebra computation: raise a matrix to a power. For a chain with states, computing costs roughly operations via repeated squaring, far cheaper and exact compared to Monte Carlo simulation for a fixed accuracy target.
How does this relate to eigenvalues and long-run behavior?
Because , the long-run behavior of the chain as is governed by the spectral decomposition of . If is diagonalizable with eigenvalues , then can be written in terms of these eigenvalues, and (a matrix with every row equal to the stationary distribution ) at a rate governed by , under suitable conditions such as irreducibility and aperiodicity. This spectral analysis is only possible because Chapman–Kolmogorov identifies -step probabilities with matrix powers in the first place.
Can I split the steps at any intermediate point, or only at the midpoint?
Any intermediate point works, and this is precisely the content of the theorem: for any , . You may choose (peel off one step), (peel off the last step), or any split in between; associativity of matrix multiplication guarantees gives the same matrix regardless of how is partitioned, since matrix multiplication is associative.
What goes wrong in continuous time — do the equations look different?
The same underlying idea holds: for a continuous-time Markov process with transition functions , the Chapman–Kolmogorov equations read , i.e., , so forms a matrix semigroup. Differentiating this semigroup property at (under regularity conditions) yields the Kolmogorov forward and backward differential equations, which are the continuous-time analogues used to derive generators with .
Is the converse true: if a process satisfies Chapman–Kolmogorov, is it necessarily Markov?
Not in general — this converse is false without further conditions, and we do not claim it. A process can satisfy the two-time consistency identity for a family of transition functions while the underlying process itself fails to be Markov, if that family was not actually derived as the process's true conditional probabilities. Chapman–Kolmogorov as stated here is a consequence of the Markov property for the process's own transition probabilities; establishing sufficient conditions under which a consistent family of kernels satisfying these equations defines a genuine Markov process is a separate construction (Kolmogorov extension theorem) and is beyond the scope of this article.