pricing.Pentagon
Loss, margin, premium, capital and assets, with P = L + M and
Usage
pricing.Pentagon()a = P + Q.
Build one from any three known quantities with Pentagon.solve.
Examples
>>> from prospicio.pricing import Pentagon
>>> p = Pentagon.solve(loss=46.6, assets=100.0, return_on_capital=0.15)
>>> round(p.premium, 6)53.565217
Attributes
| Name | Description |
|---|---|
| assets | Assets a. |
| capital |
Capital Q = a - P.
|
| discount |
Discount M / (a - L); P = (1 - discount) L + discount a.
|
| expected_loss | loss under the name Price gives it. |
| loss |
Expected loss paid, L.
|
| loss_ratio |
Loss ratio L / P.
|
| margin |
Margin M = P - L.
|
| premium |
Premium P.
|
| premium_to_capital |
Premium leverage P / Q.
|
| return_on_capital |
Return on capital M / Q.
|
assets
Assets a.
assets: float
capital
Capital Q = a - P.
capital: float
discount
Discount M / (a - L); P = (1 - discount) L + discount a.
discount: float
expected_loss
expected_loss: float
loss
Expected loss paid, L.
loss: float
loss_ratio
Loss ratio L / P.
loss_ratio: float
margin
Margin M = P - L.
margin: float
return_on_capital
Return on capital M / Q.
return_on_capital: float
Methods
| Name | Description |
|---|---|
| solve() | The pentagon fixed by exactly three of its quantities. |
solve()
The pentagon fixed by exactly three of its quantities.
Usage
solve(
*,
loss=None,
margin=None,
premium=None,
capital=None,
assets=None,
loss_ratio=None,
premium_to_capital=None,
return_on_capital=None
)Parameters
loss: float = Nonemargin: float = Nonepremium: float = Nonecapital: float = Noneassets: float = Noneloss_ratio: float = Nonepremium_to_capital: float = Nonereturn_on_capital: float = None
Returns
Pentagon
Raises
ValueError- Unless exactly three are given and they determine the rest.