reinsurance.TowerGrids
A tower’s annual distributions on the grid, from Tower.on_grid.
Usage
reinsurance.TowerGrids()Every grid is a marginal distribution. Ceded grids are at the placed share and after annual terms; a layer with share c has step c * h.
Attributes
| Name | Description |
|---|---|
| ceded | Annual ceded loss of each layer, in tower order. |
| ceded_reports | The compound calculation behind each layer: its annual recovery at |
| expected_ceding_commission | Expected ceding commission (flat or sliding) of each layer. |
| expected_deal_brokerage | Expected brokerage of each deal, by its name; 0 without one. |
| expected_deal_ceding_commission |
Expected ceding commission of each deal (Tower.deal_scale), by
|
| expected_no_claims_bonus | Expected no-claims bonus of each layer, 0 for a layer without one. |
| expected_premium | Expected premium of each layer: the swing-rated premium’s mean, or |
| expected_profit_commission | Expected profit commission of each layer. |
| expected_reinstatement_premium | Expected reinstatement premium of each layer; 0 without paid |
| gross | Annual gross loss. |
| gross_report | The compound calculation behind gross. |
| net |
Annual net loss, or None when it is not a single compound total.
|
| on_points | Whether every boundary and net loss fell on a grid point. When |
| stage_ceded | Annual ceded loss of each stage, its layers together: the total |
| total_ceded | Annual ceded loss of the whole tower, every layer together, or |
ceded
Annual ceded loss of each layer, in tower order.
ceded: list[Grid]
ceded_reports
The compound calculation behind each layer: its annual recovery at
ceded_reports: list[CompoundReport]
100%, before annual terms.
expected_ceding_commission
Expected ceding commission (flat or sliding) of each layer.
expected_ceding_commission: list[float]
expected_deal_brokerage
Expected brokerage of each deal, by its name; 0 without one.
expected_deal_brokerage: dict[str, float]
expected_deal_ceding_commission
Expected ceding commission of each deal (Tower.deal_scale), by
expected_deal_ceding_commission: dict[str, float]
its name, read on its sections’ loss ratio together; 0 for a deal without one.
expected_no_claims_bonus
Expected no-claims bonus of each layer, 0 for a layer without one.
expected_no_claims_bonus: list[float]
expected_profit_commission
Expected profit commission of each layer.
expected_profit_commission: list[float]
gross
Annual gross loss.
gross: Grid
gross_report
The compound calculation behind gross.
gross_report: CompoundReport
net
Annual net loss, or None when it is not a single compound total.
net: Grid | None
on_points
Whether every boundary and net loss fell on a grid point. When
on_points: bool
False, means are still exact but shapes are smeared by up to a step.
stage_ceded
Annual ceded loss of each stage, its layers together: the total
stage_ceded: list[Grid | None]
cession aggregate reports as Ceded. None for a stage of several layers one of which has annual terms.
total_ceded
Annual ceded loss of the whole tower, every layer together, or
total_ceded: Grid | None
None when it is not a single compound total: several layers with annual terms (reinstatements, aggregate limits or deductibles), or an aggregate cover after per-occurrence stages.
Methods
| Name | Description |
|---|---|
| price() | Each view priced on its own by a distortion: the stand-alone price |
price()
Each view priced on its own by a distortion: the stand-alone price
Usage
price(distortion)of the gross, of every layer’s cession and of the net, as aggregate’s reins_price_df.
Parameters
distortion: Distortion
Returns
TowerPrice
Examples
>>> from prospicio.reinsurance import Layer, Tower
>>> from prospicio.distributions import Grid, Poisson
>>> from prospicio.risk import Distortion
>>> sev = Grid(1.0, [0.0, 0.4, 0.3, 0.2, 0.1])
>>> r = Tower([Layer("2x2", 2.0, 2.0)]).on_grid(Poisson(3.0), sev, 200)
>>> p = r.price(Distortion.proportional_hazard(0.7))
>>> round(p.ceded[0].loss, 12), p.ceded[0].premium > p.ceded[0].loss(1.2, True)