Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Generalized Linear Chain Trick (GLCT)

Updated 25 May 2026
  • Generalized Linear Chain Trick (GLCT) is a mathematical framework that converts distributed delay dynamics into finite-dimensional ODE systems using phase-type distributions.
  • Built on CTMC foundations, GLCT extends the classical Linear Chain Trick to improve model flexibility, analytical tractability, and applicability across disciplines.
  • GLCT enables precise modeling of arbitrary dwell-time distributions through state augmentation and efficient numerical integration in complex systems.

The Generalized Linear Chain Trick (GLCT) is a systematic mathematical framework for incorporating arbitrary phase-type distributed delays and general dwell-time laws into systems of ordinary differential equations (ODEs). GLCT extends the classical Linear Chain Trick (LCT), which is based on Erlang (gamma) distributions, to encompass the full family of phase-type (PH) distributions by exploiting their characterization as absorption time distributions of continuous-time Markov chains (CTMCs). This formalism enables modelers to replace distributed-delay or delay differential equation (DDE) terms with a finite-dimensional ODE system, greatly enhancing the flexibility, analytical tractability, and computational efficiency of compartmental models in biology, epidemiology, ecology, and engineering (Hurtado et al., 2020).

1. Phase-Type Distributions and CTMC Foundations

A phase-type (PH) distribution is defined as the distribution of the absorption time in a finite CTMC with one absorbing state and kk transient states, characterized by:

  • An initial probability row vector α=(α1,…,αk)\boldsymbol{\alpha}=(\alpha_1,\ldots,\alpha_k) with ∑iαi=1\sum_i \alpha_i=1, αi≥0\alpha_i\geq0.
  • A k×kk\times k subgenerator matrix T\mathbf{T}, where Tij≥0T_{ij}\ge0 for i≠ji\neq j and Tii=−∑j≠iTijT_{ii}=-\sum_{j\neq i}T_{ij}.

Letting 1\mathbf{1} denote the kk-vector of ones, for random variable X∼PH(α,T)X\sim\mathrm{PH}(\boldsymbol{\alpha},\mathbf{T}), relevant quantities are: fX(t)=α eTt (−T1),FX(t)=1−α eTt 1,E[Xm]=m!α(−T)−m1.f_X(t) = \boldsymbol{\alpha}\,e^{\mathbf{T}t}\,(-\mathbf{T}\mathbf{1}),\qquad F_X(t) = 1-\boldsymbol{\alpha}\,e^{\mathbf{T}t}\,\mathbf{1},\qquad \mathbb{E}[X^m]=m! \boldsymbol{\alpha}(-\mathbf{T})^{-m}\mathbf{1}. This general family encompasses exponential, Erlang/gamma, Coxian, hypoexponential, hyperexponential distributions, and any finite PH distribution (Hurtado et al., 2020, Hurtado et al., 2020, Hurtado et al., 2018).

2. Formal Statement and ODE Formulation of the GLCT

GLCT provides a mean-field ODE system equivalent to the introduction of distributed or delayed dynamics through a PH law. If individuals enter state XX at a (possibly time-varying) rate I(t)\mathcal{I}(t) and experience a dwell-time X∼PH(α,T)X\sim\mathrm{PH}(\boldsymbol{\alpha},\mathbf{T}), one introduces kk “phases” X1,…,XkX_1, \ldots, X_k whose means xi(t)=E[Xi(t)]x_i(t)=\mathbb{E}[X_i(t)] satisfy (Hurtado et al., 2020): ddtx(t)=α I(t)+TT x(t),x(0)=0,\frac{d}{dt}\mathbf{x}(t)=\boldsymbol{\alpha}\,\mathcal{I}(t)+\mathbf{T}^\mathsf{T}\,\mathbf{x}(t), \qquad \mathbf{x}(0)=\mathbf{0}, or in component form,

dxidt=αiI(t)+∑j=1kTjixj(t),i=1,…,k.\frac{dx_i}{dt} = \alpha_i\mathcal{I}(t) + \sum_{j=1}^k T_{ji}x_j(t), \quad i=1,\ldots,k.

