pricing.RetroPlan
A retrospective rating plan: the premium T (b + c L) for losses
Usage
pricing.RetroPlan()L, no less than a minimum and no more than a maximum.
Amounts are in money. A plan with a loss limit takes L as the losses with each occurrence limited, and is balanced against a Table L.
Parameters
expected_loss: float-
The expected losses
E, without any loss limit. expense: float-
Expenses and profit
e, excluding the premium tax. loss_conversion: float = 1.0-
The loss conversion factor
c. tax_multiplier: float = 1.0-
The tax multiplier
T. minimum: float = 0.0-
The minimum premium
H. maximum: float = inf- The maximum premium G.
Raises
ValueError-
Unless
E,candTare positive and finite,eis non-negative and0 <= H < G.
Examples
>>> from prospicio.pricing import InsuranceCharge, RetroPlan
>>> losses = [0.0, 10.0, 30.0, 50.0, 70.0, 90.0, 120.0, 150.0, 200.0, 280.0]
>>> plan = RetroPlan(100.0, 30.0, loss_conversion=1.1, tax_multiplier=1.03,
... minimum=80.0, maximum=220.0)
>>> balanced = plan.balance(InsuranceCharge.from_sample(losses))
>>> terms = plan.loss_sensitive_premium(balanced["basic"])
>>> mean = sum(terms.premium(losses)) / 10
>>> round(mean, 9) == round(plan.guaranteed_cost(), 9)True
Methods
| Name | Description |
|---|---|
| balance() | The basic premium at which the plan collects the guaranteed-cost |
| guaranteed_cost() |
The guaranteed-cost premium T (e + E).
|
| loss_sensitive_premium() | The plan’s premium terms under a basic premium, as a |
balance()
The basic premium at which the plan collects the guaranteed-cost
Usage
balance(charge)premium on average.
Parameters
charge: InsuranceCharge- The table of the plan’s aggregate losses, on the plan’s expected losses: a Table M, or with a loss limit a Table L.
Returns
dict-
basic,
entry_ratio_minimumandentry_ratio_maximum(where the minimum and the maximum bind; the first is negative when the minimum never binds),net_insurance_chargeand expected_premium.
Raises
ValueError- If the table’s expected loss is not the plan’s, or the minimum is at least the guaranteed-cost premium, or the maximum at most it, or the minimum is high enough that only a negative basic premium would balance the plan.
guaranteed_cost()
The guaranteed-cost premium T (e + E).
Usage
guaranteed_cost()Returns
float