Skip to main content

pricing.PricingBounds

The range of other risks’ prices over every distortion that prices a

Usage

Source

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).

premium_range

The premiums X can be priced at, (E[X], max X).

premium_range: tuple[float, float]

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

Source

bounds(premium)
Parameters
premium: float
Returns
list of dict
One per risk: risk, lower, upper, and a Distortion attaining each, lower_distortion and upper_distortion.