Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-06T01:24:37.394Z Has data issue: false hasContentIssue false

Boosted Poisson regression trees: a guide to the BT package in R

Published online by Cambridge University Press:  15 January 2024

Gireg Willame*
Affiliation:
Actuarial Expert Consultant, Detralytics, Brussels, Belgium
Julien Trufin
Affiliation:
Department of Mathematics, Université Libre de Bruxelles (ULB), Brussels, Belgium
Michel Denuit
Affiliation:
Institute of Statistics, Biostatistics and Actuarial Science, UCLouvain, Louvain-la-Neuve, Belgium
*
Corresponding author: Gireg Willame; Email: g.willame@detralytics.eu
Rights & Permissions [Opens in a new window]

Abstract

Thanks to its outstanding performances, boosting has rapidly gained wide acceptance among actuaries. Wüthrich and Buser (Data Analytics for Non-Life Insurance Pricing. Lecture notes available at SSRN. http://dx.doi.org/10.2139/ssrn.2870308, 2019) established that boosting can be conducted directly on the response under Poisson deviance loss function and log-link, by adapting the weights at each step. This is particularly useful to analyze low counts (typically, numbers of reported claims at policy level in personal lines). Huyghe et al. (Boosting cost-complexity pruned trees on Tweedie responses: The ABT machine for insurance ratemaking. Scandinavian Actuarial Journal. https://doi.org/10.1080/03461238.2023.2258135, 2022) adopted this approach to propose a new boosting machine with cost-complexity pruned trees. In this approach, trees included in the score progressively reduce to the root-node one, in an adaptive way. This paper reviews these results and presents the new BT package in R contributed by Willame (Boosting Trees Algorithm. https://cran.r-project.org/package=BT; https://github.com/GiregWillame/BT, 2022), which is designed to implement this approach for insurance studies. A numerical illustration demonstrates the relevance of the new tool for insurance pricing.

Information

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

Figure 1 Illustration of the construction of the BT tree for ID = 3 based on rpart output. At each step, the splitting candidates are highlighted in green, and the chosen strategy (best improvement by splitting this node) is highlighted in red.

Figure 1

Figure 2 Univariate descriptive analysis. (a) CarAge. (b) DriverAge. (c) Brand. (d) Power. (e) Density. (f) Region. (g) Gas.

Figure 2

Figure 3 Validation set deviance. (a) $\texttt{BT}$. (b) $\texttt{ABT}$. (c) $\texttt{gbm3}$. (d) $\texttt{xgboost}$. (e) $\texttt{lightgbm}$.

Figure 3

Figure 4 Cross-validation deviance. (a) $\texttt{BT}$. (b) $\texttt{ABT}$. (c) $\texttt{gbm3}$. (d) $\texttt{xgboost}$. (e) $\texttt{lightgbm}$.

Figure 4

Figure 5 Minimal deviance for each run. (a) Validation set. (b) Cross-validation.

Figure 5

Figure 6 Minimal test set deviance for each run. (a) Validation set. (b) Cross-validation.

Figure 6

Figure 7 Predictions’ histogram – Min. predicted value = $7.52 \times 10^{-5}$, band length = 0.025 for the left graph (0.006 on the right graph). (a) All bands. (b) Zoom on first five bands.

Figure 7

Figure 8 Simple lift chart for best CV-runs. (a) $\texttt{BT}$. (b) $\texttt{ABT}$. (c) $\texttt{gbm3}$. (d) $\texttt{xgboost}$. (e) $\texttt{lightgbm}$.

Figure 8

Figure 9 Rank performances. (a) ICC/ABC. (b) Kendall Tau’s.

Figure 9

Table 6.1. Variable importance (in %)