JDEP 384H: Numerical Methods in Business

Similar documents
King s College London

AMH4 - ADVANCED OPTION PRICING. Contents

King s College London

Gamma. The finite-difference formula for gamma is

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

Computational Finance

Results for option pricing

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

Simulating more interesting stochastic processes

FMO6 Web: Polls:

The Use of Importance Sampling to Speed Up Stochastic Volatility Simulations

2.1 Mathematical Basis: Risk-Neutral Pricing

Asian Option Pricing: Monte Carlo Control Variate. A discrete arithmetic Asian call option has the payoff. S T i N N + 1

A Moment Matching Approach To The Valuation Of A Volume Weighted Average Price Option

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

Lecture 8: The Black-Scholes theory

Monte Carlo Simulations

************* with µ, σ, and r all constant. We are also interested in more sophisticated models, such as:

Value at Risk Ch.12. PAK Study Manual

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

Computer Exercise 2 Simulation

Numerical schemes for SDEs

Importance Sampling for Option Pricing. Steven R. Dunbar. Put Options. Monte Carlo Method. Importance. Sampling. Examples.

Exam Quantitative Finance (35V5A1)

The stochastic calculus

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

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

Estimating the Greeks

The Black-Scholes PDE from Scratch

Theory and practice of option pricing

IEOR E4703: Monte-Carlo Simulation

Chapter 15: Jump Processes and Incomplete Markets. 1 Jumps as One Explanation of Incomplete Markets

Help Session 2. David Sovich. Washington University in St. Louis

AN ANALYTICALLY TRACTABLE UNCERTAIN VOLATILITY MODEL

STOCHASTIC INTEGRALS

The Black-Scholes Equation

1.1 Basic Financial Derivatives: Forward Contracts and Options

Probability in Options Pricing

Volatility Smiles and Yield Frowns

Bluff Your Way Through Black-Scholes

Volatility Smiles and Yield Frowns

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

MSc in Financial Engineering

Credit Risk : Firm Value Model

Final Exam Key, JDEP 384H, Spring 2006

Practical example of an Economic Scenario Generator

3.1 Itô s Lemma for Continuous Stochastic Variables

CHAPTER 5 ELEMENTARY STOCHASTIC CALCULUS. In all of these X(t) is Brownian motion. 1. By considering X 2 (t), show that

MÄLARDALENS HÖGSKOLA

Interest Rate Curves Calibration with Monte-Carlo Simulatio

( ) since this is the benefit of buying the asset at the strike price rather

Introduction to Financial Mathematics

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

Computational Methods for Option Pricing. A Directed Research Project. Submitted to the Faculty of the WORCESTER POLYTECHNIC INSTITUTE

Financial Economics & Insurance

The Black-Scholes Model

As we saw in Chapter 12, one of the many uses of Monte Carlo simulation by

Pricing theory of financial derivatives

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.265/15.070J Fall 2013 Lecture 19 11/20/2013. Applications of Ito calculus to finance

Option Pricing Models for European Options

Math489/889 Stochastic Processes and Advanced Mathematical Finance Solutions to Practice Problems

Practical Hedging: From Theory to Practice. OSU Financial Mathematics Seminar May 5, 2008

Advanced Stochastic Processes.

University of California, Los Angeles Department of Statistics. Final exam 07 June 2013

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

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2011, Mr. Ruey S. Tsay. Solutions to Final Exam.

"Vibrato" Monte Carlo evaluation of Greeks

Computing Greeks with Multilevel Monte Carlo Methods using Importance Sampling

2 Control variates. λe λti λe e λt i where R(t) = t Y 1 Y N(t) is the time from the last event to t. L t = e λr(t) e e λt(t) Exercises

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

1 The continuous time limit

The Black-Scholes Model

4. Black-Scholes Models and PDEs. Math6911 S08, HM Zhu

Simulating Stochastic Differential Equations

LIBOR models, multi-curve extensions, and the pricing of callable structured derivatives

Financial Mathematics and Supercomputing

Market Volatility and Risk Proxies

10. Monte Carlo Methods

Write legibly. Unreadable answers are worthless.

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

Contents Critique 26. portfolio optimization 32

MFE/3F Questions Answer Key

Counterparty Credit Risk Simulation

Subject CT8 Financial Economics

Valuation of Asian Option. Qi An Jingjing Guo

Volatility Trading Strategies: Dynamic Hedging via A Simulation

Hedging Credit Derivatives in Intensity Based Models

Application of Stochastic Calculus to Price a Quanto Spread

