Next Article in Journal
Factor Structure of Green, Grey, and Red EU Securities
Previous Article in Journal
Bank Mergers, Information Asymmetry, and the Architecture of Syndicated Loans: Global Evidence, 1982–2020
Previous Article in Special Issue
Survival Analysis for Credit Risk: A Dynamic Approach for Basel IRB Compliance
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Calculation of Finite-Time Ruin Probabilities in the Dual Risk Model

by
Rui M. R. Cardoso
1,* and
Andressa C. O. Melo
2
1
Center for Mathematics and Applications (NOVA Math) and Department of Mathematics, NOVA School of Science and Technology (NOVA FCT), Universidade Nova de Lisboa, Campus de Caparica, 2829-516 Caparica, Portugal
2
Department of Mathematics, NOVA School of Science and Technology (NOVA FCT), Universidade Nova de Lisboa, Campus de Caparica, 2829-516 Caparica, Portugal
*
Author to whom correspondence should be addressed.
Risks 2025, 13(9), 174; https://doi.org/10.3390/risks13090174
Submission received: 4 August 2025 / Revised: 6 September 2025 / Accepted: 8 September 2025 / Published: 11 September 2025
(This article belongs to the Special Issue Advances in Risk Models and Actuarial Science)

Abstract

In the dual risk model, while the ultimate ruin probability has an exact and straightforward formula, the mathematics becomes significantly more complex when considering a finite time horizon, and the literature on this topic is scarce. As a result, there is a need for numerical approximations. To address this, we develop two numerical algorithms that can accommodate a wide range of distributions for the amount of individual earnings with minimal adjustments. These algorithms are grounded in the methodologies proposed by Cardoso and Egídio dos Reis (2002) and De Vylder and Goovaerts (1988), which involve approximating the continuous risk process with a discrete-time Markov chain framework. We work out some examples, providing approximate values for the density of the time to ruin, and we compare, in the long run, our approximations with the exact values for the ultimate ruin probability to evaluate their accuracy. We also benchmark our results against the few existing figures available in the literature. Our findings suggest that the proposed approaches offer an efficient and flexible methodology for computing finite-time ruin probabilities in the dual risk model.

1. Introduction

