Nonlinear Problems: Mathematical Modeling, Analyzing, and Computing for Finance
View this Special IssueResearch Article  Open Access
Estimation of Parameters in MeanReverting Stochastic Systems
Abstract
Stochastic differential equation (SDE) is a very important mathematical tool to describe complex systems in which noise plays an important role. SDE models have been widely used to study the dynamic properties of various nonlinear systems in biology, engineering, finance, and economics, as well as physical sciences. Since a SDE can generate unlimited numbers of trajectories, it is difficult to estimate model parameters based on experimental observations which may represent only one trajectory of the stochastic model. Although substantial research efforts have been made to develop effective methods, it is still a challenge to infer unknown parameters in SDE models from observations that may have large variations. Using an interest rate model as a test problem, in this work we use the Bayesian inference and Markov Chain Monte Carlo method to estimate unknown parameters in SDE models.
1. Introduction
A stochastic differential equation (SDE) can be defined as a deterministic differential equation perturbed by random disturbances that are not necessarily small. SDEs have gained popularity in recent years for their ability to model systems that are subject to fluctuations and have been widely used in a variety of disciplines including engineering, environmetrics, physical sciences, population dynamics, biology, and medicine. In particular, SDEs are important instruments in modern finance theory and have been used to model the behavior of many key financial variables such as the instantaneous shortterm interest rate, asset prices, asset returns, and their volatility. Consequently, the estimation of the parameters of SDEs from discretelysampled data has received substantial attention in the financial econometrics literature, particularly in the last ten years [1, 2].
However, parameter estimation in nonlinear SDEs driven by Wiener processes, when only discrete observation is available, is an inherently difficult problem because theoretically an unlimited number of solutions exist for a SDE. Although parameter estimation in deterministic systems is a relatively wellstudied subject (see, e.g., Beck and Arnold [3]), the estimation of the parameters of stochastic systems remains a challenge [4]. One of the reasons for this is that obtaining the solution of a set of SDEs is computationally demanding in the absence of a closedform solution for most SDEs of practical importance. Numerical methods such as the Euler methods and the Taylor schemes combined with a Monte Carlo approach are required to calculate discretetime trajectories of the state variables of SDEs [5]. These numerical methods require the generation of a large number of Wiener processes corresponding to different simulation trajectories, and hence accurate simulations are computationally expensive.
The methods that were developed for parameter estimation of SDEs can be classified into three different categories: maximum likelihood estimation (MLE)/simulated maximum likelihood (SML) [6–8], the methods of moments [9–11], and filtering (e.g., extended Kalman filter) [12]. Many of the methods have been developed in the context of financial modelling, where the systems of interest are characterised by long time horizons (of the order of months) and can often be sampled at regular but relatively infrequent intervals (e.g., on a daily basis). Among them, the maximum likelihood method is more reliable but has long been found to be difficult to apply to SDEs due to its computational cost. For many SDEs, thousands of simulation trajectories or even more must be generated to ensure a low variance of the values of state variables. As a result, a large number of competing estimation procedures have been proposed in recent years.
In recent years the Bayesian inference methods have been used to estimate unknown parameters in mathematical models [13–17]. Together with the Markovchain MonteCarlo (MCMC) and other methods, the Bayesian inference methods have also been used to infer stochastic models in financial mathematics [18–20]. The main advantage of these methods is the ability to infer the whole probability distribution of the parameters, rather than just a single estimate. In addition, the Bayesian methods can deal with noisy data and uncertain data. Another advantage of these methods is the capability to infer parameters in either deterministic models or stochastic models. However, the potential obstacle of these methods in application is that the samples are correlated and their performances heavily depend on prior hypotheses.
A number of methods have been used to estimate the parameters in the singlefactor continuous time models, including the generalized moment method [21] and Gaussian estimation methods [22]. However, our recent research work suggested that the accuracy of the estimates generated from these two methods is low, in particular, when the stepsize of observation time points is not small [23]. Thus in this work we will not test these methods again but concentrate on the proposed method that will generate accurate simulations of the stochastic model, which will lead to more accurate estimates of the model parameters. Instead, utilizing the Bayesian inference and MCMC method, we develop a numerical algorithm to estimate unknown parameters in stochastic interest rate models. The remaining part of this paper is organized as follows. Section 2 gives the stochastic models for term structure of interest rates and numerical algorithms for simulating these stochastic models. Section 3 discusses the Bayesian inference and the MCMC method. Section 4 reports the numerical results for estimating parameters in the stochastic models for the term structure of interest rates.
2. Stochastic Model and Direct Simulation Methods
We first introduce the general form of SDEs for interest rates, namely, where is the drift term, is the diffusion term, and is the Wiener process whose increment follows the Gaussian distribution, namely,
Now we proceed to consider numerical methods for simulating the SDE. The widely used method in computational finance is the EulerMaruyama method whose strong convergence order is just 0.5, given by where is the numerical solution at time point and . Although this method is easy to implement, its stability property is not good enough to simulate SDEs with relatively large diffusion term. In order to obtain stable simulations, a very small stepsize is required, which may lead to large computing time. To improve the stability property, the semiimplicit and fully implicit Euler method can be used to reduce the computing time [24, 25]. For example, the semiimplicit Euler method is given by
Another approach is to use highorder methods in order to achieve more accurate simulations. The Milstein scheme uses a higherorder Taylor expansion and thus has a strong convergence order one. In the explicit Milstein method both the drift term and diffusion term are explicit, namely, Similarly, the semiimplicit and fully implicit Milstein methods have been designed to improve the stability property [24, 25].
In this paper we use a SDE model of the term structure of interest rate as the test system to examine the accuracy of inference methods [1]. The first stochastic model is the CIR model (Cox, Ingersoll, and Ross), which is a linear mean reversion model and uses a diffusion process [26]. This stochastic model has been widely used to model the short interest rate [21, 27]. The CIR model states that the short rate follows a square root diffusion process, which has the following continuoustime representation: where is the speed of adjustment (or mean reversion), represents the long run mean of the shortterm interest rate, and is a constant volatility. Under this model, both the drift and volatility change with the level of the short rate.
In this work we will use the EulerMaruyama method to generate samples of the interest rates (3). In fact, due to the linear feature of the drift term in the interest rate model, the semiimplicit method can be written in explicit form and can also be used in the Bayesian inference method. For the benchmark model, the EulerMaruyama Scheme is and the semiimplicit Euler scheme is given by
3. Algorithm for Parameter Estimation
In this section, we establish a numerical algorithm for estimating parameters in stochastic models based on the Bayesian inference and MCMC method. By contrast with the classical approach that the unknown parameters in a model have fixed quantity, the unknown parameters of the underlying model in the Bayesian paradigm are treated as a random variable with some prior beliefs. The heart of the Bayesian approach is the Bayes theorem which allows us to compute the conditional probability density function of model parameters , assuming that the model parameters are continuous random variables, given the entire data set : Since the probability is independent of the model parameters, to maximize the joint probability density function, only the product should be considered. Thus the posterior distribution can be interpreted as our prior beliefs of the parameters updated by the current information from the data. Because we have little prior knowledge of , we may simply use a “noninformative” or “flat” prior.
In this work we use the Bayesian inference method derived by Joshi and Wilson [20] to infer the parameters in SDE models. It was assumed that the diffusion process was observed at time points and the observation vector was . Since the closed form of the transition densities of the diffusion processes is usually not available, the transition densities can be approximated by the densities of a numerical scheme such as the widely used EulerMaruyama method (3). However, the observation time stepsize normally is quite large. To obtain more accurate approximation of the transition densities, a number of latent variables are introduced between every pair of consecutive observations: The stepsize of the latent variables is small enough to ensure the accuracy and stability property of the EulerMaruyama method. Then the transition density of the Euler scheme is where and Thus we have an inference problem with unknown parameter using the latent variables for , , and the observation data .
In the proposed Gaussian Modified Bridge Approximation with importance sampling (GaMBAI), the computing process is given as follows.
Algorithm 1.
Consider the following.
Step 1. Generate a sample of the unknown parameters using the MCMC method or other methods.
Step 2. Sample the solution at the latent points .
Step 3. Evaluate probability .
Step 4. Evaluate probability .
Step 5. Calculate probability
When the importance sampling technique is used, the above probability is determined by a number of samples rather than a single sample as indicated above.
Step 6. Accept or reject the parameter sample using the MCMC method or other methods.
The major step in this Bayesian inference method is the evaluation of the probabilities of the generated samples for the latent variables. The probability is Here we assume that the probability for the initial observation is a constant. Each probability in the above expression can be approximated by the transition density of the Euler method, given by where is the Euler density in (11).
For the probability , we need to factorise it into where and . Using the Modified Brownian Bridge (MBB), the density of can be approximated by where Thus, the solution at the latent points is sampled by using where is a sample of the standard Gaussian random variable .
When the importance sampling method is used, a number of samples of the latent variables are generated for as described in Algorithm 1. Then we evaluate
To generate the samples of the unknown parameters , a gridsampling method was used by dividing the potential area by a regular grid [20]. Although this is an effective approach to infer mathematical models with a small number of unknown parameters, it is difficult to use it for dealing with models with a larger number of unknown parameters. In this work we use the MCMC method to search the optimal model parameters. Since the closedform posterior distribution for a complex model often cannot be obtained analytically, the MCMC method has been widely used to achieve the posterior distribution by simulation. There are a number of efficient MCMC algorithms, including the Metropolis algorithm, the MetropolisHastings (MH) algorithm, and the Gibbs sampler method. In this work we use the MH algorithm to maximize the posterior distribution. The MH algorithm allows us to avoid the direct simulation from by making use of a proposal distribution and computing the acceptance probability for a candidate sample. There are a number of important issues that are related to the implementation of the MCMC. For example, the selected initial estimate has influence on the generated sequence; in particular, it has strong influence on the initial sequence of simulations. Thus an important technique is the burnin technique. This technique is designed to reduce the influence of initial iteration on the generated Markov Chain by discarding the first iteration sequences. Generally we discard the first half of simulated sequences and keep the remaining half of sequence to obtain the target distribution. Certainly this technique is convenient but cannot be the most efficient one because about half of computing efforts are discarded. Although more specific methods have been designed to analyze the simulation output according to the dependence of simulation on the starting values [28], we typically go with the simple burnin approach and accept the increased Monte Carlo error involved in discarding half of simulations. To design a strategy to finish the computation, we normally monitor the convergence of all the parameters and other quantities of interest separately. Our usual approach is, for each parameter, to calculate the variance of simulations from each chain (after the first half of the chain was discarded using the burnin technique). Assuming we have chains from different initial estimate and the length of each chain is , let be the th estimate in the sequence for parameter ; the variance inside the chain is and the variance between the different chains is Based on these values, we can calculate the value of as The value of is always greater than or equal to 1. When the variance inside the chain approaches the variance between the chains, the value of approaches 1. We can accept the chain as convergent when [29]. Another important technique is thinning by rejecting certain part of the chain. If is the current candidate of the model parameters and is the newly generated one, let Generate a sample , and set if . Otherwise set .
4. Numerical Results
In this section, we used the numerical algorithm based on the Bayesian inference and MCMC method to estimate the parameters in the CIR model (6). Figure 1 gives 5 simulations of the CIR model with parameters , , and . When the volatility is not large, it shows that the values of short interest rate maintain positivity, which is unlike Vasicek model may lead to negative values of interest rate. We used stepsize in the numerical simulation to ensure the accuracy and stability property of simulations.
The estimated values of the parameters in (6) for the meanreverting test system and their standard deviations are given in Table 1, and more detailed simulation results of the Bayesian inference method are presented in Figure 2. In this test the size of the importance sampling is . For each parameter, we presented the time series of the parameter values, the cumulative means, and the histogram distribution. Compared with the exact values , the Bayesian inference method gives estimates with good accuracy. For parameters and , the histogram distributions are consistent with the cumulative means of the estimates. However, the histogram of parameter is not symmetrical to the cumulative means.

