pricing.Quote
A cover’s quote: the premium the cedant pays, built up from a
Usage
pricing.Quote()risk-loaded price, with the ratios the market quotes.
Quote.technical(price, ...) grosses the risk premium R (the expected loss plus the margin for capital, from price) up for internal expenses e and brokerage b, both fractions of the premium, and a fixed expense f: P = (R + f) / (1 - e - b). quote.at(premium) reads a quoted premium the other way: the reinsurer keeps P (1 - e - b) - f as its risk premium, and the margin and return on capital follow with the same expected loss and assets.
Examples
>>> from prospicio.distributions import Sampled
>>> from prospicio.pricing import Quote, price
>>> from prospicio.risk import Distortion
>>> p = price(Sampled([0.0, 0.0, 2.0, 6.0]), Distortion.tvar(0.5), cost_of_capital=0.1)
>>> q = Quote.technical(p, expenses=0.03, brokerage=0.10, limit=10.0)
>>> round(q.premium, 6), round(q.rate_on_line, 6), round(q.return_on_capital, 6)(2.507837, 0.250784, 0.1)
>>> round(q.at(3.0).return_on_capital, 4)0.4388
Attributes
| Name | Description |
|---|---|
| assets | Assets backing the loss. |
| brokerage | Brokerage, an amount. |
| capital | Capital, assets less the risk premium. |
| commission | Commissions paid back to the cedant, an amount. |
| expected_loss | Expected loss. |
| expenses | Internal expenses, an amount. |
| income_tax | Income tax on the margin, an amount. |
| limit |
The limit, or None.
|
| loss_ratio | Expected loss over all the premium. |
| margin | Margin, risk premium less expected loss. |
| multiple | All the premium over expected loss. |
| net_premium | The premium net of brokerage. |
| payback |
Limit over the deposit, or None without a limit.
|
| pre_tax_return_on_capital | Return on capital before income tax, margin over capital. |
| premium | The deposit premium the cedant pays upfront. |
| premium_in_all | The deposit plus the expected reinstatement premium. |
| premium_tax | Premium tax, an amount. |
| rate_on_line |
The deposit over the limit, or None without a limit.
|
| reinstatement_premium | Expected reinstatement premium. |
| return_on_capital | Return on capital after income tax, the margin less the tax over |
| risk_premium | The risk premium: what the reinsurer keeps for the loss and capital. |
assets
Assets backing the loss.
assets: float
brokerage
Brokerage, an amount.
brokerage: float
capital
Capital, assets less the risk premium.
capital: float
commission
Commissions paid back to the cedant, an amount.
commission: float
expected_loss
Expected loss.
expected_loss: float
expenses
Internal expenses, an amount.
expenses: float
income_tax
Income tax on the margin, an amount.
income_tax: float
limit
The limit, or None.
limit: float | None
loss_ratio
Expected loss over all the premium.
loss_ratio: float
margin
Margin, risk premium less expected loss.
margin: float
multiple
All the premium over expected loss.
multiple: float
payback
Limit over the deposit, or None without a limit.
payback: float | None
pre_tax_return_on_capital
Return on capital before income tax, margin over capital.
pre_tax_return_on_capital: float
rate_on_line
The deposit over the limit, or None without a limit.
rate_on_line: float | None
return_on_capital
Return on capital after income tax, the margin less the tax over
return_on_capital: float
capital.
Methods
| Name | Description |
|---|---|
| at() | The same cover at a quoted deposit: what the quote leaves after the |
| technical() | The technical premium of a risk-loaded price. |
| technical_for_layer() | The technical deposit of a layer whose commissions follow its loss |
| to_dict() | The build-up and ratios as a dict, for a table. |
at()
The same cover at a quoted deposit: what the quote leaves after the
Usage
at(premium, *, commission=0.0)loads and commissions is the risk premium.
Parameters
premium: float-
The deposit; for a swing-rated layer, the expected premium from its tower grid (expected_premium).
commission: float = 0.0- Expected commissions beyond the flat one, an amount: a sliding scale or profit commission read off the layer’s tower grid at this deposit (expected_ceding_commission, expected_profit_commission).
Returns
Quote
Raises
ValueError- If the risk premium the quote leaves reaches the assets.
technical()
The technical premium of a risk-loaded price.
Usage
technical(
price,
*,
expenses=0.0,
brokerage=0.0,
fixed=0.0,
limit=None,
premium_tax=0.0,
income_tax=0.0,
reinstatement_rate=0.0,
commission=0.0,
brokerage_on_reinstatements=True
)Parameters
price: Price-
The risk-loaded price, from price; its premium is the risk premium.
expenses: float = 0.0-
Internal expenses, a fraction of the premium.
brokerage: float = 0.0-
Brokerage, a fraction of the premium.
fixed: float = 0.0-
A fixed expense per contract, an amount.
limit: float = None-
The cover’s limit at the placed share, for the rate on line; omit it for a cover without one, such as a quota share.
premium_tax: float = 0.0-
Premium tax, a fraction of all the premium (deposit and reinstatement premium), grossed up as brokerage is.
income_tax: float = 0.0-
Income tax on the margin. The price’s return on capital is then the return after tax, and the risk premium is raised to give it.
reinstatement_rate: float = 0.0-
Expected reinstatement premium per unit of deposit: a tower grid’s expected_reinstatement_premium for the layer over its deposit premium (reinstatement premium is proportional to it).
commission: float = 0.0-
A flat ceding commission, a fraction of the deposit.
brokerage_on_reinstatements: bool = True- Whether brokerage is charged on reinstatement premium too.
Returns
Quote
Raises
ValueError- If a load or rate is negative or not below 1, the loads and commission leave no premium, or the limit is not positive.
Examples
>>> from prospicio.distributions import Sampled
>>> from prospicio.pricing import Quote, price
>>> from prospicio.risk import Distortion
>>> p = price(Sampled([0.0, 0.0, 2.0, 6.0]), Distortion.tvar(0.5), cost_of_capital=0.1)
>>> q = Quote.technical(p, brokerage=0.10, income_tax=0.21, reinstatement_rate=0.5)
>>> round(q.return_on_capital, 6), q.pre_tax_return_on_capital > 0.1(0.1, True)
>>> round(q.premium_in_all / q.premium, 6)1.5
technical_for_layer()
The technical deposit of a layer whose commissions follow its loss
Usage
technical_for_layer(
price,
layer,
ceded,
*,
expected_reinstatement_premium=0.0,
expenses=0.0,
brokerage=0.0,
fixed=0.0,
premium_tax=0.0,
income_tax=0.0,
brokerage_on_reinstatements=True
)ratio, solved for.
A sliding-scale ceding commission and a profit commission depend on the deposit through the loss ratio, so the deposit is the one at which what the loads and the expected commissions leave is the price’s risk premium. The reinstatement rate, a flat commission and the limit at the placed share are read off the layer. A layer with neither term gets Quote.technical of those terms. A steep scale can meet the risk premium at more than one deposit; the lowest is returned.
Parameters
price: Price-
The risk-loaded price of ceded.
layer: Layer-
The layer, with its terms.
ceded: Grid-
The layer’s ceded grid, as TowerGrids.ceded gives it.
expected_reinstatement_premium: float = 0.0-
The grid’s expected reinstatement premium at the layer’s own premium; it scales with the deposit.
expenses: float = 0.0-
The loads, as in Quote.technical.
brokerage: float = 0.0-
The loads, as in Quote.technical.
fixed: float = 0.0-
The loads, as in Quote.technical.
premium_tax: float = 0.0-
The loads, as in Quote.technical.
income_tax: float = 0.0-
The loads, as in Quote.technical.
brokerage_on_reinstatements: bool = True
Returns
Quote- At the solved deposit, with the expected sliding-scale and profit commission in commission.
Raises
ValueError- For a swing-rated layer (its premium follows its loss, so it has no deposit to solve for: quote it with at), a scale read before annual terms, or when the highest commission rates leave no premium after the loads.
Examples
>>> from prospicio.distributions import Grid
>>> from prospicio.pricing import Quote, price
>>> from prospicio.reinsurance import Layer
>>> from prospicio.risk import Distortion
>>> ceded = Grid(20.0, [0.05, 0.15, 0.3, 0.3, 0.15, 0.05])
>>> qs = (Layer.quota_share("QS", 0.5).with_premium_rate(1.0, 200.0)
... .with_sliding_scale([(0.35, 0.50), (0.20, 0.70)]))
>>> p = price(ceded, Distortion.tvar(0.99), cost_of_capital=0.1)
>>> q = Quote.technical_for_layer(p, qs, ceded, expenses=0.02)
>>> round(q.return_on_capital, 9)0.1
to_dict()
The build-up and ratios as a dict, for a table.
Usage
to_dict()Returns
dict of str to float