The dual risk model and its various extensions have been widely addressed by several authors and can be traced back to Cramér (1955, Section 5.13), Seal (1969, pp. 116–19), Takács (1967, pp. 152–54), and also to Gerber (1979, pp. 136–37), who called it the negative-claims model. More recently, this model has garnered increasing interest, as evidenced by works such as Avanzi et al. (2007), Afonso et al. (2013), Albrecher et al. (2022), and Bazyari (2024). In essence, the dual risk model describes a company’s surplus, which is driven by regular expenses and occasional gains that occur at random moments. The term dual contrasts this model with the Cramér–Lundberg risk model commonly used in insurance, where companies receive premiums and make random claim payments. For those looking to gain a solid understanding of non-life insurance, we recommend referring to several classic texts in the actuarial literature, including Cramér (1955), Seal (1969), Bühlmann (1970), Bowers et al. (1986), Asmussen and Albrecher (2010), Kaas et al. (2008), Klugman et al. (2019), Rolski et al. (2009), Michna (1988), and Dickson (2016). The dual risk model finds applications across a range of industries, including pharmaceutical companies, geological exploration firms (for minerals and oil), real estate and brokerage firms, and research-oriented companies, where gains are random and occur at unpredictable times, while costs are fixed and certain. Another potential application of this model is in the context of lifetime annuities or pension funds, where expenses represent periodic payments, and gains correspond to the actuarial value, upon the death of the insured or pensioner, of the remaining payment obligations. For a more detailed discussion of applications, we refer interested readers to Seal (1969), Mazza and Rullière (2004), Avanzi et al. (2007), Bayraktar and Egami (2008), Dimitrova et al. (2015), and references therein. Recently, the dual risk model has also been applied to assess the feasibility of participating in a mining pool from the perspective of an individual bitcoin miner, see Albrecher et al. (2022). As seen, this model has a broad range of applications.
Mathematically, the stochastic surplus process for the dual risk model at time τ 0 is described by
U ( τ ) = u c τ + S ( τ ) ,
where u > 0 is the initial reserve, c > 0 is the constant rate of expenses per unit time, paid continuously, and S ( τ ) represents the aggregate gain amount up to time τ . The process { S ( τ ) ; τ 0 } follows a compound Poisson process with Poisson parameter λ and is given by:
S ( τ ) = i = 0 N ( τ ) X i ,
where { X i } i = 1 is a sequence of independent and identically distributed positive random variables representing the positive individual gain amounts, with distribution function G, probability density function g, and finite mean p 1 . { N ( τ ) ; τ 0 } denotes a Poisson process representing the number of gains up to time τ . A key feature of this model is that it is a time-homogeneous Markov process. This implies that the surplus level at any given time is sufficient to probabilistically determine the surplus level at any future time h. We also note that by reversing the signs in the second and third terms in (1), one obtains the insurance surplus process.
We also assume the income condition c < λ p 1 , which implies that, on average, the gains exceed the expenses per unit time. As consequence, the surplus process { U ( τ ) : τ 0 } tends to drift towards infinity with probability one, meaning that the surplus is not guaranteed to become negative. We introduce a positive constant θ > 0 , such that c ( 1 + θ ) = λ p 1 . Following the approach in Dickson et al. (1995), without loss of generality, we further assume that c = p 1 = 1 .
A typical sample path for the surplus starts from an initial value u and then decreases at a constant rate c. After some time, there is a gain of amount X 1 , followed by another period of decline at the same rate. Eventually, there is another gain of amount X 2 , and this pattern continues. In continuous time, the process stops when ruin occurs, meaning when the surplus drops below zero. However, the time of ruin, denoted by T, is usually defined as
T : = inf { τ > 0 : U ( τ ) = 0 } , if U ( τ ) > 0 , τ > 0 ,
since ruin is caused by the continuous consumption at rate c, which implies that ruin can only occur immediately after the surplus reaches zero. The ultimate ruin probability, denoted by ψ ( u ) , has a well-known explicit expression for the model under consideration (see, e.g., Gerber (1979) or Afonso et al. (2013)):
ψ ( u ) : = P [ T < ] = e R u ,
where R is the unique positive root of Lundberg’s equation, that is,
λ 0 e R x g ( x ) d x 1 + c R = 0 .
More appealing is to consider a finite time horizon from zero to t and calculate the corresponding ruin probability that is given by
ψ ( u , t ) : = P [ T t ] .
By definition, we have
ψ ( u ) = lim t ψ ( u , t ) .
We denote the (defective) density function of T by ϕ ( u , t ) , and its proper density function is
ϕ ˜ ( u , t ) : = ϕ ( u , t ) ψ ( u ) ,
so this conditional ruin-time density is normalized by the probability of ruin by the horizon (that is, it is conditional on ruin having occurred).
In practice, businesses, insurers, or financial institutions operate over finite time horizons, such as a year, decade, or other periods, which is often more relevant for practical decision-making and risk management, focusing on the short-to-medium-term risks, which are usually more critical for planning and allowing them to take the appropriate preventive actions. Also, companies reassess their positions periodically. Finite-time probabilities provide a snapshot of risk within a defined period, allowing for frequent adjustments to policies, reserves, or investments, ensuring one is prepared for adverse scenarios in the near term rather than being overly reliant on long-term assumptions. Many regulatory guidelines require the assessment of risk within specific time frames, such as solvency tests over a year. Finite-time ruin probabilities align more closely with these requirements.
Ruin in the dual risk model has also attracted considerable attention, and several important contributions have been made in this area. Among others, we note the following works. Mazza and Rullière (2004) investigate ruin by establishing a link between the classical insurance risk model and the dual risk model through wave random motions. A dual Markov-modulated risk model is studied in Zhu and Yang (2008), where ruin probabilities are analyzed under the assumption that both the expense rate and the gain amount distribution are governed by an m-state Markov process. Dong and Wang (2008) examine the compounding assets dual model with constant interest rate, deriving integral and integro-differential equations for the ultimate ruin probability, as well as closed-form solutions for specific cases.
In recent years, Parisian ruin has gained increasing attention in the context of insurance risk models, where a company is allowed to operate under a negative surplus for a predetermined period, known as the Parisian delay; see Czarna and Palmowski (2011), Loeffen et al. (2013), Czarna and Palmowski (2014), Czarna and Renaud (2016), Czarna et al. (2017), Cheung and Zhu (2023), and the references therein. The latter also investigates cumulative Parisian ruin within a finite time horizon. The application of Parisian ruin to the dual risk model has been explored in several studies, including Cheung and Wong (2017) and Yang et al. (2020). In these models, when the surplus becomes negative, the company may still survive for a period due to the positive drift (or loading), and depending on the size of the deficit, it may quickly recover to a positive surplus. On one hand, this definition acknowledges the potential for profitability even after a temporary deficit. On the other hand, the classical definition of ruin is more conservative, offering stronger protection against insolvency by not allowing any tolerance for negative surplus.
The existing literature on calculating the finite-time ruin probability for the dual risk model is limited. In Yang and Sendova (2014), we can find an expression for the (defective) cumulative distribution function of the time of ruin T in terms of convolutions of the p.d.f. g. These authors do not provide any numerical values for the targeted quantity. Dimitrova et al. (2015) delve into the finite-time ruin probability within a reasonably generalized dual risk model by establishing a connection between this model and its corresponding insurance model. They derive expressions for this probability under various general assumptions and when capital gains follow a linear combination of exponential distributions or a hyperexponential distribution. These formulas are presented in terms of Appell polynomials. For arbitrarily distributed capital gains, the authors use the result that states that any distribution can be approximated by a mixed exponential distribution in the sense of weak convergence. However, in the specific risk model we study here, Dimitrova et al. (2015) show only two numerical results for ψ ( u , t ) , where u and t are small, and resort to approximate numerical procedures. As these authors remarked, there are “Some limitations related to the numerical performance of these formulas (…), e.g., the need to evaluate high dimensional integrals when the intensity of the arrival process and/or the length of the finite-time horizon is too large”. Thus, these are the only numerical values currently available in the existing literature. Moreover, to the best of our knowledge, there are no closed-form results for the targeted probability. This gap in the literature motivates our work, which focuses on the numerical approximation of the ruin probability over a finite horizon, taking into account a general framework for gain amount distributions. As a result, we are able to generate graphs for ϕ ˜ ( u , t ) .
We employ two distinct approaches, detailed in the following section. The first approach involves adapting a methodology originally developed by Dickson and Gray (1984) and Cardoso and Egídio dos Reis (2002), which utilizes discrete-time Markov chains in the context of the classical insurance risk model. This method has been successfully applied to other contexts of this latter model; see Cardoso and Waters (2003, 2005) and Cardoso (2014). The second approach builds on the methodology proposed by De Vylder and Goovaerts (1988). Both methods share a key concept: the continuous time/amount plane is replaced by a rectangular grid, where the continuous (time and amount) surplus process is approximated by a discrete process. This discrete process operates within a state space composed of equally spaced points along the amount axis. The probabilistic properties of this approximate discrete process are more straightforward to derive than those of the original continuous process. A significant advantage of this methodology is that the process can be scaled, so that, within a single unit of time, the expenses—and thus the maximum decrease in the surplus—are normalized to one.
The algorithms presented in this work are intuitively appealing and conceptually straightforward. The proposed approaches appear to offer more efficient methods for approximating the distribution of the time-to-ruin random variable compared to the approach described in Dimitrova et al. (2015). We emphasize that, to the best of our knowledge, apart from the numerical values presented in that paper, no other figures have been reported for finite-time ruin probabilities in the dual risk model. Based on our experience, the proposed approximations exhibit strong accuracy, as demonstrated in the final section, where we present numerical results and accompanying graphs. It is well established that the methodology employed in this study yields reliable approximations in the context of the classical insurance risk model. Naturally, the precision of these approximations depends on the discretization mesh-size, which arises from transitioning the continuous model to a discrete framework. As we show, in the long run, our approximations closely align with the exact values of the ultimate ruin probability.

