Numerical Simulation of Stochastic Differential Equations: Lecture 1, Part 1. Overview of Lecture 1, Part 1: Background Mater.

Similar documents
CE 513: Statistical Methods in CE

Computer labs. May 10, A list of matlab tutorials can be found under

Numerical Simulation of Stochastic Differential Equations: Lecture 1, Part 2. Integration For deterministic h : R R,

AMH4 - ADVANCED OPTION PRICING. Contents

King s College London

Lecture 1. Sergei Fedotov Introduction to Financial Mathematics. No tutorials in the first week

Lecture 3. Sergei Fedotov Introduction to Financial Mathematics. Sergei Fedotov (University of Manchester) / 6

Drunken Birds, Brownian Motion, and Other Random Fun

Numerical schemes for SDEs

Version A. Problem 1. Let X be the continuous random variable defined by the following pdf: 1 x/2 when 0 x 2, f(x) = 0 otherwise.

Math489/889 Stochastic Processes and Advanced Mathematical Finance Homework 5

King s College London

The Use of Importance Sampling to Speed Up Stochastic Volatility Simulations

Central Limit Theorem, Joint Distributions Spring 2018

Homework Assignments

From Discrete Time to Continuous Time Modeling

3.1 Itô s Lemma for Continuous Stochastic Variables

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

Numerical Simulation of Stochastic Differential Equations: Lecture 2, Part 2

1 Geometric Brownian motion

Stochastic Differential Equations in Finance and Monte Carlo Simulations

Stochastic Modelling in Finance

- 1 - **** d(lns) = (µ (1/2)σ 2 )dt + σdw t

Continous time models and realized variance: Simulations

Statistics for Business and Economics: Random Variables:Continuous

Monte Carlo Methods. Prof. Mike Giles. Oxford University Mathematical Institute. Lecture 1 p. 1.

Stochastic Processes and Brownian Motion

MAS3904/MAS8904 Stochastic Financial Modelling

Simulating more interesting stochastic processes

Lecture 23. STAT 225 Introduction to Probability Models April 4, Whitney Huang Purdue University. Normal approximation to Binomial

Continuous Processes. Brownian motion Stochastic calculus Ito calculus

JDEP 384H: Numerical Methods in Business

Statistics for Business and Economics

23 Stochastic Ordinary Differential Equations with Examples from Finance

Dr. Maddah ENMG 625 Financial Eng g II 10/16/06

Department of Mathematics. Mathematics of Financial Derivatives

MASM006 UNIVERSITY OF EXETER SCHOOL OF ENGINEERING, COMPUTER SCIENCE AND MATHEMATICS MATHEMATICAL SCIENCES FINANCIAL MATHEMATICS.

The stochastic calculus

Probability Theory and Simulation Methods. April 9th, Lecture 20: Special distributions

Module 4: Monte Carlo path simulation

Monte Carlo Methods for Uncertainty Quantification

Normal Distribution. Notes. Normal Distribution. Standard Normal. Sums of Normal Random Variables. Normal. approximation of Binomial.

BROWNIAN MOTION II. D.Majumdar

Monte Carlo Methods for Uncertainty Quantification

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

Lecture 11: Ito Calculus. Tuesday, October 23, 12

NEWCASTLE UNIVERSITY SCHOOL OF MATHEMATICS, STATISTICS & PHYSICS SEMESTER 1 SPECIMEN 2 MAS3904. Stochastic Financial Modelling. Time allowed: 2 hours

S t d with probability (1 p), where

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions.

Two hours. To be supplied by the Examinations Office: Mathematical Formula Tables and Statistical Tables THE UNIVERSITY OF MANCHESTER

Lecture 8: The Black-Scholes theory

Analysing multi-level Monte Carlo for options with non-globally Lipschitz payoff

2.1 Mathematical Basis: Risk-Neutral Pricing

Write legibly. Unreadable answers are worthless.

Convergence Analysis of Monte Carlo Calibration of Financial Market Models

Risk Neutral Valuation

Computational Finance

Stochastic Calculus - An Introduction

continuous rv Note for a legitimate pdf, we have f (x) 0 and f (x)dx = 1. For a continuous rv, P(X = c) = c f (x)dx = 0, hence

Conditional Density Method in the Computation of the Delta with Application to Power Market

