Abstract
Sensitivity analysis is at the core of risk management for financial engineering; to calculate the sensitivity with respect to parameters in models with probability expectation, the most traditional approach applies the finite difference method, whereafter integration by parts formula was developed based on the Brownian environment and applied in sensitivity analysis for better computational efficiency than that of finite difference. Establishing a similar version of integration by parts formula for the Markovian environment is the main focus and contribution of this paper. It is also shown by numerical simulation that our proposed methodology and approach outperform the traditional finite difference method for sensitivity computation. For empirical studies of sensitivity analysis on an NPV (net present value) model, we show the approaches of modeling, especially for parameter estimation of Markov chains given data of company loan states. Applying our newly established integration by parts formula, numerical simulation estimates the variations caused by the capital return rate and multiplier of overdue loan. Furthermore, managemental implications of these results are discussed for the effectiveness of modeling and the investment risk control.
1. Introduction
Sensitivity analysis studying the variation of value function with respect to the value changes of certain parameter plays a vital role in risk management in derivative market, especially for portfolio pricing and hedging (cf. Haimes [1]). As is often achieved by estimating the Greeks, price sensitivities related to variations of model parameters are calculated and investigated. In particular, Greeks are the sensitivities with respect to parameters in the pricing model of project investment, where sensitivity analysis guides parameter estimation of the modeling.
Starting from Fournié et al. [2], Malliavin calculus is applied for computation of Greeks such like , respectively, representing the sensitivities of option value with respect to spot price and risk-free rate (also refer to Davis and Johansson [3]). Through these approaches, fast algorithms for Greeks computations are designed. However, this technique is established only for the Brownian models, or at most based on the randomness of Brownian motion for those models with mixed sources of randomness. Moreover, according to the best of our knowledge, the essence of the technique relies on an integration by parts formula of Wiener–Malliavin calculus. Therefore, extension of the existing technique for more extensive applications is subjected to new versions of integration by parts formula of other stochastic processes. Thus, emerging interests focus on the establishment of integration by parts formula of Markov chains, and multiple versions of integration by parts formula are achieved under different assumptions and conditions by Siu [4], Denis and Nguyen [5], and Liu and Privault [6], respectively.
On the other hand, Markovian models are widely applied to structure engineering and financial problems with multistage switching, among which loan portfolio and investment risk are efficiently modeled with Markov chains whose states indicate the loan ratings. One significant application is for the study of credit migration matric to predict the credit risk of a financial institutions portfolio (cf. Jafry and Schuermann [7]; Jones [8]; and Schuermann [9]). Adequacy evaluation and analysis of Markovian model for loan rating are proceeded in line with improvements of statistical treatments of data (we refer to Kieferand Larson [10] for more discussion and Anderson and Goodman [11] for more backgrounds). Along this direction, alternatives of the standard Markovian models are also developed for loan quality analyses, for instance, hidden Markov chains were considered by Quirini and Vannucci [12] and double Markov chain was applied in Kaniovski and Pflug [13]. For the loan quality analyses, the Markovian model is applicable to capture the repayment behavior, as in Thyagarajan and Saiful [14]; hence, it predicts the return of some receivables under considerations of loan default.
In particular and for evaluation of an investment project, income flow can be reflected and investigated by some quantitative indicators of financial analysis. NPV (net present value) is one efficient indicator for this end. As proposed in Briggs and Sculpher [15] and later developed in van Der Laan [16], Markovian models are widely applied to govern the underlying state changes in the expression of NPV in Forsell et al. [17]; Timofeeva and Timofeev [18]; Timofeeva [19]; and so on. Therefore, it is necessary to investigate the sensitivity of the Markovian models of NPV estimation.
In this paper, we develop fast computational approach for sensitivity analysis. In particular, closed-form expressions of sensitivity for two major classes of Markovian models are concluded by applying the integration by parts techniques (refer to Siu [4]). To the best of our knowledge and generally speaking, finite difference was the unique methodology for sensitivity computations of the pure Markovian model. Paralleling to the application of integration by parts formula of Winner–Malliavin environment, our technique pioneers a new method to compute the sensitivity of the pure Markovian model without using the finite difference. Other possible alternatives are very likely to be developed through the recent theoretical results about integration by parts formula in Denis and Nguyen [5] and Liu and Privault [6].
The remainder is arranged as follows. Section 2 formulates the sensitivity analysis of the NPV model based on Markov chains. Section 3 states the main results of sensitivity computation, for which the mathematical proofs are given in Appendix A. Applying the formula in Section 3, sensitivity analysis of the above-mentioned NPV model is proceeded numerically with simulated parameters in Section 4, based on which, we present the practical guidelines of applying this model for risk management and conclude the whole article. By Appendix, we also show the technique of determining transition rate matrix of Markov chain with real data from market surveys. Finally, we conclude this paper in Section 5 and propose some possible work associated with this paper.
2. A Practical Problem Motivating for Technical Improvements of Sensitivity Analysis
As introduced above, cash flow management intensively demands for the calculation and prediction of NPV value, which is formulated as follows:where is the required rate of capital return and denotes the income during the time period where for . Note that is the initial investment, and is the time horizon of this investment.
As we noticed, Timofeeva and Timofeev [18] and Timofeeva [19] applied a time-discrete Markov chain with 5 states to capture the dynamics of income flow. However, it is quite possible to observe state switching between the discrete time points; therefore, in this paper, a time-continuous Markov chain is used to simulate the changes of underlying situations, which are determined by the progress of loan repayments. In particular, a Markov chain is defined for this sake, and similar to the setting of Timofeeva and Timofeev [18] and Timofeeva [19], 5 states of the state space are given as follows:(1)No overdue loans.(2)Small amount of short-time overdue loans.(3)Small amount of long-time overdue loans.(4)Large amount of short-time overdue loans.(5)Large amount of long-time overdue loans.
Remark 1. In the above statement, we need to stress that the so called “short time” and “long time” are relevant to how many days it has been overdue till now, not the term structures of loan. To classify according to the time span, we refer to the average length of overdue period (for those finally cleared loans) in the same industry and economic zone. More details are given in the case shown in Section 4. Similarly, for the classification of “small amount” and “large amount,” we also refer to the average amount of loans in the same industry and economic zone.
Intuitionally and in some situations, we may feel that the possibility of transition from state “2” to state “1” is greater than that from state “5” to state “1.” Observations like this will be reflected on the transition probability rate matrix of the Markov chain, obtained by surveys in the same industry. To transform the Markov states to some numerical values, we define a real-valued function on that .
Remark 2. This function maps each state of Markov chains to its corresponding real-valued number, which becomes one factor in the expression of income at time for . Since will be affected by the absolute amount of overdue loan at time and independent of the time span of being overdue, we let and . Besides, we need a multiplier placed before this function , and hence the income loss caused by small amount of overdue loans is and that by large amount becomes . Denote the average amount of overdue loans as , and the average of small amount overdue loans is about and that of large amount is about ; therefore, we approximately let the income loss caused by large amount of overdue triple that of small amount.
To simulate the income flow , we let a deterministic sequence denote lower bound of expected income, let a deterministic sequence such that for each denote the expected income without considerations of loan delinquencies, and let a constant denote the multiplier of overdue loan; we call it influence coefficient, and hence the income flow can be formulated byand for any , the expected NPV is given by
Remark 3. In expression (2) of income flow, the expected income without considerations of loan delinquencies, denoted as , is unforeseen in this model. It should be precisely predicted based on the financial and accounting information of projects and will partially affect the precision of our sensitivity analysis. But it is not the focus of this paper and we assume that the predictions of by decision makers and managers of enterprise are believable, and hence the main uncertainty comes from the loan quality and repayment behavior. Another sequence of variables is relatively easier to be estimated according to historical data and empirical evidences. Feeding the model with this lower bound information by will reduce some unexpected high-level randomness and statistical errors. Based on these considerations, we formula the income flow as (2).
The above expectation of NPV provides the project managers with numbers of meaningful insights for strategic management, cost accounting, and risk management. As mentioned above in the introduction, sensitivity analysis is a crucial means to govern the potential risks caused by various factors. Specifically, this model (3) is probably subject to the capital return rate and influence coefficient of state changes; therefore, investigation on the sensitivity analysis with respect to and plays a vital role on controlling the risk of interest rate and situation changes of overdue loans, respectively. Besides, this sensitivity analysis will provide quantitative criteria of model stationary adequacy and improvements of accuracy by practically optimizing the parameter determinations. In particular, we define the sensitivity of with respect to asand similarly define the sensitivity with respect to asat the point that , .
3. General Expression of Sensitivities Based on Two Classes of Markovian Models
In order to compute the sensitivity of the expected NPV mentioned above, we aim to develop a setting of closed-form formulas of sensitivity for two general classes of Markovian models. Some main results of it will be applied to establish a closed-form expression of (5).
3.1. Mathematical Expressions
Starting with a probability space , we let denote a time-continuous Markov chain with a transition rate matrix and its state space , . Hereafter, we consider two classes of processes driven by Markov chain and in form of the expressions below, for which we will analyze the sensitivity regarding any specific parameter of their models. We have class thatwhere on is twice continuously differentiable with respect to and , satisfying the condition that the set is countable and for any , is bounded uniformly. Besides, class is defined aswhere is a real-valued function on that , on is twice continuously differentiable w.r.t. and , is a countable set, and for any , is bounded uniformly.
Remark 4. Classes and cover almost all commonly used functionals of Markovian processes except those mixed with extra sources of randomness such as Brownian motions.
Next, consider the value function defined below:where is a differentiable function with bounded derivative and . Then, we have the sensitivity of with respect to the parameter , stated in Propositions 1 and 2, whose proofs are attached in Section 3.2.
Proposition 1. For any real-valued differentiable function with bounded derivative and in the class defined by (7), we havewhere , and denote and , respectively, and for any ,and for any , ,and
For the convenience of notations, we denote
For any such that , the sensitivity of value function in (9) with respect to the parameter is given by Proposition 2.
Proposition 2. For any real-valued differentiable function with bounded derivative and in the class defined in (8), we havewhere is defined by (11), are defined by (12) and (13), and and denote and , respectively.
By the same approach as in Kawai and Takeuchi [20] and Liu and Privault [6] (Section 6, Pages 933–935), we extent the results in Propositions 1 and 2 for nondifferentiable function defined as follows:where
Thus, the following proposition summarizes our all results.
Proposition 3. For any function and a value function defined in (9), we have the derivative expression (10) for and (15) for .
3.2. Proofs of the above Propositions
In this section, we prove Propositions 1 and 2.
3.2.1. Case :
For any in the form of (7), sensitivity of in (9) with respect to the parameter is given by Proposition 1, proved as follows.
Proof. Given a differentiable function , we define the gradient of w.r.t. below:and for any r.v. on , it is defined thatWe say a r.v. is differentiable by when is differentiable, and it is denoted as: , and thus we defineBecause of the equation that , we havewhereTherefore,Also, we have becauseand the function is differentiable w.r.t. . Similarly, . Letandwhere for any , . Hence, with the gradient operator , we have the integration by parts formula of Markov chain. By Theorem 1 in Siu [4] with , , , for any differentiable and integrable function on , we haveand the chain rule for integrable and differentiable function , :Note that , and is a.e. nonzero because and is a.e. nonzero. is integrable, and since is bounded, the order of differentiation w.r.t and expectation is changeable. By Definitions (19) and (20) and formulas (23), (27), and (28), we have
Remark 5. Besides defined in (26), alternatives for in the operator are also feasible; a process defined bywith for any , will give another version of integration by parts formula: given a differentiable and integrable function on , we obtainwhere counts the jump times of during .
3.2.2. Case (b):
Given a in the form of (8), Proposition 2 gives the expression of sensitivity of w.r.t. the parameter , and we show the proof below.Proof. Definewithwhere function is -integrable and are defined by (12) and (13). Define a sequence of function for any , :where for any , we define
Thus, for any differentiable function of , we define the gradient as follows:
According to Lemma 1, for any real-valued function on and defined by (12) and (13), is represented as follows:
For any r.v. , where are defined by (33), we say is differentiable by when is differentiable, and hence it is denoted as . By Theorem 4 in [4] with , given a differentiable and integrable function on , we haveand the chain rulefor any differentiable and integrable function and on .
Note that , and is a.e. nonzero because and is a.e. nonzero. Since is bounded, the order exchange of expectation and differentiation is guaranteed. By definitions (8), (9), and (14) and formulas (38)–(40), we have
In the above proof, we applied the following lemma.Proof. Let be the embedded chain of the Markov chain and let denote the jump times of over the time period . Assume that , and define a sequence of stopping times for ; then, we have
Lemma 1. For any real-valued function on , , we can represent as follows:where are defined by (12) and (13).
Since for we haveplugging (44) into (43), we see thatwhich completes the proof.
3.3. Numerical Simulation
In this section, we proceed with a numerical simulation to compare our approaches stated by Proposition 2 with those by finite difference for sensitivity analysis. Note that numerical simulation for Proposition 1 can be similarly done since class is of similar expressions. Consider the integration of a Markov chain thatwhere the Markov chain on the state space has a matrix that and . A value function is defined bywhere . For this simulation, we arbitrarily let , , , , , and . Then, the sensitivity of with respect to is expressed as the derivative of w.r.t. . In particular, we consider the derivative at , , that is,
Applying both methods to calculate the sensitivity, the computational results of converge to 0.45 approximately, as shown in Figure 1 of four numerical trials (same parameters) to observe convergence of numerical results by enlarging the sample size, and these observations are sufficient to conclude that the results generated by our method converge faster than those by the finite difference method.

