Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-06T04:04:47.806Z Has data issue: false hasContentIssue false

mvClaim: an R package for multivariate general insurance claims severity modelling

Published online by Cambridge University Press:  05 April 2021

Sen Hu*
Affiliation:
School of Mathematics and Statistics, University College Dublin, Dublin 4, Ireland Insight Centre for Data Analytics, University College Dublin, Dublin 4, Ireland
T. Brendan Murphy
Affiliation:
School of Mathematics and Statistics, University College Dublin, Dublin 4, Ireland Insight Centre for Data Analytics, University College Dublin, Dublin 4, Ireland
Adrian O’Hagan
Affiliation:
School of Mathematics and Statistics, University College Dublin, Dublin 4, Ireland Insight Centre for Data Analytics, University College Dublin, Dublin 4, Ireland
*
*Corresponding author. E-mail: sen.hu.1@ucdconnect.ie
Rights & Permissions [Opens in a new window]

Abstract

The mvClaim package in R provides flexible modelling frameworks for multivariate insurance claim severity modelling. The current version of the package implements a parsimonious mixture of experts (MoE) model family with bivariate gamma distributions, as introduced in Hu et al., and a finite mixture of copula regressions within the MoE framework as in Hu & O’Hagan. This paper presents the modelling approach theory briefly and the usage of the models in the package in detail. This package is hosted on GitHub at https://github.com/senhu/.

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. Parsimonious parameterisations of the bivariate gamma MoE models. Each $\boldsymbol{\tau}, \boldsymbol{\alpha}, \boldsymbol{\beta}$ can be modelled via different choices, depending on whether covariates are used in modelling that parameter

Figure 1

Table 2. Bivariate gamma MoE model family based on parsimonious parameterisation: under each model name “$\ast$’’ represents the gating network, which can be either “C’’ (with covariates), “V’’ (no covariates) or “E’’ (predefined mixing proportion $1/G$). While all models are possible when $G=1$, they are essentially equivalent to one of the four models indicated by “$\bullet$’’. It also indicates which models have covariates in the expert networks. In the table, $k=1,2,3$ for different $\alpha$

Figure 2

Figure 1 Scatter plot matrix of the simulated data set, coloured by component membership: the teal “$\textcolor{greennew}{\square}$’’ is component 1 and the red “$\textcolor{red}{\times}$’’ is component 2.

Figure 3

Figure 2 The classification plot of the two components of the c9 model: the teal “$\textcolor{greennew}{\square}$” is component 1 and the red “$\textcolor{red}{\times}$” is component 2.

Figure 4

Figure 3 The fitted values of the model d1, where the true values are plotted in small black “$\centerdot$’’ and the predictions are plotted in red “$\textcolor{red}{\blacksquare}$’’. Clearly the fitted values are able to capture the dependence structure within the data.

Figure 5

Figure 4 Scatter plot matrix of the simulated data set, coloured by component membership: the teal “$\textcolor{greennew}{\square}$’’ is component 1 and the red “$\textcolor{red}{\times}$’’ is component 2.

Figure 6

Figure 5 The fitted e1 model: (a) shows the classification plot of $\textbi{y}$, where the teal “$\textcolor{greennew}{\square}$’’ is component 1, the red “$\textcolor{red}{\times}$” is component 2; (b) shows the fitted values, where the true values are plotted in small teal and red “$\centerdot$’’ and the predictions are plotted in maroon “’’.

Figure 7

Figure 6 Predicted values of $\textbi{y}$ for the test data using model e1. The true values are plotted in small black “$\centerdot$’’ and the predictions are plotted in red “$\textcolor{red}{\blacksquare}$’’. Clearly the predicted values identified the dependence structures within different components and can be shown to perform better than those of univariate modelling.