2. The Algorithms

We now derive two procedures for calculating ruin probabilities within a finite time under the dual risk model. These methods are based on the approaches presented in Cardoso and Egídio dos Reis (2002) and De Vylder and Goovaerts (1988) within the context of the classical insurance model. We begin by establishing the common foundation, which leads to the discretization of the original risk surplus process.
The sample paths of the surplus process can be represented in a two-dimensional space, where the x-axis denotes time and the y-axis represents the monetary amount. We begin by dividing the time axis into equal intervals of length h, such that 0 h , h 2 h , , ( K 1 ) h K h = t , where h is a suitably small positive number. For convenience, we assume that t / h is a positive integer K. Next, we divide the amount axis into intervals, such as 0 x 1 , x 1 x 2 , and so forth. The objective is to approximate the continuous surplus process, which varies over time and amount, with a discrete process. This discrete process takes on values x j at the specified time points, where
x j = x j + 1 c h x j + 1 = x j + c h x j = j h .
Hence, the values x j are equally spaced. Conceptually, x j represents the level the surplus process would reach within a time interval of length h if it started from x j + 1 , assuming no gains occur during that interval.
This new process is clearly a discrete-time Markov chain, denoted by { Z n } n = 0 , which is defined at time points { n h } n = 0 and has a state space { x j } j = 0 . It approximates the process { U ( n h ) } n = 0 K , functioning similarly to a surplus process. The chain initiates at state u, which is conveniently set equal to x ω for some integer ω , that is, u coincides to one of the values x j . Given the flexibility in choosing the value of h, this assumption is not overly restrictive, as stated in Cardoso and Waters (2005). The process maintains the same rate of expenses as its continuous-time counterpart and terminates at the absorbing state x 0 = 0 , representing ruin. Figure 1 illustrates the possible positive values that the chain { Z n } n = 0 can assume at each time point up until t h . In essence, our method replaces the continuous time surplus process by a discrete time process constrained to take values within a countable set.
To fully define this Markov chain, we must specify its transition probabilities. Let us denote the n-step transition probabilities by
p ω , j ( n ) = P [ Z n = x j ] , p i , j ( n ) = P [ Z m + n = x j | Z m = x i ] ,
for n , m 1 , i , j 0 . Ideally, we would derive these probabilities from the distribution of the aggregate gains over any interval of length h:
F h ( x ) = P [ S ( τ + h ) S ( τ ) x ] , τ 0 .
However, in practice, this is often infeasible. Instead, we can construct a discrete approximation using the Panjer (1981) recursion formula, that we denote by F ˜ d . First, if the gain amount distribution is not already discrete, we discretize it using, for example, the mean preserving method of De Vylder and Goovaerts (1988), which is known for yielding accurate results. This procedure yields a cumulative distribution function whose probability masses are conveniently concentrated at the values { x j } j = 0 , with probabilities denoted by g ˜ j , computed as follows:
g ˜ 0 + g ˜ 1 + + g ˜ j = j j + 1 G ( x h ) d x .
For further details on discretization methods see Panjer and Lutek (1983), Klugman et al. (2019), and Dickson (2016). Consequently, as mentioned, we get F ˜ d and its probability mass function, at each point x j , given by f j = F ˜ d ( x j ) F ˜ d ( x j 1 ) , which can be computed using the version of Panjer’s recursion for the compound-Poisson case:
f j = λ h j i = 1 j i g ˜ i f j i ,
for j = 1 , 2 , , with the starting value f 0 = e λ h ( 1 g ˜ 0 ) . Hence, we set the one-step transition probabilities as follows:
p i , j : = p i , j ( 1 ) = f j ( i 1 ) , j i 1 .
These definitions can be intuitively understood. A point to note is that our chain is skip-free downwards (the chain can only jump one state down at a time but can have upward jumps of any size), meaning that if the chain is in state x i at time n h , then Z n + 1 will be in state x i 1 if no gains occur during a period of length h, but in no lower state. This event has probability f 0 . Further, the chain will remain in state x i at time ( n + 1 ) h with probability f 1 if the discrete aggregate gains during that period are greater than x 0 but less than or equal to x 1 . By following this reasoning, we arrive at (4). For a visual representation, see Figure 2.
Regarding the n-step transition probabilities, we focus on the positive values x i that the chain { Z n } n = 0 may assume until time t h . Starting from x ω = u , the chain would take a minimum time period of length u to reach 0, as the process can only decrease by one position at each time step h. This implies that, starting from u, the chain cannot take any value below the diagonal formed by the points ( j h , x ω j ) for j = 1 , , ω 1 . For the same reason, and considering our objective of determining the ruin probability within time t, if the chain reaches a value above the diagonal formed by the points ( j h , x K j ) for j = 1 , , K 1 , then ruin cannot occur before time t. Consequently, the relevant positive values that the chain may assume to achieve our goal are those depicted in Figure 3.
Applying the Chapman–Kolmogorov equations, we derive the recursive formulas for the transition probabilities,
p ω , j ( n ) = i = max ( 0 , ω ( n 1 ) ) min ( j + 1 , K ( n 1 ) ) p ω , i ( n 1 ) × p i , j ,
for n = 2 , 3 , K ( = t / h ) and j = max ( 0 , ω n ) , , K n . Note that, on one hand, if our Markov chain starts from u = x ω , it will reach a minimum value of x ω n at time n h , provided no gains occur during this period, and as long as ω n > 0 ; otherwise, the minimum value is zero. On the other hand, at the nth transition, the chain cannot attain a value higher than x K n because if it did, it would be certain that ruin would not occur before time t. In particular, we have
p ω , 0 ( n ) = p ω , 0 ( n 1 ) + p ω , 1 ( n 1 ) × f 0 .
since zero is an absorbing state and, consequently, once zero is reached, the chain remains there, and this state is only attained from x 1 with probability f 0 . Particularly, the ruin state is reached at the first transition if the chain starts from x 1 . Thus, we obtain the desired approximation,
ψ ( u , t ) p ω , 0 ( K ) .
Naturally, the smaller the value of h, the more accurate our approximation is likely to be.
We now adapt the numerical procedure developed in De Vylder and Goovaerts (1988). The basic idea is to condition on the value that the discrete surplus process assumes after the first time period of length h. Starting from u = x ω , the chain will be in state x ω 1 + i at time h, with i = 0 , 1 , . From each of these states, we then consider the probability that the process reaches state 0 within the remaining time horizon, which is the time period of length t h . Using the notation from the method described above, we arrive at the following formula:
p ω , 0 ( K ) = i = 0 K ω p ω , ω 1 + i × p ω 1 + i , 0 ( K 1 ) ,
with p ω , ω 1 + i = f i . Note that the upper limit in the summation is K ω because if, at time h, the process takes a value above x K 1 , then ruin cannot occur within the fixed time period t. As can be seen, the calculations are performed recursively, and the values required to obtain the approximation are p j , 0 ( n ) , for n = 1 , , K 1 , and j = max ( 0 , n ( K ω ) ) , , n , as represented in Figure 4. It is noteworthy that this is a mirror image of Figure 3, indicating that both approaches are similar and yield the same numerical approximations.

