ConceptComplete

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

Definition2.1Continuous-time Markov chain

A stochastic process (Xt)tβ‰₯0(X_t)_{t \geq 0} on a countable state space SS is a continuous-time Markov chain (CTMC) if for all s,tβ‰₯0s, t \geq 0 and states i,j∈Si, j \in S:

P(Xt+s=j∣Xs=i,Xu for u<s)=P(Xt+s=j∣Xs=i)=pij(t),\mathbb{P}(X_{t+s} = j \mid X_s = i, X_u \text{ for } u < s) = \mathbb{P}(X_{t+s} = j \mid X_s = i) = p_{ij}(t),

where pij(t)=P(Xt=j∣X0=i)p_{ij}(t) = \mathbb{P}(X_t = j \mid X_0 = i) is the transition probability over time tt.

Definition2.2Generator matrix

The generator matrix Q=(qij)i,j∈SQ = (q_{ij})_{i,j \in S} of a CTMC is defined by

qij=lim⁑hβ†’0+pij(h)βˆ’Ξ΄ijh,i,j∈S,q_{ij} = \lim_{h \to 0^+} \frac{p_{ij}(h) - \delta_{ij}}{h}, \quad i, j \in S,

where Ξ΄ij=1\delta_{ij} = 1 if i=ji = j and 00 otherwise. Equivalently:

  • For iβ‰ ji \neq j: qijβ‰₯0q_{ij} \geq 0 is the transition rate from ii to jj.
  • For i=ji = j: qii=βˆ’βˆ‘jβ‰ iqijq_{ii} = -\sum_{j \neq i} q_{ij} (so row sums are zero).

The matrix QQ satisfies qijβ‰₯0q_{ij} \geq 0 for iβ‰ ji \neq j and βˆ‘j∈Sqij=0\sum_{j \in S} q_{ij} = 0 for all ii.

The off-diagonal entries qijq_{ij} (iβ‰ ji \neq j) are the rates at which the chain jumps from ii to jj. The diagonal entry qii=βˆ’Ξ»iq_{ii} = -\lambda_i, where Ξ»i=βˆ‘jβ‰ iqij\lambda_i = \sum_{j \neq i} q_{ij} is the total exit rate from state ii.


Kolmogorov equations

Theorem2.1Kolmogorov forward equation

The transition probabilities P(t)=(pij(t))P(t) = (p_{ij}(t)) satisfy the forward equation:

ddtP(t)=P(t)Q.\frac{d}{dt} P(t) = P(t) Q.

In component form, for each i,j∈Si, j \in S:

ddtpij(t)=βˆ‘k∈Spik(t)qkj.\frac{d}{dt} p_{ij}(t) = \sum_{k \in S} p_{ik}(t) q_{kj}.

Theorem2.2Kolmogorov backward equation

The transition probabilities satisfy the backward equation:

ddtP(t)=QP(t).\frac{d}{dt} P(t) = Q P(t).

In component form:

ddtpij(t)=βˆ‘k∈Sqikpkj(t).\frac{d}{dt} p_{ij}(t) = \sum_{k \in S} q_{ik} p_{kj}(t).

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

P(t)=etQ=βˆ‘n=0∞(tQ)nn!.P(t) = e^{tQ} = \sum_{n=0}^\infty \frac{(tQ)^n}{n!}.

ExampleTwo-state chain

Consider a two-state chain with S={0,1}S = \{0, 1\} and generator

Q=(βˆ’Ξ±Ξ±Ξ²βˆ’Ξ²).Q = \begin{pmatrix} -\alpha & \alpha \\ \beta & -\beta \end{pmatrix}.

The chain jumps from 0 to 1 at rate Ξ±\alpha and from 1 to 0 at rate Ξ²\beta. Solving Pβ€²(t)=QP(t)P'(t) = QP(t) with P(0)=IP(0) = I gives

P(t)=1Ξ±+Ξ²(Ξ²Ξ±Ξ²Ξ±)+eβˆ’(Ξ±+Ξ²)tΞ±+Ξ²(Ξ±βˆ’Ξ±βˆ’Ξ²Ξ²).P(t) = \frac{1}{\alpha+\beta} \begin{pmatrix} \beta & \alpha \\ \beta & \alpha \end{pmatrix} + \frac{e^{-(\alpha+\beta)t}}{\alpha+\beta} \begin{pmatrix} \alpha & -\alpha \\ -\beta & \beta \end{pmatrix}.

As tβ†’βˆžt \to \infty, P(t)P(t) converges to the matrix with rows (Ξ²/(Ξ±+Ξ²),Ξ±/(Ξ±+Ξ²))(\beta/(\alpha+\beta), \alpha/(\alpha+\beta)), the stationary distribution.


Jump chain and holding times

A CTMC can be constructed from two ingredients:

  1. Jump chain: A discrete-time Markov chain YnY_n with transition matrix R=(rij)R = (r_{ij}), where

