Computational Finance

Similar documents
Computational Finance Improving Monte Carlo

MONTE CARLO EXTENSIONS

King s College London

2.1 Mathematical Basis: Risk-Neutral Pricing

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

Monte Carlo Simulations

Monte Carlo Methods for Uncertainty Quantification

FE610 Stochastic Calculus for Financial Engineers. Stevens Institute of Technology

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

Valuation of Asian Option. Qi An Jingjing Guo

Definition Pricing Risk management Second generation barrier options. Barrier Options. Arfima Financial Solutions

Stochastic Differential Equations in Finance and Monte Carlo Simulations

1.1 Basic Financial Derivatives: Forward Contracts and Options

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

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

AMH4 - ADVANCED OPTION PRICING. Contents

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

Write legibly. Unreadable answers are worthless.

Option Pricing Models for European Options

IEOR E4703: Monte-Carlo Simulation

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

STOCHASTIC VOLATILITY AND OPTION PRICING

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

Numerical schemes for SDEs

Estimating the Greeks

Simulating Stochastic Differential Equations

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

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

Math 416/516: Stochastic Simulation

King s College London

Monte Carlo Methods in Structuring and Derivatives Pricing

Economathematics. Problem Sheet 1. Zbigniew Palmowski. Ws 2 dw s = 1 t

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

Module 4: Monte Carlo path simulation

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

The Black-Scholes Equation

The Black-Scholes Model

Continuous Time Finance. Tomas Björk

Options. An Undergraduate Introduction to Financial Mathematics. J. Robert Buchanan. J. Robert Buchanan Options

Probability in Options Pricing

Lecture 4. Finite difference and finite element methods

JDEP 384H: Numerical Methods in Business

Computer Exercise 2 Simulation

FINANCIAL OPTION ANALYSIS HANDOUTS

3.1 Itô s Lemma for Continuous Stochastic Variables

Fast and accurate pricing of discretely monitored barrier options by numerical path integration

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

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

The Use of Importance Sampling to Speed Up Stochastic Volatility Simulations

The Black-Scholes PDE from Scratch

TEST OF BOUNDED LOG-NORMAL PROCESS FOR OPTIONS PRICING

Financial Risk Management

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

"Vibrato" Monte Carlo evaluation of Greeks

Risk Neutral Valuation

Asymptotic Method for Singularity in Path-Dependent Option Pricing

2 f. f t S 2. Delta measures the sensitivityof the portfolio value to changes in the price of the underlying

Monte Carlo Methods for Uncertainty Quantification

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

MATH Computational Finance

RMSC 4005 Stochastic Calculus for Finance and Risk. 1 Exercises. (c) Let X = {X n } n=0 be a {F n }-supermartingale. Show that.

Lecture 8: The Black-Scholes theory

Results for option pricing

Multilevel quasi-monte Carlo path simulation

Multi-Asset Options. A Numerical Study VILHELM NIKLASSON FRIDA TIVEDAL. Master s thesis in Engineering Mathematics and Computational Science

Financial Risk Modeling on Low-power Accelerators: Experimental Performance Evaluation of TK1 with FPGA

AN ANALYTICALLY TRACTABLE UNCERTAIN VOLATILITY MODEL

Short-time-to-expiry expansion for a digital European put option under the CEV model. November 1, 2017

Stochastic Modelling in Finance

Theory and practice of option pricing

Exam Quantitative Finance (35V5A1)

Continuous time; continuous variable stochastic process. We assume that stock prices follow Markov processes. That is, the future movements in a

Introduction to Financial Mathematics

Financial Mathematics and Supercomputing

Quasi-Monte Carlo for Finance

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

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

Computational Finance. Computational Finance p. 1

MOUNTAIN RANGE OPTIONS

From Discrete Time to Continuous Time Modeling

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

Stochastic Volatility

A new approach for scenario generation in risk management

The Black-Scholes Equation using Heat Equation

Solving the Black-Scholes Equation

Bluff Your Way Through Black-Scholes

"Pricing Exotic Options using Strong Convergence Properties

1 The continuous time limit