3. Results and Discussion

For our numerical illustrations, we selected three distribution functions for individual gain amounts, each with a mean of one: Exponential (1), Gamma (2,2) and Pareto (2,1). The corresponding probability density functions are as follows:
g ( x ) = e x , x > 0 , g ( x ) = 4 x e 2 x , x > 0
and
g ( x ) = 2 ( 1 + x ) 3 , x > 0 .
We remind the reader the basic normalization assumptions stated in Section 1: the expense rate per unit time, c, and the mean of the individual gain amounts, p 1 , are both set to one. For the Exponential(1), the discretized version of its p.d.f., obtained using (2), is given by
g ˜ 0 = 1 1 h ( 1 e h ) g ˜ j = 1 h e ( j + 1 ) h ( e h 1 ) 2
for j = 1 , 2 , , K 1 . These values are then inserted into Panjer’s formula (3) to compute the one-step transition probabilities, as described in Equation (4). Finally, using these starting values and applying the recursive relations (5) or (6), we obtain the desired approximation for ψ ( u , t ) .
For all calculations, we set the mesh size to h = 0.01 , which we found suitable for our purposes. We experienced that using a smaller h did not significantly improve the accuracy of the results. We return to this topic later.
In Table 1, Table 2 and Table 3, we present approximate values of finite-time ruin probabilities, rounded to four decimal places, for θ = 0.1 and various combinations of time t and initial surplus u. As expected, some values are zero because, for instance, with u = 10 and t = 5 , ruin is impossible. The values marked with an asterisk “ * ” are not zero but are exceedingly small. As expected, the tables show that for a fixed t, the approximations for ψ ( u , t ) decrease as u increases, while for a fixed u, they increase with t. From a practical perspective, company managers are typically interested in maintaining small finite-time ruin probabilities, for example in the range of 1–5%. For instance, in the case of Exponential(1) gains, Table 1 indicates that for t = 20 the required initial surplus is approximately 10, whereas for t = 100 , the corresponding value of u is around 20. Similarly, from Table 2, for a fixed t = 30 , an admissible initial surplus is about 10. Among the examples considered, the Pareto(2,1) gain distribution yields the highest probabilities.
Both methods developed in this paper were used to obtain these approximations, and they yielded identical numerical results. It is also noteworthy that the computational times for each algorithm were not significantly different. In Table 4, we present the computing times (in seconds) required to calculate some of the values shown in Table 1.
The computing times depend on the values of u, t, and h, that is on the values of ω and K. As expected, for a fixed u, the computing time increases with t, since more states are required in the calculations. Conversely, for a fixed t, the computing time decreases as u increases, due to a reduction in the number of relevant states—this behavior is consistent with the trends observed in Figure 3. Despite our efforts to ensure consistency, these times should be considered indicative only, as they are influenced by several external factors such as hardware specifications, system load, and background processes. The computations were performed on an older laptop equipped with an Intel(R) Core(TM) i7-8550U CPU at 1.80GHz and 8 GB of RAM. It is worth noting that, for example, when u = 1 and t = 100 , our first algorithm allowed us to compute all approximate values for t < 100 in a single run, thereby saving time. Similarly, using recursion (6), we can compute approximations for a fixed t and for all values of u less than or equal to a specified initial reserve.
Table 5 provides approximations of ψ ( u , 20 ) for Exponential(1) gains for different values of mesh sizes h.
We observe that the approximations for h = 0.01 are nearly identical to those for h = 0.005 , and even for h = 0.02 , the differences are minimal. When rounding to four decimal places, the results for h equal to 0.01 and 0.005 are identical. This pattern was consistently observed across various tests, which justified our choice of setting the mesh size to h = 0.01 for the remainder of the computations.
Figure 5 displays (approximate) graphs of the proper density function ϕ ˜ ( u , t ) , for individual gain distributions: Exponential(1) (top left), Gamma(2,2) (top right), and Pareto(2,1) (bottom), with θ = 0.1 , various initial surpluses, and a time horizon from 0 to 100.
We observe that these functions are unimodal and positively skewed, with the mode increasing for larger values of u. Additionally, in Figure 6, we provide graphs of the approximations for ψ ( u , t ) , holding t constant while varying the initial surplus, specifically for Pareto(2,1) gains. As expected, the finite-time ruin probability decreases as u increases and converges to zero as u tends to t.
Now, we assess the accuracy of our approximations. Firstly, we compare them, in the long run, with the exact ultimate ruin probability, considering the gain distributions mentioned earlier. For all cases shown in Figure 7, we selected an initial surplus of u = 5 .
Given our parametrization, where ( 1 + θ ) = λ , an increase in θ leads to a higher number of individual gains. As a result, the surplus tends to reach higher values, making ruin, afterwards, less likely. Therefore, ψ ( u , t ) converges more quickly to ψ ( u ) as θ increases, which is why we chose values of one and two for that parameter (we could chose higher values). Figure 7 shows that the approximate values appear to converge to the ultimate ruin probability ψ ( u ) , indicating the good accuracy of our algorithms. Interestingly, our approximations are slightly higher than ψ ( u ) . For Exponential(1) gains, in Table 6, we compare the approximations of ψ ( 5 , 100 ) for different mesh sizes h and with the exact value ψ ( 5 ) , while considering both cases θ = 1 and θ = 2 .
These results illustrate a consistent pattern observed across multiple computations: as the mesh size h decreases, the approximated values also decrease, approaching the continuous-time value from above. This behavior is also evident in Table 5. One might initially expect the opposite trend, given that we are approximating a continuous-time surplus process with a discrete-time model. However, due to the structure of our algorithms, ruin is recorded when the discrete-time process reaches zero, whereas in the continuous-time model, ruin occurs immediately upon reaching zero. This subtle difference implies that ruin may be detected slightly earlier in the discrete model, leading to higher estimates of ruin probability. Another contributing factor could be the discretization of the gain amount distribution, which may result in approximations that slightly overestimate ψ ( u , t ) , as observed by Dickson and Waters (1991) in the context of ruin probability in the insurance surplus process. Ideally, one would aim to provide an analytical proof of convergence for these estimates toward the exact values, along with explicit error bounds. However, this task appears highly challenging due to different layers of approximation involved, namely, the discretization of the gain amounts’ distribution, the use of Panjer’s recursion, and the adoption of a discrete-time framework. This issue is not addressed in the original papers on which our algorithms are based, nor, to our knowledge, in many other studies that develop similar recursive methods. In those works, the accuracy of the numerical results is typically assessed by comparison with exact values available in certain special cases. For instance, Dickson and Waters (1991), who laid some of the foundations for constructing such numerical algorithms in the setting of the classical insurance risk model, note that intuitively, the resulting values should be good approximations to ψ ( u , t ) if h is small, so that there are frequent checks for ruin in the discrete case. Moreover, quoting Dickson (2016), “Intuitively, if we approximate a continuous time ruin probability by a discrete time one, we would expect the approximation to be good if the interval between the time points at which we ’check’ the surplus is small.” Nevertheless, in our methodology, approximating Poisson gains by aggregating all arrivals within ( n h , ( n + 1 ) h ] into a single step-jump defers any within-step upward jumps to the next grid time. This suppresses short clusters of gains, increases the chance of longer periods without gains, and thus raises ruin probabilities. Moreover, concerning the severity discretization, the mean-preserving method by mass reallocation often produces a gain-size distribution that is smaller in convex order than the true one (less variable at the same mean), making large gain jumps less likely and thereby increasing ruin probability.
We can compare the quality of our approximations with those provided in Dimitrova et al. (2015). In their Examples 3.1 and 3.2, the authors consider Pareto(1.2, 0.2) and Weibull(0.6, 0.66464) distributions for the capital gains. In both instances, they approximate these distributions using hyperexponential distributions. For the governing parameters c = 0.6 and λ = 0.5 , the approximate values for the survival probability 1 ψ ( 1 , 2 ) are 0.335042 and 0.414054, respectively. To verify the accuracy of their results, the authors conducted Monte Carlo simulations and constructed 95% confidence intervals: (0.332475, 0.334341) and (0.413077, 0.414989). Rescaling the model to our assumptions, we obtain the approximations 0.333016 and 0.414143. As observed, our values fall within these confidence intervals, though this only occurs for the second approximation from Dimitrova et al. (2015).
Our algorithms are particularly appealing due to their intuitive construction, ease of implementation and effectiveness for large values of u and t. Moreover, the results appear to be accurate. Another strong feature of our algorithm is its numerical stability. De Vylder and Goovaerts (1988), in their Section 5, demonstrated that their algorithm was numerically stable, as also emphasized by Dickson and Waters (1991). Consequently, our second method inherits this property, since both recursions are of the same type. The same conclusion applies to our first method: Cardoso and Waters (2003), in their Section 3, established the numerical stability of a recursion of the same form as ours (see Formula (5)). More broadly, numerical aspects of recursive calculations have been discussed in detail by Panjer and Willmot (1986) and Panjer and Wang (1993). An advantage of the first method described in Section 2 is that, in calculating the approximate value p ω , 0 ( K ) , we also recursively compute p ω , 0 ( n ) , for n = ω , ω + h , , K h . This allows us to easily generate an approximate graph for ϕ ˜ ( u , t ) . On the other hand, the second algorithm presented in Section 2 is better suited for generating graphs of ψ ( u , t ) with a fixed t and varying the initial surplus, as illustrated in Figure 6. This methodology also shows potential applications in the assessment of capital requirements and the solvency of the company, as demanded by institutional supervisors, by considering the finite-time ruin probability as a risk measure. In this way, managers can, given the current surplus, anticipate the likelihood of ruin in the short or medium term and determine the level of capital required to continue operations, making the necessary adjustments accordingly. Another risk management tool that arises from our methodology—particularly when using the second algorithm presented in this manuscript—is the analysis of initial surpluses associated with low ruin probabilities over a fixed time horizon. This is illustrated graphically in Figure 6, which provides a glimpse of the appropriate values of u when targeting ruin probabilities between 1% and 5%. Specifically, for t = 40 , the required surplus lies approximately in the interval [ 18.55 , 22.78 ] ; for t = 70 , in [ 25.69 , 32.22 ] ; and for t = 100 , in [ 31.24 , 39.70 ] . Moreover, such analyses can inform decisions regarding capital injections, a topic studied in Dickson and Waters (2004). Still within the insurance risk model, the expected present value of total operating costs until ruin, within a finite time horizon, provides another valuable tool for strengthening a firm’s management policy, as discussed in Xie and Zhang (2025). As directions for future work, it would be of interest to extend the ideas in these two papers by applying the concepts to the dual risk model, as well as to consider the Parisian ruin and to develop numerical algorithms for the corresponding quantities of interest.

