## risk.worst_var()


The worst VaR at [p](models.Elpd.md#prospicio.models.Elpd.p) of a sum of severities with unknown dependence, by


Usage


``` python
risk.worst_var(
    marginals,
    p,
    n=100,
    rotate=None,
    seed=None,
    tolerance=1e-06,
)
```


the Rearrangement Algorithm on [n](pricing.TrendFit.md#prospicio.pricing.TrendFit.n) quantiles of each from [p](models.Elpd.md#prospicio.models.Elpd.p) up (Embrechts, Puccetti and Rueschendorf's lower matrix; *Pricing Insurance Risk*, Exercise 59). A heuristic: the start (`rotate` or [seed](aggregate.EventSet.md#prospicio.aggregate.EventSet.seed)) makes it reproducible.


## Parameters


`marginals: list of severity`  

`p: float`  

`n: int = ``100`  

`rotate: int = None`  

`seed: int = None`  

`tolerance: float = ``1e-6`  


## Returns


`dict`  
As [rearrange](risk.rearrange.md#prospicio.risk.rearrange); [value](reserving.CalendarIndex.md#prospicio.reserving.CalendarIndex.value) is the worst VaR estimate.


## Examples

``` python
>>> from prospicio.distributions import Lognormal
>>> from prospicio.risk import worst_var
>>> m = [Lognormal.from_mean_cv(10.0, cv) for cv in (1.0, 2.0, 3.0)]
>>> round(worst_var(m, 0.99, n=40, rotate=19)["value"], 1)
```

352.9
