## pricing.PreparedLosses


Large losses trended to the prospective period, from


Usage

``` python
pricing.PreparedLosses()
```


[LargeLossExperience.prepare](pricing.LargeLossExperience.md#prospicio.pricing.LargeLossExperience.prepare).


## Attributes

| Name | Description |
|----|----|
| [complete_above](#complete_above) | The trended size above which every year's record is complete: the |
| [trended](#trended) | Every loss's trended amount, in the record's order. |
| [valuation](#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()](#as_if) | Each year's losses under the program in force that year, next to the |
| [burning_cost()](#burning_cost) | The as-if loss to each layer by accident year, developed and divided |
| [to_dict()](#to_dict) | The trended losses as columns: `id`, `year`, `accident`, |
| [without()](#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

``` python
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](pricing.PreparedLosses.md#prospicio.pricing.PreparedLosses.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](esg.ProjectionPaths.md#prospicio.esg.ProjectionPaths.years).

`years: list of int`  

`proposed: Tower`  


##### Returns


`AsIf`  


------------------------------------------------------------------------


#### burning_cost()


The as-if loss to each layer by accident year, developed and divided


Usage

``` python
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](pricing.LargeLossExperience.md#prospicio.pricing.LargeLossExperience.prepare), the count IBNR factor only. A count [DevelopmentPattern](pricing.DevelopmentPattern.md#prospicio.pricing.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](aggregate.Ledger.md#prospicio.aggregate.Ledger.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](reserving.MackFit.md#prospicio.reserving.MackFit.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

``` python
to_dict()
```


[amount](reserving.RiskAdjustmentResult.md#prospicio.reserving.RiskAdjustmentResult.amount), `fx`, [development](reserving.MackFit.md#prospicio.reserving.MackFit.development), [ultimate](reserving.MackFit.md#prospicio.reserving.MackFit.ultimate), [factor](models.Terms.md#prospicio.models.Terms.factor) and [trended](pricing.PreparedLosses.md#prospicio.pricing.PreparedLosses.trended).


##### Returns


`dict of str to list`  


------------------------------------------------------------------------


#### without()


The record with the losses whose ids are in `ids` left out (an


Usage

``` python
without(ids)
```


excluded segment, say), its completeness unchanged. Run [burning_cost](pricing.PreparedLosses.md#prospicio.pricing.PreparedLosses.burning_cost) on both, with the segment's premium left out of the years' premiums too.


##### Parameters


`ids: list of str`  


##### Returns


`PreparedLosses`
