Final Exam Key, JDEP 384H, Spring 2006

Similar documents
King s College London

King s College London

Computational Finance Finite Difference Methods

FINITE DIFFERENCE METHODS

Numerical Methods in Option Pricing (Part III)

Chapter 5 Finite Difference Methods. Math6911 W07, HM Zhu

JDEP 384H: Numerical Methods in Business

MAFS Computational Methods for Pricing Structured Products

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

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

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.

MATH60082 Example Sheet 6 Explicit Finite Difference

CS 774 Project: Fall 2009 Version: November 27, 2009

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

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

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

Department of Mathematics. Mathematics of Financial Derivatives

Solving the Black-Scholes Equation

Lecture 4. Finite difference and finite element methods

The Black-Scholes Equation

American Equity Option Valuation Practical Guide

2.1 Mathematical Basis: Risk-Neutral Pricing

Write legibly. Unreadable answers are worthless.

Lecture 4 - Finite differences methods for PDEs

MATH3075/3975 FINANCIAL MATHEMATICS TUTORIAL PROBLEMS

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

A Study on Numerical Solution of Black-Scholes Model

Numerical schemes for SDEs

Derivative Securities

Project 1: Double Pendulum

Solving the Black-Scholes Equation

FE610 Stochastic Calculus for Financial Engineers. Stevens Institute of Technology

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

Exercises for Mathematical Models of Financial Derivatives

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

Math Computational Finance Barrier option pricing using Finite Difference Methods (FDM)

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

Research Article Exponential Time Integration and Second-Order Difference Scheme for a Generalized Black-Scholes Equation

MSc in Financial Engineering

Lecture 3: Review of Probability, MATLAB, Histograms

Equations of Mathematical Finance. Fall 2007

CONVERGENCE OF NUMERICAL METHODS FOR VALUING PATH-DEPENDENT OPTIONS USING INTERPOLATION

Stochastic Modelling in Finance

Exact Sampling of Jump-Diffusion Processes

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

Finite difference method for the Black and Scholes PDE (TP-1)

Extensions to the Black Scholes Model

Finite Element Method

Pricing Barrier Options under Local Volatility

Aspects of Financial Mathematics:

Financial derivatives exam Winter term 2014/2015

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

Lab12_sol. November 21, 2017

Stochastic Differential Equations in Finance and Monte Carlo Simulations

Evaluation of Asian option by using RBF approximation

CHAPTER 10 OPTION PRICING - II. Derivatives and Risk Management By Rajiv Srivastava. Copyright Oxford University Press

AMH4 - ADVANCED OPTION PRICING. Contents

Lecture Quantitative Finance Spring Term 2015

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

Gamma. The finite-difference formula for gamma is

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

CRANK-NICOLSON SCHEME FOR ASIAN OPTION

2.3 Mathematical Finance: Option pricing

MAS3904/MAS8904 Stochastic Financial Modelling

Systems of Ordinary Differential Equations. Lectures INF2320 p. 1/48

CS476/676 Mar 6, Today s Topics. American Option: early exercise curve. PDE overview. Discretizations. Finite difference approximations

IEOR E4703: Monte-Carlo Simulation

An option-theoretic valuation model for residential mortgages with stochastic conditions and discount factors

A Worst-Case Approach to Option Pricing in Crash-Threatened Markets

Homework Set 6 Solutions

Introduction to Financial Mathematics

Option Pricing Models for European Options

Chapter 9 - Mechanics of Options Markets

PDE Methods for the Maximum Drawdown

1 Parameterization of Binomial Models and Derivation of the Black-Scholes PDE.

Infinite Reload Options: Pricing and Analysis

FMO6 Web: Polls:

1.12 Exercises EXERCISES Use integration by parts to compute. ln(x) dx. 2. Compute 1 x ln(x) dx. Hint: Use the substitution u = ln(x).

Financial Risk Management

Some Numerical Methods for. Options Valuation

The Binomial Model for Stock Options

Optimal switching problems for daily power system balancing

Price sensitivity to the exponent in the CEV model

Mathematical Modeling in Economics and Finance: Probability, Stochastic Processes and Differential Equations. Steven R. Dunbar

Option Pricing for Discrete Hedging and Non-Gaussian Processes

FIN FINANCIAL INSTRUMENTS SPRING 2008

Volatility Trading Strategies: Dynamic Hedging via A Simulation

1. In this exercise, we can easily employ the equations (13.66) (13.70), (13.79) (13.80) and

32.4. Parabolic PDEs. Introduction. Prerequisites. Learning Outcomes

Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091)

Computer Exercise 2 Simulation

