Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-05T12:36:48.046Z Has data issue: false hasContentIssue false

LRMoE.jl: a software package for insurance loss modelling using mixture of experts regression model

Published online by Cambridge University Press:  18 March 2021

Spark C. Tseung
Affiliation:
Department of Statistical Sciences, University of Toronto, 100 St George Street, Toronto, ON M5S 3G3, Canada
Andrei L. Badescu
Affiliation:
Department of Statistical Sciences, University of Toronto, 100 St George Street, Toronto, ON M5S 3G3, Canada
Tsz Chai Fung
Affiliation:
RiskLab, Department of Mathematics, ETH Zurich, Zurich 8092, Switzerland, Department of Risk Management and Insurance, Georgia State University, Atlanta, GA 30303, USA
X. Sheldon Lin*
Affiliation:
Department of Statistical Sciences, University of Toronto, 100 St George Street, Toronto, ON M5S 3G3, Canada
*
*Corresponding author. E-mail: sheldon@utstat.utoronto.ca
Rights & Permissions [Opens in a new window]

Abstract

This paper introduces a new julia package, LRMoE, a statistical software tailor-made for actuarial applications, which allows actuarial researchers and practitioners to model and analyse insurance loss frequencies and severities using the Logit-weighted Reduced Mixture-of-Experts (LRMoE) model. LRMoE offers several new distinctive features which are motivated by various actuarial applications and mostly cannot be achieved using existing packages for mixture models. Key features include a wider coverage on frequency and severity distributions and their zero inflation, the flexibility to vary classes of distributions across components, parameter estimation under data censoring and truncation and a collection of insurance ratemaking and reserving functions. The package also provides several model evaluation and visualisation functions to help users easily analyse the performance of the fitted model and interpret the model in insurance contexts.

Information

Type
Paper
Copyright
© The Author(s), 2021. Published by Cambridge University Press on behalf of Institute and Faculty of Actuaries
Figure 0

Table 1. Distributions supported by LRMoE.

Figure 1

Table 2. Description of demo dataset.

Figure 2

Table 3. True model of demo dataset.

Figure 3

Table 4. Fitted model 1 of demo dataset.

Figure 4

Table 5. Fitted model 2 of demo dataset.

Figure 5

Figure 1. Fitting results of DemoData.

Figure 6

Table 6. Description of French auto insurance data.

Figure 7

Table 7. Sample initialisation of parameters.

Figure 8

Table 8. Fitting results of French auto insurance data.

Figure 9

Table 9. Selected policyholders in French auto insurance dataset.

Figure 10

Table 10. Pricing calculation for selected policyholders in French Auto Insurance Dataset. For portfolio-level premium principles, the allocation is based on the relative size of pure premium, where the weight for policyholder i is $w_i = E[Y_i]/\sum_{j}E[Y_j]$. For each policyholder and premium principle, the calculation is done based on both prior probability (left column) and posterior probability (right column).

Figure 11

Figure 2. Prior and posterior latent class probabilities for selected policyholders. Component 6 (Lognormal(6.58, 1.95)) corresponds to the tail, while Component 3 (Lognormal(6.95, 1.05)) corresponds to the largest spike in the dataset.

Figure 12

Figure 3. Overall goodness of fit of positive claims in the French auto insurance dataset.

Figure 13

Figure 4. Covariate influence: brand, region and car age.