Simulated one-year view
one_year_fit.RdThe claims development result (CDR) of the chain ladder or an
expected-loss method over the coming year, by re-reserving on the ODP
bootstrap ("actuary in the box": Ohlsson and Lauzeningks 2009; England,
Verrall and Wuthrich 2019). The coming year is every cell valued in the
twelve months after the segment's valuation: one per origin for an
annual development grain, four for a quarterly one (fewer for an origin
that reaches the last age). Each simulation resamples the residuals of
the volume-weighted chain ladder as odp_bootstrap() does, projects the
increments of those cells in turn from the origin's resampled latest
value with the bootstrap's process error, as odp_bootstrap() projects,
adds them to the observed latest value, appends the cells to the
triangle, refits method and records CDR = opening ultimate - closing ultimate, so a negative CDR is an adverse development. An origin whose
remaining cells all fall in the year thus has its lifetime bootstrap
reserve as its one-year view. An origin at the last age gets no new
cell, an origin short of the latest diagonal develops from its own
latest cell (only the year's cells are appended), and a new origin
written in the coming year is not simulated. Unlike
claims_development_result() (Merz and Wuthrich), any averaging, tail
and development grain are allowed.
Usage
one_year_fit(ptr)
odp_one_year(
triangle,
column = NULL,
method = c("chain_ladder", "expected_loss", "bornhuetter_ferguson", "benktander",
"cape_cod"),
exposure = NULL,
apriori = 1,
n_iters = 1,
trend = 0,
decay = 1,
average = "volume",
sigma_interpolation = "log-linear",
tail = 1,
bootstrap_tail = FALSE,
tail_std_err = NULL,
n_sims = 10000,
seed = 0,
process = c("gamma", "none"),
dependence = c("independent", "synchronized", "rank_correlation"),
spearman = NULL,
ldf = NULL,
ldf_kind = NULL,
ldf_weight = 1,
ldf_origin = NULL,
ldf_underwriting = NULL,
bootstrap_ldf = TRUE,
n_periods = NULL,
drop_high = 0,
drop_low = 0
)
mack_one_year(
triangle,
column = NULL,
method = c("chain_ladder", "expected_loss", "bornhuetter_ferguson", "benktander",
"cape_cod"),
exposure = NULL,
apriori = 1,
n_iters = 1,
trend = 0,
decay = 1,
average = "volume",
sigma_interpolation = "log-linear",
tail = 1,
bootstrap_tail = FALSE,
tail_sigma = NULL,
tail_std_err = NULL,
n_sims = 10000,
seed = 0,
process = c("gamma", "lognormal", "residuals", "normal", "none"),
mack_average = "volume",
mack_sigma_interpolation = "log-linear",
centre_residuals = TRUE,
dependence = c("independent", "synchronized", "rank_correlation"),
spearman = NULL,
ldf = NULL,
ldf_kind = NULL,
ldf_weight = 1,
ldf_origin = NULL,
ldf_underwriting = NULL,
bootstrap_ldf = TRUE,
n_periods = NULL,
drop_high = 0,
drop_low = 0,
mack_n_periods = NULL,
mack_drop_high = 0,
mack_drop_low = 0
)Arguments
- ptr
A
OneYearFitpointer; used internally.- triangle
A cumulative triangle, with any number of segments, every origin observed from the first age up to its latest.
- column
Name of the loss column; by default the only one.
- method
The reserving method refitted at the start and at the end of the year:
"chain_ladder","expected_loss","bornhuetter_ferguson","benktander"or"cape_cod".- exposure
Name of the exposure column for the expected-loss methods;
NULLfor the chain ladder.- apriori, n_iters
As in
expected_loss_fit().- trend, decay
As in
cape_cod().- average, sigma_interpolation, tail
The chain ladder or development pattern of
method, as inchain_ladder().- bootstrap_tail
Whether the bootstrap takes
method'stailtoo, developing past the oldest age in the coming year (above);FALSEby default.- tail_std_err
With
bootstrap_tail, a constant tail factor's standard error:NULLkeeps it fixed inodp_one_year()and extrapolates it inmack_one_year(), as inodp_bootstrap()andmack_bootstrap(); an error with an estimated tail or withoutbootstrap_tail.- n_sims
Number of simulations; positive.
- seed
Seed of the simulation streams, a non-negative whole number.
- process
Process error. For
odp_one_year(), on each simulated incremental value:"gamma"(mean the expected value, variancescale * |mean|) or"none"for parameter error only. Formack_one_year(), on each next cumulative value:"gamma"or"lognormal"(negated for a negative mean) or"normal", with Mack's mean and variance;"residuals"(the mean plus a resampled residual times the standard deviation, which carries the residuals' mean and variance); or"none".- dependence, spearman
How the segments depend on each other, as in
odp_bootstrap().- ldf, ldf_kind, ldf_weight, ldf_origin, ldf_underwriting
A selected development pattern of
method, as inchain_ladder().- bootstrap_ldf
Whether the bootstrap takes
method's selected pattern too (the default), so that its simulations blend the pseudo factors with it asodp_bootstrap()andmack_bootstrap()do;FALSEsimulates from the triangle's own factors and applies the pattern only whenmethodis refitted. With the default, a cumulative pattern to the oldest age and notailimplies a tail (its level there,chain_ladder()): the bootstrap develops past the oldest age with it in the coming year, as withbootstrap_tail, and closes the origins it falls on. With atail,methodrescales the pattern's level to it, and the bootstrap reads the pattern the same way: it implies no tail, and withbootstrap_tail = FALSEthe bootstrap has none.- n_periods, drop_high, drop_low
Which link ratios the factors of
methodaverage, as inchain_ladder(). The bootstrap simulates the coming year with the same link ratios the observed triangle keeps, andmethodis fitted again on the triangle with the coming diagonal, so the window moves by one diagonal and the drops are ranked again, as next year's reserving does. The mean of the CDR is therefore not zero under exclusions."geometric"asmack_averageis rejected.- tail_sigma
For
mack_one_year()withbootstrap_tail, the tail's sigma (R'stail.sigma), orNULLto extrapolate it, as inmack_bootstrap(); an error withoutbootstrap_tail.- mack_average, mack_sigma_interpolation
How Mack's model in
mack_one_year()averages the link ratios and fills in a sigma behind a single link ratio, as inmack().- centre_residuals
For
mack_one_year(), subtract the residuals' mean before resampling them, so that the pseudo factors are unbiased and the mean CDR is about zero (the default);FALSEresamples them uncentred, as England, Verrall and Wuthrich's Appendix 1 is written.- mack_n_periods, mack_drop_high, mack_drop_low
Which link ratios Mack's model in
mack_one_year()averages, asn_periods,drop_highanddrop_lowinchain_ladder(). They must be the same asmethod's (n_periods,drop_high,drop_low) or left at their defaults, which takemethod's; any other combination is an error naming both.
Details
method names one of chain_ladder(), expected_loss(),
bornhuetter_ferguson(), benktander() and cape_cod(), with the same
settings: average, sigma_interpolation and tail give the chain
ladder refitted (or the development pattern of the other methods),
apriori is read by the expected loss, Bornhuetter-Ferguson and
Benktander methods, n_iters by Benktander, trend and decay by Cape
Cod; giving a setting the method does not read is an error. The
expected-loss methods need exposure, the chain ladder takes none; each
origin's latest exposure is kept for the end of the year, and Cape Cod
trends to the valuation a year later.
The bootstrap only drives the simulation: its factors are always
volume-weighted without a tail, whatever method refits. On that same
chain ladder the standard deviation of the CDR is not Merz and
Wuthrich's: the ODP's process variance is the scale times the mean,
Mack's sigma^2 times the cumulative value. In total it is 0.62 times
Merz-Wuthrich on RAA, 1.37 on GenIns and 1.14 on ABC, and per origin
from 0.50 to 5.96 times
(knowledge/findings/one-year-bootstrap-vs-merz-wuthrich.md).
mack_one_year() re-reserves the same way under Mack's process instead,
England, Verrall and Wuthrich's (2019, Appendix 1) bootstrap of Mack's
model, the pseudo factors averaged as mack_average. With the
volume-weighted chain ladder and no tail, its standard deviations are
Merz and Wuthrich's (claims_development_result()) within Monte Carlo
error, and by default (centre_residuals = TRUE) its mean is their zero.
The method and the effect of uncentred residuals are documented once, in
the Rust reference.
Its fit has model = "mack", no scale, and mack, the
mack_fit it simulates from; it needs no negative cumulative value.
By default the bootstrap has no tail of its own: its simulation stops at
the oldest age, and the development past it moves only through
method's refitted tail. With bootstrap_tail = TRUE the bootstrap
takes method's tail too, drawn in each simulation as in
odp_bootstrap() or mack_bootstrap() (an estimated tail refitted on
the pseudo factors, a constant one fixed or drawn with tail_std_err),
and its step to ultimate is valued one development period after the
oldest age: an origin whose step falls in the coming year (with an
annual grain, one already at the oldest age) takes it and is closed at
that simulated ultimate. The step is the whole tail: a curve or a decayed
constant tail is taken as the product of its factors in that one step,
so an origin that takes it has its lifetime tail risk in the coming
year, an upper bound on its one-year risk. With a constant tail attached
at the oldest age and Mack's process, the other origins' CDR is the tail
factor times its value without one in distribution (simulation by
simulation when the factor is fixed, tail_std_err = 0), and the oldest
origin's standard deviation is mack()'s with the tail.
Every segment of the triangle is bootstrapped with its own residuals and
scale, into one joint distribution of the CDR, the segments depending on
each other as dependence says (as in odp_bootstrap()); simulation i
uses random stream i of seed for every segment in turn, so results do
not depend on the number of threads.
Properties of the fit: chain_ladder (the bootstrap's volume-weighted
chain_ladder_fit), keys, index, origins, development; per
origin (named as a chain_ladder_fit's) latest, opening_ultimate
(the method's ultimate on the observed triangle) and opening_reserve
(opening_ultimate - latest); scale (the bootstrap's phi, which
needs a single-segment fit: use totals_frame() or segment()); and
cdr, a predictive_distribution of the CDR with the triangle's keys
and origin as dimensions and one component per segment and origin, so
aggregate(fit@cdr, keep = "lob") keeps the dependence between
segments. mean(), quantile(), VaR() and TVaR() of cdr describe
the total, and -quantile(fit@cdr, 0.005) is the one-year loss at
99.5%. Columns of draw_matrix() follow origins.
as.data.frame() has one row per segment and origin: origin,
latest, opening_ultimate, opening_reserve, and the cdr_mean and
cdr_std_dev of the simulated CDR; totals_frame() one per segment,
with the ODP bootstrap's scale too. model is "odp" or "mack".
Errors: as odp_bootstrap() (or mack() for mack_one_year()) and the
method's own fit; a missing exposure for an expected-loss method or one
given for the chain ladder; or a refit that fails in any simulation (a
zero value under a simple average, say), counted in the message with one
of the failures.
These are Python's OdpBootstrap.one_year() and
MackBootstrap.one_year(), which return a OneYearFit.
See also
claims_development_result() for Merz and Wuthrich's formulas,
odp_bootstrap() and mack_bootstrap() for the lifetime view.
Examples
long <- data.frame(year = rep(2018:2021, 4:1),
age = c(12, 24, 36, 48, 12, 24, 36, 12, 24, 12),
paid = c(100, 150, 165, 170, 110, 170, 180, 120, 175, 130),
premium = rep(c(250, 260, 270, 280), 4:1))
tri <- triangle(long, "year", "age", c("paid", "premium"))
cl <- odp_one_year(tri, "paid", n_sims = 2000, seed = 42)
cl@opening_reserve
#> 2018 2019 2020 2021
#> 0.000000 5.454545 19.389205 86.605114
mean(cl@cdr)
#> [1] -0.3381156
# The one-year view is narrower than the lifetime view.
c(one_year = sqrt(variance(cl@cdr)),
lifetime = sqrt(variance(odp_bootstrap(tri, "paid", n_sims = 2000, seed = 42)@reserves)))
#> one_year lifetime
#> 13.93714 15.53053
bf <- odp_one_year(tri, "paid", "bornhuetter_ferguson", exposure = "premium", apriori = 0.7,
n_sims = 2000, seed = 42)
as.data.frame(bf)
#> origin latest opening_ultimate opening_reserve cdr_mean cdr_std_dev
#> 1 2018 170 170.0000 0.000000 0.0000000 0.000000
#> 2 2019 180 185.3529 5.352941 -0.2046123 3.023400
#> 3 2020 175 193.8517 18.851662 -0.5441021 4.470905
#> 4 2021 130 208.3666 78.366581 -6.1970037 9.982098
-quantile(bf@cdr, 0.005)
#> [1] 43.53641
# Under Mack's process the chain ladder's one-year view is Merz and
# Wuthrich's, up to Monte Carlo error.
mk <- mack_one_year(tri, "paid", n_sims = 2000, seed = 42)
mk@model
#> [1] "mack"
c(simulated = sqrt(variance(mk@cdr)),
merz_wuthrich = claims_development_result(mk@mack)@total_one_year_standard_error)
#> simulated merz_wuthrich
#> 16.34670 16.45603
# The bootstrap's own tail moves the oldest origin in the coming year.
tailed <- mack_one_year(tri, "paid", tail = 1.05, bootstrap_tail = TRUE, n_sims = 2000,
seed = 42)
as.data.frame(tailed)[1, c("origin", "cdr_std_dev")]
#> origin cdr_std_dev
#> 1 2018 5.651101