1 Geometric Brownian motion

Lecture 4. Finite difference and finite element methods

Option Pricing Using Monte Carlo Methods. A Directed Research Project. Submitted to the Faculty of the WORCESTER POLYTECHNIC INSTITUTE

Derivation Of The Capital Asset Pricing Model Part I - A Single Source Of Uncertainty

Optimized Least-squares Monte Carlo (OLSM) for Measuring Counterparty Credit Exposure of American-style Options

Computer Exercise 2 Simulation

Monte Carlo Methods in Structuring and Derivatives Pricing

Monte Carlo Methods for Uncertainty Quantification

Advanced Topics in Derivative Pricing Models. Topic 4 - Variance products and volatility derivatives

Binomial model: numerical algorithm

Stochastic Differential Equations in Finance and Monte Carlo Simulations

Transcription:

Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods Chapter 8: Option Pricing by Monte Carlo Methods JDEP 384H: Numerical Methods in Business Instructor: Thomas Shores Department of Mathematics Lecture 23, April 10, 2007 110 Kaufmann Center Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods Chapter 8: Option Pricing by Monte Carlo Methods Outline 1 Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration BT 4.3: Generating Pseudorandom Variates BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques 2 Chapter 8: Option Pricing by Monte Carlo Methods Section 8.1: Path Generation Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.3: Generating Pseudorandom Variates Chapter 8: Option Pricing by Monte Carlo Methods BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques Outline 1 Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration BT 4.3: Generating Pseudorandom Variates BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques 2 Chapter 8: Option Pricing by Monte Carlo Methods Section 8.1: Path Generation Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.3: Generating Pseudorandom Variates Chapter 8: Option Pricing by Monte Carlo Methods BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques Outline 1 Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration BT 4.3: Generating Pseudorandom Variates BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques 2 Chapter 8: Option Pricing by Monte Carlo Methods Section 8.1: Path Generation Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.3: Generating Pseudorandom Variates Chapter 8: Option Pricing by Monte Carlo Methods BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques Outline 1 Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration BT 4.3: Generating Pseudorandom Variates BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques 2 Chapter 8: Option Pricing by Monte Carlo Methods Section 8.1: Path Generation Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.3: Generating Pseudorandom Variates Chapter 8: Option Pricing by Monte Carlo Methods BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques Outline 1 Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration BT 4.3: Generating Pseudorandom Variates BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques 2 Chapter 8: Option Pricing by Monte Carlo Methods Section 8.1: Path Generation Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.3: Generating Pseudorandom Variates Chapter 8: Option Pricing by Monte Carlo Methods BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques Outline 1 Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration BT 4.3: Generating Pseudorandom Variates BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques 2 Chapter 8: Option Pricing by Monte Carlo Methods Section 8.1: Path Generation Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

Variance Reduction 1: Antithetic Variates To estimate E [X ] = µ, select r.v.'s X 1 and X 2 with the same distribution as X, but require that they be negatively correlated. Then X and Y = (X 1 + X 2 ) /2 have the same mean µ. However, we have Var (Y ) is given by Var(X1)+Var(X2)+2 Cov(X1,X2) = Var (X ) + 1 Cov (X 4 2 1, X 2 ). ( ) Generate paired random samples X (i), X (i), i = 1,..., n, 1 2 ( and obtain pair-averaged samples Y (i) = X (i) + X (i) 1 2 ) /2. The resulting sample variance is expected to be be smaller than that of the random sample X (i) 1 of X. Hope this reduces the variance of the sample. Practical pointer: If X = g (U) are supposed to be generated by uniform U (0, 1) samples U i, try X (i) = g (U 1 i ) and X (i) = g (1 U i ). IF g (u) is monotone increasing, this works!

Variance Reduction 1: Antithetic Variates To estimate E [X ] = µ, select r.v.'s X 1 and X 2 with the same distribution as X, but require that they be negatively correlated. Then X and Y = (X 1 + X 2 ) /2 have the same mean µ. However, we have Var (Y ) is given by Var(X1)+Var(X2)+2 Cov(X1,X2) = Var (X ) + 1 Cov (X 4 2 1, X 2 ). ( ) Generate paired random samples X (i), X (i), i = 1,..., n, 1 2 ( and obtain pair-averaged samples Y (i) = X (i) + X (i) 1 2 ) /2. The resulting sample variance is expected to be be smaller than that of the random sample X (i) 1 of X. Hope this reduces the variance of the sample. Practical pointer: If X = g (U) are supposed to be generated by uniform U (0, 1) samples U i, try X (i) = g (U 1 i ) and X (i) = g (1 U i ). IF g (u) is monotone increasing, this works!