In this study we tested the influence of the sample size in the importance sampling on the accuracy of the estimates. The sampling size was chosen as . Numerical results in Figure 3 show that the sampling size is important to improve the accuracy of the estimates but a larger sampling size does not necessary lead to much better accuracy, though numerical results in Figure 3 suggest that increasing sampling size can improve the accuracy slightly. Thus a reasonable size of the importance sampling is sufficient to generate estimates with adequate accuracy. This may be the reason that the sampling size is not very large in the previous studies [20].
(a)
(b)
We have also tested the influence of different samples of latent variables on the variation of estimates. In this test the simulated observations are kept unchanged. Figure 4 shows that the difference of sampling has certain influence on the variations of the estimates. The estimated model parameters vary in different tests. However, the variations in both the averaged parameter values and standard deviation are not large, which is consistent with the numerical results using the particle swarm optimization method to estimate model parameters. However, the variations of estimates are smaller than those obtained by using the genetic algorithm [30, 31].
(a)
(b)
5. Conclusions
This work presents an effective algorithm for the estimation of parameters in SDE models. The proposed approach is based on the implementation of the Bayesian inference and the MCMC method. Compared with the grid method, the MCMC based method can be used to infer stochastic models with a large number of unknown parameters. This method has been applied to an important stochastic model of the term structure of interest rate, which is a fundamental issue in the research area of financial mathematics. In addition, the importance sampling technique was used to increase the robustness of estimates. We have also examined the influence of different samples of the latent variables on the variation of estimates. Numerical results suggested that the method used in this work is robust to such variation.
In this work, we introduced the Gaussian Modified Bridge Approximation into the MCMC and examine the accuracy and robustness of this approach. It is worthy to note that the performance of the MCMC is related to a number of important factors, such as convergence criteria, burnin technique, and thinning to reduce autocorrelation; thus, further efforts are needed to discuss these issues. In addition, it is still a challenging problem for estimating parameters in stiff stochastic models. In the method used in this work, the explicit Euler method was used in simulating stochastic models. Thus, a large number of the latent variables are needed because the stepsize of the numerical method must be very small. However, in this case, we still have difficulties to properly evaluate the complete likelihood and conditional distribution due to the product of a large number of probabilities. Alternatively we may consider the implicit methods or highorder methods rather than the explicit Euler method. Thus, more effective calibration methods should be designed for estimating parameters in stiff SDEs.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
This research work is supported by the Australian Research Council (ARC) (DP120104460, FT100100748, and DP1094181) and the Chinese National Social Science Foundation (SSF) (10BJY104).
References
 A. S. Hurn, J. I. Jeisman, and K. A. Lindsay, “Seeing the wood for the trees: a critical evaluation of methods to estimate the parameters of stochastic differential equations,” Journal of Financial Econometrics, vol. 5, no. 3, pp. 390–455, 2007. View at: Publisher Site  Google Scholar
 G. de Rossi, “Maximum likelihood estimation of the CoxIngersollRoss model using particle filters,” Computational Economics, vol. 36, no. 1, pp. 1–16, 2010. View at: Publisher Site  Google Scholar
 J. V. Beck and K. J. Arnold, Parameter Estimation in Engineering and Science, John Wiley & Sons, New York, NY, USA, 1977. View at: MathSciNet
 J. Timmer, “Parameter estimation in nonlinear stochastic differential equations,” Chaos, Solitons and Fractals, vol. 11, no. 13, pp. 2571–2578, 2000. View at: Google Scholar
 K. Burrage, P. M. Burrage, and T. Tian, “Numerical methods for strong solutions of stochastic differential equations: an overview,” Proceedings of The Royal Society of London A, vol. 460, no. 2041, pp. 373–402, 2004. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 G. B. Durham and A. R. Gallant, “Numerical techniques for maximum likelihood estimation of continuoustime diffusion processes,” Journal of Business & Economic Statistics, vol. 20, no. 3, pp. 297–338, 2002. View at: Publisher Site  Google Scholar  MathSciNet
 D. FlorensZmirou, “Approximate discretetime schemes for statistics of diffusion processes,” Statistics, vol. 20, no. 4, pp. 547–557, 1989. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 A. S. Hurn and K. A. Lindsay, “Estimating the parameters of stochastic differential equations,” Mathematics and Computers in Simulation, vol. 48, no. 46, pp. 373–384, 1999. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 A. R. Gallant and G. Tauchen, “The relative efficiency of method of moments estimators,” Journal of Econometrics, vol. 92, no. 1, pp. 149–172, 1999. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 B. Pereira Ló, A. J. Haslam, and C. S. Adjiman, “An algorithm for the estimation of parameters in models with stochastic differential equations,” Chemical Engineering Science, vol. 63, no. 19, pp. 4820–4833, 2008. View at: Publisher Site  Google Scholar
 D. W. Scott, Multivariate Density Estimate: Theory, Practiceand Vasualization, John Wiley & Sons, New York, NY, USA, 1992. View at: MathSciNet
 J. N. Nielsen and H. Madsen, “Applying the EKF to stochastic differential equations with level effects,” Automatica, vol. 37, no. 1, pp. 107–112, 2001. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 O. E. BarndorffNielsen and N. Shephard, “NonGaussian OrnsteinUhlenbeckbased models and some of their uses in financial economics,” Journal of the Royal Statistical Society B, vol. 63, no. 2, pp. 167–241, 2001. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 R. J. Boys, D. J. Wilkinson, and T. B. L. Kirkwood, “Bayesian inference for a discretely observed stochastic kinetic model,” Statistics and Computing, vol. 18, no. 2, pp. 125–135, 2008. View at: Publisher Site  Google Scholar  MathSciNet
 M. Komorowski, B. Finkenstädt, C. V. Harper, and D. A. Rand, “Bayesian inference of biochemical kinetic parameters using the linear noise approximation,” BMC Bioinformatics, vol. 10, article 343, 2009. View at: Publisher Site  Google Scholar
 S. Rogers, R. Khanin, and M. Girolami, “Bayesian modelbased inference of transcription factor activity,” BMC Bioinformatics, vol. 8, no. 2, article S2, 2007. View at: Publisher Site  Google Scholar
 D. J. Wilkinson, “Bayesian methods in bioinformatics and computational systems biology,” Briefings in Bioinformatics, vol. 8, no. 2, pp. 109–116, 2007. View at: Publisher Site  Google Scholar
 P. Gray, “Bayesian estimation of shortrate models,” Australian Journal of Management, vol. 30, pp. 1–22, 2005. View at: Google Scholar
 A. D. Sanford and G. M. Martin, “Simulationbased Bayesian estimation of an affine term structure model,” Computational Statistics & Data Analysis, vol. 49, no. 2, pp. 527–554, 2005. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 C. Joshi and S. Wilson, “Grid based Bayesian inference for stochastic differential equation models,” Technical Paper, Trinity College Dublin, 2012, https://www.scss.tcd.ie/disciplines/statistics/techreports/1107.pdf. View at: Google Scholar
 K. C. Chan, G. A. Karolyi, F. A. Longstaff, and A. B. Sanders, “An empirical comparison of alternative models of the shortterm interest rate,” Journal of Finance, vol. 47, pp. 1209–1227, 1992. View at: Google Scholar
 K. B. Nowman, “Gaussian estimation of singlefactor continuous time models of the term structure of interest rates,” Journal of Finance, vol. 52, no. 4, pp. 1695–1706, 1997. View at: Google Scholar
 T. Tian and X. Ge, “Calibration of stochastic differential equation models using implicit numerical methods and particle swarm optimization,” in Proceedings of the International Conference on Modelling, Identification and Control (ICMIC '12), pp. 1049–1054, IEEE Press, 2012. View at: Google Scholar
 P. E. Kloeden and E. Platen, Numerical Solution of Stochastic Differential Equations, Springer, Berlin, Germany, 1992. View at: MathSciNet
 T. Tian and K. Burrage, “Implicit Taylor methods for stiff stochastic differential equations,” Applied Numerical Mathematics, vol. 38, no. 12, pp. 167–185, 2001. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 J. C. Cox, J. E. Ingersoll, Jr., and S. A. Ross, “A theory of the term structure of interest rates,” Econometrica, vol. 53, no. 2, pp. 385–407, 1985. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 C. S. Jones, “Nonlinear mean reversion in the shortterm interest rate,” Review of Financial Studies, vol. 16, no. 3, pp. 793–843, 2003. View at: Google Scholar
 C. Liu and D. B. Rubin, “Modelbased analysis to improve the performance of iterative simulations,” Statistica Sinica, vol. 12, no. 3, pp. 751–767, 2002. View at: Google Scholar  Zentralblatt MATH  MathSciNet
 A. Gelman, J. B. Carlin, H. S. Stern, and D. B. Rubin, Bayesian Data Analysis, Chapman & Hall, London, UK, 1995. View at: MathSciNet
 T. Tian, “Estimation of kinetic rates of MAP kinase activation from experimental data,” in Proceedings of the International Joint Conference on Bioinformatics, Systems Biology and Intelligent Computing (IJCBS '09), pp. 457–462, IEEE Press, Shanghai, China, August 2009. View at: Publisher Site  Google Scholar
 T. Tian, S. Xu, J. Gao, and K. Burrage, “Simulated maximum likelihood method for estimating kinetic rates in gene expression,” Bioinformatics, vol. 23, no. 1, pp. 84–91, 2007. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2014 Tianhai Tian et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.