Development exhibit
development_exhibit.RdFriedland's development exhibit of one column (Estimating Unpaid Claims
Using Basic Techniques, chapter 7, Exhibit I; Rust's
DevelopmentExhibit, docs/design/reserving-v02.md, decision 34): the
cumulative values, the link ratios, several averages of them, the
selected age-to-age factors, the factors to ultimate and the percents
developed.
Usage
development_exhibit_class(ptr)
development_exhibit(
triangle,
column = NULL,
average = "volume",
sigma_interpolation = "log-linear",
tail = 1,
ldf = NULL,
ldf_kind = NULL,
ldf_weight = 1,
n_periods = NULL,
drop_high = 0,
drop_low = 0,
averages = NULL
)Arguments
- ptr
A
DevelopmentExhibitpointer; used internally.- triangle
A triangle, with any number of segments, or, for
chain_ladder(), a latest_valuation (a latest diagonal on its own).- column
The column, for a triangle with several.
- average
"volume","simple","regression"or"geometric"."geometric"is the geometric mean of the link ratios: it gives the factors only, with no sigma or standard error, somack()and the bootstraps reject it.- sigma_interpolation
How a variance parameter that cannot be estimated (an age with a single link ratio) is filled in:
"log-linear"(regresslog(sigma)on age and extrapolate, the default of R ChainLadder) or"mack"(Mack 1993).- tail
Development past the oldest age: a number, the factor from the oldest age to ultimate (1 means no tail), or a
tail_constant(),tail_curve(),tail_bondy()ortail_log_linear().- ldf
A selected development pattern (above): a numeric vector named by age in months, or a data.frame with columns
ageandvalue.NULL(the default) estimates every factor. Ages off the triangle's (or latest valuation's) ages are read on the pattern's own ages,log(cdf)linear between them, and what the pattern gives past the oldest age folds into a constant tail at full weight (docs/design/reserving-v02.md, decision 18). Adding one off-grid age to a sparse age-to-age pattern changes how its other factors are read: each factor then runs to the pattern's next age, not the triangle's. On RAA,c("12" = 1.5, "18" = 1.1, "36" = 1.2)selects 1.5484 from 12 to 24 months, wherec("12" = 1.5, "36" = 1.2)selects 1.5; nothing warns of this.- ldf_kind
How
ldfis expressed:"ldf"(age-to-age factors),"cdf"(factors to ultimate) or"percent_developed", each finite and positive and in any order. Required withldf, since age-to-age factors and factors to ultimate cannot be told apart.- ldf_weight
The weight
won each selected factor, from 0 (the estimate) to 1 (the selection, the default): a number for every selected factor, or a numeric vector named by age (the age that starts the factor's link), the others fully selected.- n_periods, drop_high, drop_low
Which link ratios the factor at each age averages.
n_periodskeeps the latestn_periodscalendar diagonals (NULL, the default, keeps every one; an age with fewer links uses all of them). Then thedrop_highhighest anddrop_lowlowest of the kept ratios are left out, except at an age where that would leave none. Whole numbers from 0 (n_periodsfrom 1); the defaults exclude nothing.mack(), the bootstraps and the one-year views accept them (the bootstraps and views keep the link ratios that the observed triangle keeps), andclaims_development_result()rejects any of them, even one that removes nothing. The fit'sn_linksandexcludedreport what was used.- averages
NULLfor Friedland's six averages, or a named list of averages, each a list withaverage("volume","simple","regression"or"geometric") and optionallyn_periods,drop_highanddrop_low, as inchain_ladder().list()shows none.
Details
The selection is the chain ladder that average to drop_low describe,
as in chain_ladder(): by default the volume-weighted average of every
link ratio, with ldf to select factors. The averages are displayed
beside it and do not change it. By default they are Friedland's six:
"simple latest 5", "simple latest 3", "medial latest 5x1" (the simple
average of the latest five without the highest and the lowest),
"volume latest 5", "volume latest 3" and "geometric latest 4".
Properties: origins, ages (months), values (a matrix of the
cumulative values, origins by ages, NA where not observed),
link_ratios (origins by links, NA where either end is not observed or
the earlier value is 0), averages (a matrix, one row per average, one
column per link), selected (the age-to-age factors the projection
uses, per link), tail, cdf and percent_developed (per age, named
"12-Ult" and so on, as a chain_ladder() fit's). as.data.frame() gives Friedland's lower half: the
averages, then selected (with the tail as its last value), cdf and
percent_developed, one column per link and the last "<age>-ult".
See also
ultimate_exhibit() and select_ultimates() for the summary of
the methods' ultimates.
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))
tri <- triangle(long, "year", "age", "paid")
ex <- development_exhibit(tri, tail = 1.05)
ex@link_ratios
#> 12-24 24-36 36-48
#> 2018 1.500000 1.100000 1.030303
#> 2019 1.545455 1.058824 NA
#> 2020 1.458333 NA NA
#> 2021 NA NA NA
ex@averages
#> 12-24 24-36 36-48
#> simple latest 5 1.501263 1.079412 1.030303
#> simple latest 3 1.501263 1.079412 1.030303
#> medial latest 5x1 1.500000 1.079412 1.030303
#> volume latest 5 1.500000 1.078125 1.030303
#> volume latest 3 1.500000 1.078125 1.030303
#> geometric latest 4 1.500841 1.079215 1.030303
ex@cdf
#> 12-Ult 24-Ult 36-Ult 48-Ult
#> 1.749503 1.166335 1.081818 1.050000
as.data.frame(ex)
#> 12-24 24-36 36-48 48-ult
#> simple latest 5 1.501263 1.0794118 1.0303030 NA
#> simple latest 3 1.501263 1.0794118 1.0303030 NA
#> medial latest 5x1 1.500000 1.0794118 1.0303030 NA
#> volume latest 5 1.500000 1.0781250 1.0303030 NA
#> volume latest 3 1.500000 1.0781250 1.0303030 NA
#> geometric latest 4 1.500841 1.0792154 1.0303030 NA
#> selected 1.500000 1.0781250 1.0303030 1.050000
#> cdf 1.749503 1.1663352 1.0818182 1.050000
#> percent_developed 0.571591 0.8573864 0.9243697 0.952381
# Selected factors and two averages of one's own.
development_exhibit(tri, ldf = c("12" = 1.45, "24" = 1.08, "36" = 1.03), ldf_kind = "ldf",
averages = list(all = list(average = "simple"),
latest = list(average = "volume", n_periods = 2)))@averages
#> 12-24 24-36 36-48
#> all 1.501263 1.079412 1.030303
#> latest 1.500000 1.078125 1.030303