1 / 38

Day 1: January 19 th , Day 2: January 28 th Day 3: February 9 th

Workshop on Stochastic Differential Equations and Statistical Inference for Markov Processes Day 3: Numerical Methods for Stochastic Differential Equations. Day 1: January 19 th , Day 2: January 28 th Day 3: February 9 th Lahore University of Management Sciences. Schedule.

freya
Télécharger la présentation

Day 1: January 19 th , Day 2: January 28 th Day 3: February 9 th

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Workshop on Stochastic Differential Equations and Statistical Inference for Markov ProcessesDay 3: Numerical Methods for Stochastic Differential Equations Day 1: January 19th , Day 2: January 28th Day 3: February 9th Lahore University of Management Sciences

  2. Schedule • Day 1 (Saturday 21st Jan): Review of Probability and Markov Chains • Day 2 (Saturday 28th Jan): Theory of Stochastic Differential Equations • Day 3 (Saturday 4th Feb): Numerical Methods for Stochastic Differential Equations • Day 4 (Saturday 11th Feb): Statistical Inference for Markovian Processes

  3. Today • Numerical Schemes for ODE • Numerical Evaluation of Stochastic Integrals • Euler Maruyama Method for SDE • Milstein and Higher Order Methods for SDE

  4. Numerical Methods for Ordinary Differential Equations

  5. Euler’s Scheme • Consider the following IVP • Using a forward difference approximation we get • This is called the Forward Euler Scheme

  6. A Simple Example • Consider the IVP • The solution to the IVP is

  7. Solving the IVP by Euler’s Method • For the IVP • The Euler Scheme is

  8. Error • How to characterize the error ? • Factors which introduce an error • Discretization • Round off • Maximum of error over the interval • How does the error depend on

  9. Discretization Error in Forward Euler • Consider the IVP • Satisfying the conditions • Also consider the Euler Scheme • Then the error satisfies

  10. How Error Varies with ∆t • Claim : We saw theoretically Euler’s Method is O(∆t) accurate

  11. Stability • Consider • The Euler Scheme is • For the solution to die out need • For

  12. Stability of Euler Scheme • For • Discretize using Euler’s Scheme • At some stage of the solution assume a small error is introduced • The error evolves according to • Thus need for stability

  13. Challenge • Write a code to verify the order of accuracy of the Euler Scheme • Experiment with different values of to explore the stability of the Euler Scheme • Note: You may use the IVP discussed here

  14. The Weiner Process

  15. Weiner Process • Recall a random variable is a Weiner Process if • For the increment • For the increments are independent

  16. Simulating Weiner Processes • Consider the discretization • where and • Also each increment is given by

  17. Sample Paths for Weiner Process

  18. Numerical Expectation and Variance • Theoretically on the interval [0,t]

  19. Stochastic Exponential Growth • The Exponential Growth Model is • Let • Then the solution is • Note that

  20. Euler Maruyama Scheme for SDE

  21. Sources of Error in Numerical Schemes • Errors in Numerical Schemes for SDE • Discretization • Monte Carlo • Round off • Discretization determines the order of the scheme as in the ODE case • Also want a handle on the Monte Carlo errors

  22. Some Numerical Schemes for SDE • Euler Maruyama • Half order accurate • Milstein • Order one accurate • Reference: “Numerical Solution of Stochastic Differential Equations by Kloeden and Platen (Springer)”

  23. Euler Maruyama Scheme • Consider an autonomous SDE • A Simple (Euler-Maruyama) discretization is

  24. E-M Applied of Exponential Growth • Consider • This has the solution • The Euler Murayama Scheme takes the form

  25. E-M Scheme for Exponential Growth

  26. Strong Accuracy of E-M • A method converges with strong order if there exists C such that • For the Euler Maruyama Scheme the following holds • i.e. E-M is order accurate

  27. Weak Accuracy of E-M • A method converges with weak order if there exits C such that • For the Euler Maruyama Scheme the following holds true

  28. Stochastic Oscillator • Consider the stochastically forced oscillator • The mean and variance are given by

  29. Numerical Scheme • We simulate the oscillator using the following scheme (Higham & Melbo) • Note the semi implicit nature of the method

  30. Mean for the Stochastic Oscillator

  31. Variance for the Stochastic Oscillator

  32. Challenge I • Derive the exact mean and variance for the stochastic oscillator • Use Euler Maruyama to simulate trajectories and calculate the mean and variance • Show numerically that the variance blow up with decreasing for the E-M method

  33. Challenge II • Exploring the Stochastic SIR Model • Use the references provided on the webpage to simulate sample paths for the infected class for different parameters • Calculate the numeric mean and variance

  34. References and Credits • Kloeden. P.E & Platen.E, Numerical Solution of Stochastic Differential Equations, Springer (1992) • Desmond J. Higham. An Algorithmic Introduction to Numerical Simulation of Stochastic Differential Equations , SIAM Rev. 43, pp. 525-546 • Atkinson. K, Han W. & Stewart D.E, Numerical Solution of Ordinary Differential Equations, Wiley • Many of the codes are available at Desmond Higham's webpage www.mathstat.strath.ac.uk/d.j.higham

More Related