Predicting motor insurance claims using telematics data-XGBoost versus logistic regression
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Pesantez-Narvaez, Jessica; Guillén, Montserrat; Alcañiz, Manuela Article Predicting motor insurance claims using telematics data- XGBoost versus logistic regression Risks Provided in Cooperation with: MDPI – Multidisciplinary Digital Publishing Institute, Basel Suggested Citation: Pesantez-Narvaez, Jessica; Guillén, Montserrat; Alcañiz, Manuela (2019) : Predicting motor insurance claims using telematics data-XGBoost versus logistic regression, Risks, ISSN 2227-9091, MDPI, Basel, Vol. 7, Iss. 2, pp. 1-16, https://doi.org/10.3390/risks7020070 This Version is available at: https://hdl.handle.net/10419/257908 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
risks Article Predicting Motor Insurance Claims Using Telematics Data—XGBoost versus Logistic Regression Jessica Pesantez-Narvaez , Montserrat Guillen * and Manuela Alcañiz Department of Econometrics, Riskcenter-IREA, Universitat de Barcelona, 08034 Barcelona, Spain; [email protected] (J.P.-N.); [email protected] (M.A.) *Correspondence: [email protected]; Tel.: +34-934-037-039 Received: 9 May 2019; Accepted: 12 June 2019; Published: 20 June 2019 Abstract: XGBoost is recognized as an algorithm with exceptional predictive capacity. Models for a binary response indicating the existence of accident claims versus no claims can be used to identify the determinants of traffic accidents. This study compared the relative performances of logistic regression and XGBoost approaches for predicting the existence of accident claims using telematics data. The dataset contained information from an insurance company about the individuals’ driving patterns—including total annual distance driven and percentage of total distance driven in urban areas. Our findings showed that logistic regression is a suitable model given its interpretability and good predictive capacity. XGBoost requires numerous model-tuning procedures to match the predictive performance of the logistic regression model and greater effort as regards to interpretation. Keywords: dichotomous response; predictive model; tree boosting; GLM; machine learning 1. Introduction Predicting the occurrence of accident claims in motor insurance lies at the heart of premium calculation, but with the development of new artificial intelligence methods, the question of choosing a suitable model has yet to be completely solved. In this article, the recently proposed methods of XGBoost (Chen and Guestrin 2016) and logistic regression are considered and compared regarding their predictive performance in a sample of insured drivers, along with their telematic information. The advantages and disadvantages of XGBoost compared to logistic regression are discussed and this study showed that a slightly improved predictive power is only obtained with the XGBoost method, but this has complicated the interpretation of the impact of covariates on the expected response. In the case of automobile insurance, where the premium calculation is regulated and has to be fully specified, the weight of each risk factor in the final price needs to be disclosed and the connection between the observed covariate value and the estimated probability of a claim needs to be shown. If these conditions are not met, the regulating authority may deny the insurance company the right to commercialize that product. This study discussed, nevertheless, why the use of an XGBoost algorithm remains interesting for actuaries and how methods both old and new might be combined for optimum results. This study does not examine any other boosting methods. However, excellent descriptions can be found in Lee and Lin (2018), while extensions to high dimensional datasets are presented in Lee and Antonio (2015 ), both of which presented cases studies of insurance applications. Many of those alternatives placed their emphasis on algorithm speed, but in terms of their essential setups they do not differ greatly from XGBoost. To compare the two competing methods, a real dataset comprising of motor insurance policy holders and their telematics measurements were used, that is, real-time driving information collected and stored via telecommunication devices. More specifically, GPS-based technology captures an insured’s driving behavior patterns, including distance travelled, driving schedules, and driving speed, Risks 2019,7, 70; doi:10.3390/risks7020070 www.mdpi.com/journal/risks
Risks 2019,7, 70 2 of 16 among many others. Here, pay-as-you-drive (PAYD) insurance schemes represent an alternative method for pricing premiums based on personal mileage travelled and driving behaviors. Guillen et al. (2019) , Verbelen et al. (2018), and P é rez-Mar í n and Guill é n(2019) showed the potential benefits of analyzing telematics information when calculating motor insurance premiums. Gao and Wüthrich (2019) analyzed high-frequency GPS location data (second per second) of individual car drivers and trips. Gao and Wüthrich (2018) and Gao et al. (2019) investigated the predictive power of covariates extracted from telematics car driving data using the speed-acceleration heatmaps proposed by Wüthrich (2017). Further, Hultkrantz et al. (2012) highlighted the importance of PAYD insurance plans insofar as they allow insurance companies to personalize premium calculation and, so, charge fairer rates. The rest of this paper is organized as follows. First, the notation is introduced and the logistic regression and XGBoost methods are outlined. Second, our dataset is described and some descriptive statistics are provided. Third, the results of our comparisons in both a training and a testing sample are reported. Finally, following the conclusion, some practical suggestions are offered about the feasibility of applying new machine learning methods to the field of insurance. 2. Methodology Description In a data set of nindividuals and Pcovariates, there is a binary response variable Yi ,i=1, . . . , ntaking values 0, 1; and a set of covariates denoted as Xip ,p=1, . . . ,P. The conditional probability density function of Yi =t(t=0, 1) given Xi ( Xi1 , . . . , XiP ), is denoted as ht(Xi) . Equivalently, it can be said that Prob(Yi=t) = ht(Xi), and that E(Yi) = Prob(Yi=1) = h1(Xi). 2.1. Logistic Regression Logistic regression, a widely recognized regression method for predicting the expected outcome of a binary dependent variable, is specified by a given set of predictor variables. McCullagh and Nelder (1989) presented the logistic regression model as part of a wider class of generalized linear models. A logistic regression is distinguished from a classical linear regression model primarily because the response variable is binary rather than continuous in nature. The logistic regression uses the logit function as a canonical link function, in other words, the log ratio of the probability functions ht(Xi)is a linear function of X; that is: ln h1(Xi) h0(Xi)=ln Prob(Yi=1) Prob(Yi=0)=β0+XP p=1Xipβp, (1) where β0 , β1 , . . . , βP are the model coefficients 1 , and Prob(Yi=1) is the probability of observing the event in the response (response equal to 1), and Prob(Yi=0) is the probability of not observing the event in the response (response equal to 0). The link function provides the relationship between the linear predictor η=β0+PP p=1Xipβp and the mean of the response given certain covariates. In a logistic regression model, the expected response is: E(Yi) = Prob(Yi=1) = eβ0+PP p=1Xipβp 1+eβ0+PP p=1Xipβp . (2) A logistic regression can be estimated by the maximum likelihood (for further details see, for example ,Greene 2002). Therefore, the idea underlying a logistic regression model is that there must be a linear combination of risk factors that is related to the probability of observing an event. The data analyst’s task is to find the fitted coefficients that best estimate the linear combination in (2) and to interpret the relationship between the covariates and the expected response. In a logistic regression 1 Note we have opted to refer here to coefficients as opposed to parameters to avoid confusion with the values defined below when describing the XGBoost method.
Risks 2019,7, 70 3 of 16 model, a positive estimated coefficient indicates a positive association. Thus, when the corresponding covariate increases, the probability of the event response also increases. If the estimated coefficient is negative, then the association is negative and, therefore, the probability of the event decreases when the observed value of the corresponding covariate increases. Odds-ratios can be calculated as the exponential values of the fitted coefficients and they can also be directly interpreted as the change in odds when the corresponding factor increases by one unit. Apart from their interpretability, the popularity of logistic regression models is based on two characteristics: (i) The maximum likelihood estimates are easily found; and (ii) the analytical form of the link function in (2) always provides predictions between 0 and 1 that can be directly interpreted as the event probability estimate. For these motives, logistic regression has become one of the most popular classifiers, their results providing a straightforward method for predicting scores or propensity values which, in turn, allow new observations to be classified to one of the two classes in the response. For R users, the glm function is the most widely used procedure for obtaining coefficient estimates and their standard errors, but alternatively, a simple optimization routine can easily be implemented. 2.2. XGBoost Chen and Guestrin (2016) proposed XGBoost as an alternative method for predicting a response variable given certain covariates. The main idea underpinning this algorithm is that it builds D classification and regression trees (or CARTs) one by one, so that each subsequent model (tree) is trained using the residuals of the previous tree. In other words, the new model corrects the errors made by the previously trained tree and then predicts the outcome. In the XGBoost, each ensemble model2uses the sum of Dfunctions to predict the output: ˆ Yi= Risks 2019, 7, x FOR PEER REVIEW 3 of 16 exponential values of the fitted coefficients and they can also be directly interpreted as the change in odds when the corresponding factor increases by one unit. Apart from their interpretability, the popularity of logistic regression models is based on two characteristics: (i) The maximum likelihood estimates are easily found; and (ii) the analytical form of the link function in (2) always provides predictions between 0 and 1 that can be directly interpreted as the event probability estimate. For these motives, logistic regression has become one of the most popular classifiers, their results providing a straightforward method for predicting scores or propensity values which, in turn, allow new observations to be classified to one of the two classes in the response. For R users, the glm function is the most widely used procedure for obtaining coefficient estimates and their standard errors, but alternatively, a simple optimization routine can easily be implemented. 2.2. XGBoost Chen and Guestrin (2016) proposed XGBoost as an alternative method for predicting a response variable given certain covariates. The main idea underpinning this algorithm is that it builds D classification and regression trees (or CARTs) one by one, so that each subsequent model (tree) is trained using the residuals of the previous tree. In other words, the new model corrects the errors made by the previously trained tree and then predicts the outcome. In the XGBoost, each ensemble model2 uses the sum of D functions to predict the output: 𝑌 = ₣(𝑋) = ∑ 𝑓 (𝑋 ), 𝑓 𝜖 Ϝ,𝑖 = 1,…,𝑛 (3) where Ϝ is the function space3 of the CART models, and each 𝑓 corresponds to an independent CART structure which is denoted as q. In other words, q is the set of rules of an independent CART that classifies each individual i into one leaf. The training phase involves classifying n observations so that, given the covariates X, each leaf has a score that corresponds to the proportion of cases which are classified into the response event for that combination of 𝑋. This score is denoted as 𝑤(). Thus, q can be written as a function q: ℝ → T, where T is the total number of leaves of a tree and j is later used to denote a particular leaf, j = 1, …, T. To calculate the final prediction for each individual, the score of the leaves are summed as in (3), where Ϝ = {f(X) = 𝑤()}, with q: ℝ → T, and 𝑤 𝜖 ℝ. In general, boosting methods fit D models in D iterations (each iteration denoted by d, d = 1, …, D) in reweighted versions. Weighting is a mechanism that penalizes the incorrect predictions of past models, in order to improve the new models. The weighting structures are generally optimal values, which are adjusted once a loss function is minimized. Then, new learners incorporate the new weighting structure in each iteration, and predict new outcomes. In particular, the XGBoost method minimizes a regularized objective function, i.e., the loss function plus the regularization term: ℒ = ∑ℓ𝑌,𝑌 + ∑ ή (𝑓 ), (4) where ℓ is a convex loss function that measures the difference between the observed response 𝑌 and predicted response 𝑌 and ή = µT+ 𝜆‖𝑤‖ , ή is the regularization term also known as the shrinkage penalty which penalizes the complexity of the model and avoids the problem of overfitting. The tree pruning parameter µ regulates the depth of the tree and 𝜆 is the regularization parameter 2 Natekin and Knoll (2013) explain that the ensemble model can be understood as a committee formed by a group of base learners or weak learners. Thus, any weak learner can be introduced as a boosting framework. Various boosting methods have been proposed, including: (B/P-) splines (Huang and Yang 2004); linear and penalized models (Hastie et al. 2009); decision trees (James et al. 2013); radial basis functions (Gomez- Verdejo et al. 2005); and Markov random fields (Dietterich et al. 2008). Although Chen and Guestrin (2016) state 𝑓 as a CART model, the R package xgboost currently performs three boosters: linear, tree and dart. 3 The XGBoost works in a function space rather than in a parameter space. This framework allows the objective function to be customized accordingly. (Xi)= XD d=1fd(Xi),fd∈F, i=1, . . . ,n(3) where F is the function space 3 of the CART models, and each fd corresponds to an independent CART structure which is denoted as q. In other words, qis the set of rules of an independent CART that classifies each individual iinto one leaf. The training phase involves classifying nobservations so that, given the covariates X, each leaf has a score that corresponds to the proportion of cases which are classified into the response event for that combination of Xi. This score is denoted as wq(X). Thus, qcan be written as a function q: RP→ T, where Tis the total number of leaves of a tree and j is later used to denote a particular leaf, j=1, . . . ,T. To calculate the final prediction for each individual, the score of the leaves are summed as in (3), where F ={f(X) =wq(X)}, with q:RP→T, and w∈RT. In general, boosting methods fit D models in D iterations (each iteration denoted by d,d=1, . . . ,D) in reweighted versions. Weighting is a mechanism that penalizes the incorrect predictions of past models, in order to improve the new models. The weighting structures are generally optimal values, which are adjusted once a loss function is minimized. Then, new learners incorporate the new weighting structure in each iteration, and predict new outcomes. In particular, the XGBoost method minimizes a regularized objective function, i.e., the loss function plus the regularization term: L=Xn i=1`(Yi,ˆ Yi) + XD d=1 Risks 2019, 7, x FOR PEER REVIEW 4 of 16 that is associated with l2-norm of the scores vector, which is a way of evaluating the magnitude of scores. Including this norm, or any other similar expression, penalizes excessive sizes in the components of 𝑤. It is noted that pruning is a machine learning technique which reduces the size of a decision tree by removing decision nodes whose corresponding features have little influence on the final prediction of the target variable. This procedure reduces the complexity of the model and, thus, corrects overfitting. The l2-norm is used in the L2 or Ridge regularization method, while the l1-norm is used in the L1 or Lasso regularization method. Both methods can take the Tikhonov or the Ivanov form (see Tikhonov and Arsenin 1977; Ivanov et al. 2013). 2.2.1. A Closer Look at the XGBoost Minimization Algorithm A loss function or a cost function like (4) measures how well a predictive algorithm fits the observed responses in a data set (for further details, see Friedman et al. 2001). For instance, in a binary classification problem, the logistic loss function is suitable because the probability score is bounded between 0 and 1. Then, by selecting a suitable threshold, a binary outcome prediction can be found. Various loss functions have been proposed in the literature, including: The square loss; the hinge loss (Steinwart and Christmann 2008); the logistic loss (Schapire and Freund 2012); the cross entropy loss (De Boer et al. 2005); and the exponential loss (Elliott and Timmermann 2003). The intuition underpinning the regularization proposed in (4) involves reducing the magnitude of 𝑤, so that the procedure can avoid the problem of overfitting. The larger the ή, the smaller the variability of the scores (Goodfellow et al. 2016). The objective function at the d-th iteration is: ℒ() = ∑ℓ𝑌,𝑌 ()+ 𝑓 (𝑋)+ ή( 𝑓 ), (5) where 𝑌 ()is the prediction of the i-th observation at the (d − 1)-th iteration. It is noted that ℓ(·,·) is generally a distance so its components can be swapped, i.e., ℓ𝑌,𝑌 = ℓ𝑌 ,𝑌. Following Chen and Guestrin (2016), it is assumed that the loss function is a symmetric function. Due to the non-linearities in the objective function to be minimized, the XGBoost is an algorithm that uses a second-order Taylor approximation of the objective function ℒ in (5) as follows: ℒ() ≅ ∑[ ℓ𝑌,𝑌 ()+𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ), (6) where 𝑔 = 𝜕 () ℓ𝑌,𝑌 () and ℎ = 𝜕 () ℓ𝑌,𝑌 () denote the first and second derivatives of the loss function ℓ with respect to the component corresponding to the predicted classifier. Since the authors minimized (6) with respect to 𝑓, this expression can be simplified by removing the constant terms as follows: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ). (7) Substituting the shrinkage penalty ή of (4) in (7), the authors obtained: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆‖𝑤‖ . (8) The l2-norm shown in (8) is equivalent to the sum of the squared weights of all T leafs. Therefore (8) is expressed as: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆∑𝑤 . (9) The definition of 𝐼 = {i|q(𝑋)}, 𝐼 is the set of observations that are classified into one leaf j, j = 1, …, T. Each 𝐼 receives the same leaf weight 𝑤. Therefore, ℒ() in (9) can also be seen as an objective function that corresponds to each set 𝐼. In this sense, the 𝑓(𝑋), which is assigned to the (fd), (4) 2 Natekin and Knoll (2013) explain that the ensemble model can be understood as a committee formed by a group of base learners or weak learners. Thus, any weak learner can be introduced as a boosting framework. Various boosting methods have been proposed, including: (B/P-) splines (Huang and Yang 2004); linear and penalized models ( Hastie et al. 2009 ); decision trees (James et al. 2013); radial basis functions (Gomez-Verdejo et al. 2005); and Markov random fields ( Dietterich et al. 2008 ). Although Chen and Guestrin (2016) state fk as a CART model, the R package xgboost currently performs three boosters: linear, tree and dart. 3 The XGBoost works in a function space rather than in a parameter space. This framework allows the objective function to be customized accordingly.
Risks 2019,7, 70 4 of 16 where ` is a convex loss function that measures the difference between the observed response Yi and predicted response ˆ Yi and ή = µ T+ 1 2λkwk2 2 , ή is the regularization term also known as the shrinkage penalty which penalizes the complexity of the model and avoids the problem of overfitting. The tree pruning parameter µ regulates the depth of the tree and λ is the regularization parameter that is associated with l2-norm of the scores vector, which is a way of evaluating the magnitude of scores. Including this norm, or any other similar expression, penalizes excessive sizes in the components of w . It is noted that pruning is a machine learning technique which reduces the size of a decision tree by removing decision nodes whose corresponding features have little influence on the final prediction of the target variable. This procedure reduces the complexity of the model and, thus, corrects overfitting. The l2-norm is used in the L2 or Ridge regularization method, while the l1-norm is used in the L1 or Lasso regularization method. Both methods can take the Tikhonov or the Ivanov form (see Tikhonov and Arsenin 1977;Ivanov et al. 2013). 2.2.1. A Closer Look at the XGBoost Minimization Algorithm A loss function or a cost function like (4) measures how well a predictive algorithm fits the observed responses in a data set (for further details, see Friedman et al. 2001). For instance, in a binary classification problem, the logistic loss function is suitable because the probability score is bounded between 0 and 1. Then, by selecting a suitable threshold, a binary outcome prediction can be found. Various loss functions have been proposed in the literature, including: The square loss; the hinge loss (Steinwart and Christmann 2008); the logistic loss (Schapire and Freund 2012); the cross entropy loss (De Boer et al. 2005); and the exponential loss (Elliott and Timmermann 2003). The intuition underpinning the regularization proposed in (4) involves reducing the magnitude of w , so that the procedure can avoid the problem of overfitting. The larger the e , the smaller the variability of the scores (Goodfellow et al. 2016). The objective function at the d-th iteration is: L(d)=Xn i=1`(Yi,ˆ Y(d−1) i+fd(Xi)) + Risks 2019, 7, x FOR PEER REVIEW 4 of 16 that is associated with l2-norm of the scores vector, which is a way of evaluating the magnitude of scores. Including this norm, or any other similar expression, penalizes excessive sizes in the components of 𝑤. It is noted that pruning is a machine learning technique which reduces the size of a decision tree by removing decision nodes whose corresponding features have little influence on the final prediction of the target variable. This procedure reduces the complexity of the model and, thus, corrects overfitting. The l2-norm is used in the L2 or Ridge regularization method, while the l1-norm is used in the L1 or Lasso regularization method. Both methods can take the Tikhonov or the Ivanov form (see Tikhonov and Arsenin 1977; Ivanov et al. 2013). 2.2.1. A Closer Look at the XGBoost Minimization Algorithm A loss function or a cost function like (4) measures how well a predictive algorithm fits the observed responses in a data set (for further details, see Friedman et al. 2001). For instance, in a binary classification problem, the logistic loss function is suitable because the probability score is bounded between 0 and 1. Then, by selecting a suitable threshold, a binary outcome prediction can be found. Various loss functions have been proposed in the literature, including: The square loss; the hinge loss (Steinwart and Christmann 2008); the logistic loss (Schapire and Freund 2012); the cross entropy loss (De Boer et al. 2005); and the exponential loss (Elliott and Timmermann 2003). The intuition underpinning the regularization proposed in (4) involves reducing the magnitude of 𝑤, so that the procedure can avoid the problem of overfitting. The larger the ή, the smaller the variability of the scores (Goodfellow et al. 2016). The objective function at the d-th iteration is: ℒ() = ∑ℓ𝑌,𝑌 ()+ 𝑓 (𝑋)+ ή( 𝑓 ), (5) where 𝑌 ()is the prediction of the i-th observation at the (d − 1)-th iteration. It is noted that ℓ(·,·) is generally a distance so its components can be swapped, i.e., ℓ𝑌,𝑌 = ℓ𝑌 ,𝑌. Following Chen and Guestrin (2016), it is assumed that the loss function is a symmetric function. Due to the non-linearities in the objective function to be minimized, the XGBoost is an algorithm that uses a second-order Taylor approximation of the objective function ℒ in (5) as follows: ℒ() ≅ ∑[ ℓ𝑌,𝑌 ()+𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ), (6) where 𝑔 = 𝜕 () ℓ𝑌,𝑌 () and ℎ = 𝜕 () ℓ𝑌,𝑌 () denote the first and second derivatives of the loss function ℓ with respect to the component corresponding to the predicted classifier. Since the authors minimized (6) with respect to 𝑓, this expression can be simplified by removing the constant terms as follows: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ). (7) Substituting the shrinkage penalty ή of (4) in (7), the authors obtained: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆‖𝑤‖ . (8) The l2-norm shown in (8) is equivalent to the sum of the squared weights of all T leafs. Therefore (8) is expressed as: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆∑𝑤 . (9) The definition of 𝐼 = {i|q(𝑋)}, 𝐼 is the set of observations that are classified into one leaf j, j = 1, …, T. Each 𝐼 receives the same leaf weight 𝑤. Therefore, ℒ() in (9) can also be seen as an objective function that corresponds to each set 𝐼. In this sense, the 𝑓(𝑋), which is assigned to the (fd), (5) where ˆ Y(d−1) i is the prediction of the i-th observation at the (d − 1)-th iteration. It is noted that `(·,·) is generally a distance so its components can be swapped, i.e., `(Yi,ˆ Yi) = `(ˆ Yi,Yi) . Following Chen and Guestrin (2016), it is assumed that the loss function is a symmetric function. Due to the non-linearities in the objective function to be minimized, the XGBoost is an algorithm that uses a second-order Taylor approximation of the objective function Lin (5) as follows: L(d)Xn i=1[`(Yi,ˆ Y(d−1) i) + gifd(Xi) + 1 2hifd2(Xi)]+ Risks 2019, 7, x FOR PEER REVIEW 4 of 16 that is associated with l2-norm of the scores vector, which is a way of evaluating the magnitude of scores. Including this norm, or any other similar expression, penalizes excessive sizes in the components of 𝑤. It is noted that pruning is a machine learning technique which reduces the size of a decision tree by removing decision nodes whose corresponding features have little influence on the final prediction of the target variable. This procedure reduces the complexity of the model and, thus, corrects overfitting. The l2-norm is used in the L2 or Ridge regularization method, while the l1-norm is used in the L1 or Lasso regularization method. Both methods can take the Tikhonov or the Ivanov form (see Tikhonov and Arsenin 1977; Ivanov et al. 2013). 2.2.1. A Closer Look at the XGBoost Minimization Algorithm A loss function or a cost function like (4) measures how well a predictive algorithm fits the observed responses in a data set (for further details, see Friedman et al. 2001). For instance, in a binary classification problem, the logistic loss function is suitable because the probability score is bounded between 0 and 1. Then, by selecting a suitable threshold, a binary outcome prediction can be found. Various loss functions have been proposed in the literature, including: The square loss; the hinge loss (Steinwart and Christmann 2008); the logistic loss (Schapire and Freund 2012); the cross entropy loss (De Boer et al. 2005); and the exponential loss (Elliott and Timmermann 2003). The intuition underpinning the regularization proposed in (4) involves reducing the magnitude of 𝑤, so that the procedure can avoid the problem of overfitting. The larger the ή, the smaller the variability of the scores (Goodfellow et al. 2016). The objective function at the d-th iteration is: ℒ() = ∑ℓ𝑌,𝑌 ()+ 𝑓 (𝑋)+ ή( 𝑓 ), (5) where 𝑌 ()is the prediction of the i-th observation at the (d − 1)-th iteration. It is noted that ℓ(·,·) is generally a distance so its components can be swapped, i.e., ℓ𝑌,𝑌 = ℓ𝑌 ,𝑌. Following Chen and Guestrin (2016), it is assumed that the loss function is a symmetric function. Due to the non-linearities in the objective function to be minimized, the XGBoost is an algorithm that uses a second-order Taylor approximation of the objective function ℒ in (5) as follows: ℒ() ≅ ∑[ ℓ𝑌,𝑌 ()+𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ), (6) where 𝑔 = 𝜕 () ℓ𝑌,𝑌 () and ℎ = 𝜕 () ℓ𝑌,𝑌 () denote the first and second derivatives of the loss function ℓ with respect to the component corresponding to the predicted classifier. Since the authors minimized (6) with respect to 𝑓, this expression can be simplified by removing the constant terms as follows: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ). (7) Substituting the shrinkage penalty ή of (4) in (7), the authors obtained: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆‖𝑤‖ . (8) The l2-norm shown in (8) is equivalent to the sum of the squared weights of all T leafs. Therefore (8) is expressed as: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆∑𝑤 . (9) The definition of 𝐼 = {i|q(𝑋)}, 𝐼 is the set of observations that are classified into one leaf j, j = 1, …, T. Each 𝐼 receives the same leaf weight 𝑤. Therefore, ℒ() in (9) can also be seen as an objective function that corresponds to each set 𝐼. In this sense, the 𝑓(𝑋), which is assigned to the (fd), (6) where gi=∂ˆ y(d−1) i `(Yi,ˆ Y(d−1) i) and hi=∂2 ˆ Y(d−1) i `(Yi,ˆ Y(d−1) i) denote the first and second derivatives of the loss function `with respect to the component corresponding to the predicted classifier. Since the authors minimized (6) with respect to fd , this expression can be simplified by removing the constant terms as follows: L(d)=Xn i=1[gifd(Xi) + 1 2hifd2(Xi)]+ Risks 2019, 7, x FOR PEER REVIEW 4 of 16 that is associated with l2-norm of the scores vector, which is a way of evaluating the magnitude of scores. Including this norm, or any other similar expression, penalizes excessive sizes in the components of 𝑤. It is noted that pruning is a machine learning technique which reduces the size of a decision tree by removing decision nodes whose corresponding features have little influence on the final prediction of the target variable. This procedure reduces the complexity of the model and, thus, corrects overfitting. The l2-norm is used in the L2 or Ridge regularization method, while the l1-norm is used in the L1 or Lasso regularization method. Both methods can take the Tikhonov or the Ivanov form (see Tikhonov and Arsenin 1977; Ivanov et al. 2013). 2.2.1. A Closer Look at the XGBoost Minimization Algorithm A loss function or a cost function like (4) measures how well a predictive algorithm fits the observed responses in a data set (for further details, see Friedman et al. 2001). For instance, in a binary classification problem, the logistic loss function is suitable because the probability score is bounded between 0 and 1. Then, by selecting a suitable threshold, a binary outcome prediction can be found. Various loss functions have been proposed in the literature, including: The square loss; the hinge loss (Steinwart and Christmann 2008); the logistic loss (Schapire and Freund 2012); the cross entropy loss (De Boer et al. 2005); and the exponential loss (Elliott and Timmermann 2003). The intuition underpinning the regularization proposed in (4) involves reducing the magnitude of 𝑤, so that the procedure can avoid the problem of overfitting. The larger the ή, the smaller the variability of the scores (Goodfellow et al. 2016). The objective function at the d-th iteration is: ℒ() = ∑ℓ𝑌,𝑌 ()+ 𝑓 (𝑋)+ ή( 𝑓 ), (5) where 𝑌 ()is the prediction of the i-th observation at the (d − 1)-th iteration. It is noted that ℓ(·,·) is generally a distance so its components can be swapped, i.e., ℓ𝑌,𝑌 = ℓ𝑌 ,𝑌. Following Chen and Guestrin (2016), it is assumed that the loss function is a symmetric function. Due to the non-linearities in the objective function to be minimized, the XGBoost is an algorithm that uses a second-order Taylor approximation of the objective function ℒ in (5) as follows: ℒ() ≅ ∑[ ℓ𝑌,𝑌 ()+𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ), (6) where 𝑔 = 𝜕 () ℓ𝑌,𝑌 () and ℎ = 𝜕 () ℓ𝑌,𝑌 () denote the first and second derivatives of the loss function ℓ with respect to the component corresponding to the predicted classifier. Since the authors minimized (6) with respect to 𝑓, this expression can be simplified by removing the constant terms as follows: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)] + ή( 𝑓 ). (7) Substituting the shrinkage penalty ή of (4) in (7), the authors obtained: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆‖𝑤‖ . (8) The l2-norm shown in (8) is equivalent to the sum of the squared weights of all T leafs. Therefore (8) is expressed as: ℒ() = ∑[𝑔 𝑓 (𝑋)+ ℎ 𝑓 (𝑋)]+ µT+ 𝜆∑𝑤 . (9) The definition of 𝐼 = {i|q(𝑋)}, 𝐼 is the set of observations that are classified into one leaf j, j = 1, …, T. Each 𝐼 receives the same leaf weight 𝑤. Therefore, ℒ() in (9) can also be seen as an objective function that corresponds to each set 𝐼. In this sense, the 𝑓(𝑋), which is assigned to the (fd). (7) Substituting the shrinkage penalty ήof (4) in (7), the authors obtained: L(d)=Xn i=1[gifd(Xi) + 1 2hifd2(Xi)]+uT+1 2λkwk2 2. (8)
Risks 2019,7, 70 5 of 16 The l2-norm shown in (8) is equivalent to the sum of the squared weights of all Tleafs. Therefore (8) is expressed as: L(d)=Xn i=1[gifd(Xi) + 1 2hifd2(Xi)]+uT+1 2λXT j=1w2 j. (9) The definition of Ij ={i|q( Xi )}, Ij is the set of observations that are classified into one leaf j,j=1, . . . ,T. Each Ij receives the same leaf weight wj . Therefore, L(d) in (9) can also be seen as an objective function that corresponds to each set Ij . In this sense, the fd(Xi) , which is assigned to the observations, corresponds to the weight wjthat is assigned to each set Ij. Therefore (9) is expressed as: L(d)=XT j=1" Xi∈Ij gi!wj+1 2 Xi∈Ij hi+λ!w2 j#+uT. (10) In order to find the optimal leaf weight w∗ j , the authors derived (10) with respect to wj , let the new equation be equal to zero, and cleared the value of w∗ j. Then the authors obtained: w∗ j=−Pi∈Ijgi Pi∈Ijhi+λ. (11) The (10) was updated by replacing the new w∗ j . The next boosting iteration minimized the following objective function: ˆ L(d)=PT j=1Pi∈Ijgi −Pi∈Ijgi Pi∈Ijhi+λ!+1 2Pi∈Ijhi+λ −Pi∈Ijgi Pi∈Ijhi+λ!2+uT =−1 2Pn i=1Pi∈Ijgi2 Pi∈Ijhi+λ+uT. (12) Once the best objective function has been defined and the optimal leaf weights assigned to Ij , the best split procedure is considered. As (12) is derived for a wide range of functions, the authors were not able to identify all possible tree structures qin each boosting iteration. This algorithm starts by building a single leaf and continues by adding new branches. Consider the following example: Here, IL and IR are the sets of observations that are in the left and right parts of a node following a split. Therefore, I=IL+IR. ˆ L(d)=1 2 −Xn i=1Pi∈Ijgi2 Pi∈Ijhi+λ+Xn i=1Pi∈ILgi2 Pi∈ILhi+λ+Xn i=1Pi∈IRgi2 Pi∈IRhi+λ −u, (13) ˆ L(d) of (13) is the node impurity measure, which is calculated for the Pcovariates. The split is determined by the maximum value of (13). For example, in the case of CART algorithms, the impurity measure for categorical target variables can be information gain, Gini impurity or chi-square, while for continuous target variables it can be the Gini impurity. Once the tree fd is completely built (i.e., its branches and leaf weights are established), observations are mapped on the tree (from the root to one corresponding leaf). Thus, the algorithms will update from (5) to (14) as many times as D boosting iterations are established and the final classification is the sum of the Dobtained functions which are shown in (3). Consequently, the XGBoost corrects the mistaken predictions in each iteration, as far as this is possible, and tends to overfit the data. Thus, to prevent overfitting, the regularization parameter value in the objective function is highly recommended.
Risks 2019,7, 70 6 of 16 2.2.2. Implementation An example of R code is given in the Appendix A. The implementation of XGBoost has proved to be quite effective for fitting real binary response data and a good method for providing a confusion matrix, i.e., a table in which observations and predictions are compared, with very few false positives and false negatives. However, since the final prediction of an XGBoost algorithm is the result of a sum of Dtrees, the graphical representation and the interpretation of the impact of each covariate on the final estimated probability of occurrence may be less direct than in the linear or logistic regression models. For instance, if the final predictor is a combination of several trees, but each tree has a different structure (in the sense that each time the order of segmentation differs from that of the previous tree), the role of each covariate will depend on understanding how the covariate impacts the result in the previous trees and what the path of each observation is in each of the previous trees. Thus, in the XGBoost approach, it is difficult to isolate the effect on the expected response of one particular covariate compared to all the others. Under certain circumstances, the XGBoost method can be interpreted directly. This happens when fd has analytical expressions that can easily be manipulated to compute PD d=1fd(Xi) . One example is the linear booster, which means that each fd is a linear combination of the covariates rather than a tree-based classifier. In this case of a linear function, the final prediction is also a linear combination of the covariates, resulting from the sum of the weights associated with each covariate in each fd. The results for the true XGBoost predictive model classifier can easily be obtained in R with the xgboost package. 3. Data and Descriptive Statistics Our case-study database comprised of 2767 drivers under 30 years of age who underwrote a pay-as-you-drive (PAYD) policy with a Spanish insurance company. Their driving activity was recorded using a telematics system. This information was collected from 1 January through 31 December 2011. The data set contained the following information about each driver: The insured’s age (age), the age of the vehicle (ageveh) in years; the insured’s gender (male); the driving experience (drivexp) in years; the percentage of total kilometers travelled in urban areas (pkmurb); the percentage of total kilometers travelled at night—that is, between midnight and 6 am (pkmnig); the percentage of kilometers above the mandatory speed limits (pkmexc); the total kilometers (kmtotal); and, finally, the presence of an accident claim with fault (Y) which was coded as 1 when, at least, one claim where the fault occurred in the observational period and was reported to the insurance company, and 0 otherwise. This study is interested in predicting Y using the aforementioned covariates. This data set has been extensively studied in Ayuso et al. (2014,2016a,2016b) and Boucher et al. (2017). Table 1shows the descriptive statistics for the accident claims data set. This highlighted that a substantial part of the sample did not suffer an accident in 2011, with just 7.05% of drivers reporting at least one accident claim. The insureds with no accident claim seemed to have travelled fewer kilometers than those presenting a claim. The non-occurrence of accident claims was also linked to a lower percentage of driving in urban areas and a lower percentage of kilometers driven above mandatory speed limits. In this dataset, 7.29% of men and 6.79% of women had an accident during the observation year. The data set was divided randomly into a training data set of 1937 observations (75% of the total sample) and a testing data set of 830 observations (25% of the total sample). The function CreateDataPartion of R was used to maintain the same proportion of events (coded as 1) of the total sample in both the training and testing data sets.
Risks 2019,7, 70 7 of 16 Table 1. The description of the variables in the accident claims data set 1. Variables Non-Occurrence of Accident Claims (Y =0) Occurrence of Accident Claims (Y =1) Total Age (years) 25.10 24.55 25.06 Gender Female 1263 (93.21%) 92 (6.79%) 1355 Male 1309 (92.71%) 103 (7.29%) 1412 Driving experience (years) 4.98 4.46 4.94 Age of vehicle (years) 6.37 6.17 6.35 Total kilometers travelled 7094.63 7634.97 7132.71 Percentage of total kilometers travelled in urban areas 24.60 26.34 24.72 Percentage of total kilometers above the mandatory speed limit 6.72 7.24 6.75 Percentage of total kilometers travelled at night 6.88 6.66 6.86 Total number of cases 2572 (92.95%) 195 (7.05%) 2767 1 The mean of the variables according to the occurrence and non-occurrence of accident claims. The absolute frequency and row percentage is shown for the variable gender. 4. Results In this section, the results obtained in the training and testing samples were compared when employing the methods described in Section 2. 4.1. Coefficient Estimates Table 2presents the estimates obtained using the two methods. It is noted, however, that the values are not comparable in magnitude as they correspond to different specifications. The logistic regression uses its classical standard method to compute the coefficients of the variables and their standard errors. However, the boosting process of the XGBoost builds Dmodels in reweighted versions and, therefore, a historical record of the Dtimes P+1 coefficient estimates was obtained. XGBoost can only obtain a magnitude of those coefficients if the base learner allows it, and this is not the case when fdare CART models. The signs obtained by the logistic regression point estimate and the mean of the XGBoost coefficients are the same. The inspection of the results in Table 2shows that older insureds are less likely to suffer a motor accident than younger policy holders 4 . In addition, individuals who travel more kilometers in urban areas are more likely to have an accident than those that travel fewer kilometers in urban areas. The authors were not able to interpret the coefficients of the XGBoost, but by inspecting the maximum and minimum values of the linear booster case, an idea of how the estimates fluctuate until iteration Dwas obtained. Only the coefficients of age and percentage of kilometers travelled in urban areas were significantly different from zero in the logistic regression model, but the authors preferred to keep all the coefficients of the covariates in the estimation results to show the general effect of the telematics covariates on the occurrence of accident at-fault claims in this dataset, and to evaluate the performance of the different methods in this situation. 4 In general, this is only partially true. The relation of the variable age is typically non-linear, U-shaped, as (very) young drivers also cause a lot of accidents. The maximum age in this sample is 30 and so, even if models with age and age 2 were estimated, the results did not change substantially.
Risks 2019,7, 70 8 of 16 Table 2. The parameter estimates of the logistic regression and XGBoost with linear booster. Training Data Set Parameter Estimates Logistic Regression XGBoost (Linear Booster) Lower Bound Estimate Upper Bound p-Value Minimum Mean Maximum Constant −2.8891 −0.5442 1.8583 0.6526 −2.6760 −2.6690 −1.7270 * age −0.2059 −0.0994 0.0011 0.0591 −0.2573 −0.2416 −0.0757 drivexp −0.1285 −0.0210 0.0906 0.7060 −0.0523 −0.0517 −0.0069 ageveh −0.0786 −0.0249 0.0257 0.3481 −0.0897 −0.0885 −0.0220 male −0.3672 0.0039 0.3751 0.9837 0.0019 0.0020 0.0070 kmtotal −0.0203 0.0266 0.2505 0.0137 0.1164 0.1176 pkmnig −0.0354 −0.0046 0.0239 0.7625 −0.0292 −0.0290 −0.0061 pkmexc −0.0122 0.0144 0.0385 0.2650 0.0180 0.1007 0.1016 * pkmurb 0.0002 0.0146 0.0286 0.0425 0.0436 0.2008 0.2023 In the logistic regression columns, the point estimates are presented with the lower and upper bound of a 95% confidence interval. In the XGBoost columns, the means of the coefficient estimates with a linear boosting of the D iterations are presented. Similarly, bounds are presented with the minimum and maximum values in the iterations. There are no regularization parameter values. * Indicates that the coefficient is significant at the 90% confidence level in the logistic regression estimation. The calculations were performed in R and scripts are available from the authors. Figure 1shows the magnitude of all the estimates of the XGBoost in 200 iterations. From approximately the tenth iteration, the coefficient estimates tend to become stabilized. Thus, no extreme changes were present during the boosting. Risks 2019, 7, x FOR PEER REVIEW 8 of 16 Figure 1 shows the magnitude of all the estimates of the XGBoost in 200 iterations. From approximately the tenth iteration, the coefficient estimates tend to become stabilized. Thus, no extreme changes were present during the boosting. Figure 1. The magnitude of all the estimates in the D = 200 iterations. The different colors indicate each of the coefficients in the XGBoost iteration. 4.2. Prediction Performance The performance of the two methods was evaluated using the confusion matrix, which compares the number of observed events and non-events with their corresponding predictions. Usually, the larger the number of correctly classified responses, the better the model. However, the out-of-sample performance was even more important than in-sample results. This means that the classifier must be able to predict the observed events and non-events in the testing sample and not just in the training sample. The predictive measures used to compare the predictions of the models were sensitivity, specificity, accuracy and the root mean square error (RMSE). Sensitivity measures the proportion of actual positives that are classified correctly as such, i.e., True positive/(True positive + False negative). Specificity measures the proportion of actual negatives that are classified correctly as such, i.e., True negative/(True negative + False positive). Accuracy measures the proportion of total cases classified correctly (True positive + True negative)/Total cases. RMSE measures the distance between the observed and predicted values of the response. It is calculated as follows: √∑(𝑌𝑖−𝑌𝑖 )2 𝑛 𝑛 𝑖 = 1 , (14) The higher the sensitivity, the specificity and the accuracy, the better the models predict the outcome variable. The lower the value of RMSE, the better the predictive performance of the model. Table 3 presents the confusion matrix and the predictive measures of the methods (the logistic regression, XGBoost with a tree booster and XGBoost with a linear booster) for the training and testing samples. The results in Table 3 indicated that the performance of the XGBoost with the linear booster (last column) was similar to that of the logistic regression both in the training and testing samples5. XGBoost using the tree approach provided good accuracy and a good RMSE value in the training sample, but did not perform as well as the other methods in the case of the testing sample. More importantly, XGBoost failed to provide good sensitivity. In fact, the XGBoost with the tree booster clearly overfitted the data, because while it performed very well in the training sample, it failed to do so in the testing sample. For instance, sensitivity was equal to 100% in the training sample for the XGBoost tree booster methods, but it was equal to only 7.9% in the testing sample. It cannot be concluded from the foregoing, however, that XGBoost has a poor relative predictive capacity. Model-tuning procedures have not been incorporated in Table 3. However, tuning offers the possibility of improving the predictive capacity by modifying some specific parameter estimates. 5 This is not surprising because XGBoost (linear) is a combination of linear probability models. Figure 1. The magnitude of all the estimates in the D=200 iterations. The different colors indicate each of the coefficients in the XGBoost iteration. 4.2. Prediction Performance The performance of the two methods was evaluated using the confusion matrix, which compares the number of observed events and non-events with their corresponding predictions. Usually, the larger the number of correctly classified responses, the better the model. However, the out-of-sample performance was even more important than in-sample results. This means that the classifier must be able to predict the observed events and non-events in the testing sample and not just in the training sample. The predictive measures used to compare the predictions of the models were sensitivity, specificity, accuracy and the root mean square error (RMSE). Sensitivity measures the proportion of actual positives that are classified correctly as such, i.e., True positive/(True positive +False negative). Specificity measures the proportion of actual negatives that are classified correctly as such, i.e., True negative/(True negative +False positive). Accuracy measures the proportion of total cases classified correctly (True
Risks 2019,7, 70 15 of 16 References Ayuso, Mercedes, Montserrat Guill é n, and Ana Mar í a P é rez-Mar í n. 2014. Time and distance to first accident and driving patterns of young drivers with pay-as-you-drive insurance. Accident Analysis and Prevention 73: 125–31. [CrossRef] [PubMed] Ayuso, Mercedes, Montserrat Guill é n, and Ana Mar í a P é rez-Mar í n. 2016a. Using GPS data to analyse the distance travelled to the first accident at fault in pay-as-you-drive insurance. Transportation Research Part C 68: 160–67. [CrossRef] Ayuso, Mercedes, Montserrat Guill é n, and Ana Mar í a P é rez-Mar í n. 2016b. Telematics and gender discrimination: some usage-based evidence on whether men’s risk of accident differs from women’s. Risks 4: 10. [CrossRef] Bishop, Christopher M. 2007. Pattern recognition and machine learning. Journal of Electronic Imaging 16: 049901. [CrossRef] Boucher, Jean-Philippe, Steven C ô t é , and Montserrat Guillen. 2017. Exposure as duration and distance in telematics motor insurance using generalized additive models. Risks 5: 54. [CrossRef] Chen, Tianqi, and Carlos Guestrin. 2016. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York: ACM, pp. 785–94. [CrossRef] De Boer, Pieter-Tjerk, Dirk P. Kroese, Shie Mannor, and Reuven Y. Rubinstein. 2005. A tutorial on the Cross Entropy Method. Annals of Operations Research 134: 19–67. [CrossRef] Dietterich, Thomas G., Pedro Domingos, Lise Getoor, Stephen Muggleton, and Prasad Tadepalli. 2008. Structured machine learning: The next ten years. Machine Learning 73: 3–23. [CrossRef] Elliott, Graham, and Allan Timmermann. 2003. Handbook of Economic Forecasting. Amsterdam: Elsevier. Friedman, Jerome, Trevor Hastie, and Robert Tibshirani. 2001. The Elements of Statistical Learning. New York: Springer. Gao, Guangyuan, and Mario V. Wüthrich. 2018. Feature extraction from telematics car driving heatmaps. European Actuarial Journal 8: 383–406. [CrossRef] Gao, Guangyuan, and Mario V. Wüthrich. 2019. Convolutional neural network classification of telematics car driving data. Risks 7: 6. [CrossRef] Gao, Guangyuan, Shengwang Meng, and Mario V. Wüthrich. 2019. Claims frequency modeling using telematics car driving data. Scandinavian Actuarial Journal 2019: 143–62. [CrossRef] Gomez-Verdejo, Vanessa, Jeronimo Arenas-Garcia, Manuel Ortega-Moral, and Anıbal R. Figueiras-Vidal. 2005. Designing RBF classifiers for weighted boosting. IEEE International Joint Conference on Neural Networks 2: 1057–62. [CrossRef] Goodfellow, Ian, Bengio Yoshua, and Courville Aaron. 2016. Deep Learning. Chenai: MIT Press. Greene, William. 2002. Econometric Analysis, 2nd ed. New York: Chapman and Hall. Guillen, Montserrat, Jens Perch Nielsen, Mercedes Ayuso, and Ana M. P é rez-Mar í n. 2019. The use of telematics devices to improve automobile insurance rates. Risk Analysis 39: 662–72. [CrossRef] [PubMed] Hastie, Trevor, Rob Tibshirani, and Jerome Friedman. 2009. The Elements of Statistical Learning: Prediction, Inference and Data Mining. New York: Springer. He, Haibo, and Edwardo A. Garcia. 2008. Learning from imbalanced data. IEEE Transactions on Knowledge & Data Engineering 9: 1263–84. [CrossRef] Huang, Jianhua Z., and Lijian Yang. 2004. Identification of non-linear additive autoregressive models. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 66: 463–77. [CrossRef] Hultkrantz, Lars, Jan-Eric Nilsson, and Sara Arvidsson. 2012. Voluntary internalization of speeding externalities with vehicle insurance. Transportation Research Part A: Policy and Practice 46: 926–37. [CrossRef] Ivanov, Valentin K., Vladimir V. Vasin, and Vitalii P. Tanana. 2013. Theory of Linear Ill-Posed Problems and Its Applications. Zeist: VSP. James, Gareth, Daniela Witten, Trevor Hastie, and Robert Tibshirani. 2013. An Introduction to Statistical Learning. New York: Springer, vol. 112, p. 18. Kuhn, Max, and Kjell Johnson. 2013. Applied Predictive Modeling. New York: Springer, vol. 26.
Risks 2019,7, 70 16 of 16 Lee, Simon, and Katrien Antonio. 2015. Why High Dimensional Modeling in Actuarial Science? Paper presented at Actuaries Institute ASTIN, AFIR/ERM and IACA Colloquia, Sydney, Australia, August 23–27. Available online: https://pdfs.semanticscholar.org/ad42/c5a42642e75d1a02b48c6eb84bab87874a1b.pdf (accessed on 8 May 2019). Lee, Simon CK, and Sheldon Lin. 2018. Delta boosting machine with application to general insurance. North American Actuarial Journal 22: 405–25. [CrossRef] Natekin, Alexey, and Alois Knoll. 2013. Gradient boosting machines, a tutorial. Frontiers in Neurorobotics 7: 21. [CrossRef] [PubMed] McCullagh, Peter, and John Nelder. 1989. Generalized Linear Models, 2nd ed. New York: Chapman and Hall. P é rez-Mar í n, Ana M., and Montserrat Guill é n. 2019. Semi-autonomous vehicles: Usage-based data evidences of what could be expected from eliminating speed limit violations. Accident Analysis and Prevention 123: 99–106. [CrossRef] [PubMed] Schapire, Robert E., and Yoav Freund. 2012. Boosting: Foundations and Algorithms. Cambridge: MIT Press. Steinwart, Ingo, and Andreas Christmann. 2008. Support Vector Machines. New York: Springer Science & Business Media. Tikhonov, Andrej-Nikolaevich, and Vasiliy-Yakovlevich Arsenin. 1977. Solutions of Ill-Posed Problems. New York: Wiley. Verbelen, Roel, Katrien Antonio, and Gerda Claeskens. 2018. Unraveling the predictive power of telematics data in car insurance pricing. Journal of the Royal Statistical Society: Series C (Applied Statistics) 67: 1275–304. [CrossRef] Wüthrich, Mario V. 2017. Covariate selection from telematics car driving data. European Actuarial Journal 7: 89–108. [CrossRef] © 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).