Math Computational Finance Option pricing using Brownian bridge and Stratified samlping

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

Microsoft Morgan Stanley Finance Contest Final Report

Constructing Markov models for barrier options

MSc Financial Engineering CHRISTMAS ASSIGNMENT: MERTON S JUMP-DIFFUSION MODEL. To be handed in by monday January 28, 2013

Stochastic modelling of electricity markets Pricing Forwards and Swaps

An Accelerated Approach to Static Hedging Barrier Options: Richardson Extrapolation Techniques

In chapter 5, we approximated the Black-Scholes model

PDE Methods for the Maximum Drawdown

Computational Finance Least Squares Monte Carlo

1 Geometric Brownian motion

Forwards and Futures. Chapter Basics of forwards and futures Forwards

Transcription:

Path Dependent Options Computational Finance School of Mathematics 2018

The Random Walk One of the main assumption of the Black-Scholes framework is that the underlying stock price follows a random walk Using random numbers, we can simulate that random walk, and find the path that the stock price will follow.

The Random Walk One of the main assumption of the Black-Scholes framework is that the underlying stock price follows a random walk Using random numbers, we can simulate that random walk, and find the path that the stock price will follow. The Monte Carlo method takes numerous simulated paths to estimate the expected option price at expiry, which can be discounted back to today.

Monte Carlo techniques Good for options on more than one underlying asset. Convergence is slow, errors are random. Convergence is order N 1 2 where N is the number of sample paths. It is a forward induction technique, which makes valuing path dependent options easy.

Monte Carlo techniques Good for options on more than one underlying asset. Convergence is slow, errors are random. Convergence is order N 1 2 where N is the number of sample paths. It is a forward induction technique, which makes valuing path dependent options easy. However, it is very difficult to value American style options for exactly the same reason.

Note:- The law of large numbers Large Numbers Given a sequence of independent, identically distributed random variables Y n then lim N 1 N N Y n = E[Y n ] n=1

Note:- The law of large numbers Large Numbers Given a sequence of independent, identically distributed random variables Y n then lim N 1 N N Y n = E[Y n ] n=1 So the expectation is exactly like taking a long run average. To decrease errors increase N. We wish to evaluate E[f(Y T )].

Application to options Let S t be the share price at time t, then the option value V (S t, t) is or if r is constant, V (S t, t) = E Q t [e T t r(s)ds V (S T, T )] e r(t t) E Q t [V (S T, T )] where Q is the risk-neutral measure, E t denotes taking the expectation at time t, and V (S T, T ) is the payoff at expiry.

Application to options Let S t be the share price at time t, then the option value V (S t, t) is or if r is constant, V (S t, t) = E Q t [e T t r(s)ds V (S T, T )] e r(t t) E Q t [V (S T, T )] where Q is the risk-neutral measure, E t denotes taking the expectation at time t, and V (S T, T ) is the payoff at expiry. Option value is discounted expected price.

Example - GBM Assume we are risk-neutral and S follows a geometric Brownian motion. Under the real-world measure ds t = µs t dt + σs t dx and under the risk-neutral measure ds t = rs t dt + σs t dw where W and X are both Brownian motions under the respective measures.

Example - GBM The above stochastic differential equation can be solved exactly to yield: S T = S t exp[(r 1 2 σ2 )(T t) + σφ T t] where φ here is a variable drawn at random from the Normal distribution N(0, 1).

Example - GBM The above stochastic differential equation can be solved exactly to yield: S T = S t exp[(r 1 2 σ2 )(T t) + σφ T t] where φ here is a variable drawn at random from the Normal distribution N(0, 1). So given a random number φ n and a starting stock price S t, we can calculate the stock price at time T, S (n) T.

Example - GBM Thus if the nth draw from the normal distribution gives V n (S T ) then by the law of large numbers: 1 N N V (ST n ) E Q t [V (S T )] as N n=1

Example - GBM Thus if the nth draw from the normal distribution gives V n (S T ) then by the law of large numbers: 1 N N V (ST n ) E Q t [V (S T )] as N n=1 Now if we define the error from the nth sample path as ɛ n then ɛ n = V (S n T ) E Q t [V (S T )] Then ɛ N(0, ν/n)

