Apply a reinsurance tower to simulated years
apply_tower.RdWith an event_set each year's individual losses go through the tower.
With a predictive_distribution (a reserve bootstrap, modelled premium
risk) each simulation's total is one aggregate loss: an adverse
development cover or loss portfolio transfer on reserves, a stop-loss or
quota share on premium risk. An occurrence layer then sees the total as
one occurrence, so it acts as an aggregate excess of loss. A numeric
vector holds plain annual losses, one per simulation, each taken the same
way, with no event_set or predictive_distribution to build.
Arguments
- tower
- events
An
event_setfromsimulate_events(), a predictive_distribution, or a numeric vector of annual losses.- ...
Unused; for methods.
Value
A predictive_distribution with dimensions kind and layer:
("gross", "ground_up"), ("ceded", <layer name>) per layer,
("net", "retained"), then ("reinstatement_premium", <layer name>) per
layer with paid reinstatements, ("swing_premium", <layer name>) per
swing-rated layer, ("ceding_commission", <layer name>) per layer with a
flat or sliding commission, ("profit_commission", <layer name>) per
layer with a profit commission, ("brokerage", <layer name>) per layer
with brokerage, (<label>, <layer name>) per deduction and
("loss_before_terms", <layer name>) per layer whose scales read it
(with_brokerage(); deal_ratios() turns them into ratios). aggregate(result, keep = "kind") gives
gross, total ceded and net per year; net is a loss, before premiums and
commissions. Take one kind with select_components() before joining it
to a book: summing over kind adds gross, ceded and net together.
With labels on the events (with_labels()) the label dimensions follow
kind and layer: gross, each layer's ceded loss and net come once per
row of the events' label_combinations, each the sum over that
combination's events (a layer's split by event under its allocation),
and the other components get "" labels; aggregate(result, keep = c("kind", "layer")) gives back the unlabelled result.
Details
A contract stated on the loss ratio is a layer on money amounts: a
loss-ratio cap c on subject premium P is
aggregate_stop_loss(name, c * P, 0) with with_premium_rate(layer, 1, P),
so the ceded loss ratio is the capped one, and a sliding scale keyed on it is with_sliding_scale().
To key the scales on the loss ratio before the cap, state the cap as
aggregate_limit and use with_scales_before_annual_terms(). A deal of
several sections is one layer per section, each scale reading its own
section's loss ratio, and the amounts add; ceding_commission_for()
evaluates a scale at any ceded loss.
Examples
ev <- simulate_events(poisson_count(2), lognormal_from_mean_cv(3e6, 1.5), 1000, seed = 7)
tw <- reinsurance_tower(list(xol_layer("5x5", 5e6, 5e6)))
res <- apply_tower(tw, ev)
aggregate(res, keep = "kind")@keys
#> kind
#> 1 gross
#> 2 ceded
#> 3 net
cover <- with_sliding_scale(
with_premium_rate(aggregate_stop_loss("cover", 120, 0), 1, 100),
c(0.3, 0.1), c(0.5, 0.9)
)
annual <- apply_tower(reinsurance_tower(list(cover)), c(40, 70, 150))
draw_matrix(annual)
#> [,1] [,2] [,3] [,4]
#> [1,] 40 40 0 30
#> [2,] 70 70 0 20
#> [3,] 150 120 30 10