Skip to main content

pricing.Pentagon

Loss, margin, premium, capital and assets, with P = L + M and

Usage

Source

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

loss under the name Price gives it.

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


premium

Premium P.

premium: float


premium_to_capital

Premium leverage P / Q.

premium_to_capital: 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

Source

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 = None
margin: float = None
premium: float = None
capital: float = None
assets: float = None
loss_ratio: float = None
premium_to_capital: float = None
return_on_capital: float = None
Returns
Pentagon
Raises
ValueError
Unless exactly three are given and they determine the rest.