Eventual ruin by the Pollaczeck–Khinchine formula
eventual_ruin.RdThe probability psi(u) that the classical surplus process, Poisson
claims with this severity and a premium of 1 + rho times the expected
loss, ever falls below zero from initial surplus u, as the Python
package aggregate's pollaczeck_khinchine and eventual_ruin. The
Poisson rate cancels. The maximal aggregate loss is a compound geometric
of the equilibrium severity S(x) / E[X], by FFT; psi(u) is its
survival function on the severity's grid.
Usage
eventual_ruin(
severity,
rho = NULL,
loss_ratio = NULL,
p = numeric(),
points = NULL,
cap = NULL,
excess = NULL,
stop_loss = NULL
)Arguments
- severity
- rho
The margin to loss, positive. Or give
loss_ratio.- loss_ratio
1 / (1 + rho), in(0, 1).- p
Ruin probabilities at which to find the capital.
- points
Grid points for
psi; the severity's by default.- cap, excess, stop_loss
At most one: use
X | X <= cap,X | X > excess(not shifted), orXwith the mass abovestop_lossmoved onto it.
Value
A list: psi, a data frame of u and psi on the grid (the
last row is the mass beyond it); capital and capital_interpolated
at each p (the smallest grid point with psi(u) < p, or linear
between grid points; NA where the grid does not reach it);
lundberg_exponent (R with psi(u) <= exp(-R u), NA when none on
the grid), severity_mean and aliasing_error.
Examples
sev <- discretize(gamma_from_mean_cv(100, 1), step = 1, points = 2^14, method = "rounding")
ruin <- eventual_ruin(sev, rho = 0.2, p = c(0.1, 0.01))
ruin$capital
#> [1] 1266 2642
# Exponential claims: exp(-1000 / 600) / 1.2 = 0.157; the step costs 1%.
ruin$psi$psi[ruin$psi$u == 1000]
#> [1] 0.1560433