Author Contributions

Conceptualization, R.M.R.C.; methodology, R.M.R.C. and A.C.O.M.; software, R.M.R.C. and A.C.O.M.; Investigation, R.M.R.C. and A.C.O.M.; writing—original draft preparation, R.M.R.C. and A.C.O.M.; writing—review and editing, R.M.R.C.; supervision, R.M.R.C.; funding acquisition, R.M.R.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by national funds through the FCT—Fundação para a Ciência e a Tecnologia, I.P., under the scope of the projects UIDB/00297/2020 (https://doi.org/10.54499/UIDB/00297/2020) and UIDP/00297/2020 (https://doi.org/10.54499/UIDP/00297/2020) (Center for Mathematics and Applications).

Data Availability Statement

No new data were created or analyzed in this study.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Afonso, Lourdes B., Rui M. R. Cardoso, and Alfredo D. Egídio dos Reis. 2013. Dividend problems in the dual risk model. Insurance: Mathematics and Economics 53: 906–18. [Google Scholar] [CrossRef]
  2. Albrecher, Hansjörg, Dina Finger, and Pierre-O. Goffard. 2022. Blockchain mining in pools: Analyzing the trade-off between profitability and ruin. Insurance: Mathematics and Economics 105: 313–35. [Google Scholar] [CrossRef]
  3. Asmussen, Soren, and Hansjörg Albrecher. 2010. Ruin Probabilities, 2nd ed. Advanced Series On Statistical Science And Applied Probability. Hackensack: World Scientific Publishing Company. [Google Scholar]
  4. Avanzi, Benjamin, Hans U. Gerber, and Elias S. W. Shiu. 2007. Optimal dividends in the dual model. Insurance: Mathematics and Economics 41: 111–23. [Google Scholar]
  5. Bayraktar, Erhan, and Masahiko Egami. 2008. Optimizing venture capital investment in a jump diffusion model. Mathematical Methods of Operations Research 67: 21–42. [Google Scholar] [CrossRef]
  6. Bazyari, Abouzar. 2024. On the evaluation of ruin probabilities in a generalized dual binomial risk model using markov property. Communications in Statistics—Theory and Methods 53: 1162–87. [Google Scholar] [CrossRef]
  7. Bowers, Newton L., Hans U. Gerber, James C. Hickman, Donald A. Jones, and Cecil J. Nesbitt. 1986. Actuarial Mathematics, 2nd ed. Schaumburg: Society of Actuaries. [Google Scholar]
  8. Bühlmann, Hans. 1970. Mathematical Methods in Risk Theory. New York: Springer. [Google Scholar]
  9. Cardoso, Rui M. R. 2014. Dividends in finite time horizon. Applied Stochastic Models in Business and Industry 30: 172–82. [Google Scholar] [CrossRef]
  10. Cardoso, Rui M. R., and Alfredo D. Egídio dos Reis. 2002. Recursive calculation of time to ruin distributions. Insurance: Mathematics and Economics 30: 219–30. [Google Scholar] [CrossRef]
  11. Cardoso, Rui M. R., and Howard R. Waters. 2003. Recursive calculation of finite time ruin probabilities under interest force. Insurance: Mathematics and Economics 33: 659–76. [Google Scholar] [CrossRef]
  12. Cardoso, Rui M. R., and Howard R. Waters. 2005. Calculation of finite time ruin probabilities for some risk models. Insurance: Mathematics and Economics 37: 197–15. [Google Scholar]
  13. Cheung, Eric C. K., and Jeff T. Y. Wong. 2017. On the dual risk model with parisian implementation delays in dividend payments. European Journal of Operational Research 257: 159–73. [Google Scholar] [CrossRef]
  14. Cheung, Eric C. K., and Wei Zhu. 2023. Cumulative parisian ruin in finite and infinite time horizons for a renewal risk process with exponential claims. Insurance: Mathematics and Economics 111: 84–101. [Google Scholar] [CrossRef]
  15. Cramér, Harald. 1955. Collective Risk Theory: A Survey of the Theory from the Point of View of the Theory of Stochastic Processes. Stockholm: Nordiska Bokhandeln. [Google Scholar]
  16. Czarna, Irmina, and Jean-François Renaud. 2016. A note on parisian ruin with an ultimate bankruptcy level for Lévy insurance risk processes. Statistics & Probability Letters 113: 54–61. [Google Scholar] [CrossRef]
  17. Czarna, Irmina, and Zbigniew Palmowski. 2011. Ruin probability with parisian delay for a spectrally negative Lévy risk process. Journal of Applied Probability 48: 984–1002. [Google Scholar] [CrossRef]
  18. Czarna, Irmina, and Zbigniew Palmowski. 2014. Dividend problem with parisian delay for a spectrally negative Lévy risk process. Journal of Optimization Theory and Applications 161: 239–56. [Google Scholar] [CrossRef]
  19. Czarna, Irmina, Yanhong Li, Zbigniew Palmowski, and Chunming Zhao. 2017. The joint distribution of the parisian ruin time and the number of claims until parisian ruin in the classical risk model. Journal of Computational and Applied Mathematics 313: 499–514. [Google Scholar] [CrossRef]
  20. De Vylder, Florian, and Marc J. Goovaerts. 1988. Recursive calculation of finite-time ruin probabilities. Insurance: Mathematics and Economics 7: 1–7. [Google Scholar]
  21. Dickson, David C. M. 2016. Insurance Risk and Ruin, 2nd ed. International Series on Actuarial Science. Cambridge: Cambridge University Press. [Google Scholar]
  22. Dickson, David C. M., Alfredo D. Egídio dos Reis, and Howard R. Waters. 1995. Some stable algorithms in ruin theory and their applications. ASTIN Bulletin 25: 153–75. [Google Scholar] [CrossRef]
  23. Dickson, David C. M., and Howard R. Waters. 1991. Recursive calculation of survival probabilities. ASTIN Bulletin 21: 199–221. [Google Scholar] [CrossRef]
  24. Dickson, David C. M., and Howard R. Waters. 2004. Some optimal dividends problems. ASTIN Bulletin 34: 49–74. [Google Scholar] [CrossRef]
  25. Dickson, David C. M., and James R. Gray. 1984. Approximations to ruin probability in the presence of an upper absorbing barrier. Scandinavian Actuarial Journal 1984: 105–15. [Google Scholar] [CrossRef]
  26. Dimitrova, Dimitrina S., Vladimir K. Kaishev, and Shouqi Zhao. 2015. On finite-time ruin probabilities in a generalized dual risk model with dependence. European Journal of Operational Research 242: 134–148. [Google Scholar] [CrossRef]
  27. Dong, Yinghui, and Guojing Wang. 2008. On a compounding assets model with positive jumps. Applied Stochastic Models in Business and Industry 24: 21–30. [Google Scholar] [CrossRef]
  28. Gerber, Hans U. 1979. An Introduction to Mathematical Risk Theory. Homewood: S.S. Huebner Foundation for Insurance Education. [Google Scholar]
  29. Kaas, Rob, Marc Goovaerts, Jan Dhaene, and Michel Denuit. 2008. Modern Actuarial Risk Theory—Using R, 2nd ed. Heidelberg and Berlin: Springer. [Google Scholar]
  30. Klugman, Stuart A., Harry H. Panjer, and Gordon E. Willmot. 2019. Loss Models: From Data to Decisions. Wiley Series in Probability and Statistics. Hoboken: Wiley. [Google Scholar]
  31. Loeffen, Ronnie, Irmina Czarna, and Zbigniew Palmowski. 2013. Parisian ruin probability for spectrally negative Lévy processes. Bernoulli 19: 599–609. [Google Scholar] [CrossRef]
  32. Mazza, Christian, and Didier Rullière. 2004. A link between wave governed random motions and ruin processes. Insurance: Mathematics and Economics 35: 205–22. [Google Scholar]
  33. Michna, Zbigniew. 1988. Self-similar processes in collective risk theory. Journal of Applied Mathematics and Stochastic Analysis 11: 429–48. [Google Scholar] [CrossRef]
  34. Panjer, Harry H. 1981. Recursive evaluation of a family of compound distributions. ASTIN Bulletin 12: 22–26. [Google Scholar] [CrossRef]
  35. Panjer, Harry H., and Ben W. Lutek. 1983. Practical aspects of stop-loss calculations. Insurance: Mathematics and Economics 2: 159–77. [Google Scholar]
  36. Panjer, Harry H., and Gordon E. Willmot. 1986. Computational aspects of recursive evaluation of compound distributions. Insurance: Mathematics and Economics 5: 113–16. [Google Scholar]
  37. Panjer, Harry H., and Shaun Wang. 1993. On the stability of recursive formulas. ASTIN Bulletin 23: 227–58. [Google Scholar] [CrossRef]
  38. Rolski, Tomasz, Hanspeter Schmidli, Volker Schmidt, and Jozef L. Teugels. 2009. Stochastic Processes for Insurance and Finance. Wiley Series in Probability and Statistics. New York: Wiley. [Google Scholar]
  39. Seal, Hilary L. 1969. Stochastic Theory of a Risk Business. New York: Wiley. [Google Scholar]
  40. Takács, Lajos. 1967. Combinatorial Methods in the Theory of Stochastic Processes. New York: Wiley. [Google Scholar]
  41. Xie, Jiayi, and Zhimin Zhang. 2025. Finite-time expected present value of operating costs until ruin in Lévy risk models with varying dividend barriers. Communications in Statistics—Theory and Methods, 1–21. [Google Scholar] [CrossRef]
  42. Yang, Chen, and Kristina P. Sendova. 2014. The discounted moments of the surplus after the last innovation before ruin under the dual risk model. Stochastic Models 30: 99–124. [Google Scholar] [CrossRef]
  43. Yang, Chen, Kristina P. Sendova, and Zhong Li. 2020. Parisian ruin with a threshold dividend strategy under the dual Lévy risk model. Insurance: Mathematics and Economics 90: 135–50. [Google Scholar]
  44. Zhu, Jinxia, and Hailiang Yang. 2008. Ruin probabilities of a dual markov-modulated risk model. Communications in Statistics—Theory and Methods 37: 3298–307. [Google Scholar] [CrossRef]
Figure 1. Values that the chain { Z n } n = 0 may take.
Figure 1. Values that the chain { Z n } n = 0 may take.
Risks 13 00174 g001
Figure 2. Values that Z n + 1 takes if Z n = x i and their corresponding one-step transition probabilities.
Figure 2. Values that Z n + 1 takes if Z n = x i and their corresponding one-step transition probabilities.
Risks 13 00174 g002
Figure 3. Values that the chain { Z n } n = 0 may take (revisited).
Figure 3. Values that the chain { Z n } n = 0 may take (revisited).
Risks 13 00174 g003
Figure 4. Combinations of n and j for which values of p j , 0 ( n ) are required to calculate p ω , 0 ( K ) .
Figure 4. Combinations of n and j for which values of p j , 0 ( n ) are required to calculate p ω , 0 ( K ) .
Risks 13 00174 g004
Figure 5. Graphs of the (approximate) proper density ϕ ˜ ( u , t ) .
Figure 5. Graphs of the (approximate) proper density ϕ ˜ ( u , t ) .
Risks 13 00174 g005
Figure 6. Graphs for the (approximate) ψ ( u , t ) with t fixed, Pareto(2,1) gains.
Figure 6. Graphs for the (approximate) ψ ( u , t ) with t fixed, Pareto(2,1) gains.
Risks 13 00174 g006
Figure 7. Convergence of the (approximate) ψ ( u , t ) to ψ ( u ) .
Figure 7. Convergence of the (approximate) ψ ( u , t ) to ψ ( u ) .
Risks 13 00174 g007
Table 1. Approximations of ψ ( u , t ) , Exponential(1) gains.
Table 1. Approximations of ψ ( u , t ) , Exponential(1) gains.
u
t 1 5 10 20 30
10.33470.00000.00000.00000.0000
50.69830.00420.00000.00000.0000
100.77260.14140.0000 *0.00000.0000
200.82300.29550.03480.0000 *0.0000
300.84460.37180.08550.00030.0000 *
500.86540.44980.16020.00720.0000 *
1000.88480.52550.25210.04040.0034
Table 2. Approximations of ψ ( u , t ) , Gamma(2,2) gains.
Table 2. Approximations of ψ ( u , t ) , Gamma(2,2) gains.
u
t 1 5 10 20 30
10.33290.00000.00000.00000.0000
50.65300.00410.00000.00000.0000
100.73470.09500.0000 *0.00000.0000
200.79040.22720.01670.0000 *0.0000
300.81420.29830.04880.00010.0000 *
500.83690.37330.10390.00220.0000 *
1000.85750.44650.17800.01790.0008
Table 3. Approximations of ψ ( u , t ) , Pareto(2,1) gains.
Table 3. Approximations of ψ ( u , t ) , Pareto(2,1) gains.
u
t 1 5 10 20 30
10.33650.00000.00000.00000.0000
50.79600.00430.00000.00000.0000
100.85990.28210.0000 *0.00000.0000
200.90020.50310.12740.0000 *0.0000
300.91690.59230.25450.00500.0000 *
500.93280.67530.39570.06730.0019
1000.94800.75170.53590.22020.0608
Table 4. Computing times for the calculation of approximations of ψ ( u , t ) , Exponential(1) gains.
Table 4. Computing times for the calculation of approximations of ψ ( u , t ) , Exponential(1) gains.
t = 1 t = 5 t = 10 t = 20 t = 30 t = 50
u = 1 <0.010.070.43.4811.6254.27
u = 1 u = 5 u = 10 u = 20 u = 30
t = 100 475436432394347
Table 5. Approximations of ψ ( u , 20 ) with different mesh sizes h, Exponential(1) gains.
Table 5. Approximations of ψ ( u , 20 ) with different mesh sizes h, Exponential(1) gains.
u
1 5 10
h = 0.02 0.823040.295580.03482
h = 0.01 0.823020.295530.03479
h = 0.005 0.823020.295500.03478
Table 6. Comparison between approximations of ψ ( 5 , 100 ) and the exact value ψ ( 5 ) , Exponential(1) gains.
Table 6. Comparison between approximations of ψ ( 5 , 100 ) and the exact value ψ ( 5 ) , Exponential(1) gains.
h = 0.02 h = 0.01 ψ ( 5 )
θ = 1 0.6740 × 10 2 0.6739 × 10 2 0.6738 × 10 2
θ = 2 0.4545 × 10 4 0.4541 × 10 4 0.4540 × 10 4
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cardoso, R.M.R.; Melo, A.C.O. Numerical Calculation of Finite-Time Ruin Probabilities in the Dual Risk Model. Risks 2025, 13, 174. https://doi.org/10.3390/risks13090174

AMA Style

Cardoso RMR, Melo ACO. Numerical Calculation of Finite-Time Ruin Probabilities in the Dual Risk Model. Risks. 2025; 13(9):174. https://doi.org/10.3390/risks13090174

Chicago/Turabian Style

Cardoso, Rui M. R., and Andressa C. O. Melo. 2025. "Numerical Calculation of Finite-Time Ruin Probabilities in the Dual Risk Model" Risks 13, no. 9: 174. https://doi.org/10.3390/risks13090174

APA Style

Cardoso, R. M. R., & Melo, A. C. O. (2025). Numerical Calculation of Finite-Time Ruin Probabilities in the Dual Risk Model. Risks, 13(9), 174. https://doi.org/10.3390/risks13090174

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop