## pricing.LossRatioExperience


Experience years for the loss ratio method: earned premium brought to


Usage

``` python
pricing.LossRatioExperience()
```


the current rate level and trended, and losses developed, trended and loaded for LAE, combined as the ratio of their totals (Werner and Modlin, ch. 8).

Every factor is a list with one value per year, one number for all years, or `None` for 1.


## Parameters


`earned_premium: list of float`  

`losses: list of float`  
Reported or paid losses, with whatever LAE they include.

`on_level_factor: list of float or float`  
`lae_factor` is `1 +` the LAE ratio not in [losses](distributions.SizeOfLoss.md#prospicio.distributions.SizeOfLoss.losses); a net trend goes in `loss_trend`.

`premium_trend: list of float or float`  
`lae_factor` is `1 +` the LAE ratio not in [losses](distributions.SizeOfLoss.md#prospicio.distributions.SizeOfLoss.losses); a net trend goes in `loss_trend`.

`development: list of float or float`  
`lae_factor` is `1 +` the LAE ratio not in [losses](distributions.SizeOfLoss.md#prospicio.distributions.SizeOfLoss.losses); a net trend goes in `loss_trend`.

`loss_trend: list of float or float`  
`lae_factor` is `1 +` the LAE ratio not in [losses](distributions.SizeOfLoss.md#prospicio.distributions.SizeOfLoss.losses); a net trend goes in `loss_trend`.

`lae_factor: list of float or float`  
`lae_factor` is `1 +` the LAE ratio not in [losses](distributions.SizeOfLoss.md#prospicio.distributions.SizeOfLoss.losses); a net trend goes in `loss_trend`.


## Raises


`ValueError`  
For no years, mismatched lengths, or a premium or factor that is not positive.


## Examples

``` python
>>> from prospicio.pricing import LossRatioExperience
>>> e = LossRatioExperience([100.0, 300.0], [50.0, 250.0])
>>> e.loss_ratio
```

0.75


## Attributes

| Name | Description |
|----|----|
| [loss_ratio](#loss_ratio) | The projected loss and LAE ratio, the ratio of the totals. |
| [loss_ratio_by_year](#loss_ratio_by_year) | Each year's projected loss ratio. |
| [projected_losses](#projected_losses) | Total projected ultimate losses and LAE. |
| [projected_losses_by_year](#projected_losses_by_year) | Each year's projected losses and LAE. |
| [projected_premium](#projected_premium) | Total projected premium at the current rate level. |
| [projected_premium_by_year](#projected_premium_by_year) | Each year's projected premium. |

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


#### loss_ratio


The projected loss and LAE ratio, the ratio of the totals.


`loss_ratio: float`


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


#### loss_ratio_by_year


Each year's projected loss ratio.


`loss_ratio_by_year: list[float]`


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


#### projected_losses


Total projected ultimate losses and LAE.


`projected_losses: float`


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


#### projected_losses_by_year


Each year's projected losses and LAE.


`projected_losses_by_year: list[float]`


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


#### projected_premium


Total projected premium at the current rate level.


`projected_premium: float`


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


#### projected_premium_by_year


Each year's projected premium.


`projected_premium_by_year: list[float]`