On the other hand, we repeat the comparison with another transition rate matrix that
To proceed the test in a much stabler environment of randomness, we find that the computational results of both method converge to 0.52 and the convergence speed of our approach is even faster. The sensitivity value is larger because the initial state is “1” and , and hence a stable environment makes it stay in “1” for longer time; by checking the expression of , we see that the factor multiplying having a longer time to be larger leads to a larger sensitivity of .
Although it seems not conclusive by comparison of both methods with merely two settings of parameters, we also have statistical reason accounting for this phenomenon. As is well known, the finite difference method provides a biased estimator of in (48):for some small , such as 0.001. By contrast, our estimator given by (15) is an unbiased one, and hence it is more likely to obtain a precise result by faster convergence. Paralleling to this, Fournié et al. [2]; Siu [4]; Denis and Nguyen [5]; and Liu and Privault [6] applied a similar technique of integration by parts but based on the randomness of Brownian motion, and all of them show better computational efficiency and precision than finite difference. These evidences show great advantages of the integration by parts technique for the computation of sensitivities.
Remark 6. Hence, it is sufficient to claim that our newly developed approach outperforms all existed methods for the case with discontinuous payoff function , since in the past it was only computable by applying the finite difference method. In case that is sufficiently smooth, (48) is computed bywhich could be easier to calculate than our approach does. However, in practice, most models will not satisfy the conditions of smoothness for mathematical conveniences. Moreover, for the computation based on our model, (2) is also discontinuous with respect to .
4. Application of Results in Section 3 for the Problem in Section 2
In this section, we show one simulated example of sensitivity analysis mentioned in Section 2 which is solved by applying the formula in Section 3. Although this example regarding its specific industry will not universally conclude to this modeling for all applications to multiple areas, it also enlightens us on the practices of applying this model for sensitivity analysis and risk management on real market.
Constructed in Section 2, the expectation of NVP (defined in (1)) is denoted as and has the expression (3), where is the required rate of capital return and is the influence coefficient of the overdue loan state changes. By expression (4) of , defined by (6) is easily obtained as follows:
However, defined in (5) cannot be tackled similarly since the order exchange of differentiation and expectation inis invalid for any and constant real numbers and , and is even nondifferentiable regarding . In this situation, Proposition 3 meets the exact need, as applied in the following approaches. Let , , in the formula (10), and consider as another Markov chain with the same transition probability rate as those of ; formula (10) yieldswhere are defined by (12) and (13) and count the total time of staying at state up to time . It follows that
Consider an investment project with receivables in form of loans; it has terms during the time horizon (let ), and the expected incomes (let the unit “1” denote 1 million dollars) and expected lower bounds of incomes for each term are given in Table 1.
Since it is for one single project considered and these data should be very specific, we suggest not to resort to external information from other enterprises in the market, and project managers should be capable to provide convinced values of and according to the project schedule as well as their empirical predictions.
Besides, investigation by market survey determines the parameters in the transition rate matrix (refer to the Appendix for more details):
According to (52) and (55), we compute the sensitivity values of in (6) and in (5) for different values of , which are plotted as two surfaces in Figure 2.

