Excess-layer development from a ground-up triangle
excess_pattern.RdA layer's development pattern derived from the ground-up incurred
triangle (issue #192; design note docs/design/reserving-excess.md).
The layer's age-to-age factors follow from the ground-up factors and a
severity by maturity: the layer's expected loss at each age, per claim,
relates to the ultimate severity's. Bloom and Patrik (CAS E-Forum Fall
2013), Sahasrabuddhe (E-Forum Fall 2010) and Pinto and Gogol (PCAS 74,
1987) print the examples the package reproduces.
Usage
excess_layer(attachment, limit = Inf)
scale_shift(ultimate, ground_up_cap = NULL)
pareto_shape(threshold, alphas, ultimate_alpha, base = "counts")
excess_pattern(triangle, column = NULL, layer, model, counts = NULL, tail = 1)
excess_selected(pattern, weight = 1)
excess_credibility_weights(
pattern,
layer_triangle,
column = NULL,
k,
max_influence,
counts = NULL
)
layer_share(severity, layer)
layer_at_shift(severity, layer, shift)
layer_exposure(triangle, exposure, shares, name)Arguments
- attachment
Where the layer starts: finite and not negative.
- limit
The layer's width: positive, or
Inf.- ultimate
The ultimate severity at the price level of the layer's origins: any severity distribution with exact limited moments.
- ground_up_cap
The per-claim limit of a capped ground-up column, or
NULL.- threshold
The threshold above which claims are Pareto.
- alphas
The Pareto shape at every age of the column, a named numeric vector (names are ages in months).
- ultimate_alpha
The shape of the fully developed claims.
- base
"counts"or anexcess_layer().- triangle
A single-segment triangle holding the ground-up column.
- column
The ground-up incurred column, by default the triangle's only one.
- layer
An
excess_layer().- model
A
scale_shift()or apareto_shape().- counts
The name of a claim count column, or
NULL.- tail
The ground-up tail: a number or a tail estimator.
- pattern
An
excess_pattern.- weight
The weight on the derived factors, a number or a named numeric vector (names are ages in months).
- layer_triangle
The layer's own triangle, on the pattern's ages.
- k
The credibility constant, positive.
- max_influence
The share of the blended factor one origin may move.
- severity
A severity distribution.
- shift
The scale shift
c(X_ultimate = c X_j), positive.- exposure
The exposure column of the triangle.
One share for every origin, or one per origin, each between 0 and 1.
- name
The new column's name.
Value
excess_pattern(): an excess_pattern. excess_selected(): a
list of ldf, ldf_kind and ldf_weight. excess_credibility_weights():
a numeric vector named by age. layer_share() and layer_at_shift():
a number. layer_exposure(): a triangle.
Details
excess_layer()is the layerlimitxsattachment, the same for every origin;limit = Infis the unlimited layer aboveattachment.scale_shift()is the default severity by maturity: the severity at each age is theultimateseverity divided by a shift solved from the ground-up triangle.ground_up_capis the per-claim limit of a capped ground-up column.pareto_shape()is Pinto and Gogol's shape drift abovethreshold: a Pareto shape at every age of the column (alphas, named by age in months) and at ultimate, and the base development the column holds:base = "counts"for the claims above the threshold, or anexcess_layer()for the losses in a base layer attaching at or above it.excess_pattern()derives the pattern.columnis the ground-up incurred (reported) column, or underpareto_shape()the base development.countsnames a reported claim count column on the same ages (not withpareto_shape()).tailis the ground-up tail, as forchain_ladder(); it fixes one more shift and the layer's tail. Only an incurred basis is derived.excess_selected()gives the derived pattern as theldf,ldf_kindandldf_weightarguments ofchain_ladder(),mack()and the expected-loss methods, which is how a pattern is used:do.call(chain_ladder, c(list(layer_triangle, tail = p@tail), excess_selected(p, weight))).excess_credibility_weights()gives the weight on the derived pattern at each age,1 - zwithz = n / (n + k),nthe layer triangle's claim count (its origins with a positive earlier value without counts) at the earlier age, capped so that removing any one origin moves the blended factor by at mostmax_influenceof it. Where the layer's own factor cannot be estimated the weight is 1.khas no default (design note, decision 19): the simulation study favours about 20.layer_share()is the layer's share of a severity's mean,(LEV(b) - LEV(a)) / mean.layer_at_shift()is the expected loss to the layer of one claim at the maturity whose claims are the ultimate ones divided byshift,(LEV(c b) - LEV(c a)) / c.layer_exposure()adds to a triangle the columnname, theexposurecolumn times each origin's layer share, for a Bornhuetter-Ferguson or Cape Cod prior. The share is a severity'slayer_share()or an exposure curve'sexposure_layer_share()(design note, decision 2: the reserving core takes shares, not curves).
An excess_pattern has the properties ages, layer_ldf (age to age,
one fewer than the ages), layer_cdf (to ultimate, with the tail),
ground_up_ldf, ground_up_tail, shifts (empty under
pareto_shape()), tail (the layer's factor from the oldest age to
ultimate) and ldf (the age-to-age factors named by age).
Examples
# Bloom and Patrik's four claims (100, 375, 250 and 500 at 12 months)
# developing 3.60 and 1.25 to ultimate, in the layer excess of 350.
long <- data.frame(year = 2020, age = c(12, 24, 36),
incurred = c(1225, 4410, 5512.5))
tri <- triangle(long, "year", "age", "incurred")
probs <- numeric(21)
probs[c(5, 16, 11, 21)] <- 0.25
p <- excess_pattern(tri, "incurred", excess_layer(350),
scale_shift(grid_distribution(112.5, probs)))
p@layer_ldf
#> [1] 17.200000 1.366279
p@layer_cdf
#> [1] 23.500000 1.366279 1.000000
excess_selected(p)
#> $ldf
#> 12 24
#> 17.200000 1.366279
#>
#> $ldf_kind
#> [1] "ldf"
#>
#> $ldf_weight
#> [1] 1
#>
layer_share(pareto(1, 2), excess_layer(4))
#> [1] 0.125