Numerical methods for stochastic differential equations based on Gaussian mixture
Lei Li, Jianfeng Lu, Jonathan Mattingly, Lihan Wang

TL;DR
This paper introduces a novel numerical method for stochastic differential equations that uses Gaussian mixtures to achieve weak second order accuracy, offering an efficient alternative to traditional schemes.
Contribution
The paper proposes a new Gaussian mixture-based scheme for SDEs that simplifies computation and achieves higher weak order accuracy compared to conventional methods.
Findings
Achieves weak second order accuracy for SDEs.
Complexity of the method scales linearly with dimension.
Provides an efficient alternative to Itô-Taylor based schemes.
Abstract
We develop in this work a numerical method for stochastic differential equations (SDEs) with weak second order accuracy based on Gaussian mixture. Unlike the conventional higher order schemes for SDEs based on It\^o-Taylor expansion and iterated It\^o integrals, the proposed scheme approximates the probability measure by a mixture of Gaussians. The solution at next time step is then drawn from the Gaussian mixture with complexity linear in the dimension . This provides a new general strategy to construct efficient high weak order numerical schemes for SDEs.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Numerical methods for stochastic differential equations based
on Gaussian mixture††thanks: Received date, and accepted date (The correct dates will be entered by the editor).
Lei Li School of Mathematical Sciences, Institute of Natural Sciences, MOE-LSC, Shanghai Jiao Tong University, Minhang District, Shanghai 200240, China ([email protected]).
Jianfeng Lu Department of Mathematics, Department of Chemistry and Department of Physics, Duke University, Durham, NC 27708, USA ([email protected]).
Jonathan C. Mattingly Department of Mathematics and Department of Statistical Science, Duke University, Durham, NC 27708, USA ([email protected]).
Lihan Wang Department of Mathematics, Duke University, Durham, NC 27708, USA ([email protected]).
Abstract
We develop in this work a numerical method for stochastic differential equations (SDEs) with weak second-order accuracy based on Gaussian mixture. Unlike conventional higher order schemes for SDEs based on Itô-Taylor expansion and iterated Itô integrals, the scheme we propose approximates the probability measure using a mixture of Gaussians. The solution at the next time step is drawn from the Gaussian mixture with complexity linear in dimension . This provides a new strategy to construct efficient high weak order numerical schemes for SDEs.
keywords:
Gaussian mixture; stochastic differential equation; second-order scheme; weak convergence
{AMS}
60H35; 65C30; 65L20
1 Introduction
Stochastic differential equations (SDEs) [23] have been used to model a wide range of phenomena, such as stock prices of financial derivatives [4, 11], and physical systems in contact with heat bath [30, 5, 12]. SDEs have recently also been used for analyzing stochastic gradient descent (SGD) in machine learning [13, 9, 7]. The SDEs are dynamical systems with noise [23, 6] that often represent interactions that are not included in the model but affect the dynamics. For example, in the Langevin equations [5, 24], one considers the evolution of a subsystem, while the rest of the system, consisting of potentially large degrees of freedom, is regarded as a heat bath. The interaction between the heat bath and the subsystem is modelled by noise and dissipation terms.
We will consider general SDEs driven by white noise [24, 6] and in particular SDEs in Itô sense [23, Chap. 5]:
[TABLE]
where , is a standard -dimensional Brownian motion, is the drift, and is the diffusion matrix. We are interested in its numerical approximations, and depending on whether our goal is to approximate the sample paths or the distributions, the numerical methods can be classified into strong schemes and weak schemes [10, 6]. The weak schemes approximate the distributions, and we refer the readers to Section 2.2 for more details. Indeed, weak schemes attempt to match the moments of the iterated Itô integrals, and therefore, the key question for designing weak schemes is how to approximate these moments efficiently. The classical Euler-Maruyama scheme (3.15) is known to be a weak first-order scheme. In applications, schemes with higher order accuracy are often desired. The weak second-order schemes, however, are not trivial for SDEs. The traditional second-order schemes, based on Itô-Taylor expansion [10, 20], involve evaluations of the spatial derivatives of drift and diffusion coefficients, as well as iterated Itô integrals. The weak second-order schemes date back to Milstein and Talay [18, 28]. The Talay-Tubaro expansion can also yield a weak second-order approximation [29]. In [25, 26], Runge-Kutta methods that achieve arbitrary weak order for scalar noise and weak second-order for general noise are developed. Runge-Kutta schemes can avoid approximating some derivatives of the drift and the diffusion coefficients directly (see for example the Talay-Tubaro scheme), and lead to better stability. A weak trapezoidal second-order method has been developed in [2], which is derivative free and no evaluation of iterated Itô integrals is needed. However, it leverages the structure of a particular, but common, class of equations. In [1], higher order convergence for a class of SDEs is achieved based on solving modified SDEs. In [22, 21], another class of higher order schemes were developed which are often referred to as Lie splitting methods. Like the current methods, they strive for a level of weak accuracy by deriving a condition which guarantees that certain terms vanish in an expansion of the difference of the true density and that of the numerical method.
As will be discussed in Section 2.2, one may approximate the conditional distribution with asymptotic weak local error to achieve global weak second-order accuracy, where ’s are the numerical solutions and is the step size. In this work, we propose a novel Gaussian mixture method to achieve weak local error in which can be sampled from one of a mixture of Gaussians. Our ansatz is inspired by the expansion of the solution using commutators. Our Gaussian particle ansatz has two attractive properties:
- •
Since only one of the Gaussians in the mixture is chosen in each step, the cost in each step is minimal and the simulation is fast: we only need to generate scalar random variables (with three possible values only) to generate an initial point, and then generate a -dimensional multi-variate normal variable whose mean and covariance matrix are related with the scalar random variables and obtained by solving an ODE (see Remark 4.7 for some comments on the number of random variables needed). In this sense, the method we construct in this paper can be considered as a random mixture of Euler-Maruyama steps that produces a higher order method, and it is simple to implement.
- •
Secondly, our scheme does not need the spatial derivatives of the coefficients, which is useful in several contexts.
Numerical simulations show that our Gaussian mixture method is indeed weak second-order for reasonable values of the step size. This agrees with our theoretical results that our methods are asymptotically second-order as the step size goes to zero. For related works about using Gaussian approximations for general distributions, see [14, 3]. In [3], Gaussian processes based on a variational approach are used to approximate posterior measure in path space. In [15], Gaussian approximation is used to approximate transition paths in Langevin dynamics.
This work is primarily interested with accuracy considerations. This is reflected in the use of essentially forward-Euler like steps to builds the Gaussian Mixture. It is easy to imagine replacing these with an implicit step to address stability concerns.
The rest of the paper is organized as follows. In Section 2, we give a brief introduction to SDEs and the basic setup of our problem. In particular, the concept and criteria for weak accuracy using test functions with bounded derivatives are introduced. In Section 3, we introduce the idea of Gaussian mixtures for high order weak accuracy and develop an algorithm for one-dimensional SDEs with weak second-order accuracy, where the mean and variance of the Gaussian are computed either based on some ODEs or construction. In Section 4, we generalize the algorithm for 1D SDEs to SDEs in multi-dimensions. The number of Gaussian beams are exponential in the dimension , but we only need discrete random variables to determine which beam we choose, so the complexity is linear in . In Section 5, we perform several numerical examples to see how our algorithm performs regarding different aspects.
2 Preliminaries
In this section, we collect some definitions and notations related to SDEs. Moreover, the notion of weak convergence is introduced in detail, which lays the foundation of our construction of Gaussian mixture methods in later sections.
2.1 Notations and assumptions.
For the convenience of later discussions, we introduce for any integer the following set of functions
[TABLE]
Here the subscript is used to remind the reader that the functions are bounded in value and all their derivatives up to the specified order. We use to denote the expectation under the law of the process with . The notation denotes the normal distribution with mean and covariance matrix .
We list out the following assumptions, which will be used throughout this work:
{assumption}
The diffusion matrix
[TABLE]
is uniformly positive definite. In other words,
[TABLE]
for some , where is the set of eigenvalues of .
{assumption}
The coefficients are smooth in the sense that .
Note that Assumption 2.1 implies that the coefficients are Lipschitz continuous, i.e. there exists a constant such that for all ,
[TABLE]
It is well known that Assumption 2.1 ensures the existence of strong solutions to (1.1) [23] and that the moments of the solution are bounded:
[TABLE]
Though likely overly restrictive, Assumption 2.1 and Assumption 2.1 will simplify the analysis and make the ideas more transparent. Analysis based on Assumption 2.1 has been pursued in many works (see for example [2]). Compared with Assumption 2.1, some authors relax the coefficients to have polynomial growth (see for example [19]). The current results can be extended to locally Lipschitz coefficients with polynomial growth under appropriate one-sided Lyapunov conditions or simply the arbitrary moment bounds they imply, see for instance [16].
The generator of the diffusion process (1.1) is given by
[TABLE]
The evolution of the law satisfies the Fokker-Planck equation (or the forward Kolmogrov equation)
[TABLE]
For a smooth function , let us define
[TABLE]
With regularity Assumptions 2.1 and 2.1, satisfies the backward Kolmogorov equation (see, for example, [23, Chap. 8])
[TABLE]
Formally, this implies the semigroup expansion
[TABLE]
Given regularity assumptions on , the expansion can be rigorously established up to a certain order. We cite a classical result in [8, Chap. XI] for expansion up to , which has been modified for our purpose.
Lemma 2.1**.**
[8, Theorem 11.6.4]** Under Assumptions 2.1–2.1, there exists a non-negative non-decreasing function , such that for all ,
[TABLE]
In a numerical scheme, we generate the approximation sequences for the diffusion process at discrete time steps. Let be the terminal time point, and the number of numerical steps such that
[TABLE]
We use () to denote the time grid points, the random variable generated by some numerical method to approximate , and a particular realization of the random variable .
2.2 Weak convergence.
We only require the law of to approximate the law of the solution to (1.1). This is described by the notion of weak convergence, which will be the focus of this section.
Definition 2.2**.**
Fix . Let and be given as in Section 2.1. We say converges weakly with order to as if for any , there exist , that are independent of (but may depend on and ) such that
[TABLE]
Here, represents the expectation under the law of or .
Remark 2.3**.**
*Note that the test functions here have bounded derivatives, and those used in [10, Sec. 9.7] and [19] have derivatives with polynomial growth. Test functions with bounded derivatives induce weaker topology but are much easier to handle (see e.g., [2]). The results can be extended to the more general setting with additional work and assumptions to ensure boundedness of moments. *
We now move on to the criteria of weak convergence. Suppose the random sequence is generated by
[TABLE]
where is a random vector generated at time and is a function. If ’s are i.i.d, then is a time-homogeneous Markov chain. (For example, in Algorithm 1 below, is a combination of the random variable and the standard 1D normal variable .)
The following proposition is standard and we provide the proof in Appendix A for reference. We emphasize that the following two results are not new and are part of the standard “folklore” meta-theorems in the subject. We repeat them only to make precise the versions we need and their dependences on parameters.
Proposition 2.4**.**
Let and satisfy for . If there is a nonnegative and non-decreasing function such that for all , we have the local truncation error bounded by
[TABLE]
then converges weakly with order to as .
As before, represents the expectation under the law of the process or Markov chain starting at . This proposition basically says that if the local truncation error is , then the global error is of order . We have the following trivial observation by Lemma 2.1 and Proposition 2.4:
Corollary 2.5**.**
Under Assumptions 2.1-2.1, if there exists that is nonnegative and non-decreasing such that , we have
[TABLE]
then the method (2.13) is of weak second-order accuracy.
3 Weak second-order Gaussian mixture method
The Euler-Maruyama scheme [10] for SDE (1.1)
[TABLE]
generates Gaussian distributions for conditioning on but has only weak first-order accuracy. It is well known that constructing a weak second-order scheme is nontrivial, not to mention a weak second-order scheme using Gaussian approximations for the measure . In fact, as we will see, an approximation using a single Gaussian is generally insufficient for weak second-order accuracy. Hence, we aim to use Gaussian mixture to construct higher order schemes.
To start with, let us recall that the law of , the weak solution of the following SDE with additive noise, is a Gaussian distribution if is a Gaussian random variable independent of :
[TABLE]
Here, and only depend on time. The mean and covariance matrix of are given respectively by
[TABLE]
Conversely, if we are given some and some positive semidefinite matrix , we can recover the normal distribution by constructing “paths” and with , and being positive semi-definite so that the solution to the SDE
[TABLE]
with , independent of , will satisfy . Here and denote their respective time derivatives. Now let us consider the time-dependent generator
[TABLE]
We now assume and for some . By the backward equation (2.8), we have
[TABLE]
Here the second equality comes from integrating in time. Therefore, for any random variable , we can express the expectation of as
[TABLE]
where
[TABLE]
We will use (3.20) to construct our scheme. In this section, we start with . Our construction for will be used as the building block for constructing our scheme in higher dimensions in Section 4.
3.1 Conditions for second order Gaussian mixtures.
First of all, we claim that using a single Gaussian distribution to approximate is generally insufficient for weak second order accuracy. To start with, we assume generated by (2.13) conditioning on is a normal distribution with mean and variance :
[TABLE]
Here means the law of has a density . Using (3.20), we desire
[TABLE]
in order to achieve global weak second-order accuracy. Clearly, we need as . Using the semigroup expansion (Lemma 2.1), we infer that
[TABLE]
where are bounded. Detailed calculation shows the following:
Proposition 3.1**.**
For a general multiplicative noise (or equivalently is not constant), there exist no as functions of such that the constraint (2.14) can be satisfied.
Remark 3.2**.**
By the proof of Proposition (3.1) in Appendix B, if the noise is additive ( is independent of ), it is possible to construct an approximation with a single Gaussian that yields global weak second-order accuracy.
The proof of Proposition 3.1 is provided in Appendix B. Proposition 3.1 is a strong indication that no approximation with one Gaussian can reach weak second-order accuracy, which forces us to seek Gaussian mixtures. In the derivation below, we use to denote a generic function with a bound that depends only on norms of , and (the test function), and its concrete meaning may change from line to line. Below, we would first present an informal argument to derive the scheme; the rigorous analysis of the scheme will be deferred to later sections.
As we have mentioned, considering the law of given the initial position is sufficient to determine the whole Markov chain by time homogeneity. Therefore, it suffices to consider that the law of is given by a mixture of Gaussians:
[TABLE]
Here we abuse notation by letting denote the density function of a Gaussian with the given mean and covariance.
Let . By (3.20), we have
[TABLE]
Here, the dependence on in the coefficients is not written out explicitly for simplicity. Since after time , the scale for a pure diffusion process is (since ), we expect that and . Therefore, by Corollary 2.5, the scheme will be of weak second-order if the following holds for all :
[TABLE]
where is bounded and depends on the function . We stop at because of the expectation so is of order at least . Note that by (2.5),
[TABLE]
Due to the scale in displacement, we take the following ansatz for and :
[TABLE]
Substituting the ansatz (3.28) into (3.26), after a tedious but straightforward calculation, we are able to derive the following conditions:
[TABLE]
In the above equations, functions and their spatial derivatives are all evaluated at point .
In the following Section 3.2, we consider a possible approach to satisfy these constraints, by choosing .
Remark 3.3**.**
We have not yet derived a weak third order Gaussian mixture scheme. The number of variables and the equations grow to the point where our current methods to solve them are unfeasible. However, we expect that a minimum of five Gaussians is needed to reach third order, which is suggested by the second and sixth equations of (3.29). These are constraints for in first order and in second order respectively (and there will be another constraint for in third order), which only involve the weights and the leading order diffusion scaling terms and .
3.2 An ODE approach.
In this section, we give a particular construction of and that satisfy (3.29) which determines our numerical scheme. Our approach is to construct ODEs for and with a certain initial condition and solve them at time , which has the advantage of avoiding derivative evaluations of and .
To satisfy the last condition of (3.29), we consider a “symmetric” construction. It is convenient to relabel the Gaussians as , so that is “centralized” and does not contribute to the odd powers of . The centers of the other two Gaussians are placed at both sides of with distance apart, and the variance matrices are constructed similarly with each other. These two Gaussians will contribute powers like . Moreover, we impose , so that the odd powers of will cancel out with each other due to symmetry.
For initial conditions, we set
[TABLE]
where is a parameter and
[TABLE]
This choice takes into consideration that the diffusion scale is , while transportation scale is . For the choice of ODE flows, we take the following ansatz, where the functions are to be determined later:
[TABLE]
Our choice in (3.32a) is natural in the sense that we expect
[TABLE]
and the approximation is exact if is a linear function. For symmetry, we require . Clearly, the factor enters through the initial value and then the equation. Due to symmetries in both and and , all the odd powers of indeed cancel out in .
We now find the constraints on the functions and the parameters so that (3.29) can be satisfied. To start with, we have by Taylor expansion that
[TABLE]
Hence, substituting (3.30) into (3.33), and considering our ansatz (3.28), we obtain
[TABLE]
Similarly, we can find ’s:
[TABLE]
However, substituting (3.34) and (3.35) into (3.29) cannot uniquely determine the parameters and . We further impose which makes our construction of the scheme easier for higher dimensions, which uniquely determines the solution:
[TABLE]
Clearly, choosing the following functions will suffice:
[TABLE]
Unfortunately, this choice has one issue: and are not always nonnegative. Indeed, it is possible that given by (3.32b) could be negative. To solve this issue, we simply set to zero if that happens. Fortunately, since is positive whenever is close to , can be guaranteed to be positive whenever is sufficiently small, thus it can be shown that this error has a lower-order effect. Similar situation also arises in [2].
The details of the procedure outlined above are expressed more exactly in the following Algorithm 1 which gives the pseudocode to generate from .
Remark 3.4**.**
One may truncate the function and consider
[TABLE]
where is some truncation function that is in a neighborhood of so that are positive definite for all . This approach, however, is not very convenient and in practice the behavior is not very satisfactory.
We are now in position to present the following theorem, which tells that our scheme is indeed of weak second-order.
Theorem 3.5**.**
Let . Suppose Assumptions 2.1-2.1 hold., then Algorithm 1 is a weak second-order scheme for SDE (1.1).
Proof 3.6**.**
It is clear that there exists such that for ,
[TABLE]
Consider that . By construction, for all , and we have
[TABLE]
Hence, for . Moreover, any reasonable numerical approximation to will also be positive for sufficiently small .
By (3.37), we can conclude that for , (3.29) holds, and . In other words, (3.26) holds and
[TABLE]
By Corollary 2.5, we find that our scheme constructed here is of weak second-order if (3.39) is solved exactly. Since for any numerical solver on (3.39) that is of at least second order, the error induced by solving (3.39) is or smaller, and therefore the above local estimate still holds. Our Algorithm 1 is thus of weak second order as well.
Remark 3.7**.**
The above construction with ODE flow gives that can be possibly negative, though it is positive asymptotically as and when it becomes negative, we can always fix by setting it to zero. One may desire to have a method that ensures to be positive. In Appendix D, we provide a direct way to construct ’s so that positivity can be guaranteed. However, this method involves evaluation of the derivatives of , which is oftentimes undesired.
4 Gaussian mixture for multi-dimensions
In this section, we generalize the Gaussian mixture method constructed in Section 3 to higher dimensions. We assume that we have the eigen-decomposition for :
[TABLE]
where ’s are the eigenvalues of the matrix , and forms an orthonormal basis of .
As discussed in Section 3, we only need to focus on how to generate given . Again, we assume that has the conditional probability measure of the form
[TABLE]
for Gaussian mixture approximations. Here we use to denote the set of indices .
To illustrate our choice of the number of Gaussians and their initial positions, suppose we have -dimensional decoupled diffusion process (diffusion matrix is diagonal), then we approximate each dimension using our 1D technique in Section 3 and then get a global second-order approximation. In each dimension, we have three Gaussians, which means we have a total of Gaussians. If the diffusion matrix is no longer diagonal, we can still consider using Gaussians. At the first glance, the complexity is large, but fortunately, it turns out that the complexity grows linearly with instead of exponentially.
We now explain our construction. Let the index set , so that , and each index can be expressed as where . Let us consider the Gaussians with initial centers , given by
[TABLE]
These formulas and are obtained from the 1D construction in Section 3. The weight for the Gaussian with index is
[TABLE]
with the parameters given by
[TABLE]
Remark 4.1**.**
Another natural idea is to place the initial points at and there are such points. After some attempts, we found that this strategy hardly works when is large.
With these initial positions and weights, we can easily generalize our Gaussian mixture constructions for to arbitrary dimensions.
4.1 The ODE approach for multi-dimensions.
Following the construction in the 1D case, we consider and for given by
[TABLE]
where
[TABLE]
Thanks to imposing in (3.35) we are able to have a simple expression (4.47). The algorithm can then be summarized as the following Algorithm 2.
Remark 4.2**.**
Our algorithm requires a matrix factorization at every time step, which is the most computationally costly step. However, as does not change much between consecutive time steps, one could use the matrix of ’s as the preconditioner for next step’s computation, which will significantly reduce the computational cost in high dimensions.
We now establish the main result for multi-dimensions:
Theorem 4.3**.**
Suppose the Assumptions 2.1-2.1 are satisfied, then there exists such that when :
(i) is positive definite for all and for any initial position .
(ii) for any test function , there exists a constant depending on the norms of only, such that
[TABLE]
Consequently, the Gaussian mixture Algorithm 2 is a weak second-order scheme to (1.1).
To prove this theorem, we first present a useful lemma, the proof of which is deferred to Appendix C:
Lemma 4.4**.**
For a function , we have
[TABLE]
Here we use shorthand notation .
Remark 4.5**.**
Here , so we have . The function inside is . In other words, we allow to change for but is frozen to be its value at .
Proof 4.6**.**
(Proof of Theorem 4.3)
(i). To prove this claim, we find that for all ,
[TABLE]
Hence,
[TABLE]
Recall that we use to represent the set of eigenvalues of matrix . If is sufficiently small, is positive for all for . By Equation (4.46), is positive for all .
(ii). Noticing that is a symmetric tensor on any indices, we find (the Einstein summation convention is used)
[TABLE]
Using Lemma 4.4, we are able to compute the sums. For example, we find:
[TABLE]
Here, we used (4.47) and identities like
[TABLE]
Noting
[TABLE]
we have after some computation:
[TABLE]
where
[TABLE]
and
[TABLE]
Again, by the eigen-decomposition , we find
[TABLE]
Similarly, we find
[TABLE]
which equals to . Together with (i), Corollary 2.5 gives the claim.
Remark 4.7**.**
For the multi-dimensional Algorithm 2, though we have exponentially many Gaussians, the complexity is just linear in . In fact, one needs the number of random variables to grow at least linearly in to get a weak second-order scheme for general SDEs [18, 28, 19].
4.2 Efficiency of the Monte Carlo method.
For the multi-dimensional Algorithm 2, though we have exponentially many Gaussians, we see that the complexity is just linear in , which means our algorithm has good computational efficiency. Since we only care about the distributions, we often use Monte Carlo methods [17, 27] to generate a large number of samples and use the empirical measure to approximate the probability measure. As we know, the error and efficiency of Monte Carlo methods depend on the variance. The variance of the Euler-Maruyama scheme (3.15) is , where is the value of the scheme at . For the same reason, if we can show that the variance of Algorithm 2 after one step is proportional to , then the Monte Carlo method based on our algorithm is as efficient as the Monte Carlo method based on the Euler-Maruyama method (3.15).
In this section, we compute the second moment
[TABLE]
and show that it is indeed despite we have exponentially many Gaussians. For the notational convenience, we define the matrix norm
[TABLE]
where if is given by (4.41).
Proposition 4.8**.**
There exists such that when
[TABLE]
for Algorithm 2.
Proof 4.9**.**
By (4.42), direct computation shows that
[TABLE]
The first inequality in (4.55) follows from (4.49) and (4.50):
[TABLE]
For the last equality, we have by the fact that ’s are orthonormal:
[TABLE]
and the last equality in (4.55) follows since (see (4.80)). Now, noticing , we obtain
[TABLE]
For Algorithm 2, when is small enough, we have
[TABLE]
Since is in higher order, the claim follows.
5 Numerical experiments
In this section, we apply the algorithm on SDE (1.1) in Itô sense with different choices of and . Note that the Assumption 2.1 is only listed for convenience of theoretical analysis. For a diffusion process starting at , within finite time , the probability density is concentrated in a finite domain and the far away behaviors of and are not important. Hence, in the simulation here, we may use unbounded and . We also check how the algorithm behaves if there are some degenerate points of (i.e. is only positive semi-definite at these points).
5.1 A 1D example with regular .
This example is designed to test the correctness of Algorithm 1. The dimension is and is uniformly bounded from below. We will also plot the empirical distribution generated by our algorithm to compare with the one generated by Euler-Maruyama scheme (3.15).
The SDE we consider is as following:
[TABLE]
The diffusion coefficient is bounded below uniformly so that there is no degenerate point.
To test the correctness of our algorithm, we use the test function and define the relative error as
[TABLE]
where is the sequence generated by the numerical algorithm in the -th experiment. Hence, is a sample path. The exact expectation , by Itô’s formula [23, Chap. 4], is given by
[TABLE]
In Figure 1, we plot the results of the simulation for and . Each error is computed using trajectories. The “error bars” are obtained by chopping all samples into slices, with each slice containing trajectories. We then compute the relative error (5.59) in each slice, denoted by (). We find the standard deviation for the data , and use as our confidence interval. We find that our Gaussian mixture method gives weak second-order accuracy.
To confirm that the Gaussian mixture method gives the desired distribution, we now plot the empirical distribution in Figure 2 by histcounts. All the empirical densities are obtained by using points, and the initial condition . We take the results obtained from Euler-Maruyama (E-M) scheme (3.15) with as the reference density (green curves in Figure 2 (a) and (b)).
In Figure 2 (a), we plot the empirical densities obtained by Algorithm 1 (red) and Euler-Maruyama (black) after one step with step size . At time , the reference density (green curve) has a peak at while its mean is located at the black dot (). We also calculated the empirical skewness \gamma_{1}=\mathbb{E}\Big{(}\dfrac{X(h)-\bar{x}}{\sigma}\Big{)}^{3}\approx 0.3695 (here only denotes the variance of the reference density), and the kurtosis K=\mathbb{E}\Big{(}\dfrac{X(h)-\bar{x}}{\sigma}\Big{)}^{4}\approx 3.3078, while the accurate skewness and kurtosis are 0.3718 and 3.3153 respectively. The skewness and kurtosis for a Gaussian (Euler-Maruyama method) are 0 and 3 respectively. For Algorithm 1, these two numbers are 0.3717 and 3.1888.
In Figure 2 (b), we plot the empirical densities obtained by Algorithm 1 (red) and Euler-Maruyama (black) at time with step size . We find that the densities given by our weak second-order algorithm almost coincides with the reference density, while the one given by E-M is worse.
To sum up, for this example (5.58), the Gaussian mixture method has weak second-order accuracy and is able to capture the correct distribution better.
5.2 1D Geometric Brownian Motion.
In this example, we consider the 1D Geometric Brownian Motion
[TABLE]
which has a degenerate diffusion coefficient
[TABLE]
Again, we test the weak accuracy with test function and define the weak error
[TABLE]
By Itô calculus, it is straightforward to find
[TABLE]
In Figure 3, we plot the weak error of simulations for with . The error bars are computed by slicing the samples into pieces of equal size, and the method is the same as in Section 5.1 (confidence interval is ).
For the tested parameters our Gaussian mixture method still works and is of weak second-order. For this example, the error of Algorithm 1 scales like only when becomes small. This can be seen in the kink in Figure 3 where only the left-most two points seem to line up with the order line. After further investigation, we find that for the first three values (), there are roughly chance that the computed from the ODE is negative. For smaller values of (), is always nonnegative for the samples we have. In light of this, we expect the second-order behavior for our approach to appear in the examples with . When there is a resonable chance that is degenerate, our approach seems to lose the second-order accuracy.
5.3 A 2D example.
In this example, we consider a 2D SDE, which is a modification of the first example in [2]:
[TABLE]
where and are independent standard Brownian motions, and is a positive constant. The purpose here is to show that our Gaussian mixture method for multi-dimensions (Algorithm 2) works for that has varying eigen-directions.
We consider the solution of (5.60) at with initial condition and . We will use the test function to check the weak accuracy. By Itô’s formula,
[TABLE]
As before, the relative error is computed as
[TABLE]
In Figure 4, we sketch the error plots with and also slice these samples into equal pieces for the “error bar” calculation (confidence interval and is the standard deviation for these 10 data). We find that our Gaussian mixture method gives weak second-order accuracy for this 2D example as well.
5.4 A 6D Example.
According to Algorithm 2, the proposed Gaussian mixture method depends explicitly on the dimension and one is surely curious with what will happen if the dimension gets higher. In this example, we look at a 6D problem and verify that our algorithm is still weak second-order.
The SDE we consider is given by:
[TABLE]
We take and check the solution at . The initial condition we use is for all . The test function we use is
[TABLE]
By Itô’s formula
[TABLE]
The relative error is again defined as
[TABLE]
For the following log-log error plot (Figure 5), we choose , . The sample size is for and for , chopped into equal slices to produce the error bars with confidence interval ( is again the standard deviation of these data). The plot demonstrates that the scheme works in high dimensions as well.
Acknowledgements
The work of L. Li is partially sponsored by NSFC 11901389,11971314, and Shanghai Sailing Program 19YF1421300. The work of J. Lu and L. Wang is supported in part by National Science Foundation under grant DMS-1454939, while J. Mattingly is supported in part by National Science Foundation under grant DMS-1613337.
Appendix A Proof of Proposition 2.4
Proof A.1**.**
Let us fix and define
[TABLE]
By the Markov property, we have
[TABLE]
Similarly, we have
[TABLE]
Note that satisfies the backward Kolmogorov equation
[TABLE]
with initial condition
[TABLE]
By standard parabolic PDE theory, for , we have
[TABLE]
By Equations (1.65) and (1.66), we have for all that
[TABLE]
Define
[TABLE]
by the assumption of Proposition 2.4 on local truncation error and Equation (1.67) we have
[TABLE]
where . This further implies that
[TABLE]
Appendix B Proof of Proposition 3.1
Proof B.1**.**
For the convenience of notations, we will drop the dependence on so that indeed means and means and so on. Denote , and we have
[TABLE]
It follows that
[TABLE]
Here, and are the coefficients of and :
[TABLE]
To satisfy the condition (2.14), we need to have
[TABLE]
Recall that , so requires that for any sufficiently smooth ,
[TABLE]
which requires
[TABLE]
On the other hand, the requirement can be expanded as
[TABLE]
This is impossible in general. For example, the coefficient of on right hand side is , or but the one on left hand side is . They can not balance unless the diffusion matrix is constant.
Appendix C Proof of Lemma 4.4
Proof C.1**.**
In this proof, we will again use to denote a generic function that can depend on the norm of the test function but can be bounded uniformly in and . However, its concrete meaning can change from line to line.
Clearly, due to the symmetry, we only need to prove that for all ,
[TABLE]
Without loss of generality, we set With Equation (4.44), it is convenient to denote the left hand side of (3.71) as
[TABLE]
If , the claim follows from 1D Taylor expansion derived in Section 3. Assume that the claim is valid for all , , and we want to prove for . Define to be the index set with . We find by definition:
[TABLE]
For each , we do Taylor expansion of about and have
[TABLE]
By the induction hypothesis, we have
[TABLE]
Arranging the terms on the right hand side, we find the claim is also true for .
Appendix D A variance construction approach
D.1 The variance construction method for one dimension.
Motivated by (3.35) and (3.36), we can construct
[TABLE]
We can verify that the constraints are all satisfied. The third term added is to ensure that is non-negative. Compared with the ODE flow method, the drawback of this method is that it involves higher order spatial derivatives, such as . In practice, one may approximate it by finite difference \frac{1}{h^{2}}\bigl{(}\Lambda(x_{0}+h)-2\Lambda(x_{0})+\Lambda(x_{0}-h)\bigr{)}.
Remark D.1**.**
The third correction term can be thrown away if is small enough. For example,
[TABLE]
This construction gives the following Algorithm 3 to generate given .
One can verify that the requirements in (3.29) are satisfied, which gives the following theorem:
Theorem D.2**.**
Let . Suppose Assumptions 2.1-2.1 hold, then Algorithm 3 is a weak second-order scheme for the 1D diffusion process (1.1).
The proof is identical to that of Theorem 3.5 and is omitted here.
D.2 The variance construction method for multi-dimension.
As before, one may want to guarantee that is positive definite for . We now present a variance construction method for for multi-dimension. Consider that and are given by
[TABLE]
where can be approximated by finite difference. In particular, if we set , then
[TABLE]
is added to ensure that is positive semi-definite. Let the first two terms in be and , where is positive definite and thus invertible. Then, we have
[TABLE]
We propose Algorithm 4 to generate given .
Remark D.3**.**
Notice that we need to invert a matrix to get , which is not desirable when is large. However, similar as the 1D case, if is small enough, can be thrown away and we can still guarantee the positive definiteness.
Theorem D.4**.**
Suppose Assumptions 2.1-2.1 hold, then Algorithm 4 is a second-order scheme for the multi-dimensional diffusion process (1.1).
Proof D.5**.**
Again, the idea is to check the conditions in Corollary 2.5. Our strategy is not to verify the conditions directly, instead, we compare it to Algorithm 2, the one using an ODE approach.
Again, we only have to check given . Let be the covariance matrix obtained following Algorithm 2 at time while be the covariance matrix constructed in this section at time for . Let denotes the expectation under the process constructed here while be the expectation under the process in Algorithm 2.
Consider
[TABLE]
Since the two algorithms only give different covariance matrices, we have by Equation (4.42):
[TABLE]
We denote
[TABLE]
By Equation (4.46) and direction Taylor expansion on , we find for ,
[TABLE]
where is a bounded function.
We do expansion on and have
[TABLE]
where is some bounded function. This implies
[TABLE]
Hence, we can replace with and throw away the terms involving in (4.77) with introducing errors at most :
[TABLE]
[TABLE]
We note first that
[TABLE]
We justify the second equality for an example. Let be the index over the beams in one dimension, and . Then, when ,
[TABLE]
When ,
[TABLE]
Using (4.80), we find that
[TABLE]
Therefore
[TABLE]
However, we know that does not contain terms while neither does because of the symmetry. Hence, , which finishes the proof.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Abdulle, D. Cohen, G. Vilmart, and K. C. Zygalakis , High weak order methods for stochastic differential equations based on modified equations , SIAM Journal on Scientific Computing, 34 (2012), pp. A 1800–A 1823.
- 2[2] D. F. Anderson and J. C. Mattingly , A weak trapezoidal method for a class of stochastic differential equations , Commun. Math. Sci., 9 (2011), pp. 301–318.
- 3[3] C. Archambeau, D. Cornford, M. Opper, and J. Shawe-Taylor , Gaussian process approximations of stochastic differential equations , in Gaussian Processes in Practice, 2007, pp. 1–16.
- 4[4] F. Black and M. Scholes , The pricing of options and corporate liabilities , Journal of political economy, 81 (1973), pp. 637–654.
- 5[5] W. T. Coffey and Y. P. Kalmykov , The Langevin equation: with applications to stochastic problems in physics, chemistry and electrical engineering , vol. 27, World Scientific, 2012.
- 6[6] W. E, T. Li, and E. Vanden-Eijnden , Applied stochastic analysis , vol. 199, American Mathematical Soc., 2019.
- 7[7] Y. Feng, L. Li, and J.-G. Liu , Semigroups of stochastic gradient descent and online principal component analysis: properties and diffusion approximations , Communication in Mathematical Sciences, 16 (2018), pp. 777–789.
- 8[8] E. Hille and R. S. Phillips , Functional analysis and semi-groups , vol. 31, American Mathematical Soc., 1996.
