The Generator Matrix (Q-Matrix)
For continuous-time Markov chains, the generator matrix (also called the Q-matrix or infinitesimal generator) plays the role analogous to the transition matrix in discrete time. It encodes the instantaneous transition rates between states and governs the evolution of the process via the Kolmogorov forward and backward equations.
Definition
A stochastic process on a countable state space is a continuous-time Markov chain (CTMC) if for all and states :
where is the transition probability over time .
The generator matrix of a CTMC is defined by
where if and otherwise. Equivalently:
- For : is the transition rate from to .
- For : (so row sums are zero).
The matrix satisfies for and for all .
The off-diagonal entries () are the rates at which the chain jumps from to . The diagonal entry , where is the total exit rate from state .
Kolmogorov equations
The transition probabilities satisfy the forward equation:
In component form, for each :
The transition probabilities satisfy the backward equation:
In component form:
The forward equation describes how probabilities evolve "looking forward from the present," while the backward equation considers "looking backward from the future." For finite state spaces, both equations are equivalent and have the formal solution
Consider a two-state chain with and generator
The chain jumps from 0 to 1 at rate and from 1 to 0 at rate . Solving with gives
As , converges to the matrix with rows , the stationary distribution.
Jump chain and holding times
A CTMC can be constructed from two ingredients:
- Jump chain: A discrete-time Markov chain with transition matrix , where
- Holding times: In state , the chain stays for a random time before jumping to a new state chosen according to the jump chain.
Starting from :
- Hold in state for time .
- Jump to state with probability .
- Hold in state for time .
- Continue indefinitely.
Then is the state at time , constructed from the sequence of jumps and holding times.
A continuous-time birth-death process on has rates:
This models a population that increases (birth) at rate and decreases (death) at rate when the population is .
For the queue: (constant arrival rate), for , .
Stationary distribution
A probability distribution on is stationary for a CTMC with generator if
i.e., for all .
If , then for all . The equation is the continuous-time analogue of for discrete-time chains.
For the generator
we solve :
Both equations give . With :
Detailed balance
A CTMC is reversible with respect to a distribution if
Reversibility (detailed balance) implies . Many CTMCs arising in applications (e.g., queueing networks, chemical reaction networks) satisfy detailed balance.
For the queue with arrival rate and service rate , the stationary distribution (for ) is geometric: . One can verify detailed balance:
Explosion and regularity
For countably infinite state spaces, the chain may explode: it performs infinitely many jumps in finite time. This happens if for some sequence of states. A chain is regular (non-explosive) if a.s. it makes only finitely many jumps in any finite time interval.
For practical CTMCs (e.g., birth-death processes with bounded rates), regularity is automatic.
Summary
The generator matrix encodes the dynamics of continuous-time Markov chains:
- Off-diagonal entries: are transition rates ().
- Diagonal entries: , where is the exit rate from .
- Kolmogorov equations: .
- Stationary distribution: .
- Detailed balance: for reversible chains.
The -matrix framework unifies the theory of continuous-time Markov chains and connects to exponential holding times and discrete-time jump chains.