Skip to main content

risk.worst_var()

The worst VaR at p of a sum of severities with unknown dependence, by

Usage

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

the Rearrangement Algorithm on n quantiles of each from p up (Embrechts, Puccetti and Rueschendorf’s lower matrix; Pricing Insurance Risk, Exercise 59). A heuristic: the start (rotate or 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; value is the worst VaR estimate.

Examples

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