Supriya Ghosh (Editor)

Phase type distribution

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Median
  
no simple closed form

Parameters
  
S , m × m {displaystyle S,;m imes m} subgenerator matrix α {displaystyle {oldsymbol {alpha }}} , probability row vector

Support
  
x ∈ [ 0 ; ∞ ) {displaystyle xin [0;infty )!}

PDF
  
α e x S S 0 {displaystyle {oldsymbol {alpha }}e^{xS}{oldsymbol {S}}^{0}} See article for details

CDF
  
1 − α e x S 1 {displaystyle 1-{oldsymbol {alpha }}e^{xS}{oldsymbol {1}}}

Mean
  
− α S − 1 1 {displaystyle -{oldsymbol {alpha }}{S}^{-1}mathbf {1} }

A phase-type distribution is a probability distribution constructed by a convolution or mixture of exponential distributions. It results from a system of one or more inter-related Poisson processes occurring in sequence, or phases. The sequence in which each of the phases occur may itself be a stochastic process. The distribution can be represented by a random variable describing the time until absorption of a Markov process with one absorbing state. Each of the states of the Markov process represents one of the phases.

Contents

It has a discrete time equivalent the discrete phase-type distribution.

The set of phase-type distributions is dense in the field of all positive-valued distributions, that is, it can be used to approximate any positive-valued distribution.

Definition

Consider a continuous-time Markov process with m + 1 states, where m ≥ 1, such that the states 1,...,m are transient states and state 0 is an absorbing state. Further, let the process have an initial probability of starting in any of the m + 1 phases given by the probability vector (α0,α) where α0 is a scalar and α is a 1 × m vector.

The continuous phase-type distribution is the distribution of time from the above process's starting until absorption in the absorbing state.

This process can be written in the form of a transition rate matrix,

Q = [ 0 0 S 0 S ] ,

where S is an m × m matrix and S0 = –S1. Here 1 represents an m × 1 vector with every element being 1.

Characterization

The distribution of time X until the process reaches the absorbing state is said to be phase-type distributed and is denoted PH(α,S).

The distribution function of X is given by,

F ( x ) = 1 α exp ( S x ) 1 ,

and the density function,

f ( x ) = α exp ( S x ) S 0 ,

for all x > 0, where exp( · ) is the matrix exponential. It is usually assumed the probability of process starting in the absorbing state is zero (i.e. α0= 0). The moments of the distribution function are given by

E [ X n ] = ( 1 ) n n ! α S n 1 .

The Laplace transform of the phase type distribution is given by

M ( s ) = α 0 + α ( s I S ) 1 S 0 ,

where I is the identity matrix.

Special cases