Variance Reduction 1: Antithetic Variates To estimate E [X ] = µ, select r.v.'s X 1 and X 2 with the same distribution as X, but require that they be negatively correlated. Then X and Y = (X 1 + X 2 ) /2 have the same mean µ. However, we have Var (Y ) is given by Var(X1)+Var(X2)+2 Cov(X1,X2) = Var (X ) + 1 Cov (X 4 2 1, X 2 ). ( ) Generate paired random samples X (i), X (i), i = 1,..., n, 1 2 ( and obtain pair-averaged samples Y (i) = X (i) + X (i) 1 2 ) /2. The resulting sample variance is expected to be be smaller than that of the random sample X (i) 1 of X. Hope this reduces the variance of the sample. Practical pointer: If X = g (U) are supposed to be generated by uniform U (0, 1) samples U i, try X (i) = g (U 1 i ) and X (i) = g (1 U i ). IF g (u) is monotone increasing, this works!

Variance Reduction 1: Antithetic Variates To estimate E [X ] = µ, select r.v.'s X 1 and X 2 with the same distribution as X, but require that they be negatively correlated. Then X and Y = (X 1 + X 2 ) /2 have the same mean µ. However, we have Var (Y ) is given by Var(X1)+Var(X2)+2 Cov(X1,X2) = Var (X ) + 1 Cov (X 4 2 1, X 2 ). ( ) Generate paired random samples X (i), X (i), i = 1,..., n, 1 2 ( and obtain pair-averaged samples Y (i) = X (i) + X (i) 1 2 ) /2. The resulting sample variance is expected to be be smaller than that of the random sample X (i) 1 of X. Hope this reduces the variance of the sample. Practical pointer: If X = g (U) are supposed to be generated by uniform U (0, 1) samples U i, try X (i) = g (U 1 i ) and X (i) = g (1 U i ). IF g (u) is monotone increasing, this works!

Variance Reduction 1: Antithetic Variates To estimate E [X ] = µ, select r.v.'s X 1 and X 2 with the same distribution as X, but require that they be negatively correlated. Then X and Y = (X 1 + X 2 ) /2 have the same mean µ. However, we have Var (Y ) is given by Var(X1)+Var(X2)+2 Cov(X1,X2) = Var (X ) + 1 Cov (X 4 2 1, X 2 ). ( ) Generate paired random samples X (i), X (i), i = 1,..., n, 1 2 ( and obtain pair-averaged samples Y (i) = X (i) + X (i) 1 2 ) /2. The resulting sample variance is expected to be be smaller than that of the random sample X (i) 1 of X. Hope this reduces the variance of the sample. Practical pointer: If X = g (U) are supposed to be generated by uniform U (0, 1) samples U i, try X (i) = g (U 1 i ) and X (i) = g (1 U i ). IF g (u) is monotone increasing, this works!

Variance Reduction 1: Antithetic Variates To estimate E [X ] = µ, select r.v.'s X 1 and X 2 with the same distribution as X, but require that they be negatively correlated. Then X and Y = (X 1 + X 2 ) /2 have the same mean µ. However, we have Var (Y ) is given by Var(X1)+Var(X2)+2 Cov(X1,X2) = Var (X ) + 1 Cov (X 4 2 1, X 2 ). ( ) Generate paired random samples X (i), X (i), i = 1,..., n, 1 2 ( and obtain pair-averaged samples Y (i) = X (i) + X (i) 1 2 ) /2. The resulting sample variance is expected to be be smaller than that of the random sample X (i) 1 of X. Hope this reduces the variance of the sample. Practical pointer: If X = g (U) are supposed to be generated by uniform U (0, 1) samples U i, try X (i) = g (U 1 i ) and X (i) = g (1 U i ). IF g (u) is monotone increasing, this works!

Variance Reduction 1: Antithetic Variates To estimate E [X ] = µ, select r.v.'s X 1 and X 2 with the same distribution as X, but require that they be negatively correlated. Then X and Y = (X 1 + X 2 ) /2 have the same mean µ. However, we have Var (Y ) is given by Var(X1)+Var(X2)+2 Cov(X1,X2) = Var (X ) + 1 Cov (X 4 2 1, X 2 ). ( ) Generate paired random samples X (i), X (i), i = 1,..., n, 1 2 ( and obtain pair-averaged samples Y (i) = X (i) + X (i) 1 2 ) /2. The resulting sample variance is expected to be be smaller than that of the random sample X (i) 1 of X. Hope this reduces the variance of the sample. Practical pointer: If X = g (U) are supposed to be generated by uniform U (0, 1) samples U i, try X (i) = g (U 1 i ) and X (i) = g (1 U i ). IF g (u) is monotone increasing, this works!

