Skip to contents

A 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 an excess_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 a pareto_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.

shares

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 layer limit xs attachment, the same for every origin; limit = Inf is the unlimited layer above attachment.

  • scale_shift() is the default severity by maturity: the severity at each age is the ultimate severity divided by a shift solved from the ground-up triangle. ground_up_cap is the per-claim limit of a capped ground-up column.

  • pareto_shape() is Pinto and Gogol's shape drift above threshold: 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 an excess_layer() for the losses in a base layer attaching at or above it.

  • excess_pattern() derives the pattern. column is the ground-up incurred (reported) column, or under pareto_shape() the base development. counts names a reported claim count column on the same ages (not with pareto_shape()). tail is the ground-up tail, as for chain_ladder(); it fixes one more shift and the layer's tail. Only an incurred basis is derived.

  • excess_selected() gives the derived pattern as the ldf, ldf_kind and ldf_weight arguments of chain_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 - z with z = n / (n + k), n the 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 most max_influence of it. Where the layer's own factor cannot be estimated the weight is 1. k has 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 by shift, (LEV(c b) - LEV(c a)) / c.

  • layer_exposure() adds to a triangle the column name, the exposure column times each origin's layer share, for a Bornhuetter-Ferguson or Cape Cod prior. The share is a severity's layer_share() or an exposure curve's exposure_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