Pricing American Options Using a Space-time Adaptive Finite Difference Method

KØBENHAVNS UNIVERSITET (Blok 2, 2011/2012) Naturvidenskabelig kandidateksamen Continuous time finance (FinKont) TIME ALLOWED : 3 hours

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

Eco504 Spring 2010 C. Sims FINAL EXAM. β t 1 2 φτ2 t subject to (1)

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

Early Exercise Opportunities for American Call Options on Dividend-Paying Assets

American Options; an American delayed- Exercise model and the free boundary. Business Analytics Paper. Nadra Abdalla

No ANALYTIC AMERICAN OPTION PRICING AND APPLICATIONS. By A. Sbuelz. July 2003 ISSN

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

Transcription:

Final Exam Key, JDEP 384H, Spring 2006 Due Date for Exam: Thursday, May 4, 12:00 noon. Instructions: Show your work and give reasons for your answers. Write out your solutions neatly and completely. There is to be absolutely no consultation of any kind with anyone else other than me about the exam. If there are points of clarification or corrections, I will post them on our message board. ALL materials used in your work that have not been provided by me for this course must be explicitly credited in your write-up. Point values are indicated. You may send an email document (preferably a pdf file, but Word documents will be accepted) or hand in hard copy at my office. Be sure identify yourself as the owner of any document you turn in to me, electronic or hard copy. Point values of problems are indicated for a total of 130 points. (18 pts) 1. Define eigenvalue and give two instances where the eigenvalues of a matrix contain useful information. SOLUTION. (8 pts) An eigenvalue of the square n n matrix A is a number λ for which there exists a nonzero vector x such that Ax = λx. (5 pts each): describe an application such as convergence of iterative process, convergence of numerical PDE method, testing positive definiteness of symmetric matrix. (18 pts) 2. Explain what the differences between American and European call option boundary conditions are and why they differ. SOLUTION. (6 pts, background) A European call option is a contract giving the owner the right to buy a number of shares of a stock from the option writer at a fixed price K (per share), called the strike price, at a fixed time t = T in the future, called the expiry date. Here time t = 0 is the time of sale of the option. The only difference between an American and European option is that the owner of an American option may exercise it at any time up to expiry. The stock in question has price S (per share) as a function of time and may or may not pay dividends, which are assumed to be continuous at a rate D 0. Let C (S,t) be the price of the option at time t with the stock price at S. (6 pts, bc s) We choose a large right boundary value S max which is the practical upper bound on the stock price before expiry, since theoretically there is no bound on stock price. Boundary conditions for a European option are Left boundary condition: C(0,t) = 0. Right boundary condition: Boundary conditions for an American option are Left boundary condition: C(0,t) = 0. Right boundary condition: P(S max,t) = max C(S max,t) = S max e D 0(T t) Ke r(t t). { S max K,S max e D 0(T t) Ke r(t t)}. (6 pts, difference) Left boundary conditions agree because if the value of the stock is zero, a right to purchase at any time is worthless. The reason for the right boundary condition for the European option is that the value of the stock has to be discounted from expiry to present time t due to payment of dividend rates and the strike price K is discounted over the same time period to give the present value of the option 1