Calculations Returning to our Monte Carlo integration example, recall that to bound the (absolute) error by γ with the condence 1 α, require S(n) that z 1 α/2 γ (assuming normal distribution.) Experiment n with this Matlab code. > mu = exp(1)-1 > rand('state',0) > alpha = 0.05 % 95 percent confidence level > zalpha = stdn_inv(1-alpha/2) > n = 200 > U = rand(n,1); > X1 = exp(u); > X2 = exp(1-u); > Xn = 0.5*(X1+X2); > [smplmu,smplstdv,muci,] = norm_fit(x1,alpha) > abs(mu-smplmu), gmma = zalpha*sqrt(smplstdv/n) > [smplmu,smplstdv,muci] = norm_fit(x2,alpha) > abs(mu-smplmu), gmma = zalpha*sqrt(smplstdv/n) > [smplmu,smplstdv,muci] = norm_fit(xn,alpha) > abs(mu-smplmu), gmma = zalpha*sqrt(smplstdv/n)

Variance Reduction 2: Control Variates To estimate E [X ] = µ: Find a random variable C, with known mean µ C and form r.v. X C = X + β (C µ). Have E [X C ] = E [X ] = µ. Have Var ([X C ]) = Var (X ) + β 2 Var (C) + 2β Cov (X, C). So if 2β Cov (X, C) + β 2 Var (C) < 0, we get reduction with optimum at β = β = Cov (Y, C) / Var (C) (why?), with variance ( 1 ρ 2 (X, C) ) Var (X ). In practice, we estimate β experimentally.

Variance Reduction 2: Control Variates To estimate E [X ] = µ: Find a random variable C, with known mean µ C and form r.v. X C = X + β (C µ). Have E [X C ] = E [X ] = µ. Have Var ([X C ]) = Var (X ) + β 2 Var (C) + 2β Cov (X, C). So if 2β Cov (X, C) + β 2 Var (C) < 0, we get reduction with optimum at β = β = Cov (Y, C) / Var (C) (why?), with variance ( 1 ρ 2 (X, C) ) Var (X ). In practice, we estimate β experimentally.

Variance Reduction 2: Control Variates To estimate E [X ] = µ: Find a random variable C, with known mean µ C and form r.v. X C = X + β (C µ). Have E [X C ] = E [X ] = µ. Have Var ([X C ]) = Var (X ) + β 2 Var (C) + 2β Cov (X, C). So if 2β Cov (X, C) + β 2 Var (C) < 0, we get reduction with optimum at β = β = Cov (Y, C) / Var (C) (why?), with variance ( 1 ρ 2 (X, C) ) Var (X ). In practice, we estimate β experimentally.

Variance Reduction 2: Control Variates To estimate E [X ] = µ: Find a random variable C, with known mean µ C and form r.v. X C = X + β (C µ). Have E [X C ] = E [X ] = µ. Have Var ([X C ]) = Var (X ) + β 2 Var (C) + 2β Cov (X, C). So if 2β Cov (X, C) + β 2 Var (C) < 0, we get reduction with optimum at β = β = Cov (Y, C) / Var (C) (why?), with variance ( 1 ρ 2 (X, C) ) Var (X ). In practice, we estimate β experimentally.

Variance Reduction 2: Control Variates To estimate E [X ] = µ: Find a random variable C, with known mean µ C and form r.v. X C = X + β (C µ). Have E [X C ] = E [X ] = µ. Have Var ([X C ]) = Var (X ) + β 2 Var (C) + 2β Cov (X, C). So if 2β Cov (X, C) + β 2 Var (C) < 0, we get reduction with optimum at β = β = Cov (Y, C) / Var (C) (why?), with variance ( 1 ρ 2 (X, C) ) Var (X ). In practice, we estimate β experimentally.

