On One-Step Method of Euler-Maruyama Type for Solution of Stochastic Differential Equations Using Varying Stepsizes ()

Subject Areas: Mathematical Analysis, Numerical Mathematics

1. Introduction
Modeling of physical systems by ordinary differential equations (ODEs) ignores stochastic effects. Addition of random elements into the differential equations leads to what is called stochastic differential equations (SDEs), and the term stochastic is called noise [1] . Many researchers have worked extensively on a first and higher order ordinary differential equations of the form
(1)
where
. These researchers include [2] - [19] .
Equation (1) is a deterministic state model which can be turned to a stochastic state model by including noise term. For one dimensional noise term, consider a general first order stochastic differential Equation (SDE) of the form
(2)
where
and
drift function and diffusion function respectively. The noise
in Equation (2) is generally called Gaussian white noise. It is expressed as
, where
is the Wiener process.
Equation (2) can be written as
(3)
Integrating (3) from 0 to t, we have Itô integral equation
(4)
The first integral at the right hand side of Equation (4) is called Riemman integral while the second integral is called Itô or stochastic integral. Many researchers have also worked on SDEs of the form (3). Amongst these are [20] - [29] .
The aim of this paper is to develop numerical method for solution of first order stochastic differential Equation (3). Our objectives are to develop one-step Euler-Maruyama method (EMM) for solution of SDE (3) and apply it to solve two problems in the form of first order SDEs. Absolute errors (AEs) will be determined at various point in the interval
, where
. The AEs will be determined by finding the absolute value of the difference between the exact solution and numerical solution of Equation (3) for various values of
using one-step Euler-Maruyama method. These values will allow us to obtain mean absolute error (MAE).
The strong order of convergence (SOC) of the method will be determined from the results of the mean absolute errors obtained. [25] considered the effect of using single stepsize for solution of SDE (3). The first section of this paper introduces the content of the paper. The second section discusses the research methodology. Under this section, Itô integral form of stochastic differential Equation (3) stated in Equation (4) is used as the basis for the derivation of one-step Euler-Maruyama method. The method is implemented with two problems in the form of SDE in Equation (3). In section three, the effect of varying the stepsizes in determining the solution of SDE in Equation (3) is considered. The stepsizes used are
. Numerical solution and absolute error are then obtained using each of the stepsize. Using ten values of
, mean absolute errors are determined for each of the stepsizes. The SOC is calculated for each problem using the least square fit in [26] . MATLAB program is used as a supporting tool.
2. Research Methodology
There are many methods for determining the solution of SDE (3), they include, Euler-Maruyama method, Euler-Maruyama method, Runge-Kutta method, Heun method and so on. For more information about the list of methods or schemes for solution of first order SDEs (see [30] ). To determine the solution of SDE (3), one-step method of Euler-Maruyama type will be used. Euler-Maruyama method was used by [26] for considering an autonomous system of stochastic differential equations. Here, we shall consider the derivation of the method using Itô integral Equation (4) obtained from a general form of the SDE stated in Equation (3).
2.1. Derivation of One Step Euler-Maruyama Method
One-step Euler-Maruyama method will be derived by setting
in the integral
(4)
This gives
(5)
(6)
(6) - (5) ![]()
(7)
Using a conventional deterministic quadrature, the two integral terms at the right hand side can be approximated as follows:
(8)
(9)
Substituting (8) and (9) in (7), we have
(10)
Define
,
;
,
.
Equation (10) becomes
(11)
2.2. Implementation of the Method
The method in Equation (11) was considered by [26] using backward difference. In this paper, we shall apply this method to the SDE (3) using discritised interval
as
. Let
be the stepsize defined as
, where N are some integer and
. The
-space path increment
will be approximated by summing the underlying
-space increments as established by [26] using
(12)
Wiener increment
will be generated in MATLAB over the space intervals by using
. For computational purpose, we shall assume that
,
and
. In this paper, we shall investigate the effect of varying stepsizes in determining the numerical solution of SDE (3) using one-step method of EMM type in Equation (11). This is provided in section 3.0. The absolute errors will be obtained. From this, the mean absolute errors will be determined. Strong order of convergence and the residual for one-step method of EMM type will be determined from mean absolute error by making least square fit using the MALAB commands.
3. Effect of Varying Stepsizes in Determining Numerical Solution of Stochastic Differential Equations Using One-Step Euler-Maruyama Method
In this section, we will consider two problems in the form of first order stochastic differential Equation (3) to investigate the effect of varying stepsizes when finding the solution of SDEs using one step method of EMM type in Equation (11).
Problem 1.
(13)
where
and
are arbitrary values.
The exact solution of the SDE (13) is
(14)
Problem 1 is the Black Scholes option price model with a drift function
, drift coefficient
, diffusion function
and diffusion coefficient
. The model was also used by [26] and [29] .
The following stepsizes will be used to carry out our investigation,
.
3.1. Results Showing the Effect of Using Varying Stepsizes When Euler-Maruyama Method Is Applied to Problem 1
See Figure 1 for the graph of the result on Table 1.
![]()
Figure 1. Shows the graph of the result on Table 1.
![]()
Table 1. Result of Problem 1 showing the effect of using stepsize 2−4.
The mean absolute error is 6.366694393911132e−10.
Table 1 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−4.
See Figure 2 for the graph of the result on Table 2.
![]()
Figure 2. Shows the graph of the result on Table 2.
![]()
Table 2. Result of Problem 1 showing the effect of using stepsize 2−5.
The mean absolute error is 1.049213882442501e−9.
Table 2 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−5.
See Figure 3 for the graph of the result on Table 3.
![]()
Figure 3. Shows the graph of the result on Table 3.
![]()
Table 3. Result of Problem 1 showing the effect of using stepsize 2−6.
The mean absolute error is 9.695811487020478e−10.
Table 3 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−6.
See Figure 4 for the graph of the result on Table 4.
![]()
Figure 4. Shows the graph of the result on Table 4.
![]()
Table 4. Result of Problem 1 showing the effect of using stepsize 2−7.
The mean absolute error is 6.307070421485150e−10.
Table 4 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−7.
See Figure 5 for the graph of the result on Table 5.
![]()
Figure 5. Shows the graph of the result on Table 5.
![]()
Table 5. Result of Problem 1 showing the effect of using stepsize 2−8.
The mean absolute error is 2.521636677244032e−10.
Table 5 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−8.
See Figure 6 for the graph of the result on Table 6.
![]()
Figure 6. Shows the graph of the result on Table 6.
![]()
Table 6. Result of Problem 1 showing the effect of using stepsize 2−9.
The mean absolute error is 1.147927086719847e−10.
Table 6 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−9.
Problem 2.
(15)
where
and
are arbitrary values. They are used for better accuracy.
The true solution is
(16)
Problem 2 was used by [25] with constants
,
and
.
3.2. Results Showing the Effect of Using Varying Stepsizes When Euler-Maruyama Method Is Applied to Problem 2
See Figure 7 for the graph of the result on Table 7.
![]()
Figure 7. Shows the graph of the result on Table 7.
![]()
Table 7. Result of Problem 2 showing the effect of using stepsize 2−4.
The mean absolute error is 3.091373117491969e−8.
Table 7 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−4.
See Figure 8 for the graph of the result on Table 8.
![]()
Figure 8. Shows the graph of the result on Table 8.
![]()
Table 8. Result of Problem 2 showing the effect of using stepsize 2−5.
The mean absolute error is 2.273717831791089e−8.
Table 8 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−5.
See Figure 9 for the graph of the result on Table 9.
![]()
Figure 9. Shows the graph of the result on Table 9.
![]()
Table 9. Result of Problem 2 showing the effect of using stepsize 2−6.
The mean absolute error is 1.680524275293749e−8.
Table 9 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−6.
See Figure 10 for the graph of the result on Table 10.
![]()
Figure 10. Shows the graph of the result on Table 10.
![]()
Table 10. Result of Problem 2 showing the effect of using stepsize 2−7.
The mean absolute error is 8.343182744674494e−9.
Table 10 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−7.
See Figure 11 for the graph of the result on Table 11.
![]()
Figure 11. Shows the graph of the result on Table 11.
![]()
Table 11. Result of Problem 2 showing the effect of using stepsize 2−8.
The mean absolute error is 2.843435109589621e−9.
Table 11 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−7.
See Figure 12 for the graph of the result on Table 12.
![]()
Figure 12. shows the graph of the result on Table 12.
![]()
Table 12. Result of problem 2 showing the effect of using stepsize 2−9.
The mean absolute error is 1.430840801397437e−9.
Table 12 shows the exact solution, numerical solution and absolute error for the effect of using stepsize 2−9.
4. Determination of Strong Order of Convergence of the Method
In this section, it will be wise to determine the strong order of convergence (SOC) and the residual of the method as this property is important to examine how good or how accurate our approximations are. SOC is a property of solution that is indispensable in examining the accuracy of any numerical method for solution of SDEs.
The issues of convergence and SOC of SDEs have also been examined by [20] [23] [25] - [27] [29] [31] for one step Method. The papers and book gives the theoretical background of SDEs and SOC. [27] examined the SOC for one step method of Milstein (MLSTM) type. The vital tool in the determination of SOC is the mean absolute error (MAE) or strong error. MAE is the mean of the absolute value of difference between the exact solution and numerical solution of a given stochastic differential equation. It serves as a tool for assessing the effect of varying step sizes. MAE will be determined for one-step method of EMM type just developed using varying stepsizes. The SOC of the method will be obtained using the MAE.
![]()
Table 13. Results of the MAE of one step method of EMM type for Problem 1.
Table 13 shows the results of mean absolute error of one-step method of EMM type applied to Problem 1 with varying stepsizes.
![]()
Table 14. Results of the MAE of one-step method of EMM type for Problem 2.
Table 14 shows the results of mean absolute error of one-step method of EMM type applied to Problem 2 with varying stepsizes.
![]()
Table 15. Results of the strong order of convergence of one-step method of Euler-Maruyama type for Problems 1 and 2.
Table 15 shows the strong order of convergence of one-step method of EMM type for Problems 1 and 2.
5. Discussion
In this paper effort has been made to discuss the derivation of one-step method of Euler-Maruyama type. This method was applied to two problems in the form of first order SDEs. The method was used to determine the numerical solution of the two problems. Absolute errors were calculated using the numerical approximation and the corresponding exact solution. Mean absolute errors were also determined. To determine the accuracy of the method, strong order of convergence and residuals were obtained for each problem.
6. Conclusion
In this paper, two problems in the form of first order SDEs have been considered. One-step method of Euler- Maruyama type for solution of general first order SDEs has been derived. The absolute errors between the exact solution and numerical solution can be observed. The mean absolute error for varying stepsizes has been determined. The result shows that the mean absolute error generally decreases as the stepsizes decreases. The accuracy of the method is determined by finding the strong order of convergence of the method. The result shows that the strong order of convergence is 0.5471 and the residual is 1.0975 for Problem 1 while the strong
order of convergence is 0.9193 and the residual is 0.6067 for Problem 2. The effect of the varying stepsizes can also be seen by observing the behaviour of the exact solution and numerical solution using graphical method as indicated in Figures 1-12. The results are obtained using MATLAB as supporting tool.