Skip to main content

aggregate.eventual_ruin()

The probability of eventual ruin of the classical surplus process by

Usage

aggregate.eventual_ruin(
    severity,
    rho=None,
    *,
    loss_ratio=None,
    points=None,
    cap=None,
    excess=None,
    stop_loss=None
)

the Pollaczeck–Khinchine formula, as aggregate’s pollaczeck_khinchine and eventual_ruin: Poisson claims with this severity and a premium at 1 + rho times the expected loss. The Poisson rate cancels. The maximal aggregate loss is a compound geometric of the equilibrium severity, by FFT.

Parameters

severity: Grid
rho: float = None

The margin to loss, positive. Or give loss_ratio.

loss_ratio: float = None

1 / (1 + rho), in (0, 1).

points: int = None

Grid points for psi; the severity’s by default.

cap: float = None

Use X | X <= cap.

excess: float = None

Use X | X > excess (not shifted).

stop_loss: float = None
Use X with the mass above stop_loss moved onto it.

Returns

Ruin

Examples

>>> from prospicio.aggregate import eventual_ruin
>>> from prospicio.distributions import Gamma, Grid
>>> sev, _ = Grid.rounding(Gamma.from_mean_cv(100.0, 1.0), 1.0, 1 << 14)
>>> ruin = eventual_ruin(sev, rho=0.2)
>>> # Exponential claims: exp(-u / 600) / 1.2 = 0.157; the step costs 1%.
>>> round(ruin.psi_at(1000.0), 3)

0.156