25
Slides for DN2281, KTH 1 January 28, 2014 1 Based on the lecture notes Stochastic and Partial Differential Equations with Adapted Numerics, by J. Carlsson, K.-S. Moon, A. Szepessy, R. Tempone, G. Zouraris.

Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Slides for DN2281, KTH1

January 28, 2014

1Based on the lecture notes Stochastic and Partial DifferentialEquations with Adapted Numerics, by J. Carlsson, K.-S. Moon, A.Szepessy, R. Tempone, G. Zouraris.

Page 2: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

DN2281, Computational Methods for Stochastic DifferentialEquations. Spring 2014.Brownian motion, stochastic integrals, and diffusions assolutions of stochastic differential equations. Functionals ofdiffusions and their connection with partial differentialequations. Weak and strong approximation, efficient numericalmethods and error estimates, variance reduction techniques.Prerequisite: Familiarity with stochastic processes, ordinarydifferential equations, numerical methods.Instructor: Erik von Schwerin ([email protected])

Page 3: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

January 22, 2014 - Class contents:

1. Course Introduction, Admin details

2. Motivating examples

Page 4: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Admin detailsI email listI 15 lectures, link to schedule on the course web pageI Reading: Lecture notes on home page. Please print as

you go, not all at once!I Examination:

I 5 sets of homeworks, written reports, one group presentsI 1 final project/paper presentationI Final written exam, mostly consisting of questions

randomly selected from a list of “study questions”

I Homeworks, presentations, to be done in groups (of 2?).I First homework due in 2 weeks, form groups next lectureI The group that makes the presentation is encouraged to

hand in a draft of their solution a couple of days inadvance.

I “office hours”, for now email me at [email protected] toset a time to meet

Page 5: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

The goal of this course is to give useful understanding forsolving problems formulated by stochastic differential equationsmodels in science, engineering, and mathematical finance.

Page 6: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Motivating examples (Chapter 1)

Page 7: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Noisy Evolution of Stock Values

8/24/08 9:29 PMGOOG Chart - Yahoo! Finance

Page 1 of 2http://finance.yahoo.com/echarts?s=GOOG#chart19:symbol=goog;range=2…arttype=line;crosshair=on;ohlcvalues=0;logscale=on;source=undefined

New User? Sign Up Sign In Help

On Aug 22: 490.59 4.06 (0.83%)

MORE ON GOOG

Quotes

Summary

Real-Time ECN NEW!

Options

Historical Prices

Charts

Interactive

Basic Chart

Basic Tech. Analysis

News & Info

Headlines

Financial Blogs

Company Events

Message Board

Company

Profile

Key Statistics

SEC Filings

Competitors

Industry

Components

Analyst Coverage

Analyst Opinion

Analyst Estimates

Research Reports

Star Analysts

Ownership

Major Holders

Insider Transactions

Insider Roster

Financials

Income Statement

Balance Sheet

Cash Flow

COMPARE TECHNICAL INDICATORS CHART SETTINGS RESET

Basic Chart Full Screen Print Share Send Feedback

Last Trade: 490.59

Trade Time: Aug 22

Change: 4.06 (0.83%)

Prev Close: 486.53

Open: 491.51

Bid: N/A

Ask: 498.98 x 200

1y Target Est: 636.45

Day's Range: 489.48 - 494.88

52wk Range: 412.11 - 747.24

Volume: 2,297,253

Avg Vol (3m): 4,239,870

Market Cap: 154.26B

P/E (ttm): 32.23

EPS (ttm): 15.22

Div & Yield: N/A (N/A)

GOOGLE (NASDAQGS: GOOG)

After Hours: 490.00 -0.59 (-0.12%) 7:25pm EThelp

Quotes delayed, except where indicated otherwise. For consolidated real-time quotes (incl. pre/post market data), sign up for a free trial of Real-timeQuotes.

HEADLINES

[video] The Forgotten Internet Stock at TheStreet.com (Sun 5:59pm)

[video] Apple Stealthily Makes Way for New Stuff at

TheStreet.com (Sun 11:59am)

This Week's Barron's Roundup at TheStreet.com (Sun 11:32am)

The Next Millionaire-Maker Megatrend at Motley Fool (Sun

10:03am)

[video] Facebook Status Update: Price Unknown at

TheStreet.com (Sun 8:59am)

Thomsett: Beat the Odds With Indicators at TheStreet.com (Sat

12:05pm)

A Fool Looks Back at Motley Fool (Sat 8:02am)

[$$] They Said What? at Barron's Online (Sat 6:34am)

[video] Word on the Street at CNBC (Fri, Aug 22)

Report: Google, Verizon close to mobile search deal at

bizjournals.com (Fri, Aug 22)

Finance Search Sun, Aug 24, 2008, 9:26PM ET - U.S. Markets Closed.

Yahoo! My Yahoo! Mail More

Google Inc. (GOOG)

Search WEB SEARCH

Enter name(s) or symbol(s)

Make Y! My Home Page

Dow 1.73% Nasdaq 1.44%

GOOGLE from 2006 to 2008

Page 8: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

S&P 500 over a nearly 50 years period. Above: linear. Below: logarithmic

Page 9: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Noisy Evolution of Stock Values

Denote stock value by S(t). Assume that S(t) satisfies thedifferential equation

dS

dt= a(t)S(t),

which has the solution

S(t) = e∫ t0 a(u)duS(0).

Since we do not know precisely how S(t) evolves we would liketo generalize the model to a stochastic setting

a(t) = r(t) + ”noise”.

Page 10: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

For instance,

dS(t) = r(t)S(t)dt + σS(t)dW (t), (1)

where dW (t) will introduce noise in the evolution.What is the meaning of (1)? The answer is not as direct as inthe deterministic ODE case.

