aggregate.Ruin
The probability of eventual ruin at each initial surplus on the grid, by
Usage
aggregate.Ruin()the Pollaczeck–Khinchine formula, from eventual_ruin.
Attributes
| Name | Description |
|---|---|
| equilibrium | The equilibrium (integrated tail) severity. |
| lundberg_exponent |
The Lundberg exponent R with psi(u) <= exp(-R u), or None
|
| psi |
psi(u) at each grid point; the last is the mass beyond the grid.
|
| report | The compound FFT’s report; read aliasing_error. |
| rho |
The margin rho; the loss ratio is 1 / (1 + rho).
|
| severity_mean | The severity’s mean on the grid, after any cap, excess or stop loss. |
| u | The initial surplus at each grid point. |
equilibrium
The equilibrium (integrated tail) severity.
equilibrium: Grid
lundberg_exponent
The Lundberg exponent R with psi(u) <= exp(-R u), or None
lundberg_exponent: float | None
when the grid’s severity has no root below 700 / max(x).
psi
psi(u) at each grid point; the last is the mass beyond the grid.
psi: list[float]
report
The compound FFT’s report; read aliasing_error.
report: CompoundReport
rho
The margin rho; the loss ratio is 1 / (1 + rho).
rho: float
severity_mean
The severity’s mean on the grid, after any cap, excess or stop loss.
severity_mean: float
u
The initial surplus at each grid point.
u: list[float]
Methods
| Name | Description |
|---|---|
| capital() | The initial surplus for ruin probability p: the smallest grid |
| psi_at() |
psi(u) at any initial surplus (constant between grid points).
|
capital()
The initial surplus for ruin probability p: the smallest grid
Usage
capital(p, interpolate=False)point with psi(u) < p, or linear between grid points.
Parameters
p: floatinterpolate: bool = False
Returns
float or None- None when the grid does not reach it.
psi_at()
psi(u) at any initial surplus (constant between grid points).
Usage
psi_at(u)Parameters
u: float
Returns
float