Skip to main content

aggregate.layer_loss_picks()

Reshapes a severity so that its expected loss to each layer hits a

Usage

aggregate.layer_loss_picks(
    severity,
    attachments,
    picks,
    claims=1.0,
)

pick, as aggregate’s Aggregate.picks: in each layer the survival function is rescaled about its value at the layer’s top, keeping its shape there; above the top attachment the severity is kept.

Parameters

severity: Grid
attachments: list of float

Increasing grid points; the layers are 0 to the first, then between consecutive attachments.

picks: list of float

The loss to each layer for claims expected ground-up claims.

claims: float = 1.0

Returns

Picks

Raises

ValueError
If an attachment is not a grid point or the picks are infeasible (a pick below what the layers above force through its layer).

Examples

>>> from prospicio.aggregate import layer_loss_picks
>>> from prospicio.distributions import Gamma, Grid
>>> sev, _ = Grid.rounding(Gamma.from_mean_cv(100.0, 1.5), 1.0, 1 << 14)
>>> picked = layer_loss_picks(sev, [100, 500, 1000], [480, 420, 60], claims=10)
>>> [round(10 * t, 6) for t in picked.to_dict()["target"]]

[480.0, 420.0, 60.0]