price. The reason for the difference in American option is that firstly, the American option should always have value at least as great as the price of a European option since it may be exercised at earlier times and secondly, this value should always at least match the payoff curve since it will be executed if the price hits the payoff curve to ensure no loss. There is no discounting from the payoff curve since the American option will be exercised at an earlier date if the payoff curve is met or for that matter, any other reason. (18 pts) 3. Exhibit and explain the meaning of the error term in Crank-Nicolson method, given that it converges. In particular, if you computed with a particular step size for x and t and wanted to halve the error, how would you change the step size? SOLUTION. (10 pts) The error term is given in the notes for Crank-Nicolson (given that it converges) is given to be u true ( xi,t j ) ui, j = O ( δt 2 + δx 2). Here u i, j is our approximation to u true ( xi,t j ) computed by the Crank-Nicolson method. What this means is that there is a constant K, independent of step sizes δt, δx in time and space and indices i, j such that u true ( xi,t j ) ui, j K ( δt 2 + δx 2) as δt,δx 0. (8 pts) In particular, this means that if we take the inequality to be an approximate equality, and we want to cut the error in half, then all we have to do is reduce both δt and δx by a factor of 1/ 2, since ( ( ) δt 2 ( ) ) δx 2 K + = 1 2 2 2 K ( δt 2 + δx 2), which cuts the error in half. (16 pts) 4. We use the terms forward and backward time in discussing Black-Scholes equations for option prices. Explain what this means and how it is a useful idea. SOLUTION. (6 pts) The term forward time refers to real time, call it τ, where we measure time from the purchase time of the option, τ = 0 forward to expiry time τ = T. On the other hand backward time t is given by the formula t = T τ. (10 pts) The reason for introducing backwards time is that the option price f (S,τ) does not have the correct PDE context for solving this problem. Specifically, the value of the option is unknown at real time τ = 0, so it is not possible to have initial conditions, which are needed in order to solve the Black-Scholes PDE as an IBVP. However, backwards time t = 0 corresponds to real time τ = T, expiry time. The value of the option is known at that time to be the value of the payoff curve. Hence changing variables from (S,τ) to (S,t) allows us an initial condition for the PDE. Thus the problem becomes a well-posed problem. It also changes Black-Scholes to a PDE that is very much like the heat equation. (20 pts) 5. Consider a European call option on a dividend paying stock with volatility σ = 0.4, dividend rate D 0 = 0.04, risk-free interest rate r = 0.06 and time to expiry T = 6/12, six months. Plot the price of the option at six, four and two months before expiry. Locate (approximately) where the stock crosses the payoff curve at those three times. As you move close to expiry, how does the crossover point appear to move? SOLUTION. The strike price will be assumed to be 50, since it was not specified. We ran this script to get a plot for zooming, which does give ok answers, but found that it was more accurate to use Matlab s find function to determine the crossover point. You could have done the same thing by simply inspecting the vector C - Payoff below and looking for the change in sign. Script and graph follow: % script: finexer_5.m disp('exercise 5: European call with dividends') K = 50 2

sigma = 0.4 r = 0.06 D0 = 0.04 T = 6/12 M = 721 Smax = 120 Snodes = linspace(50,smax,m)'; % can't cross payoff curve below S=50 Payoff = max(snodes-k,0); figure(1) plot(snodes,payoff); grid, hold all Cross = zeros(5,3); for j = 1:5 C = bseurcall(snodes,k,r,t,j/12,sigma,d0); ndx = find(c<payoff); disp('time:') disp((j-1)/12) Cross(j,1) = (j-1)/12; disp('crossover node:') disp(snodes(ndx(1))) Cross(j,2) = Snodes(ndx(1)); disp('option value:') disp(c(ndx(1))) Cross(j,3) = C(ndx(1)); plot(snodes,c); end title('exercise 5: European call with dividends'); xlabel('stock Price') ylabel('option Price') legend('\tau = 0','\tau = 2/12', '\tau = 4/12', '\tau = 6/12 (expiry)'); figure(2) grid,hold all plot(cross(:,1),cross(:,2:3)) title('exercise 5: Crossover Points and Option Price') xlabel('time') ylabel('crossover Point/Option') The output from the script is as follows: finalexer_5 Exercise 5: European call with dividends K = 50 sigma = 0.4000 r = 0.0600 D0 = 0.0400 T = 0.5000 M = 721 Smax = 3

120 Time: 0 Crossover node: 83.1528 Option value: 33.1496 Time: 0.0833 Crossover node: 81.3056 Option value: 31.3035 Time: 0.1667 Crossover node: 79.1667 Option value: 29.1657 Time: 0.2500 Crossover node: 76.8333 Option value: 26.8328 Time: 0.3333 Crossover node: 75.0833 Option value: 25.0832 Graphs generated: 4

We conclude from this output that that the crossover point and the price of the option are both decreasing as we move towards expiry. One could graph both against time and see that the movement of crossover point and price at crossover are not quite linear, but nearly so. (20 pts) 6. Use CrankNicolsonSORLC.m to find the price of an American put five months before expiry, where the strike price is K = 50, volatility σ = 0.35, risk-free interest rate is 5.5%. Do the same with ExplicitEulerLC.m and find suitable parameters that give a reasonably close plot. Then plot the difference between the two answers. SOLUTION. Here is the script used to generate the the graphs that follow. Since different values for dt were used, the output of the script is also listed. The script: % script: finalexer_6.m disp('exercise 6, Final: American put') global K; global sigma; global r; 5

