Continuous-Time Markov Chains
From Discrete Time to Continuous Time
In Chapter 17, the Markov chain evolves at integer time steps. Many systems — a queue with random arrivals, a channel that switches between states, a molecule transitioning between energy levels — change state at random continuous-time instants. The continuous-time Markov chain (CTMC) is the natural extension: a process that holds in each state for an exponentially distributed time, then jumps to a new state according to a fixed probability distribution.
The memoryless property of the exponential distribution is what makes the CTMC Markovian: knowing tells you everything about the future, regardless of when the current state was entered.
Definition: Continuous-Time Markov Chain
Continuous-Time Markov Chain
A stochastic process with countable state space is a continuous-time Markov chain (CTMC) if for all and all states : The chain is time-homogeneous if depends only on . In this case, define the transition probabilities:
Definition: Generator (Rate) Matrix
Generator (Rate) Matrix
The generator matrix (also called the rate matrix or -matrix) of a time-homogeneous CTMC is the matrix defined by: The off-diagonal entries are transition rates from state to state . The diagonal entry ensures that each row sums to zero: .
The holding time in state is where . Upon leaving state , the chain jumps to state with probability .
The generator matrix plays the same role for CTMCs that the transition matrix plays for DTMCs. The key structural property is that rows sum to zero (not to one): generates probability flow rather than directly assigning probabilities.
Theorem: Kolmogorov Forward and Backward Equations
Let be the transition matrix and the generator of a time-homogeneous CTMC with finite or countably infinite state space. Then:
Forward equation (Kolmogorov):
Backward equation (Kolmogorov):
Both hold with the initial condition .
The forward equation describes how the state probabilities evolve by looking at what happens in the last infinitesimal interval before time . The backward equation conditions on the first infinitesimal step from the initial state. In both cases, plays the role of a "derivative" of the transition probability at .
Derive the forward equation
For : This is the Chapman-Kolmogorov (semigroup) property. Rearranging: Taking : , since by definition.
Derive the backward equation
Similarly, writing : Taking : .
Theorem: Matrix Exponential Solution
The unique solution to both Kolmogorov equations with is: If has a spectral decomposition (where are the eigenvalues), then: Since , one eigenvalue is always , and all other eigenvalues have non-positive real part.
The matrix exponential is the continuous-time analog of the matrix power for DTMCs. The eigenvalue corresponds to the stationary distribution; the remaining eigenvalues govern the rate of convergence to stationarity.
Verify the matrix exponential solves the ODE
Differentiate term by term: At : .
Example: Two-State CTMC (On-Off Channel)
A wireless channel alternates between "good" (state 0) and "bad" (state 1). The channel stays good for an time, then switches to bad; it stays bad for an time, then returns to good. (a) Write the generator matrix . (b) Find the transition matrix . (c) Find the stationary distribution.
(a) Generator matrix
State 0 (good) has leaving rate with all transitions going to state 1. State 1 (bad) has leaving rate with all transitions going to state 0.
(b) Matrix exponential via eigendecomposition
The eigenvalues of are and . After diagonalization: As , this converges to a matrix with identical rows (the stationary distribution).
(c) Stationary distribution
Solve with : , .
The fraction of time the channel is good is . For a channel with mean good duration ms and mean bad duration ms: .
Example: Three-State CTMC: Channel Quality Levels
A channel has three quality levels: excellent (0), good (1), poor (2). The generator matrix is: Find the stationary distribution .
Set up the balance equations
gives three equations (one redundant): , , plus the normalization .
Solve
From equation 1: . Substituting into equation 2: , so , giving . Then . Normalization: , so , giving .
CTMC State Probabilities:
Visualize the evolution of state probabilities for a two-state or three-state CTMC. Adjust the generator rates and starting state to see how the transition probabilities converge to the stationary distribution.
Parameters
Quick Check
Which of the following is a valid generator matrix ?
Off-diagonal entries are non-negative, and each row sums to zero. This is a valid generator.
Common Mistake: Generator Matrix vs. Transition Matrix
Mistake:
Confusing the generator (rows sum to 0, diagonal entries negative) with the transition matrix of the embedded DTMC (rows sum to 1, all entries non-negative). Students sometimes try to find by solving instead of .
Correction:
The balance equations for a CTMC are (not ). The latter is the DTMC equation . Also note: the stationary distribution of the embedded DTMC is generally different from the CTMC stationary distribution (they are related by weighting with the holding times).
Historical Note: Kolmogorov's 1931 Paper
20th centuryAndrey Kolmogorov derived the forward and backward equations in his landmark 1931 paper "Über die analytischen Methoden in der Wahrscheinlichkeitsrechnung" (On analytical methods in probability theory). This paper, written when Kolmogorov was 28, laid the foundation for the theory of continuous-time Markov processes and, more broadly, for the general theory of diffusion processes. The forward equation is sometimes called the Fokker-Planck equation in the physics literature, where it was discovered independently. The backward equation is uniquely associated with Kolmogorov.
Continuous-time Markov chain (CTMC)
A continuous-time stochastic process with countable state space satisfying the Markov property: the future depends on the past only through the present state. Characterized by a generator matrix with rows summing to zero.
Related: Generator matrix
Generator matrix
The matrix where () are transition rates and . Determines all finite-time transition probabilities via .
Related: Continuous-time Markov chain (CTMC)