Layer loss picks
layer_loss_picks.RdReshapes a severity so that its expected loss to each layer hits a pick,
as the Python package aggregate's Aggregate.picks. The attachments
cut the severity into layers, 0 to the first and then between
consecutive ones; in each the survival function is rescaled about its
value at the layer's top, S*(x) = above + weight * (S(x) - S(top)),
keeping its shape there, and above the top attachment the severity is
kept. A
bottom-layer pick too large for that takes S* = 1 up to a point and a
straight line after, solved so the pick is met.
Arguments
Value
A list: severity, the adjusted grid_distribution;
straight_bottom; and layers, a data frame with bottom, top,
before and target (the expected loss per claim before and after),
weight and above (the adjusted chance of a loss above the layer).
Examples
sev <- discretize(gamma_from_mean_cv(100, 1.5), step = 1, points = 2^14, method = "rounding")
picked <- layer_loss_picks(sev, c(100, 500, 1000), c(480, 420, 60), claims = 10)
picked$layers
#> bottom top before target weight above
#> 1 0 100 49.510003 48 1.1042086 0.271661470
#> 2 100 500 44.756745 42 0.8567331 0.034174846
#> 3 500 1000 5.247638 6 1.1840652 0.002320328