global xmax; global xmin; global D0 K = 50 sigma = 0.35 r = 0.055 xmax = 100 xmin = 0 D0 = 0.0 M = 200 dx = (xmax-xmin)/m xnodes = linspace(xmin,xmax,m+1)'; T = 5/12 dt = dx^2/2400 % for explicit Euler NE = round(t/dt) % now adjust dt so that T=N*dt more accurately dt = T/NE % now fix needed functions using globals before proceeding solne = ExplicitEulerLC(xmin,xmax,M,NE,dt,'cDiffus','vVelocity','kRate','fLeftBdy', 'grightbdy', dt = T/M; % for Crank Nicolson SOR NC = round(t/dt) % now adjust dt so that T=N*dt more accurately dt = T/NC tol = 0.0001 omega = 1.4 solnc = CrankNicolsonSORLC(xmin,xmax,M,NC,dt,'cDiffus','vVelocity','kRate','fLeftBdy', 'grightbd figure(1),grid,hold on plot(xnodes,[solne(:,[1,ne+1]),solnc(:,nc+1)]) title('final Exam Question #6: American Calls with Euler and Crank-Nicolson SOR') xlabel('stock price') ylabel('option price') legend('payoff Curve','ExplicitEulerLC','CrankNicolsonSORLC'); figure(2),grid,hold off plot(xnodes,solne(:,ne+1) - solnc(:,nc+1)) title('difference Between Euler and Crank-Nicolson SOR Values') xlabel('stock price at time 0') ylabel('difference') grid The output: finalexer_6 Exercise 6, Final: American put K = 50 sigma = 0.3500 r = 0.0550 xmax = 100 xmin = 0 D0 = 6

0 M = 200 dx = 0.5000 T = 0.4167 dt = 1.0417e-004 NE = 4000 dt = 1.0417e-004 NC = 200 dt = 0.0021 tol = 1.0000e-004 omega = 1.4000 The graphs: 7

(20 pts) 7. Use sample mean Monte Carlo integration with unmodified variates to estimate sin 2 (x) 1 + x 2 e x2 /2 dx to an error at most 0.01 at the 95% confidence level. Calculate the confidence interval. SOLUTION. We follow the instructions outlined in the notes, which are as follows: Write integral as outside [a,b]. Interpret b a b a g(x) dx = E g(x) dx = b Take N independent samples of X and deduce a g(x) f (x) dx where f (x) is known positive p.d.f. which vanishes f (x) [ ] g(x) where X is r.v. with p.d.f. f (x). f (X) b 8 a g(x) dx 1 N N g(x i ) i=1 f (X i ).

In our situation, the standard normal distribution N (0,1) with p.d.f. f (x) = e x2 /2 / 2π on the interval (, ) jumps out at us. We have g(x) = sin2 (x) 1 + x 2 e x2 /2 and thus [ ] [ ] g(x) g(x) 2π sin 2 (x) g(x) dx = f (x) dx = E = E f (x) f (X) 1 + x 2. Therefore we use a normally distributed sample for X and evaluate it at 2π sin 2 (x), then average. Furthermore, we are asked to have an error of no more than β = 0.01 at the 95% confidence level. As observed in 1+x 2 S(n) the notes, to bound the error by β with the same confidence, require that z 1 α/2 n β. We experimented with the following script until we found a sample size N that worked. Here we used quad to integrate from 10 to 10, since outside this interval, the function is at most 1e 24, to provide us with a good estimate of the true value of the integral. Note: an alternative is to confine attention to a finite interval outside which the integrand is negligible, e.g., [ 6,6], and to use f (x) = 12 1 on that interval, which is the p.d.f. for a uniformly distributed r.v. on [ 6,6] whose variates can be generated by the command X = -6 + 12*rand(N,1); One would then sample the r.v. g(x) = 12g(X), calculate its mean, variance and confidence intervals. f (X) Sample output is listed below. We found N = 3900 to be quite adequate. The script: % script: finalexer_7.m disp('final Exam Exercise 7') disp('sample Mean with Unmodified Variates:') g = @(x) sin(x).^2.*exp(-x.^2/2)./(1+x.^2); gf = @(x) sqrt(2*pi)*sin(x).^2./(1+x.^2); truevalue = quad(g,-10,10) alpha = 0.05; % (1-alpha) confidence level z = stdn_inv(1-alpha/2); randn('seed',0) % reset the counter N = 4000 X = gf(randn(n,1)); % get the mean and variance mu = mean(x); sigma2 = var(x); disp('we require that this number be smaller than bta = 0.01:') H = z*sqrt(sigma2/n) disp('which gives us a confidence interval of:') mu - H, mu + H disp('actual error is:') abs (mu - truevalue) The output: finalexer_7 Final Exam Exercise 7 Sample Mean with Unmodified Variates: truevalue = 0.5011 N = 4000 9

We require that this number be smaller than bta = 0.01: H = 0.0099 which gives us a confidence interval of: ans = 0.4818 ans = 0.5015 Actual error is: ans = 0.0094 diary off 10