rij={qij/λiif i≠j,0if i=j.r_{ij} = \begin{cases} q_{ij}/\lambda_i & \text{if } i \neq j, \\ 0 & \text{if } i = j. \end{cases}

  1. Holding times: In state ii, the chain stays for a random time Ο„i∼Exp(Ξ»i)\tau_i \sim \text{Exp}(\lambda_i) before jumping to a new state chosen according to the jump chain.
Definition2.3Standard construction

Starting from X0=i0X_0 = i_0:

  1. Hold in state i0i_0 for time Ο„0∼Exp(Ξ»i0)\tau_0 \sim \text{Exp}(\lambda_{i_0}).
  2. Jump to state i1i_1 with probability ri0i1r_{i_0 i_1}.
  3. Hold in state i1i_1 for time Ο„1∼Exp(Ξ»i1)\tau_1 \sim \text{Exp}(\lambda_{i_1}).
  4. Continue indefinitely.

Then XtX_t is the state at time tt, constructed from the sequence of jumps and holding times.

ExampleBirth-death process

A continuous-time birth-death process on S={0,1,2,…}S = \{0, 1, 2, \ldots\} has rates:

qi,i+1=Ξ»i,qi,iβˆ’1=ΞΌi,qij=0Β if ∣iβˆ’j∣>1.q_{i,i+1} = \lambda_i, \quad q_{i,i-1} = \mu_i, \quad q_{ij} = 0 \text{ if } |i-j| > 1.

This models a population that increases (birth) at rate Ξ»i\lambda_i and decreases (death) at rate ΞΌi\mu_i when the population is ii.

For the M/M/1M/M/1 queue: Ξ»i=Ξ»\lambda_i = \lambda (constant arrival rate), ΞΌi=ΞΌ\mu_i = \mu for iβ‰₯1i \geq 1, ΞΌ0=0\mu_0 = 0.


Stationary distribution

Definition2.4Stationary distribution

A probability distribution Ο€\pi on SS is stationary for a CTMC with generator QQ if

Ο€Q=0,\pi Q = 0,

i.e., βˆ‘i∈SΟ€iqij=0\sum_{i \in S} \pi_i q_{ij} = 0 for all j∈Sj \in S.

If X0βˆΌΟ€X_0 \sim \pi, then XtβˆΌΟ€X_t \sim \pi for all tβ‰₯0t \geq 0. The equation Ο€Q=0\pi Q = 0 is the continuous-time analogue of Ο€P=Ο€\pi P = \pi for discrete-time chains.

ExampleStationary distribution for two-state chain

For the generator

Q=(βˆ’Ξ±Ξ±Ξ²βˆ’Ξ²),Q = \begin{pmatrix} -\alpha & \alpha \\ \beta & -\beta \end{pmatrix},

we solve Ο€Q=0\pi Q = 0:

Ο€0(βˆ’Ξ±)+Ο€1Ξ²=0,Ο€0Ξ±+Ο€1(βˆ’Ξ²)=0.\pi_0 (-\alpha) + \pi_1 \beta = 0, \quad \pi_0 \alpha + \pi_1 (-\beta) = 0.

Both equations give Ο€1Ξ²=Ο€0Ξ±\pi_1 \beta = \pi_0 \alpha. With Ο€0+Ο€1=1\pi_0 + \pi_1 = 1:

Ο€0=Ξ²Ξ±+Ξ²,Ο€1=Ξ±Ξ±+Ξ².\pi_0 = \frac{\beta}{\alpha+\beta}, \quad \pi_1 = \frac{\alpha}{\alpha+\beta}.


Detailed balance

Definition2.5Reversibility

A CTMC is reversible with respect to a distribution Ο€\pi if

Ο€iqij=Ο€jqjiforΒ allΒ i,j∈S.\pi_i q_{ij} = \pi_j q_{ji} \quad \text{for all } i, j \in S.

Reversibility (detailed balance) implies Ο€Q=0\pi Q = 0. Many CTMCs arising in applications (e.g., queueing networks, chemical reaction networks) satisfy detailed balance.

ExampleM/M/1 queue

For the M/M/1M/M/1 queue with arrival rate Ξ»\lambda and service rate ΞΌ\mu, the stationary distribution (for ρ=Ξ»/ΞΌ<1\rho = \lambda/\mu < 1) is geometric: Ο€n=(1βˆ’Ο)ρn\pi_n = (1-\rho)\rho^n. One can verify detailed balance:

Ο€nΞ»=(1βˆ’Ο)ρnΞ»=(1βˆ’Ο)ρn+1ΞΌ=Ο€n+1ΞΌ.\pi_n \lambda = (1-\rho)\rho^n \lambda = (1-\rho)\rho^{n+1} \mu = \pi_{n+1} \mu.


Explosion and regularity

RemarkExplosion

For countably infinite state spaces, the chain may explode: it performs infinitely many jumps in finite time. This happens if βˆ‘n=1∞1/Ξ»in<∞\sum_{n=1}^\infty 1/\lambda_{i_n} < \infty 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 QQ encodes the dynamics of continuous-time Markov chains:

  • Off-diagonal entries: qijβ‰₯0q_{ij} \geq 0 are transition rates (iβ†’ji \to j).
  • Diagonal entries: qii=βˆ’Ξ»iq_{ii} = -\lambda_i, where Ξ»i\lambda_i is the exit rate from ii.
  • Kolmogorov equations: Pβ€²(t)=QP(t)=P(t)QP'(t) = QP(t) = P(t)Q.
  • Stationary distribution: Ο€Q=0\pi Q = 0.
  • Detailed balance: Ο€iqij=Ο€jqji\pi_i q_{ij} = \pi_j q_{ji} for reversible chains.

The QQ-matrix framework unifies the theory of continuous-time Markov chains and connects to exponential holding times and discrete-time jump chains.