Expert Functions

The LRMoE.jl package supports a collection of distributions commonly used for modelling insurance claim frequency and severity.

Discrete Distributions (Frequency Modelling)

LRMoE.GammaCountExpertType
GammaCountExpert(m, s)

PMF:

\[P(X = k) = G(m k, s T) - G(m (k+1), s T), \quad \text{ for } k = 0,1,2, \ldots, n.\]

with

\[G(m k, s T) = \frac{1}{\Gamma(mk)} \int^{sT}_{0} u^{mk - 1} e^{-u} du\]

See also: Gamma Count Distribution (Arxiv)

source

Continuous Distributions (Severity Modelling)

LRMoE.BurrExpertType
BurrExpert(k, c, λ)

PDF:

\[f(x; k, c, \lambda) = \frac{kc}{\lambda} \left( \frac{x}{\lambda} \right)^{c-1} \left( 1+ \left( \frac{x}{\lambda} \right)^{c} \right)^{-k-1}, \quad x \geq 0\]

See also: Burr Distribution (Mathworks, implemented in this package), Burr Distribution (Wikipedia, with λ = 1)

source
LRMoE.GammaExpertType
GammaExpert(k, θ)

PDF:

\[f(x; k, \theta) = \frac{x^{k-1} e^{-x/\theta}}{\Gamma(k) \theta^k}, \quad x > 0\]

See also: Gamma Distribution (Wikipedia), shape-scale parameterization

source

Zero Inflation

Zero inflation is supported for all discrete and continuous experts. They can be constructed by adding ZI in front of an expert function, with an additional parameter p (or p0 if the expert already uses p, e.g. binomial) for modelling a probability mass at zero. Zero-inflated experts are used in the same way as their non-zero-inflated counterpart. A complete list of zero-inflated expert functions is given below.

ZIBinomialExpert(p0, n, p)
ZINegativeBinomialExpert(p0, n, p)
ZIPoissonExpert(p, λ)
ZIGammaCountExpert(p, m, s)
ZIBurrExpert(p, k, c, λ)
ZIGammaExpert(p, k, θ)
ZIInverseGaussianExpert(p, μ, λ)
ZILogNormalExpert(p, μ, σ)
ZIWeibullExpert(p, k, θ)

Adding Customized Expert Functions

See here.