finiteruinprob-package: Computation of the Probability of Ruin Within a Finite Time Horizon


In the Cramér–Lundberg risk process perturbed by a Wiener process, this packages provides approximations to the probability of ruin within a finite time horizon. Currently, there are three methods implemented: The first one uses saddlepoint approximation (two variants are provided), the second one uses importance sampling and the third one is based on the simulation of a dual process. This last method is not very accurate and only given here for completeness.


Benjamin Baumgartner <>


Gatto, R. and Baumgartner, B. (2016) Saddlepoint approximations to the probability of ruin in finite time for the compound Poisson risk process perturbed by diffusion. Methodology and Computing in Applied Probability 18(1), pp. 217-235.

Questions? Problems? Suggestions? or email at

All documentation is copyright its authors; we didn't write any of that.