pricing.PreparedLosses
Large losses trended to the prospective period, from
Usage
pricing.PreparedLosses()Attributes
| Name | Description |
|---|---|
| complete_above | The trended size above which every year’s record is complete: the |
| trended | Every loss’s trended amount, in the record’s order. |
| valuation |
The record’s valuation date, or None.
|
complete_above
The trended size above which every year’s record is complete: the
complete_above: float
threshold times the largest trend factor.
trended
Every loss’s trended amount, in the record’s order.
trended: list[float]
valuation
The record’s valuation date, or None.
valuation: float | None
Methods
| Name | Description |
|---|---|
| as_if() | Each year’s losses under the program in force that year, next to the |
| burning_cost() | The as-if loss to each layer by accident year, developed and divided |
| to_dict() |
The trended losses as columns: id, year, accident,
|
| without() |
The record with the losses whose ids are in ids left out (an
|
as_if()
Each year’s losses under the program in force that year, next to the
Usage
as_if(historical, years, proposed)year’s trended losses under the proposed tower.
The historical side takes every loss of the year as reported (in its own currency, untrended and undeveloped), so it can be checked against the cedant’s recoveries; the proposed side is the as-if layer loss of burning_cost before development by year. The historical towers may differ in layers from year to year.
Parameters
historical: list of Tower-
The program in force in each of years.
years: list of intproposed: Tower
Returns
AsIf
burning_cost()
The as-if loss to each layer by accident year, developed and divided
Usage
burning_cost(towers, years, *, premium, development, index=None, ratios=None)by the premium.
Parameters
towers: Tower or list of Tower-
The treaty in force each year, or one tower for every year (to price the prospective terms). Every tower needs the same number of layers.
years: list of int-
The accident years to cost; a loss belongs to the year of its accident date.
premium: list of float-
Each year’s on-level subject premium.
development: list of float or DevelopmentPattern-
Each year’s development factor for the layer losses: Clark’s excess factor, or, when the losses were developed one by one in prepare, the count IBNR factor only. A count DevelopmentPattern is read at each year’s average age at the record’s valuation date.
index: IndexClause = None-
An index clause on the treaty: each loss meets the retention and limit moved by the clause at its own ratio in ratios. Towers with annual terms (an aggregate deductible or limit, a corridor) or a surplus treaty are an error.
ratios: list of float = None- With index, each loss’s index ratio, in the record’s order: the index at its payment over the index at the treaty’s base date.
Returns
BurningCost
to_dict()
The trended losses as columns: id, year, accident,
Usage
to_dict()amount, fx, development, ultimate, factor and trended.
Returns
dict of str to list
without()
The record with the losses whose ids are in ids left out (an
Usage
without(ids)excluded segment, say), its completeness unchanged. Run burning_cost on both, with the segment’s premium left out of the years’ premiums too.
Parameters
ids: list of str
Returns
PreparedLosses