One way to give meaning to (1) is to use the Forward Eulerdiscretization,

Sn+1 − Sn = rnSn∆tn + σnSn∆Wn. (2)

Here ∆W n are independent normally distributed randomvariables . . .

Page 11: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

. . . with zero mean and variance ∆tn, i.e.

E [∆W n] = 0

andVar [∆W n] = ∆tn = tn+1 − tn.

Then (1) is understood as a limit of (2) when max ∆t → 0.

Page 12: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Noisy Evolution of Stock Values

0 0.2 0.4 0.6 0.8 10.9

0.95

1

1.05

1.1

1.15

1.2

1.25

time

S

N = 64

0 0.2 0.4 0.6 0.8 1

10−0.03

10−0.02

10−0.01

100

100.01

100.02

100.03

100.04

100.05

100.06

time

log(

S)

One realization with N = 64 steps, σ = 0.15 and r = 0.05

Page 13: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Noisy Evolution of Stock Values

0 0.2 0.4 0.6 0.8 10.9

0.95

1

1.05

1.1

1.15

1.2

1.25

time

S

N = 128

0 0.2 0.4 0.6 0.8 1

10−0.03

10−0.01

100.01

100.03

100.05

100.07

time

log(

S)

One realization with N = 128 steps, σ = 0.15 and r = 0.05

Page 14: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Noisy Evolution of Stock Values

0 0.2 0.4 0.6 0.8 10.9

0.95

1

1.05

1.1

1.15

1.2

1.25

time

S

N = 256

0 0.2 0.4 0.6 0.8 1

10−0.03

10−0.01

100.01

100.03

100.05

100.07

time

log(

S)

One realization with N = 256 steps, σ = 0.15 and r = 0.05

Page 15: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Applications to Option pricing

European call option: is a contract signed at time t whichgives the right, but not the obligation, to buy a stock (orother financial instrument) for a fixed price K at a fixed futuretime T > t.At time t the buyer pays the seller the amount f (s, t; T ) forthe option contract.What is a fair price for f (s, t; T )?

Page 16: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

The Black-Scholes model for the valuef : (0,T )× (0,∞)→ R of a European call option is thepartial differential equation

∂tf + rs∂s f +σ2s2

2∂2s f = rf , 0 < t < T ,

f (s,T ) = max(s − K , 0), (3)

where the constants r and σ denote the riskless interest rateand the volatility, respectively.

Page 17: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Stochastic representation of f (s, t)

The Feynmann-Kac formula gives the alternative probabilityrepresentation of the option price

f (s, t) = E [e−r(T−t) max(S(T )− K , 0))|S(t) = s], (4)

where the underlying stock value S is modeled by thestochastic differential equation (1) satisfying S(t) = s.Thus, f (s, t) is both the solution of a PDE (3) and theexpected value of the solution of a SDE (4)!

Which one should we choose to discretize?

Page 18: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

p(x)g(x)

time t

x

x0

Sample paths for the approximation of a put option.

Page 19: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Stochastic Particle SimulationsMolecular dynamics simulation of particles, with positions X t

in a potential, V (X ).

Standard method to simulate MD in the microcanonicalensemble of constant number of particles, volume, and energy,(N,V,E), is to solve Newton’s equations (deterministic)

dX ti = v t

i dt,

Mdv ti = −∂Xi

V (X t) dt(5)

Page 20: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Stochastic Particle Simulations

To simulate a system with constant temperature instead ofenergy, (N,V,T), one often simulate (5) but add a regularrescaling of the kinetic energy to keep T constant,“thermostats”.An alternative is to simulate the Langevin dynamics

dX ti = v t

i dt,

Mdv ti = −∂Xi

V (X t) dt − v ti

τdt +

√2γ

τdW t

i ,(6)

where Wi are independent Brownian motions, τ is a relaxationtime parameter, and γ := kBT .

Page 21: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Stochastic Particle Simulations

Under some assumptions on the potential V , one can samplethe same invariant measure ,

e−V (X )/γ dX∫R3N e−V (X )/γ dX

, (7)

using overdamped Langevin dynamics: SmoluchowskiDynamics at constant temperature, T ,

dX si = −∂Xi

V (X s)dt +√

2γ dW si . (8)

Page 22: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Optimal Control of Investments

Suppose that we invest in a risky asset, whose value S(t)evolves according to the stochastic differential equation

dS(t) = µS(t)dt + σS(t)dW (t),

and in a riskless asset Q(t) that evolves with

dQ(t) = rQ(t)dt.

It is reasonable to assume r < µ, why?Our total wealth is then X (t) = Q(t) + S(t).

Goal: determine an optimal instantaneous policy ofinvestment to maximize the expected value of our wealth at agiven final time T .

Page 23: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Let the time dependent proportion,

α(t) ∈ [0, 1],

be defined byα(t)X (t) = S(t),

so that(1− α(t))X (t) = Q(t).

Then our optimal control problem can be stated as

maxα∈A

E [g(X (T ))|X (t) = x ] ≡ u(t, x), (9)

where g is a given function.How can we determine α?

Page 24: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

The solution to (9) can be obtained by means of a HamiltonJacobi equation, which is in general a nonlinear partialdifferential equation satisfied by u(t, x) of the form

ut + H(u, ux , uxx) = 0.

Part of our work is to study the theory of Hamilton Jacobiequations and numerical methods for control problems todetermine the Hamiltonian H and the control α.

Page 25: Slides for DN2281, KTH1...Slides for DN2281, KTH1 January 28, 2014 1Based on the lecture notes Stochastic and Partial Di erential Equations with Adapted Numerics, by J. Carlsson, K.-S

Towards a definition of SDEs: Ito Integrals