Skip to main content
QUICK REVIEW

[Paper Review] matrixdist: An R Package for Inhomogeneous Phase-Type Distributions

Martin Bladt, Jorge Yslas|arXiv (Cornell University)|Jan 20, 2021
Insurance, Mortality, Demography, Risk ManagementSocial Sciences9 references5 citations
TL;DR

This paper introduces the matrixdist R package for statistical modeling using inhomogeneous phase-type (IPH) distributions, which generalize phase-type (PH) distributions by enabling flexible tail behavior through time-inhomogeneous Markov jump processes. The package implements a three-step EM algorithm to efficiently estimate IPH models from aggregated, censored, or discretized data, offering accurate likelihood-based inference with moderate parameter counts.

ABSTRACT

Inhomogeneous phase-type distributions (IPH) are a broad class of laws which arise from the absorption times of Markov jump processes. In the time-homogeneous particular case, we recover phase-type (PH) distributions. In matrix notation, various functionals corresponding to their distributional properties are explicitly available and succinctly described. As the number of parameters increases, IPH distributions may converge weakly to any probability measure on the positive real line, making them particularly attractive candidates for statistical modelling purposes. Contrary to PH distributions, the IPH class allows for a wide range of tail behaviours, which often leads to adequate estimation with a moderate number of parameters. One of the main difficulties in estimating PH and IPH distributions is their large number of matrix parameters. This drawback is best handled through the expectation-maximisation (EM) algorithm, exploiting the underlying and unobserved Markov structure. The matrixdist package presents tools for IPH distributions to efficiently evaluate functionals, simulate, and carry out maximum likelihood estimation through a three-step EM algorithm. Aggregated and right-censored data are supported by the fitting routines, and in particular, one may estimate time-to-event data, histograms, or discretised theoretical distributions.

Motivation & Objective

  • To develop a computational framework for statistical modeling using inhomogeneous phase-type (IPH) distributions, which generalize standard phase-type (PH) distributions by allowing time-varying transition intensities.
  • To address the challenge of high-dimensional matrix parameter estimation in IPH models through an efficient implementation of the expectation-maximization (EM) algorithm.
  • To support likelihood-based inference for IPH distributions on various data types, including right-censored, aggregated, and discretized time-to-event data.
  • To provide a user-friendly R package that enables simulation, functional evaluation, and maximum likelihood estimation of IPH distributions with minimal user implementation.

Proposed method

  • The method leverages the matrix representation of Markov jump processes to express distributional functionals such as survival functions, moments, and densities in closed form.
  • A three-step EM algorithm is employed to estimate IPH parameters by exploiting the latent Markov structure, iteratively improving likelihood through E-step (conditional expectations) and M-step (parameter updates).
  • The E-step computes expected sufficient statistics using matrix exponentials and transition probabilities derived from time-inhomogeneous generator matrices.
  • The M-step updates the generator matrix parameters via closed-form solutions or iterative optimization, ensuring convergence to local maxima.
  • The package supports data types such as right-censored observations, histograms, and discretized theoretical distributions by adapting the likelihood contribution accordingly.
  • Simulation routines generate sample paths from the underlying Markov process, enabling empirical validation and goodness-of-fit assessment.

Experimental results

Research questions

  • RQ1Can inhomogeneous phase-type distributions provide a flexible yet tractable parametric model for time-to-event data with complex tail behavior?
  • RQ2How can the high-dimensional matrix parameter space of IPH distributions be efficiently estimated in practice?
  • RQ3To what extent does the EM algorithm with latent Markov structure improve convergence and accuracy in IPH model fitting?
  • RQ4Can the matrixdist package handle real-world data types such as censored or aggregated observations with high fidelity?

Key findings

  • The matrixdist package enables accurate maximum likelihood estimation of IPH distributions using a three-step EM algorithm, significantly reducing computational burden through matrix-based functionals.
  • IPH distributions can achieve weak convergence to any probability measure on the positive real line with a moderate number of parameters, offering high flexibility in modeling diverse survival patterns.
  • The method supports estimation on aggregated and right-censored data, making it suitable for real-world survival analysis applications with incomplete observations.
  • The use of matrix notation allows for explicit and succinct computation of key distributional properties, such as survival functions and moments, enhancing both interpretability and efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.