The total exit rate from XX at time tt is (−T1)Tx(t)(-\mathbf{T}\mathbf{1})^\mathsf{T}\mathbf{x}(t), and this flux can be routed to downstream compartments, accordant with the original system logic (Hurtado et al., 2020, Hurtado et al., 2020, Hurtado et al., 2020).

3. Classical Linear Chain Trick as a Special Case

The LCT is a specific instance of the GLCT for Erlang-distributed dwell times. For α=(1,0,…,0)\boldsymbol{\alpha}=(1,0,\ldots,0) and

T=(−r1r10⋯00−r2r2⋱0⋮⋱⋱⋱rk−10⋯0−rk0),\mathbf{T}= \begin{pmatrix} -r_1 & r_1 & 0 & \cdots & 0 \\ 0 & -r_2 & r_2 & \ddots & 0 \\ \vdots & \ddots & \ddots & \ddots & r_{k-1} \\ 0 & \cdots & 0 & -r_k & 0 \end{pmatrix},

the ODEs are: {x˙1=I(t)−r1x1,x˙2=r1x1−r2x2,  ⋮x˙k=rk−1xk−1−rkxk,\begin{cases} \dot{x}_1 = \mathcal{I}(t) - r_1 x_1, \\ \dot{x}_2 = r_1 x_1 - r_2 x_2, \\ \,\, \vdots \\ \dot{x}_k = r_{k-1} x_{k-1} - r_k x_k, \end{cases} yielding the classical “linear chain” trick and, for r1=⋯=rk=rr_1=\cdots=r_k=r, standard Erlang(k,rk, r) distribution of delay/dwell time (Hurtado et al., 2020, Hurtado et al., 2020).

4. GLCT for General Distributed Delays and Mixed Kernels

GLCT enables the embedding of distributed-delay terms, such as memory kernel convolutions, into ODE systems. For a DDE

x˙(t)=f(x(t),z(t)),z(t)=∫0∞g(τ)h(x(t−τ)) dτ,\dot{x}(t) = f(x(t), z(t)), \qquad z(t) = \int_0^\infty g(\tau) h(x(t-\tau))\,d\tau,

if g(τ)g(\tau) is approximated by a mixture of mm Erlang densities: g(τ)≈g^(τ)=∑i=1mαiλikiτki−1(ki−1)!e−λiτ,g(\tau) \approx \hat{g}(\tau) = \sum_{i=1}^m \alpha_i \frac{\lambda_i^{k_i}\tau^{k_i-1}}{(k_i-1)!}e^{-\lambda_i\tau}, auxiliary variables zi(j)(t)z_i^{(j)}(t) satisfy: z˙i(1)(t)=λi[h(x(t))−zi(1)(t)],z˙i(j)(t)=λi[zi(j−1)(t)−zi(j)(t)],j=2,…,ki,\begin{aligned} \dot{z}_i^{(1)}(t) &= \lambda_i [h(x(t)) - z_i^{(1)}(t)],\\ \dot{z}_i^{(j)}(t) &= \lambda_i [z_i^{(j-1)}(t) - z_i^{(j)}(t)],\quad j=2,\dots,k_i, \end{aligned} and the total delayed input is

z^(t)=∑i=1mαizi(ki)(t).\hat{z}(t) = \sum_{i=1}^m \alpha_i z_i^{(k_i)}(t).

Thus, the full ODE system is (Ritschel et al., 2024, Hurtado et al., 2020): x˙(t)=f(x(t),z^(t)),z˙i(1)(t)=λi(h(x(t))−zi(1)(t)),z˙i(j)(t)=λi(zi(j−1)(t)−zi(j)(t)).\begin{aligned} \dot{x}(t) &= f(x(t), \hat{z}(t)),\\ \dot{z}_i^{(1)}(t) &= \lambda_i (h(x(t)) - z_i^{(1)}(t)),\\ \dot{z}_i^{(j)}(t) &= \lambda_i (z_i^{(j-1)}(t) - z_i^{(j)}(t)). \end{aligned}

5. Implementation: Fitting PH Distributions and Model Construction

Practical use of the GLCT involves the following steps (Hurtado et al., 2020, Hurtado et al., 2018):

  1. Select or fit a dwell-time law: Empirically estimate a target cumulative distribution Ftarget(t)F_{\rm target}(t). Fit a PH distribution PH(α,T\boldsymbol{\alpha}, \mathbf{T}) of order kk to the empirical or desired distribution, using expectation-maximization, moment-matching, or tools such as BuTools and EMpht.
  2. Augment state space: Introduce kk new ODE variables corresponding to the phases.
  3. ODE construction: Formulate the ODE subblock x˙=αI(t)+TTx\dot{\mathbf{x}} = \boldsymbol{\alpha}\mathcal{I}(t) + \mathbf{T}^\mathsf{T}\mathbf{x}, with x(0)=0\mathbf{x}(0)=0.
  4. Exit flux calculation: Compute the aggregate absorption flux as Φ(t)=(−T1)Tx(t)\Phi(t)=(-\mathbf{T}\mathbf{1})^\mathsf{T}\mathbf{x}(t), and input this to downstream components.
  5. Integration: Incorporate the GLCT-derived ODEs with the existing model structure and use standard integrators (e.g., Runge–Kutta) for simulation (Hurtado et al., 2020, Hurtado et al., 2018).

If the delay kernel is not adequately captured by a single PH law, use a finite mixture (hyper-Erlang or hyperexponential), enabling arbitrary approximation of positive-valued distributions, effectively leveraging the density of the PH family (Ritschel et al., 2024, Hurtado et al., 2020).

6. Applications: Model Generalization and Analytical Advantages

GLCT systematically generalizes ODE compartment models with rich dwell-time structure. Examples include:

  • Epidemiological models: SEIR/SEIRS models with PH-distributed latent and infectious periods. The entire infected/latent class is replaced by multidimensional phase-chains, yielding increased realism and facilitating the computation of threshold quantities (e.g., R0\mathcal{R}_0) via structured next-generation matrices (Hurtado et al., 2020, Hurtado et al., 2020).
  • Population and ecological models: Stage-structured predator-prey systems (e.g., Rosenzweig–MacArthur), where maturation and lifespan durations can take arbitrary PH forms, reflecting empirical measurements or biological detail (Hurtado et al., 2020, Hurtado et al., 2020).
  • Data-driven discovery: Model identification strategies such as SINDy can directly incorporate GLCT-based chain variables to recover distributed-delay equations from time series, estimating delay mean and dispersion within a sparse regression framework (Alanazi et al., 20 Jan 2026).

GLCT affords several advantages:

  • Flexibility: It contains the LCT, Coxian, mixture models, and allows state-dependent or time-varying PH parameters.
  • Analytical tractability: Closed-form moment and Laplace-transform expressions enable direct analysis of dynamical properties (e.g., stability, bifurcation).
  • Computational efficiency: The matrix–vector formulation exploits optimized linear algebra back-ends and accommodates high-dimensional distributed-delay models with computational ease.
  • Structural clarity: The underlying CTMC structure grounds the modeling in first-principles probabilistic interpretations (Hurtado et al., 2020, Hurtado et al., 2020).

7. Assumptions, Limitations, and Extensions

Assumptions include sufficient regularity for ODE well-posedness, non-negative, normalized memory kernels, and tractability of the fitted PH law (Ritschel et al., 2024, Hurtado et al., 2020). Limitations may arise if the number of phases or mixture components is too large, leading to stiffness or identifiability issues. Extensions under development include:

  • Generalization beyond Erlang to arbitrary PH structures and competing Poisson processes (Hurtado et al., 2018).
  • Mixed or state/time-dependent phase transitions for modeling seasonality, feedback, or other dynamic effects (Hurtado et al., 2020).
  • Use in data identification pipelines, where delay-related parameters and the governing ODE form are co-inferred from times series via machine learning frameworks (Alanazi et al., 20 Jan 2026, Ritschel et al., 2024).

GLCT unifies and extends the LCT and its variants, providing a comprehensive, theoretically grounded, and computationally robust methodology for embedding arbitrary delay/distributional assumptions in ODE-based models (Hurtado et al., 2020, Hurtado et al., 2020, Hurtado et al., 2020, Hurtado et al., 2018).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Generalized Linear Chain Trick (GLCT).