Week 1 Quantitative Analysis of Financial Markets Distributions B

Volatility. Roberto Renò. 2 March 2010 / Scuola Normale Superiore. Dipartimento di Economia Politica Università di Siena

Chapter 4 Continuous Random Variables and Probability Distributions

Limit Theorems for the Empirical Distribution Function of Scaled Increments of Itô Semimartingales at high frequencies

Lecture 17. The model is parametrized by the time period, δt, and three fixed constant parameters, v, σ and the riskless rate r.

BROWNIAN MOTION Antonella Basso, Martina Nardon

4.1 Additive property of Gaussian Random Variable

Last Time. Martingale inequalities Martingale convergence theorem Uniformly integrable martingales. Today s lecture: Sections 4.4.1, 5.

Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Fall 2017 Instructor: Dr. Sateesh Mane.

Math 416/516: Stochastic Simulation

Deriving the Black-Scholes Equation and Basic Mathematical Finance

The Black-Scholes PDE from Scratch

A new approach for scenario generation in risk management

Geometric Brownian Motions

Sampling Distribution

Exam Quantitative Finance (35V5A1)

Ornstein-Uhlenbeck Theory

IEOR E4703: Monte-Carlo Simulation

Partial differential approach for continuous models. Closed form pricing formulas for discretely monitored models

Business Statistics 41000: Probability 3

CPSC 540: Machine Learning

PAPER 27 STOCHASTIC CALCULUS AND APPLICATIONS

An Introduction to Stochastic Calculus

Lecture Note 8 of Bus 41202, Spring 2017: Stochastic Diffusion Equation & Option Pricing

Strategies for Improving the Efficiency of Monte-Carlo Methods

Chapter 4 Continuous Random Variables and Probability Distributions

Results for option pricing

Definition 9.1 A point estimate is any function T (X 1,..., X n ) of a random sample. We often write an estimator of the parameter θ as ˆθ.

CPSC 540: Machine Learning

15.063: Communicating with Data Summer Recitation 4 Probability III

Math 623 (IOE 623), Winter 2008: Final exam

Simulation Wrap-up, Statistics COS 323

Change of Measure (Cameron-Martin-Girsanov Theorem)

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 10: Continuous RV Families. Prof. Vince Calhoun

Random Variables Handout. Xavier Vilà

Valuation of derivative assets Lecture 8

Stochastic Processes and Advanced Mathematical Finance. Stochastic Differential Equations and the Euler-Maruyama Method

Math 489/Math 889 Stochastic Processes and Advanced Mathematical Finance Dunbar, Fall 2007

IEOR 3106: Introduction to Operations Research: Stochastic Models SOLUTIONS to Final Exam, Sunday, December 16, 2012

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

Transcription:

Numerical Simulation of Stochastic Differential Equations: Lecture, Part Des Higham Department of Mathematics University of Strathclyde Course Aim: Give an accessible intro. to SDEs and their numerical simulation. Motivation: SDEs are becoming widely used in science and engineering; notably finance, physics and biology. It may very well be said that the best way to understand SDEs is to work with their numerical solutions. Salih N. Neftci, in An Introduction to the Mathematics of Financial Derivatives, Academic Press, 2nd Edition, 2. 6 p./8 Things not treated here include: Ito s lemma Convgnce/stability analysis of numerical methods Systems of SDEs Connection to Fokker Planck PDE Course Overview Overview of Lecture, Part : Background Mater Lecture : Part : Background Material Part 2: Stochastic Differential Equations Lecture 2 : Part : Euler Maruyama Method Part 2: Application: Mean Exit Time Random variables Monte Carlo simulation Brownian motion 6 p.3/8

