## aggregate.RenewalRuin


The probability of eventual ruin at each initial surplus on the grid


Usage


``` python
aggregate.RenewalRuin()
```


when the waits between claims follow any law, by Wiener-Hopf, from [wiener_hopf](aggregate.wiener_hopf.md#prospicio.aggregate.wiener_hopf).


## Attributes

| Name | Description |
|----|----|
| [maximum](#maximum) | The probabilities of the claim walk's all-time maximum at each grid |
| [mean_step](#mean_step) | The grid's mean step of the claim walk `X - cW`, negative. |
| [premium_rate](#premium_rate) | The premium rate `c = (1 + rho) E[X] / E[W]`. |
| [psi](#psi) | `psi(u)` at each grid point; the last shows the mass beyond the |
| [rho](#rho) | The margin [rho](aggregate.Ruin.md#prospicio.aggregate.Ruin.rho). |
| [severity_mean](#severity_mean) | The severity's mean on the grid. |
| [u](#u) | The initial surplus at each grid point. |

------------------------------------------------------------------------


#### maximum


The probabilities of the claim walk's all-time maximum at each grid


`maximum: list[float]`


point.


------------------------------------------------------------------------


#### mean_step


The grid's mean step of the claim walk `X - cW`, negative.


`mean_step: float`


------------------------------------------------------------------------


#### premium_rate


The premium rate `c = (1 + rho) E[X] / E[W]`.


`premium_rate: float`


------------------------------------------------------------------------


#### psi


`psi(u)` at each grid point; the last shows the mass beyond the


`psi: list[float]`


grid.


------------------------------------------------------------------------


#### rho


The margin [rho](aggregate.Ruin.md#prospicio.aggregate.Ruin.rho).


`rho: float`


------------------------------------------------------------------------


#### severity_mean


The severity's mean on the grid.


`severity_mean: float`


------------------------------------------------------------------------


#### u


The initial surplus at each grid point.


`u: list[float]`


## Methods

| Name | Description |
|----|----|
| [capital()](#capital) | The initial surplus for ruin probability [p](models.Elpd.md#prospicio.models.Elpd.p): the smallest grid |
| [psi_at()](#psi_at) | `psi(u)` at any initial surplus (constant between grid points). |

------------------------------------------------------------------------


#### capital()


The initial surplus for ruin probability [p](models.Elpd.md#prospicio.models.Elpd.p): the smallest grid


Usage


``` python
capital(p, interpolate=False)
```


point with `psi(u) < p`, or linear between grid points.


##### Parameters


`p: float`  

`interpolate: 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


``` python
psi_at(u)
```


##### Parameters


`u: float`  


##### Returns


`float`
