--- title: "Claims reserving with the chain ladder and its relatives" author: "Yiannis Parizas" description: "Claims reserving in R: the chain ladder with Mack's standard errors, Bornhuetter-Ferguson, Cape Cod, the bootstrap, the one-year view and the Munich chain ladder." output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Claims reserving with the chain ladder and its relatives} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE, fig.width = 7, fig.height = 4) ``` ## 1. Introduction This vignette estimates the reserves of a claims triangle: the claims of each origin period (such as an accident year) that are still to be paid or reported. It goes from the chain ladder to methods that use premiums, measures how uncertain the reserves are, and projects paid and incurred claims together. Every method here also runs in the reserving tool, `run_shiny_reserving_tool()`, where the link ratios can be left out with a click and the method of each origin chosen from a list. ## 2. A triangle A triangle is a matrix of cumulative claims, one row per origin and one column per development period, with `NA` for the future. `raa_triangle` holds the incurred claims of the Reinsurance Association of America (in thousands), a triangle much used to compare methods: ```{r triangle} library("NetSimR") raa_triangle ``` Data usually comes as a table, one row per origin and development period, or one row per payment. `as_triangle()` builds the triangle from it. With incremental amounts, those of the same cell are added up: ```{r as triangle} head(simulated_motor_claims) motor <- as_triangle(simulated_motor_claims, "accident_year", "development_year", "paid", cumulative = FALSE) motor[1:4, 1:6] ``` ## 3. The chain ladder and Mack's standard errors The chain ladder develops each origin's latest claims to ultimate with the average ratio of one development period's claims to the previous one's. `chain_ladder()` also gives Mack's standard error of each origin's reserve and of the total, split into the process error (the randomness of the claims to come) and the parameter error (that of the estimated factors): ```{r chain ladder} cl <- chain_ladder(raa_triangle) cl round(cl$factors, 3) ``` The IBNR is the ultimate less the latest claims: for an incurred triangle the claims not yet reported, for a paid one the case reserves as well. These results match those of the ChainLadder package's `MackChainLadder()`. ### Choosing the factors The volume-weighted factors can be replaced by simple averages, limited to the latest calendar periods, or computed without the link ratios that look out of line. The first link ratio of 1982 is 40: its claims grew from 106 to 4,285. ```{r factors} round(cl$link_ratios[1:3, 1:3], 2) exclude <- matrix(FALSE, 10, 9) exclude[2, 1] <- TRUE selected <- chain_ladder(raa_triangle, average = "simple", periods = 5, exclude = exclude) round(selected$factors, 3) selected$total[c("ultimate", "ibnr", "se")] ``` ### A tail The triangle stops at ten years, but claims can develop after that. A tail factor takes the last development period to ultimate. It can be entered, or fitted as a curve to the factors and extrapolated: ```{r tail} tailed <- chain_ladder(raa_triangle, tail = "exponential") tailed$tail tailed$total[c("ultimate", "ibnr", "se")] ``` ## 4. Methods with premiums The chain ladder relies only on each origin's own claims, which for the latest origins are few. The Bornhuetter-Ferguson method adds an a priori ultimate, premium times an expected loss ratio, and keeps the latest claims plus the share of the a priori still to develop. Benktander iterates the method once more, and the Cape Cod estimates the loss ratio from the triangle itself. The simulated motor portfolio has premiums: ```{r premiums} premium <- unique(simulated_motor_claims[c("accident_year", "earned_premium")])$earned_premium cl_motor <- chain_ladder(motor) bf <- bornhuetter_ferguson(cl_motor, premium, loss_ratio = 0.68) bk <- bornhuetter_ferguson(cl_motor, premium, loss_ratio = 0.68, iterations = 2) cc <- cape_cod(cl_motor, premium) cc$total[["loss_ratio"]] ultimates <- data.frame( origin = cl_motor$by_origin$origin, developed = round(cl_motor$by_origin$developed, 3), chain_ladder = round(cl_motor$by_origin$ultimate), bornhuetter_ferguson = round(bf$by_origin$ultimate), benktander = round(bk$by_origin$ultimate), cape_cod = round(cc$by_origin$ultimate) ) tail(ultimates, 4) ``` For the latest years the chain ladder multiplies few claims by large factors: for 2024, 57% developed, its ultimate is 9.7 million, against 8.9 to 9.4 million from the methods that lean on the premium. For the older years all the methods agree. Divided by the premiums, the ultimates give each year's loss ratio, a starting point for pricing: ```{r loss ratios} round(tail(cc$by_origin$ultimate_loss_ratio, 4), 3) ``` ## 5. How uncertain the reserves are ### Until the claims are all paid Mack's standard error measures the uncertainty of the reserve until every claim is paid. A bootstrap gives the whole distribution: England and Verrall's method resamples the residuals of an over-dispersed Poisson chain ladder, refits it to each simulated triangle and simulates the future payments: ```{r bootstrap} boot <- bootstrap_chain_ladder(raa_triangle, n = 5000, seed = 1) round(boot$total[c("ibnr", "se", "p75", "p99.5")]) hist(boot$total_reserves, breaks = 50, main = "Simulated total IBNR", xlab = NULL) abline(v = boot$total[c("ibnr", "p99.5")], lty = c(1, 2)) ``` ### Over one year Solvency II looks at one year: how much the ultimate can move as the next year's claims emerge and the factors are estimated again, the claims development result. Merz and Wuthrich's formulas give its standard error, which is below Mack's, as part of the uncertainty is resolved only in later years: ```{r one year} merz_wuthrich(raa_triangle) ``` ## 6. Paid and incurred claims together The chain ladders of paid and of incurred claims often disagree. An origin whose paid claims are low against its incurred claims is projected low on paid and high on incurred. The Munich chain ladder of Quarg and Mack corrects each factor by how far the origin's paid to incurred ratio is from its development period's average, so that the two projections meet: ```{r munich} mcl <- munich_chain_ladder(quarg_mack_paid, quarg_mack_incurred) shown <- mcl$by_origin[, c("origin", "latest_ratio", "chain_ladder_paid", "chain_ladder_incurred", "ultimate_paid", "ultimate_incurred")] shown[-1] <- round(shown[-1], 2) shown ``` ## 7. References Mack, T. (1993). Distribution-free calculation of the standard error of chain ladder reserve estimates. ASTIN Bulletin 23(2), 213-225. England, P. D. and Verrall, R. J. (2002). Stochastic claims reserving in general insurance. British Actuarial Journal 8(3), 443-518. Merz, M. and Wuthrich, M. V. (2008). Modelling the claims development result for solvency purposes. CAS E-Forum, Fall 2008, 542-568. Quarg, G. and Mack, T. (2004). Munich chain ladder. Blatter DGVFM 26(4), 597-630.