King s College London

Similar documents
King s College London

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

FMO6 Web: Polls:

Simulating more interesting stochastic processes

2.1 Mathematical Basis: Risk-Neutral Pricing

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

Numerical schemes for SDEs

Math 239 Homework 1 solutions

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

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

Write legibly. Unreadable answers are worthless.

IEOR E4703: Monte-Carlo Simulation

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

Lecture 4. Finite difference and finite element methods

MATH4143: Scientific Computations for Finance Applications Final exam Time: 9:00 am - 12:00 noon, April 18, Student Name (print):

Monte Carlo Simulations

Stochastic Differential Equations in Finance and Monte Carlo Simulations

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

Simulating Stochastic Differential Equations

JDEP 384H: Numerical Methods in Business

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

Valuation of Asian Option. Qi An Jingjing Guo

MATH6911: Numerical Methods in Finance. Final exam Time: 2:00pm - 5:00pm, April 11, Student Name (print): Student Signature: Student ID:

Computational Finance

The Black-Scholes Model

Replication and Absence of Arbitrage in Non-Semimartingale Models

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

The Use of Importance Sampling to Speed Up Stochastic Volatility Simulations

Valuation of performance-dependent options in a Black- Scholes framework

1 The continuous time limit

MÄLARDALENS HÖGSKOLA

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

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

The Black-Scholes Model

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

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

Monte Carlo Methods in Structuring and Derivatives Pricing

IEOR E4703: Monte-Carlo Simulation

From Discrete Time to Continuous Time Modeling

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

1.1 Basic Financial Derivatives: Forward Contracts and Options

Exam Quantitative Finance (35V5A1)

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

MSc in Financial Engineering

Math 416/516: Stochastic Simulation

1 Implied Volatility from Local Volatility

AMH4 - ADVANCED OPTION PRICING. Contents

FE610 Stochastic Calculus for Financial Engineers. Stevens Institute of Technology

Stochastic Modelling in Finance

DRAFT. 1 exercise in state (S, t), π(s, t) = 0 do not exercise in state (S, t) Review of the Risk Neutral Stock Dynamics

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

Final Exam Key, JDEP 384H, Spring 2006

AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO Academic Press is an Imprint of Elsevier

Gamma. The finite-difference formula for gamma is

Risk Neutral Valuation

PDE Methods for the Maximum Drawdown

Monte Carlo Methods for Uncertainty Quantification

Department of Mathematics. Mathematics of Financial Derivatives

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

Barrier Option. 2 of 33 3/13/2014

Option Pricing Models for European Options

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

The Black-Scholes Equation

FINANCIAL OPTION ANALYSIS HANDOUTS

Estimating the Greeks

The Black-Scholes Model

Advanced Numerical Methods

Exercises for Mathematical Models of Financial Derivatives

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

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

Bluff Your Way Through Black-Scholes

MAFS5250 Computational Methods for Pricing Structured Products Topic 5 - Monte Carlo simulation

Module 10:Application of stochastic processes in areas like finance Lecture 36:Black-Scholes Model. Stochastic Differential Equation.

Monte Carlo Methods for Uncertainty Quantification

MAFS Computational Methods for Pricing Structured Products

Computing Greeks with Multilevel Monte Carlo Methods using Importance Sampling

A new approach for scenario generation in risk management

Reading: You should read Hull chapter 12 and perhaps the very first part of chapter 13.

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

MSC FINANCIAL ENGINEERING PRICING I, AUTUMN LECTURE 6: EXTENSIONS OF BLACK AND SCHOLES RAYMOND BRUMMELHUIS DEPARTMENT EMS BIRKBECK

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

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

The Black-Scholes PDE from Scratch

23 Stochastic Ordinary Differential Equations with Examples from Finance

25857 Interest Rate Modelling

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

Exact Sampling of Jump-Diffusion Processes

Financial Engineering MRM 8610 Spring 2015 (CRN 12477) Instructor Information. Class Information. Catalog Description. Textbooks

M5MF6. Advanced Methods in Derivatives Pricing

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

MFE/3F Questions Answer Key

The Uncertain Volatility Model

Utility Indifference Pricing and Dynamic Programming Algorithm