Continuous Random Variable, X Properties of Random Variables Probability: P(a X b) = b a f(x) dx E[X + Y] = E[X] + E[Y] E[αX] = αe[x] var[αx] = α 2 var[x] Expected Value (mean): Variance: E[X] = xf(x) dx var(x) = E((X E(X)) 2 ) We can +,,, and apply functions to get new random variables: sin(x), e X+Y2,... X & Y are indepent E[g(X)h(Y)] = E[g(X)]E[h(Y)], Hence, { X & Y indep. for all g, h : R R E[XY] = E[X]E[Y] var[x + Y] = var[x] + var[y] 6 p.5/8 Normal Random Variables Properties of Normal Random Variables Density Mean is µ, variance is σ 2 We write X N(µ, σ 2 ) f(x) = e (x µ)2 2σ 2 2πσ 2.5.45 N(,) density. If X N(µ, σ 2 ) then (X µ)/σ N(, ) 2. If Y N(, ) then σy + µ N(µ, σ 2 ) 3. If X N(µ, σ 2), Y N(µ 2, σ2 2 ) and X and Y are indepent, then X + Y N(µ + µ 2, σ 2 + σ2 2 ) 4. If X and Y are normal random variables then X and Y are indepent if and only if E[XY] = E[X]E[Y].4.35.3 f(x).25.2.5..5 5 4 3 2 2 3 4 5 x 6 p.7/8

In words: Central Limit Theorem the sum of a large number of indepent random variables (whatever their distribution!) behaves like a normal random variable In maths: Let {X i } i be i.i.d. with mean a and variance b 2. Then for all α < β lim M P ( α M i= X i Ma Mb β ) = 2π β α e 2 x2 dx Pseudo-random Number Generation in MATLA rand for uniform (,), randn for N(,) En masse, the samples are designed to have the appropriate statistical properties: >> rand( state,); randn( state,) >> [rand(,), randn(,)] ans =.3929.985.6398-2.227.7245 -.239.6953.687.958-2.22.9429 -.364.635 -.83.5 -.9797.474.7882.9663.7366 6 p.9/8 Illustration of CLT 4 samples of Z = e Y, where Y is a Bernoulli r.v. Shift and scale for CLT: for k = :L Z = exp(double(rand(m,)>(-p))); S(k) = (sum(z) - M*a)/(b*sqrt(M));.45.4.35.3.25.2.5..5 N(,) density Sample data 5 5 Monte Carlo Simulation Suppose we can sample from a random variable X. Letting a = E[X] and b 2 = var[x], we want to estimate a. a M := M M i= b 2 M := M Then CLT ξ i (sample mean) M (ξ i a M ) 2 (sample variance) i= [ ] a M.96 bm, a M +.96 bm M M is an approximate 95% confidence interval for a. 6 p./8

Brownian Motion, W(t), over t T Discretized Brownian Path W() = (with probability ) 2 For s < t T, W(t) W(s) is N(, t s) 3 For s t u v T, W(v) W(u) & W(t) W(s) are indep. δt = T/L W = for i = to L- compute a N(,) sample ξ i W i+ = W i + δt ξ i Hence, W(t + δt) W(t) is N(, δt), i.e. δt N(, ) 6 p.3/8 Discretized Brownian Path δt = T/L W = for i = to L- compute a N(,) sample ξ i W i+ = W i + δt ξ i Scaling Property For any fixed c >, if W(t) is an example of Brownian motion, then so is V(t) := c W(c2 t) (Simple to check the three defining conditions.) E.g., c = /:.5 W(t).5.5 W i.5 T t.5 *W(t/).5.5..2.3.4.5.6.7.8.9 t i 6 p.4/8.5 T/ t

Non-differentiability bpath.m %BPATH Brownian path simulation Scaling property can be used to show that ( W(/n 4 ) ( ) P /n 4 > n = P W() > ) n So, with prob., W(t) is not differentiable at the origin. In fact W(t) is nowhere differentiable. In Part 2... we will see how to integrate with respect to W(t). clf randn( state,) % set the state of randn T = ; N = 5; dt = T/N; dw = zeros(,n); % preallocate arrays... W = zeros(,n); % for efficiency dw() = sqrt(dt)*randn; % first approx outside loo W() = dw(); % since W() = not allow for j = 2:N dw(j) = sqrt(dt)*randn; % general increment W(j) = W(j-) + dw(j); 6 p.6/8 plot([:dt:t],[,w], r- ) % plot W against t xlabel( t, FontSize,6) ylabel( W(t), FontSize, 6, Ro tati on, ) bpath2.m %BPATH2 Brownian path simulation: vectorized clf randn( state,) % set the state of randn T = ; N = 5; dt = T/N; dw = sqrt(dt)*randn(,n); % increments W = cumsum(dw); % cumulative sum plot([:dt:t],[,w], r- ) % plot W against t xlabel( t, FontSize,6) ylabel( W(t), FontSize, 6, Ro tati on, ) 6 p.8/8