A transition matrix is a matrix that represents movement between states or coordinate descriptions. In probability theory, it records the probabilities of transitions in a Markov chain. In linear algebra, the same term can denote a change-of-basis matrix, which converts coordinates between two bases of a vector space. These meanings require different assumptions: a probability transition matrix has nonnegative entries and normalized rows or columns, whereas a change-of-basis matrix must be invertible. (stat110.hsites.harvard.edu)
Definition for a Markov chain
Consider a discrete-time stochastic process with finite state space . Its Markov property means that, conditional on the current state, the next state does not depend on earlier states. For a time-homogeneous chain, the conditional probability
does not depend on . The transition matrix is . Row identifies the current state, and column identifies the next state. Consequently,
A matrix satisfying these conditions is called a row-stochastic matrix. Each row is a probability distribution over possible destinations, including the possibility of remaining in the same state. (stat110.hsites.harvard.edu)
Some authors instead use column-stochastic matrices, whose columns sum to one. The two conventions are related by matrix transposition. The convention must be specified because it determines which side of the matrix a probability vector multiplies. A transition matrix describes conditional movement, not the initial distribution; both are needed to specify the chain's probabilistic evolution. (stat.cmu.edu)
Evolution and multiple-step transitions
Under the row-stochastic convention, let be the row vector with entries . The law of total probability gives
The entry is the probability of reaching state after steps when starting at . Matrix multiplication sums the probabilities of paths through intermediate states. This yields the Chapman–Kolmogorov equations,
Here , the identity matrix, representing zero elapsed steps. (stat.cmu.edu)
For example, consider the illustrative matrix
Starting in state 1 gives , hence . Direct multiplication gives
Thus the two-step probability of moving from state 1 to state 2 is , obtained as . These are calculations for a hypothetical chain, not empirical measurements.
If transition probabilities vary with time, separate matrices are required. Evolution then uses an ordered product, , rather than a power of one fixed matrix. (stat.cmu.edu)
Structure and long-run behavior
A transition matrix can be represented by a weighted directed graph: states are vertices, and an edge exists when . The chain is irreducible if every state can reach every other state with positive probability in some number of steps. A state is absorbing if , making departure impossible. (stat110.hsites.harvard.edu)
A stationary distribution is a probability row vector satisfying
It is therefore a left eigenvector associated with eigenvalue . For a finite irreducible chain, the stationary distribution is unique. If the chain is also aperiodic, every initial distribution converges to it, and every row of converges to . (probabilitycourse.com)
Stationarity does not itself imply convergence. The matrix
has stationary distribution , but a chain starting in one state alternates indefinitely. This distinction separates an invariant distribution from a limiting distribution. (cs.ox.ac.uk)
Estimation from observations
For observed state sequences, let count transitions from to . Under a time-homogeneous Markov model, conditioning on the initial state, maximum likelihood estimation gives
provided the denominator is positive. Transition counts are sufficient statistics for this conditional likelihood. If no departure from a state is observed, its transition row cannot be estimated uniquely by this formula. (stat.cmu.edu)
In a hidden Markov model, states are latent rather than directly observed. Estimation therefore uses inferred, probability-weighted transition counts, commonly within the expectation–maximization algorithm, together with a model of the observations emitted by each state. (stat.cmu.edu)
Continuous-time transition matrices
For a finite, time-homogeneous continuous-time Markov chain, transitions over elapsed time are described by
These matrices satisfy and . Their infinitesimal generator has nonnegative off-diagonal entries and rows summing to zero. Finite-time probabilities are obtained through the matrix exponential,
The generator contains transition rates, not probabilities; its diagonal entries are nonpositive. It must therefore be distinguished from . (columbia.edu)
The change-of-basis meaning
Let and be ordered bases of the same finite-dimensional vector space. The transition matrix from -coordinates to -coordinates has columns
For every vector ,
Its inverse performs the reverse conversion. Unlike a probability transition matrix, it need not have nonnegative entries or normalized rows. The underlying vector remains unchanged; only its coordinate description changes. (math.hmc.edu)