pricing.AsIf
Each year’s cessions under its own program and under the proposed one,
Usage
pricing.AsIf()from PreparedLosses.as_if.
Examples
>>> from prospicio.pricing import LargeLossExperience
>>> from prospicio.reinsurance import Layer, Tower
>>> p = LargeLossExperience(["a"], [2019.5], [300.0]).prepare(factors=[1.2])
>>> then = Tower([Layer("150 xs 150", 150.0, 150.0)])
>>> now = Tower([Layer("200 xs 200", 200.0, 200.0)])
>>> a = p.as_if([then], [2019], now)
>>> a.to_dict()["historical"], [round(x, 6) for x in a.to_dict()["proposed"][0]]([[150.0]], [160.0])
Attributes
| Name | Description |
|---|---|
| proposed_layers | The proposed tower’s layer names. |
proposed_layers
The proposed tower’s layer names.
proposed_layers: list[str]
Methods
| Name | Description |
|---|---|
| to_dict() |
The years as columns: year, reported_losses,
|
to_dict()
The years as columns: year, reported_losses,
Usage
to_dict()trended_losses, and per year the lists historical_layers, historical (one value per layer in force that year) and proposed (one per proposed layer).
Returns
dict of str to list