European Option For a European call option the payoff at maturity V (S T ) is given by V (S T ) = max(s T X, 0) Simulate N possible paths for S T with N independent draws from N(0, 1) (φ n )

European Option For a European call option the payoff at maturity V (S T ) is given by V (S T ) = max(s T X, 0) Simulate N possible paths for S T with N independent draws from N(0, 1) (φ n ) Then for 1 n N S n T = S t exp[(r 1 2 σ2 )(T t) + σφ n T t] V (S n T ) = max(s n T X, 0) V (S t, t) = e r(t t) 1 N N V (St n ) n=1

Psuedo code Path Dependent Options double monte carlo() { double sum=0.; for(int n = 0;n<N;n++) { stock T = stock 0*exp( (r-0.5*sigma*sigma)*t + sigma*phi()*sqrt(t)) sum+=payoff(stock T)*exp(-interest rate*t); } return sum/n; }

Path Dependent Options Framework Example Asian Options A path dependent option is one whose payoff depends on the path followed by the underlying asset The terminal condition may depend on the path (Asian, lookback, etc.) or there may exist a condition at time t (barrier options).

Path Dependent Options Framework Example Asian Options A path dependent option is one whose payoff depends on the path followed by the underlying asset The terminal condition may depend on the path (Asian, lookback, etc.) or there may exist a condition at time t (barrier options). Assume the share price is observed at M + 1 points in time S(t 0 ), S(t 1 ),..., S(t M ) If the terminal boundary condition depends on the path the payoff becomes V (S(t 0 ), S(t 1 ),..., S(t M ), T )

Creating a Path Framework Example Asian Options The procedure is as follows:

Creating a Path Framework Example Asian Options The procedure is as follows: Initialise S(t 0 ) Simulate the stock price at each sampling time t i S (n) t i = S (n) t i 1 exp[(r 1 2 σ2 )(t i t i 1 ) + σ t i t i 1 φ i ] Use the path generated to calculate the payoff Then repeat this procedure N times to get the option value: V (t) = e r(t t) 1 N N V (S(t 0 ), S(t 1 ),..., S(t M ), T ) n=1

Asian options Path Dependent Options Framework Example Asian Options An Asian option is an option whose payoff is a function of the average price of the underlying asset The share price is observed at M points in time Consider an Asian option whose payoff is where V (T ) = max(a S T, 0) A = 1 M M S(t i ) and S(t i ) are the share prices at the M sampling times t 1,..., t M. i=1

Normal from uniform Random Numbers All programming languauges have a random number generator usually it will only generate random numbers that are uniformly distributed on [0, 1]. We will need to transform them to obtain normally distributed random numbers

Normal from uniform Random Numbers All programming languauges have a random number generator usually it will only generate random numbers that are uniformly distributed on [0, 1]. We will need to transform them to obtain normally distributed random numbers Most straightforward way: - let F 1 denote inverse of Normal distribution function If x is uniformly distributed on [0, 1], then y = F 1 (x) is a standard variable from the normal distribution.

The Box-Muller method Random Numbers If we had the function F 1 then we could invert the uniform distribution. However F 1 is not known in closed form, so this approach is expensive.

The Box-Muller method Random Numbers If we had the function F 1 then we could invert the uniform distribution. However F 1 is not known in closed form, so this approach is expensive. A simple technique for generating normally distributed random numbers is the Box-Muller method Given two uniformly distributed random numbers x 1, x 2, two Normally distributed random numbers, y 1 and y 2 are given by: y 1 = cos(2πx 2 ) 2 log(x 1 ) y 2 = sin(2πx 1 ) 2 log(x 2 )

Monte-Carlo Methods Random Numbers Simple to program and to understand Convergence is slow, extrapolation impossible. Forward looking method ideal for path dependent derivatives Good for derivatives where there are multiple sources of uncertainty, as the computational effort only increases linearly. To simulate the paths we typically use the solution to the SDE or the Euler approximation, along with a decent generator of Normally distributed random variables. Check the notes for how to generate multi-asset paths.