The following probability distributions are all considered special cases of a continuous phase-type distribution:

  • Degenerate distribution, point mass at zero or the empty phase-type distribution - 0 phases.
  • Exponential distribution - 1 phase.
  • Erlang distribution - 2 or more identical phases in sequence.
  • Deterministic distribution (or constant) - The limiting case of an Erlang distribution, as the number of phases become infinite, while the time in each state becomes zero.
  • Coxian distribution - 2 or more (not necessarily identical) phases in sequence, with a probability of transitioning to the terminating/absorbing state after each phase.
  • Hyper-exponential distribution (also called a mixture of exponential) - 2 or more non-identical phases, that each have a probability of occurring in a mutually exclusive, or parallel, manner. (Note: The exponential distribution is the degenerate situation when all the parallel phases are identical.)
  • Hypoexponential distribution - 2 or more phases in sequence, can be non-identical or a mixture of identical and non-identical phases, generalises the Erlang.
  • As the phase-type distribution is dense in the field of all positive-valued distributions, we can represent any positive valued distribution. However, the phase-type is a light-tailed or platikurtic distribution. So the representation of heavy-tailed or leptokurtic distribution by phase type is an approximation, even if the precision of the approximation can be as good as we want.

    Examples

    In all the following examples it is assumed that there is no probability mass at zero, that is α0 = 0.

    Exponential distribution

    The simplest non-trivial example of a phase-type distribution is the exponential distribution of parameter λ. The parameter of the phase-type distribution are : S = -λ and α = 1.

    Hyper-exponential or mixture of exponential distribution

    The mixture of exponential or hyper-exponential distribution with λ12,...,λn>0 can be represented as a phase type distribution with

    α = ( α 1 , α 2 , α 3 , α 4 , . . . , α n )

    with i = 1 n α i = 1 and

    S = [ λ 1 0 0 0 0 0 λ 2 0 0 0 0 0 λ 3 0 0 0 0 0 λ 4 0 0 0 0 0 λ 5 ] .

    This mixture of densities of exponential distributed random variables can be characterized through

    f ( x ) = i = 1 n α i λ i e λ i x = i = 1 n α i f X i ( x ) ,

    or its cumulative distribution function

    F ( x ) = 1 i = 1 n α i e λ i x = i = 1 n α i F X i ( x ) .

    with X i E x p ( λ i )

    Erlang distribution

    The Erlang distribution has two parameters, the shape an integer k > 0 and the rate λ > 0. This is sometimes denoted E(k,λ). The Erlang distribution can be written in the form of a phase-type distribution by making S a k×k matrix with diagonal elements -λ and super-diagonal elements λ, with the probability of starting in state 1 equal to 1. For example, E(5,λ),

    α = ( 1 , 0 , 0 , 0 , 0 ) ,

    and

    S = [ λ λ 0 0 0 0 λ λ 0 0 0 0 λ λ 0 0 0 0 λ λ 0 0 0 0 λ ] .

    For a given number of phases, the Erlang distribution is the phase type distribution with smallest coefficient of variation.

    The hypoexponential distribution is a generalisation of the Erlang distribution by having different rates for each transition (the non-homogeneous case).

    Mixture of Erlang distribution

    The mixture of two Erlang distribution with parameter E(3,β1), E(3,β2) and (α12) (such that α1 + α2 = 1 and for each i, αi ≥ 0) can be represented as a phase type distribution with

    α = ( α 1 , 0 , 0 , α 2 , 0 , 0 ) ,

    and

    S = [ β 1 β 1 0 0 0 0 0 β 1 β 1 0 0 0 0 0 β 1 0 0 0 0 0 0 β 2 β 2 0 0 0 0 0 β 2 β 2 0 0 0 0 0 β 2 ] .

    Coxian distribution

    The Coxian distribution is a generalisation of the hypoexponential distribution. Instead of only being able to enter the absorbing state from state k it can be reached from any phase. The phase-type representation is given by,

    S = [ λ 1 p 1 λ 1 0 0 0 0 λ 2 p 2 λ 2 0 0 0 0 λ k 2 p k 2 λ k 2 0 0 0 0 λ k 1 p k 1 λ k 1 0 0 0 0 λ k ]

    and

    α = ( 1 , 0 , , 0 ) ,

    where 0 < p1,...,pk-1 ≤ 1. In the case where all pi = 1 we have the hypoexponential distribution. The Coxian distribution is extremely important as any acyclic phase-type distribution has an equivalent Coxian representation.

    The generalised Coxian distribution relaxes the condition that requires starting in the first phase.

    Minima of Independent PH Random Variables

    Similarly to the exponential distribution, the class of PH distributions is closed under minima of independent random variables. A description of this is here.

    Generating samples from phase-type distributed random variables

    BuTools includes methods for generating samples from phase-type distributed random variables.

    Approximating other distributions

    Any distribution can be arbitrarily well approximated by a phase type distribution. In practice, however, approximations can be poor when the size of the approximating process is fixed. Approximating a deterministic distribution of time 1 with 10 phases, each of average length 0.1 will have variance 0.1 (because the Erlang distribution has smallest variance).

  • BuTools a MATLAB and Mathematica script for fitting phase-type distributions to 3 specified moments
  • momentmatching a MATLAB script to fit a minimal phase-type distribution to 3 specified moments
  • Fitting a phase type distribution to data

    Methods to fit a phase type distribution to data can be classified as maximum likelihood methods or moment matching methods. Fitting a phase type distribution to heavy-tailed distributions has been shown to be practical in some situations.

  • PhFit a C script for fitting discrete and continuous phase type distributions to data
  • EMpht is a C script for fitting phase-type distributions to data or parametric distributions using an expectation–maximization algorithm.
  • HyperStar was developed around the core idea of making phase-type fitting simple and user-friendly, in order to advance the use of phase-type distributions in a wide range of areas. It provides a graphical user interface and yields good fitting results with only little user interaction.
  • jPhase is a Java library which can also compute metrics for queues using the fitted phase type distribution
  • References

    Phase-type distribution Wikipedia