Volatility Smiles and Yield Frowns

TEST OF BOUNDED LOG-NORMAL PROCESS FOR OPTIONS PRICING

Binomial model: numerical algorithm

OPTIMAL PORTFOLIO CONTROL WITH TRADING STRATEGIES OF FINITE

MOUNTAIN RANGE OPTIONS

Non-semimartingales in finance

Market Volatility and Risk Proxies

Transcription:

King s College London University Of London This paper is part of an examination of the College counting towards the award of a degree. Examinations are governed by the College Regulations under the authority of the Academic Board. PLACE this paper and any answer booklets in the EXAM ENVELOPE provided Candidate No:................................ Desk No:....................... MSc Examination Numerical and Computational Methods in Finance Summer 2017 Time Allowed: Two Hours All questions carry equal marks. Full marks will be awarded for complete answers to FOUR questions. If more than four questions are attempted, then only the best FOUR will count. NO calculators are permitted. TURN OVER WHEN INSTRUCTED 2017 c King s College London DO NOT REMOVE THIS PAPER FROM THE EXAMINATION ROOM

1. (i What does it mean to say that a trader sells a call option on a stock and then hedges their exposure using the discrete-time delta-hedging trading strategy? [20%] Answer: (Bookwork. It means that at fixed time points t i, they invest in stock and a risk free bank account to ensure that the total delta of their portfolio, computed using the Black Scholes formula, is equal to zero. (ii Suppose that a trader does pursue this investment strategy and rehedges at a finite number of time points t i. Derive the difference equations you would use to simulate the outcome of this strategy. Answer: (Bookwork. Let b i denote the bank balance at time point i, S i, the stock price at time i, i the delta. At the initial time: At intermediate times: At the final time: b 0 = P i S i b i = e r(t i t i 1 b i 1 ( i i 1 S i b n = e r(tn t n 1 b n 1 + n 1 S i (S n K + [30%] (iii Explain what is meant by a utility function and describe how you would estimate the trader s expected utility. [20%] Answer: (Similar to Bookwork. A utility function is a function f : R R which assigns to a final portfolio value V, a value f(v which indicates how happy the investor is with this outcome. The function is usually assumed to be increasing because profit is better than loss and concave to indicate risk-aversion. To compute the expected utility, simply simulate delta hedging repeatedly and compute the at the final time. The sample mean is an unbiased estimator for the expected utility. (iv How would you estimate the accuracy of your calculation of the expected utility? [10%] Answer: (Similar to Bookwork. The sample standard deviation can be used to estimate the population standard deviation, σ, of the utility. By the central limit theorem, the sample mean will be approximately normally distributed with standard deviation 1 σ. N - 2 - See Next Page

(v Suppose that the stock follows the Black-Scholes model and that the trader re-hedges at N evenly spaced time points. Is it always true that the trader s expected utility will increase as n? Justify your answer. [20%] Answer: (Unseen. No. The delta hedging strategy is risk free in the limit, so one expects the utility to converge to the utility of a bond purchase. The delta hedging strategy with a single time step involves investing in a mixture of the stock and the bond. The expected utility of this depends upon the drift of the stock, but for at least some drifts and utility functions, stock investments will be preferable to bond investments, in which case the utility will be higher when N = 2 than it is as N. - 3 - See Next Page

2. (i A stock price process S t follows geometric Brownian motion ds t = S t (µ dt + σ dw t write a MATLAB function to simulate M price paths at the N + 1 evenly spaced points S 0, S δt, S 2δt,... S T where δt = T N. [30%] Answer: (Bookwork. function [ S, times ] = generatebspaths(... T, S0, mu, sigma,npaths, nsteps dt = T/nSteps; logs0 = log( S0; W = randn( npaths, nsteps ; dlogs = (mu-0.5*sigma^2*dt + sigma*sqrt(dt*w; logs = logs0 + cumsum( dlogs, 2; S = exp(logs; times = dt:dt:t; end (ii Describe how you would use this code to approximate the risk-neutral price of a discrete-time Knock-out call option with strike K, maturity T and barrier B > S 0 in the Black Scholes model by the Monte Carlo method. (Recall that by definition of this option, if at any time iδt where i {0, 1, 2,..., N} the price is above the barrier B the option will have a payoff of zero. Otherwise its payoff is given by max{s T K, 0}. [20%] Answer: (Bookwork. First simulate M price paths in the risk neutral measure (i.e. set µ = r. Compute the payoff for each price path by first computing the maximum along each price path. If this is greater than B the payoff is zero, otherwise the payoff is max{s T K, 0}. Now compute the mean payoff, M. The price is e rt M. (iii How would you estimate the error in your answer? [10%] Answer: (Bookwork. One would estimate the standard deviation of the payoff using the sample standard deviation of the payoffs ˆσ. The error will be normally distributed with standard deviation 1 M ˆσ. (iv How would you apply the control variate method to decrease the error in your answer? [30%] Answer: (Unseen. I would use a vanilla European call option with the same - 4 - See Next Page

strike is a control variate as this can be priced analytically. The price of the knock out option can be estimated as the mean of e rt P K + c(e rt P C b where P K is the payoff of the knockout option in a given scenario, P C is the payoff of the vanilla call option and b is the Black Scholes price of the vanilla call option. The value of the parameter c can be chosen to minimize the sample variance of this estimate by taking c = Cov(P K, P C Var(P C (v Suppose that simple Monte Carlo with 100, 000 samples is accurate to within 2 cents and that using the control variate method with the same number of samples the answer is accurate to within 1 cent. Estimate how many samples would be needed to make the simple Monte Carlo method as accurate as the control variate method. Explain your answer. [10%] Answer: (Unseen. One would need 400, 000 samples as the error is proportional to 1 N. - 5 - See Next Page

3. (i Define the term pseudo square root. [10%] Answer: (Bookwork. A pseudo square root of a symmetric matrix M is a matrix L such that LL T = M. (ii Define the term Cholesky decomposition. [10%] Answer: (Bookwork. The Cholesky decomposition of a positive definite symmetric matrix M is the unique pseudo square root of M with positive diagonal. (iii Let N 1, N 2 and N 3 be independent Gaussian random variables of mean 0 and standard deviation 1. Suppose that X 1, X 2 and X 3 are random variables defined by: X 1 = 2N 1 + N 3 X 2 = 3N 2 X 3 = N 1 + 4N 2 + N 3. What is the covariance matrix of (X 1, X 2, X 3? [20%] Answer: (This question and the next is easy if the student realises they should use matrix notation, but this is an unseen question and I expect this will not be obvious to many students. We calculate the covariance matrix as: 2 0 1 0 3 0 1 4 1 2 0 1 0 3 4 1 0 1 = 5 0 3 0 9 12 3 12 18 (iv Write down two distinct pseudo square roots of this covariance matrix. [20%] Answer: (Unseen. 2 0 1 0 3 0 1 4 1 and 2 0 1 0 3 0 1 4 1 (v In the Markowitz model, assets returns over a time period T are assumed to be normally distributed with covariance matrix Σ and mean vector µ. Explain how the Cholesky decomposition could be used to simulate asset returns in this model. [20%] Answer: (Bookwork. Let L be a pseudo square root of Σ. Simulate a vector n of independent normally distributed random variables of mean 0 and standard deviation 1, then µ + Ln will have the desired distribution. - 6 - See Next Page

(vi Prove that there is no real valued square matrix L such that LL T = ( 1 0 0 1 Answer: This is an unseen test that the student understands the relevance of positive definiteness. Let x be any vector and L any matrix then x T LL T x = L T x 2 0 for all x. However ( 1 0 ( 1 0 0 1 ( 1 0 = 1 0. So taking x = ( 1 0 we see that ( 1 0 0 1 cannot be written as LL T for any L. [20%] - 7 - See Next Page

4. (i Let X t be a stochastic process which solves the SDE dx t = ( 1 + X 2 t + 1 2 X t ( dt + 1 + X 2 t dw t, X 0 = 0 where W t is Brownian motion. Write down the Euler scheme for X t. [20%] Answer: (Similar to Bookwork. X t+δt = X t + ( 1 + X 2 t + 1 2 X t δt + ( 1 + X 2 t (δtɛt, X 0 = 0 where ɛ t is normally distributed with mean 0 and variance 1. (ii Show that X t = sinh(t + W t. [20%] Answer: (Unseen. Simply apply Itô s lemma and the uniqueness of solutions to SDEs whose coefficients are smooth with linear growth bounds. (iii How would you simulate X t in practice? Write a MATLAB function that produces a matrix of M simulations of X t over a time interval T with N time steps. [30%] Answer: (Similar to bookwork. function X = simulatex ( T, N, M dt = T/N; epsilon = sqrt (dt * randn (N,M; tplusw = cumsum ( dt + epsilon ; X = sinh ( tplusw ; end (iv Describe a graph you could plot to test how rapidly the Euler scheme for X t converges to the true solution of the stochastic differential equation. Briefly describe how you could produce this graph in MATLAB. What result would you expect? [30%] Answer: (Bookwork. Simulate X t using the Euler scheme and using the function given above. Take the difference of the simulated values at the final time T and then square this to get an error estimate value e for each simulation. Now compute the root mean squared value of e for a large number of simulations. Plot a log-log plot of the root mean squared error against N. One would expect this graph to look roughly linear and to have a slope of 1. 2-8 - See Next Page

5. (i The backwards heat equation is u t = 2 u σ2 x. 2 You are given the condition u(x, T = f(x where f is a piecewise smooth bounded real function, and wish to solve this equation numerically using the explicit finite difference method. Derive the difference equations you would use to find the solution to the backward heat equation at time 0. [30%] Answer: (Bookwork. Students should draw the stencil for the explicit method. Write u i,j as short-hand for u(iδt, jδx. u t u(t, x u(t δt, x δt 2 u u(t, x δx 2u(t, x + u(t, x + δx x2 (δx 2 Hence the difference equations used are: = u i,j u i 1,j δt u i 1,j = u i,j + σ 2 δt δx 2 (u i,j 1 2u i,j + u i,j+1 = u i,j 1 2u i,j + u i,j+1 (δx 2 (ii Explain briefly how solving the heat equation can be used to price derivatives in the Black Scholes model with an interest rate of 0. [20%] Answer: (Bookwork. The risk-neutral price process is geometric Brownian motion with drift 0. Hence the log of the stock price s t obeys the SDE: ds t = σ2 2 dt + σdw t Thus the process s t σ2 t is the Brownian motion W 2 T. By Feynman Kac, we can calculate the expected value of a function of Brownian motion by solving the bnckward heat equation with this function as final condition. A European derivative whose payoff is a function of S T can be rewritten to express the payoff in terms of W T. Hence the expected payoff in the risk neutral measure can be computed by solving the heat equation with the expected payoff as boundary condition. (iii When is the explicit finite difference method stable? [10%] Answer: (Bookwork. When 1 2σ 2 δt (δx 2 0-9 - See Next Page

(iv Give a probabilistic interpretation of the difference equations you derived in the first part of the question. [20%] Answer: (Bookwork. If one approximates Brownian motion on the same grid with a process that over each time interval δt can move up δx with probability σ 2 δt(δx 2, down with the same probability and remain at the same x value with probability 1 2σ 2 δt, then our finite difference equation gives (δx 2 the expected value of u at time t δt in terms of the values of u at time t. This probabilistic interpretation is only valid if the stability condition: 1 2σ 2 δt (δx 2 0 holds since we require that probabilities are positive. (v Let δt be the time step used for finite difference method and δx the space step. Suppose we wish to compute u(0, T for some fixed time T. Let u N (0, 0 denote the value computed by using the finite difference method with δt = δx = T. Show that in this case we can find a function f such N that u N (0, 0 does not converge to the correct answer as N. [20%] Answer: (Bookwork but very unlike any questions asked in previous years. Suppose that f is equal to 0 on the interval [ T, T ] and equal to 1 outside this interval. The expectation of f(w t is strictly positive, yet the only terms in the finite difference scheme that affect the value of u at (0, 0 are contained in the triangle with vertices (0, 0, (T, T, ( T, T. Hence the explicit finite difference scheme will estimate the value of f to be zero for all N. Hence it cannot possibly converge. - 10 - Final Page