Calculations Returning to our Monte Carlo integration example, nd a bound γ for the (absolute) error by γ with the condence 1 α. This Matlab code uses a linear approximation as control variate. > mu = exp(1)-1 > rand('state',0) > alpha = 0.05 % 95 percent confidence level > zalpha = stdn_inv(1 - alpha/2) > n = 100 > Un = rand(n,1); > Xn = exp(un); > Cn = 1+(exp(1)-1)*Un; % Control variate > muc = 1+(exp(1)-1)*0.5 % Expected value of C > S = -cov([cn,xn]); % get covariance matrix > bta = S(2,1)/S(2,2) % guess at optimum beta > XC = Xn + bta*(cn - muc); > [smplmu,smplstdv,muci] = norm_fit(xn,alpha) > abs(mu-smplmu), gmma = zalpha*sqrt(smplstdv/n) > [smplmu,smplstdv,muci] = norm_fit(xc,alpha) > abs(mu-smplmu), gmma = zalpha*sqrt(smplstdv/n)

Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods Section 8.1: Path Generation Chapter 8: Option Pricing by Monte Carlo Methods Outline 1 Chapter 4: Numerical Integration: Deterministic and Monte Carlo Methods BT 4.1: Numerical Integration BT 4.2: Monte Carlo Integration BT 4.3: Generating Pseudorandom Variates BT 4.4: Setting the Number of Replications BT 4.5: Variance Reduction Techniques 2 Chapter 8: Option Pricing by Monte Carlo Methods Section 8.1: Path Generation Instructor: Thomas Shores Department of Mathematics JDEP 384H: Numerical Methods in Business

Path Generation (Asset Dynamics) Given an Ito stochastic dierential equation ds t = a (S t, t) dt + b (S t, t) dw t, how do we model a path of the underlying stochastic process S (t)? Simple discretization might lead to what we used in Exercise 3.5 for geometric Brownian motion ds = µs δt + σs dx : S = S k+1 S k µs k δt + σs k dx, where S k = S(t k ). But this makes the random variable S k+1 normally distributed, given S k, which is wrong! (Why?) Reason: we saw in the ProbStatLectures section on stochastic integrals that we can actually solve for S and obtain S (t) = S (0) e νt+σ t z, so that with a little work we get S k+1 = S k e ν δt+σ δt z, and S k+1 is lognormally distributed, given S k. This gives a better strategy for simulating paths.

Path Generation (Asset Dynamics) Given an Ito stochastic dierential equation ds t = a (S t, t) dt + b (S t, t) dw t, how do we model a path of the underlying stochastic process S (t)? Simple discretization might lead to what we used in Exercise 3.5 for geometric Brownian motion ds = µs δt + σs dx : S = S k+1 S k µs k δt + σs k dx, where S k = S(t k ). But this makes the random variable S k+1 normally distributed, given S k, which is wrong! (Why?) Reason: we saw in the ProbStatLectures section on stochastic integrals that we can actually solve for S and obtain S (t) = S (0) e νt+σ t z, so that with a little work we get S k+1 = S k e ν δt+σ δt z, and S k+1 is lognormally distributed, given S k. This gives a better strategy for simulating paths.

Path Generation (Asset Dynamics) Given an Ito stochastic dierential equation ds t = a (S t, t) dt + b (S t, t) dw t, how do we model a path of the underlying stochastic process S (t)? Simple discretization might lead to what we used in Exercise 3.5 for geometric Brownian motion ds = µs δt + σs dx : S = S k+1 S k µs k δt + σs k dx, where S k = S(t k ). But this makes the random variable S k+1 normally distributed, given S k, which is wrong! (Why?) Reason: we saw in the ProbStatLectures section on stochastic integrals that we can actually solve for S and obtain S (t) = S (0) e νt+σ t z, so that with a little work we get S k+1 = S k e ν δt+σ δt z, and S k+1 is lognormally distributed, given S k. This gives a better strategy for simulating paths.

Path Generation (Asset Dynamics) Given an Ito stochastic dierential equation ds t = a (S t, t) dt + b (S t, t) dw t, how do we model a path of the underlying stochastic process S (t)? Simple discretization might lead to what we used in Exercise 3.5 for geometric Brownian motion ds = µs δt + σs dx : S = S k+1 S k µs k δt + σs k dx, where S k = S(t k ). But this makes the random variable S k+1 normally distributed, given S k, which is wrong! (Why?) Reason: we saw in the ProbStatLectures section on stochastic integrals that we can actually solve for S and obtain S (t) = S (0) e νt+σ t z, so that with a little work we get S k+1 = S k e ν δt+σ δt z, and S k+1 is lognormally distributed, given S k. This gives a better strategy for simulating paths.

