pricing.PricingBounds
The range of other risks’ prices over every distortion that prices a
Usage
pricing.PricingBounds()reference risk X at a premium: aggregate’s PricingBounds, exact. Prices are law-invariant, so only each risk’s distribution matters. The ends are attained by BiTVaRs, given with each bound.
Parameters
x: (Sampled, Grid or PredictiveDistribution)-
The reference risk (a predictive distribution’s total).
risks: dict of str to Sampled, Grid or PredictiveDistribution-
The risks to bound.
assets: float- Cap every risk at the assets.
Examples
>>> from prospicio.distributions import Sampled
>>> from prospicio.pricing import PricingBounds
>>> x = Sampled([22, 28, 36, 40, 40, 40, 40, 55, 65, 100])
>>> y = Sampled([0, 0, 11, 0, 7, 8, 9, 10, 40, 64])
>>> pb = PricingBounds(x, {"X3": y})
>>> b = pb.bounds(53.565217391304344)[0]
>>> round(b["lower"], 6), round(b["upper"], 6)(20.070992, 22.098038)
Attributes
| Name | Description |
|---|---|
| premium_range |
The premiums X can be priced at, (E[X], max X).
|
Methods
| Name | Description |
|---|---|
| bounds() |
Each risk’s lowest and highest price when X is priced at
|
bounds()
Each risk’s lowest and highest price when X is priced at
Usage
bounds(premium)Parameters
premium: float