## pricing.PricingBounds


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


Usage

``` python
pricing.PricingBounds()
```


reference risk `X` at a premium: [aggregate](aggregate.Clash.md#prospicio.aggregate.Clash.aggregate)'s [PricingBounds](pricing.PricingBounds.md#prospicio.pricing.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

``` python
>>> 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](#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()](#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

``` python
bounds(premium)
```


[premium](pricing.Price.md#prospicio.pricing.Price.premium).


##### Parameters


`premium: float`  


##### Returns


`list of dict`  
One per risk: `risk`, [lower](distributions.Grid.md#prospicio.distributions.Grid.lower), [upper](distributions.Custom.md#prospicio.distributions.Custom.upper), and a Distortion attaining each, `lower_distortion` and `upper_distortion`.
