Open Access Library Journal
Vol.03 No.01(2016), Article ID:68222,15 pages
10.4236/oalib.1102247

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

Sunday Jacob Kayode1, Akeem Adebayo Ganiyu2, Adegoke Sule Ajiboye3

1Department of Mathematical Sciences, Federal University of Technology, Akure, Nigeria

2Mathematics Department, Adeyemi College of Education, Ondo, Nigeria

3Department of Statistics, Federal University of Technology, Akure, Nigeria

Copyright © 2016 by authors and OALib.

This work is licensed under the Creative Commons Attribution International License (CC BY).

http://creativecommons.org/licenses/by/4.0/

Received 9 January 2016; accepted 24 January 2016; published 29 January 2016

ABSTRACT

In this work, a one-step method of Euler-Maruyama (EMM) type has been developed for the solution of general first order stochastic differential equations (SDEs) using Itô integral equation as basis tool. The effect of varying stepsizes on the numerical solution is also examined for the SDEs. Two problems of first order SDEs are solved. Absolute errors for the problems are obtained from which the mean absolute errors (MAEs) are calculated. Comparison of variation in stepsizes is achieved using the MAEs. The results show that the MAEs decrease as the stepsize decreases. The strong orders of convergence and the residuals for the problems are respectively obtained using Least Square Fit. This work produces numerical values for the solution to the problems at discritised points in a given interval which differ from the existing methods of EMM type where results are obtained by simulation.

Keywords:

One-Step Method, Itô Integral, Stochastic State Model, Gaussian White Noise, Wiener Process, Wiener Increment

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.

Cite this paper

Sunday Jacob Kayode,Akeem Adebayo Ganiyu,Adegoke Sule Ajiboye, (2016) On One-Step Method of Euler-Maruyama Type for Solution of Stochastic Differential Equations Using Varying Stepsizes. Open Access Library Journal,03,1-15. doi: 10.4236/oalib.1102247