Some Path Calculations > mu = 0.1, sigma = 0.3, S0 = 100 > randn('state',0) > nsteps = 52, T=1, dt = T/nsteps, nreps = 100 > S = zeros(nsteps+1,1); S(1) = S0; > S2 = zeros(nreps,1); > truemean = S(1)*exp(mu*T) % according to p. 99 > truestdv = sqrt(exp(2*(log(s(1))+(mu-sigma^2/2)*t) +... > sigma*sqrt(t))*(exp(sigma^2*t)-1)) % according to p. 632 > for j = 1:nreps > for k = 1:nsteps, S(k+1) = S(k)*(1 + mu*dt +... > sigma*sqrt(dt)*randn()); end > S2(j) = S(25); > end % store up results at 1 year > [smplmu,smplstdv,muci] = norm_fit(s2,alpha) > A = AssetPath(S0,mu,sigma,T,nsteps,nreps); > [smplmu,smplstdv,muci] = norm_fit(a(:,nsteps+1),alpha)

European Call with Simple Monte Carlo If r is the risk-free interest rate and option price f 0 at time t = 0 is risk-free with price f T at time t = T, then the value of f 0 should be the discounted expected payo f = e rt E [f T ] under a risk-neutral probability measure. Of course, f T is a r.v. But the drift for this asset should be the risk-free rate r. So all we have to do is average the payos over various stock price paths to time T, then discount the average to obtain an approximation for f 0. For example, with a European call, the payo curve gives { = max 0, S 0 e (r σ2 /2))T +σ } T z K f T where K is the strike price. So we need the nal value of random walks of stock prices S T = S 0 e (r σ2 /2))T +σ T z.

European Call with Simple Monte Carlo If r is the risk-free interest rate and option price f 0 at time t = 0 is risk-free with price f T at time t = T, then the value of f 0 should be the discounted expected payo f = e rt E [f T ] under a risk-neutral probability measure. Of course, f T is a r.v. But the drift for this asset should be the risk-free rate r. So all we have to do is average the payos over various stock price paths to time T, then discount the average to obtain an approximation for f 0. For example, with a European call, the payo curve gives { = max 0, S 0 e (r σ2 /2))T +σ } T z K f T where K is the strike price. So we need the nal value of random walks of stock prices S T = S 0 e (r σ2 /2))T +σ T z.

European Call with Simple Monte Carlo If r is the risk-free interest rate and option price f 0 at time t = 0 is risk-free with price f T at time t = T, then the value of f 0 should be the discounted expected payo f = e rt E [f T ] under a risk-neutral probability measure. Of course, f T is a r.v. But the drift for this asset should be the risk-free rate r. So all we have to do is average the payos over various stock price paths to time T, then discount the average to obtain an approximation for f 0. For example, with a European call, the payo curve gives { = max 0, S 0 e (r σ2 /2))T +σ } T z K f T where K is the strike price. So we need the nal value of random walks of stock prices S T = S 0 e (r σ2 /2))T +σ T z.

European Call with Simple Monte Carlo If r is the risk-free interest rate and option price f 0 at time t = 0 is risk-free with price f T at time t = T, then the value of f 0 should be the discounted expected payo f = e rt E [f T ] under a risk-neutral probability measure. Of course, f T is a r.v. But the drift for this asset should be the risk-free rate r. So all we have to do is average the payos over various stock price paths to time T, then discount the average to obtain an approximation for f 0. For example, with a European call, the payo curve gives { = max 0, S 0 e (r σ2 /2))T +σ } T z K f T where K is the strike price. So we need the nal value of random walks of stock prices S T = S 0 e (r σ2 /2))T +σ T z.

Example Calculations Example Calculations: Use Monte Carlo and antithetic variates generated by z and z to estimate the value of a European call with same data as in previous example and strike price of K = 110. Take risk-free interest rate to be r = 0.06. > alpha = 0.05, randn('state',0) > sigma = 0.3, S0 = 100, r = 0.06, K = 110 > nsteps = 52, T=1, dt = T/nsteps, nreps = 100 > nut = (mu-0.5*sigma^2)*t; > sit = sigma*sqrt(t); > Veps = randn(nreps,1); > payoff1 = max(0,s0*exp(nut+sit*veps) - K); > payoff2 = max(0,s0*exp(nut+sit*(-veps)) - K); > prices = exp(-r*t)*0.5*(payoff1 + payoff2); > trueprice = bseurcall(s0,k,r,t,0,sigma,0) > [price, V, CI] = norm_fit(prices) % compare > [price, V, CI] = norm_fit(exp(-r*t)*payoff1) % compare