Workshop on Stochastic Differential Equations and Statistical Inference for Markov Processes Day 3: Numerical Methods for Stochastic Differential.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Formal Computational Skills
Chapter 6 Differential Equations
Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Dynamics of Learning VQ and Neural Gas Aree Witoelar, Michael Biehl Mathematics and Computing Science University of Groningen, Netherlands in collaboration.
Ordinary Differential Equations
Mark Trew CT BARDS of Passion and of Mirth, Ye have left your souls on earth! Have ye souls in heaven too, Double-lived in regions new? Yes, and.
Lecture 18 - Numerical Differentiation
Graduate School of Information Sciences, Tohoku University
Workshop on Stochastic Differential Equations and Statistical Inference for Markov Processes Day 1: January 19 th, Day 2: January 28 th Lahore University.
Markov processes in a problem of the Caspian sea level forecasting Mikhail V. Bolgov Water Problem Institute of Russian Academy of Sciences.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
Bayesian estimation Bayes’s theorem: prior, likelihood, posterior
Sérgio Pequito Phd Student
Nonlinear Filtering of Stochastic Volatility Aleksandar Zatezalo, University of Rijeka, Faculty of Philosophy in Rijeka, Rijeka, Croatia
Numerical Solutions of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equation
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
Calculus and Analytic Geometry II Cloud County Community College Spring, 2011 Instructor: Timothy L. Warkentin.
Hedge with an Edge An Introduction to the Mathematics of Finance Riaz Ahmed & Adnan Khan Lahore Uviersity of Management Sciences Monte Carlo Methods.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
Lecture 11 Implementation Issues – Part 2. Monte Carlo Simulation An alternative approach to valuing embedded options is simulation Underlying model “simulates”
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
AN ITERATIVE METHOD FOR MODEL PARAMETER IDENTIFICATION 4. DIFFERENTIAL EQUATION MODELS E.Dimitrova, Chr. Boyadjiev E.Dimitrova, Chr. Boyadjiev BULGARIAN.
01/24/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
Introduction to Numerical Methods for ODEs and PDEs Methods of Approximation Lecture 3: finite differences Lecture 4: finite elements.
Polynomial Chaos For Dynamical Systems Anatoly Zlotnik, Case Western Reserve University Mohamed Jardak, Florida State University.
880.P20 Winter 2006 Richard Kass 1 Confidence Intervals and Upper Limits Confidence intervals (CI) are related to confidence limits (CL). To calculate.
ME451 Kinematics and Dynamics of Machine Systems
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Stochastic Linear Programming by Series of Monte-Carlo Estimators Leonidas SAKALAUSKAS Institute of Mathematics&Informatics Vilnius, Lithuania
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
Nonlinear localization of light in disordered optical fiber arrays
Fast Simulators for Assessment and Propagation of Model Uncertainty* Jim Berger, M.J. Bayarri, German Molina June 20, 2001 SAMO 2001, Madrid *Project of.
The Logistic Growth SDE. Motivation  In population biology the logistic growth model is one of the simplest models of population dynamics.  To begin.
+ Numerical Integration Techniques A Brief Introduction By Kai Zhao January, 2011.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 12.
© K.Cuthbertson, D. Nitzsche FINANCIAL ENGINEERING: DERIVATIVES AND RISK MANAGEMENT (J. Wiley, 2001) K. Cuthbertson and D. Nitzsche Lecture Asset Price.
CIS888.11V/EE894R/ME894V A Case Study in Computational Science & Engineering We will apply several numerical methods to find a steady state solution of.
Monte-Carlo Simulations Seminar Project. Task  To Build an application in Excel/VBA to solve option prices.  Use a stochastic volatility in the model.
Numerical Analysis – Differential Equation
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
1 Introduction to Statistics − Day 4 Glen Cowan Lecture 1 Probability Random variables, probability densities, etc. Lecture 2 Brief catalogue of probability.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
1 Chapter 8: Model Inference and Averaging Presented by Hui Fang.
The Unscented Particle Filter 2000/09/29 이 시은. Introduction Filtering –estimate the states(parameters or hidden variable) as a set of observations becomes.
SS r SS r This model characterizes how S(t) is changing.
Ordinary Differential Equations
G. Cowan Lectures on Statistical Data Analysis Lecture 9 page 1 Statistical Data Analysis: Lecture 9 1Probability, Bayes’ theorem 2Random variables and.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Dr. Mubashir Alam King Saud University. Outline Ordinary Differential Equations (ODE) ODE: An Introduction (8.1) ODE Solution: Euler’s Method (8.2) ODE.
Announcements Topics: -Introduction to (review of) Differential Equations (Chapter 6) -Euler’s Method for Solving DEs (introduced in 6.1) -Analysis of.
Mean Field Methods for Computer and Communication Systems Jean-Yves Le Boudec EPFL Network Science Workshop Hong Kong July
INTEGRATOR CLASSIFICATION & CHARACTERISTICS
Prepared by Vince Zaccone
ECE 576 – Power System Dynamics and Stability
Calculus II (MAT 146) Dr. Day Wednesday, February 28, 2018
Class Notes 19: Numerical Methods (2/2)
Brownian Motion for Financial Engineers
Random WALK, BROWNIAN MOTION and SDEs
TexPoint fonts used in EMF.
Differential Equations
Ordinary differential equaltions:
Lecture 2 – Monte Carlo method in finance
Overview Class #2 (Jan 16) Brief introduction to time-stepping ODEs
MATH 175: Numerical Analysis II
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

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

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

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

Numerical Methods for Ordinary Differential Equations

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

A Simple Example Consider the IVP The solution to the IVP is

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

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

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

How Error Varies with ∆t Claim : We saw theoretically Euler’s Method is O(∆t) accurate Error 1 0.718 ½ 0.468 ¼ 0.277 1/8 0.152 1/16 0.082

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

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

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

The Weiner Process

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

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

Sample Paths for Weiner Process

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

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

Euler Maruyama Scheme for SDE

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

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)”

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

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

E-M Scheme for Exponential Growth

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

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

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

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

Mean for the Stochastic Oscillator

Variance for the Stochastic Oscillator

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

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

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