In practice, these computational results as well as the graph above are meaningful and instructional. For instance, denotes the sensitivity of regarding when and , and it illustrates that small change of this rate, say , may bring about the value change 0.2 of when we consider the case which is about . This information is crucial for us to control the computational error balanced with the cost of raising the accuracy of parameter . For this sake, comparison between and as shown in Figure 2 is also meaningful. In the most value ranges of , the absolute value of sensitivity regarding is larger than that regarding unless is very small. Two implications are obtained from the statistical observations:(1)For the improvement of computational efficiency and accuracy, it is suggested to consume more efforts on determining the capital return rate while the value assignment of is not overwhelmingly influential in this case, and hence less efforts are required for this.(2)When the capital return rate becomes very small (less than 0.02), the NPV value will be very sensitive to the influences of state changes of overdue loans, that is, deterioration of loan state will cause a sharp cut of NPV in this situation. The managerial implication of this result is that extra protective procedures might be very essential to react against sudden changes of loan states for sake of capital risk control when the return rate is below certain level.
5. Conclusion and Summation
This paper develops fast computational approach for sensitivity analysis and establishes the closed-form expressions of sensitivity for two major classes of Markovian models by applying the integration by parts technique, which is applied for the sensitivity analysis of an industrial case regrading its investment projects. Main contributions of this paper include the following. For one thing, it introduces the Markovian model for the NPV estimation, especially for its sensitivity analysis. Five states of time-continues Markov chains (while most existing models for this were time-discrete) well describe the loan states. This advance will be developmental for research on this topic. For another, the mathematical work is with deep skills and high potential to be widely applied for computations of Markovian models, since this integration by parts technique of Markov chain was newly developed and Section 3 concludes two very general cases.
However, there is some room of improvement and much can be done for further studies. As for the mathematical work of developing the Markovian integration by parts technique, we wish to extend the results for a more general class of Markovian process or processes with Markov chains. Moreover, we suspect whether it is possible to apply this method for the Brownian environment. As for the application of the sensitivity analysis based on the Markovian model, we believe that it can also be widely applied in the research of option pricing and hedging; hopefully, it will be achieved by researchers in the future.
Appendix
A. Parameter Assignment of Transition Rate Matrix
In this appendix, we show the approaches of value assignment of transition rate matrix for one instance. In this practical case of example, we aim to proceed the sensitivity analysis ((5) and (6)) based on our NPV models (3) and (4) for a listed manufacturing company DSJM (002384) in Jiangsu Province, China.
The whole project period of each is denoted as , and let ; hence, we observed and recorded the loan states for each 10 percent portion of the project period according to our surveys; the states are marked as in Section 2 where 1 denotes that there are no overdue loans, 2 denotes small amount of short-time overdue loans, 3 denotes small amount of long-time overdue loans, 4 denotes large amount of short-time overdue loans, and 5 denotes large amount of long-time overdue loans.
The following statistical knowledge is applied to transform the information in Table 2 to the transition rate matrix. For this Markov chain and any state , we define a stopping time bydenoting the exact moment leaves the state for another state; the following results hold for this stopping time (refer to Privault [21]):and
Formula (A.2) shows that follows an exponential distribution with parameter , and hence . From the data in Table 2, we observe 45 samples of (the first sample of is 2, obtained from the observations at time “1” and “2” of Project 1), 35 samples of , 26 samples of , 17 samples of , and 11 samples of , and their sample means are
Thus, we let for each . The remaining work is to determine for , so we let denote totally how many times the event happens during those projects shown in Table 2. It follows that the matrix is obtained:
Based on that fact that for any and formula (A.3), we assign to be . Hence, we obtain (56).
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This study was partly supported by the National Natural Science Foundation of China (no. 72004082), Jiangsu Postdoctoral Research Foundation (211110B52109), Project of Philosophy and Social Science Research in Colleges of Jiangsu Province (2020SJA2052), and Jiangsu Qinglan Project (2020).