References

  1. 1. Rezaeyan, R. and Farnoosh, R. (2010) Stochastic Differential Equations and Application of Kalman-Bucy Filter in Modeling of RC Circuit. Applied Mathematical Sciences, Stochastic Differential Equations, 4, 1119-1127.

  2. 2. Awoyemi, D.O. (1999) A Class of Continuous Linear Methods for General Second Order Initial Value Problems In Ordinary Differential Equations. International Journal of Computer Mathematics, 72, 29-37.
    http://dx.doi.org/10.1080/00207169908804832

  3. 3. Awoyemi, D.O. (2001) A New Sixth-Order Algorithms for General Second Order Ordinary Differential Equations. International Journal of Computer Mathematics, 77, 177-124.
    http://dx.doi.org/10.1080/00207160108805054

  4. 4. Awoyemi, D.O. (2003) A P-Stable Linear Multistep Method for Solving Third Order Ordinary Differential Equations. International Journal of Computer Mathematics, 80, 85-991.
    http://dx.doi.org/10.1080/0020716031000079572

  5. 5. Awoyemi, D.O. (2005) An Algorithm Collocation Methods for Direct Solution of Special and General Fouth Order Initial Value Problems of Ordinary Differential Equations. Journal of the Nigerian Association of Mathematical Physics, 6, 271-238.

  6. 6. Awoyemi, D.O., Kayode, S.J. and Adoghe, L.O. (2013) A Four-Point Fully Implicit Method for the Numerical Integration of Third-Order Ordinary Differential Equations. International Journal of Physical Sciences, 9, 7-12.
    http://dx.doi.org/10.5897/IJPS2013.4019

  7. 7. Kayode, S.J. (2005) An Improved Numerov Method for Direct Solution of General Second Order Initial Value Problems of Ordinary Differential Equations. Proc. Semiar, Nat. Math. Centre, Abuja.

  8. 8. Kayode, S.J. (2009) A Zero Stable Method for Direct Solution of Fourth Order Ordinary Differential Equations. American Journal of Applied Sciences, 5, 1461-1466.

  9. 9. Kayode, S.J. (2011) A Class of One-Point Zero-Stable Continuous Hybrid Methods for Direct Solution of Second Order Differential Equations. African Journal of Mathathematics and Computer Science Researche, 4, 93-99.

  10. 10. Kayode, S.J. and Adeyeye, O. (2011) A 3-Step Hybrid Method for Direct Solution of Second Order Initial Value Problems. Australian Journal of basic and Applied Sciences, 5, 2121-2126.

  11. 11. Kayode, S.J. and Adeyeye, O. (2013) Two-Step Two-Point Hybrid Methods for General Second Order Differential Equations. African Journal of Mathematics and Computer Science Research, 6, 191-196.

  12. 12. Kayode, S.J. and Obarhua, F.O. (2013) Continuous Y-Function Hybrid Methods for Direct Solution of Differential Equations. International Journal of Differential Equations and Applications, 12, 37-48.

  13. 13. Kayode, S.J. (2014) Symmetric Implicit Multiderivative Numerical Integrators for Direct Solution of Fifth-Order Differential Equations. Thammasat International Journal of Science and Technology, 19, 1-8.

  14. 14. Kayode, S.J., Duromola, M.K. and Bolaji, B. (2014) Direct Solution of Initial Value Problems of Fourth Order Ordinary Differential Equations Using Modified Implicit Hybrid Block Method. Journal of Scientific Research and Reports, 3, 2790-2798.
    http://dx.doi.org/10.9734/jsrr/2014/11953

  15. 15. Olabode, B.T. (2007) Some Linear Multistep Methods for Special General Third Order Initial Value Problems of Ordinary Differential Equations. PhD Thesis, Federal University of Technology, Akure. (Unpublished)

  16. 16. Olabode, B.T. (2013) A Block Predictor-Corrector Method for the Direct Solution of General Fifth Order Ordinary Differential Equations. Canadian Journal on Computing in Mathematics, Natural Science, Engineering and Medicine, 4, 133-139.

  17. 17. Olabode, B.T. (2013) Block Multistep Method for Direct Solution of Third Order Ordinary Differential Equations. FUTA Journal of Research in Science, 2, 194-200.

  18. 18. Onumanyi, P., Sirisena, U.W. and Dauda, Y. (2001) Towards Uniformly Accurate Continuous Finite Difference Approximation of Ordinary Differential Equations. Bagale Journal of Pure and Applied Sciences, 1, 5-8.

  19. 19. Yahaya, Y.A. and Badmus, A.M. (2009) A Class of Collocation Methods for General Second Order Ordinary Differential Equations. African Journal of Mathematics and Computer Science Research, 2, 69-72.

  20. 20. Akinbo, B.J., Faniran, T. and Ayoola, E.O. (2015) Numerical Solution of Stochastic Differential Equations. International Journal of Advanced Research in Science, Engineering and Technology, 2, 608-616.

  21. 21. Anna, N. (2010) Economical Runge-Kutta Methods with Week Second Order for Stochastic Differential Equations. International Journal of Contemporary Mathematical Sciences, 5, 1151-1160.

  22. 22. Bokor, R.H. (2003) Stochastically Stable One Step Approximations of Solutions of Stochastic Ordinary Differential Equations. Journal of Applied Numerical Mathematics, 44, 21-39.
    http://dx.doi.org/10.1016/S0168-9274(02)00141-1

  23. 23. Burrage, K. (2004) Numerical Methods for Strong Solutions of Stochastic Differential Equations: An Overview. Proceedings of the Mathematical Physical and Engineering Science, 460, 373-402.

  24. 24. Burrage, K., Burrage, P. and Mitsui, T. (2000) Numerical Solutions of Stochastic Differential Equations-Implementation and Stability Issues. Journal of Computational & Applied Mathematics, 125, 171-182.
    http://dx.doi.org/10.1016/S0377-0427(00)00467-2

  25. 25. Fadugba, S.E., Adegboyegun, B.J. and Ogunbiyi, O.T. (2013) On Convergence of Euler Maruyama and Milstein Scheme for Solution of Stochastic Differential Equations. International Journal of Applied Mathematics and Modeling, 1, 9-15.

  26. 26. Higham, D.J. (2001) An Algorithmic Introduction to Numerical Simulation of Stochastic Differential Equations. SIAM Review, 43, 525-546.
    http://dx.doi.org/10.1137/S0036144500378302

  27. 27. Kayode, S.J. and Ganiyu, A.A. (2015) Effect of Varying Stepsize in Numerical Approximation of Stochastic Differential Equations Using One Step Milstein Method. Applied and Computational Mathematics, 4, 351-362.
    http://dx.doi.org/10.11648/j.acm.20150405.14

  28. 28. Platen, E. (1992) An Introduction to Numerical Methods of Stochastic Differential Equations. Acta Numerica, 8, 197-246.
    http://dx.doi.org/10.1017/S0962492900002920

  29. 29. Sauer, T. (2013) Computational Solution of Stochastic Differential Equations. Wiley Interdisciplinary Reviews: Computational Statistics, 5, 362-371.
    http://dx.doi.org/10.1002/wics.1272

  30. 30. Saito, Y. and Mitsui, T. (1996) Stability Analysis of Numerical Schemes for Stochastic Differential Equations. SIAM Journal on Numerical Analysis, 33, 2254-2267.
    http://dx.doi.org/10.1137/s0036142992228409

  31. 31. Lactus, M.L. (2008) Simulation and Inference for Stochastic Differential Equations with R Examples. Springer Science + Buisiness Media, LLC, New York, 61-62.