Hints on Some of the Exercises

Similar documents
Chapter 3: Black-Scholes Equation and Its Numerical Evaluation

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

MATH3075/3975 FINANCIAL MATHEMATICS TUTORIAL PROBLEMS

Chapter 5 Finite Difference Methods. Math6911 W07, HM Zhu

Tangent Lévy Models. Sergey Nadtochiy (joint work with René Carmona) Oxford-Man Institute of Quantitative Finance University of Oxford.

IEOR 3106: Introduction to Operations Research: Stochastic Models SOLUTIONS to Final Exam, Sunday, December 16, 2012

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

Characterization of the Optimum

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

Quasi-Monte Carlo for Finance

Probability. An intro for calculus students P= Figure 1: A normal integral

Introduction to Probability Theory and Stochastic Processes for Finance Lecture Notes

1.1 Basic Financial Derivatives: Forward Contracts and Options

ELEMENTS OF MONTE CARLO SIMULATION

Numerical schemes for SDEs

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

Math 416/516: Stochastic Simulation

"Pricing Exotic Options using Strong Convergence Properties

Chapter 14 : Statistical Inference 1. Note : Here the 4-th and 5-th editions of the text have different chapters, but the material is the same.

Lecture Quantitative Finance Spring Term 2015

[D7] PROBABILITY DISTRIBUTION OF OUTSTANDING LIABILITY FROM INDIVIDUAL PAYMENTS DATA Contributed by T S Wright

Topic #1: Evaluating and Simplifying Algebraic Expressions

Change of Measure (Cameron-Martin-Girsanov Theorem)

8.1 Estimation of the Mean and Proportion

Saddlepoint Approximation Methods for Pricing. Financial Options on Discrete Realized Variance

3.1 Itô s Lemma for Continuous Stochastic Variables

M5MF6. Advanced Methods in Derivatives Pricing

1 Overview. 2 The Gradient Descent Algorithm. AM 221: Advanced Optimization Spring 2016

Richardson Extrapolation Techniques for the Pricing of American-style Options

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

Yao s Minimax Principle

PAPER 27 STOCHASTIC CALCULUS AND APPLICATIONS

1 The continuous time limit

Lecture 23: April 10

SPDE and portfolio choice (joint work with M. Musiela) Princeton University. Thaleia Zariphopoulou The University of Texas at Austin

The stochastic calculus

The Intermediate Value Theorem states that if a function g is continuous, then for any number M satisfying. g(x 1 ) M g(x 2 )

Week 2 Quantitative Analysis of Financial Markets Hypothesis Testing and Confidence Intervals

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

Chapter 2 Rocket Launch: AREA BETWEEN CURVES

2-4 Completing the Square

From Discrete Time to Continuous Time Modeling

CS227-Scientific Computing. Lecture 6: Nonlinear Equations

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

13.3 A Stochastic Production Planning Model

LECTURE 2: MULTIPERIOD MODELS AND TREES

Practical example of an Economic Scenario Generator

Course information FN3142 Quantitative finance

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

Pricing Dynamic Solvency Insurance and Investment Fund Protection

Using Monte Carlo Integration and Control Variates to Estimate π

MATH 181-Quadratic Equations (7 )

Non-semimartingales in finance

An Introduction to Point Processes. from a. Martingale Point of View

Advanced Numerical Methods

Optimal trading strategies under arbitrage

Aspects of Financial Mathematics:

Barrier options. In options only come into being if S t reaches B for some 0 t T, at which point they become an ordinary option.

Computational Finance. Computational Finance p. 1

2) Endpoints of a diameter (-1, 6), (9, -2) A) (x - 2)2 + (y - 4)2 = 41 B) (x - 4)2 + (y - 2)2 = 41 C) (x - 4)2 + y2 = 16 D) x2 + (y - 2)2 = 25

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

Optimal stopping problems for a Brownian motion with a disorder on a finite interval

6. Continous Distributions

King s College London

CHOICE THEORY, UTILITY FUNCTIONS AND RISK AVERSION

arxiv: v1 [q-fin.pm] 13 Mar 2014

CHAPTERS 5 & 6: CONTINUOUS RANDOM VARIABLES

Geometric tools for the valuation of performance-dependent options

Chapter 2 Uncertainty Analysis and Sampling Techniques

Interpolation. 1 What is interpolation? 2 Why are we interested in this?

MATH 425 EXERCISES G. BERKOLAIKO

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

Exam M Fall 2005 PRELIMINARY ANSWER KEY

Option Pricing Models for European Options

FINANCIAL OPTION ANALYSIS HANDOUTS

Asymptotic results discrete time martingales and stochastic algorithms

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

THE TRAVELING SALESMAN PROBLEM FOR MOVING POINTS ON A LINE

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

Sublinear Time Algorithms Oct 19, Lecture 1

SYSM 6304 Risk and Decision Analysis Lecture 2: Fitting Distributions to Data

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

Regression estimation in continuous time with a view towards pricing Bermudan options

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

Price manipulation in models of the order book

Continuous Distributions

MATH 121 GAME THEORY REVIEW

Value of Flexibility in Managing R&D Projects Revisited

a 13 Notes on Hidden Markov Models Michael I. Jordan University of California at Berkeley Hidden Markov Models The model

Forward Dynamic Utility

Logarithmic derivatives of densities for jump processes

Trinomial Tree. Set up a trinomial approximation to the geometric Brownian motion ds/s = r dt + σ dw. a

Introduction Taylor s Theorem Einstein s Theory Bachelier s Probability Law Brownian Motion Itô s Calculus. Itô s Calculus.

last problem outlines how the Black Scholes PDE (and its derivation) may be modified to account for the payment of stock dividends.

1 Geometric Brownian motion

Exam in TFY4275/FY8907 CLASSICAL TRANSPORT THEORY Feb 14, 2014

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

Market interest-rate models

Outline. 1 Introduction. 2 Algorithms. 3 Examples. Algorithm 1 General coordinate minimization framework. 1: Choose x 0 R n and set k 0.

Lévy models in finance

Transcription:

Hints on Some of the Exercises of the book R. Seydel: Tools for Computational Finance. Springer, 00/004/006/009/01. Preparatory Remarks: Some of the hints suggest ideas that may simplify solving the exercises significantly. Hence one should first try to solve the exercise without a hint. In any case one should argue why the hint may be reasonable. The exercises differ strongly in their degree of difficulty. Several of the exercises appear so simple that no hint is given. For some exercises, the hint on the solution is incorporated into the assignment. Hints on Exercise 1.1: The assumed scenario implies for the value Π(t) of the portfolio Π = S +V P V C. In this way Π(T) is determined, which must be discounted. Hints on Exercise 1.: You find the final transformation in Section 4.1. This exercise suggests a constructive way to derive the transformation. Actually the transformation consists of several transformations. The terms of the type S ν ν V S ν suggest a transformation to constant coefficients. One possibility is to introduce a new independent variable x by S = e x. But one should prefer S = Ke x for better scaling. The backward running time t transforms by t = t to a forward running time t. This is just a basic version of the time transformation. Modifications and suitable scalings may lead to artificial time variables t (or τ) with different properties. The scaling t = 1 σ t leads to coefficients α and β that only depend on the dimensionless parameter r/σ. We suggest to introduce an artificial time variable τ via t = T τ 1 σ. The involved additional translation by T maps the terminal condition for t = T to an initial condition for τ = 0. The transformation of the assignment in b) allows to eliminate the terms αv and βv by choosing suitable γ and δ. 1

Hints on Exercise 1.3: Make use of F(0) = 1 ( It remains to calculate erf to show first F(x) = 1 ( )) x 1+ erf(. x ). The integral erf(z) for z = x is approximated numerically by quadrature methods. This is easily done using trapezoidal sums. Extrapolation should be applied to obtain high accuracy. Both are introduced in Appendix A4 (C1 in third edition). Hints on Exercise 1.4: The derivation of the alternative formula for s M is simple calculus. The recursion follows from a suitable definition of the α i and β i as partial sums. For the rounding error analysis use the overbar to designate values subjected to rounding errors. For example, the formula ζ i := x i α i 1 i leads to ζ i = (x i α i 1 )(1+σ i )(1+δ i )/i, where σ i is the relative error of the subtraction, and δ i that of the division. Both errors σ i and δ i are bounded by the relative machine precision eps, σ i < eps, δ i < eps. In the computer, a quadratic term σ i δ i is not visible compared to eps, and hence can be neglected. So, up to first order we have where the symbol result satisfies ζ i. = ζi (1+σ i +δ i ),. = stands for first order. In summary, the rounding error-subjected ζ i. = ζi (1+γ i ), with γ i = δ i +σ i eps. Weconclude that therelativerounding error γ i ofthe formula for ζ i is small as long as the numbers x i and α i 1 are regarded free of error. But since x i and α i 1 import an initial error into the i-th loop, the relative error in ζ i can become large because of cancellation. The error bound then involves a term with x i α i 1 in the denominator. (Why?) The further propagation of the error in ζ i can become disturbing when α i is calculated and α i 0, even in case ζ i 0. When the β i are calculated, the algorithm benefits from the fact that only non-negative numbers are added. The possible cancellation in the calculation of x i α i 1 has little effect on the final result s M. (Try to find a proper argument for this claim.)

Hints on Exercise 1.11: Start from X t = W t and find the coefficients a and b by comparison with equation (1.31) /Definition 1.10. Apply Itô s lemma to derive ( dy = exp x t ) dw. For the assignment b) start from the result of a) and use g(x,t) = x. Hints on Exercise 1.1: Since both assignments a) and b) are proved in an analogous way, it may suffice to prove one of the two assignments, say b): A first substitution is y = log(s/s 0 ). To save scratch paper, use the abbreviation t := t t 0. With suitable manipulations bring the integrand to the form exp { u(y)+ t(σ +µ) } ; the function u(y) is obtained in this way. For such an integrand, the next substitution is standard. The final step is to make use of e u du = π. Hints on Exercise 1.13: Assignment d): Use the information of equation (1.34). Hints on Exercise 1.16: In Figure 1.4 (c), the horizontal middle part has the value 0. Hints on Exercise.1: Set up a list of possible pairs of integers (z 0,z 1 ), for which z 0 + z 1 = 0 mod 11 holds. For each pair investigate the number of parallel straight lines in the (U i 1,U i )-plane that touch the unit square and satisfy z 0 U i 1 +z 1 U i = c ZZ. Hints on Exercise.: Express N i+1 in dependence on N i. Then do the same with N i+ and substitute into N i+ 6N i+1 +9N i. 3

Hints on Exercise.3: For motivation test the assertions by means of the example of Exercise.1. The assignment b) uses the result of a). As a simplification show b) first for the two-dimensional case (m = ). Hints on Exercise.4: Recall the properties of a random variable U that is uniformly distributed on the interval a u b: Its expectation is 1 1 (a+b), and its variance is 1 (b a). Hints on Exercise.6: Realize that a zero of G is zero of the numerator of the rational function, and a pole of G (vertical tangent) is zero of the denominator. If a rational function satisfies a point symmetry and involves only one parameter, then its formula has a simple form. The general ansatz is n ũ a l ũ l l=0 1 G(u) =, with ũ := u m b l ũ l l=0 Hints on Exercise.7: The transformation of Exercise.7 maps the unit disc to the unit square. (Correction: first line, replace: on [ 1,1] by: on the unit disk) In order to satisfy 0 X 1, several branches of arctan are required. In order to obtain a uniform distribution on the unit disc D, all outside pionts (U 1,U ) are discarded, where U 1 and U are uniformly distributed on [ 1,1]. The density of the remaining points in D is the inverse of the area, 1 for (V 1,V ) D f(v 1,V ) = π 0 elsewhere. The rest follows from the transformation (Theorem.11). Hence the inverse function must be determined first. The density on the unit square again equals the inverse of the area. Hints on Exercise.9: Following Algorithm.14, the required transformation is AZ, with Σ = AA tr. For the frequently used special case n = it is worthwhile to derive an explicit solution formula. To this end set ( ) a 0 A = b c and calculate a,b and c from ρ, σ 1 and σ. 4

Hints on Exercise.1: In the definition of the discrepancy the supremum (viz the smallest upper bound) is taken of expressions of the form d := α β, for 0 α,β 1. This reasoning leads to a). For b) show the left-hand inequality D N D N first. Motivate the right-hand inequality by menas of the case m = 1. For general m apply the fact that each rectangle that is parallel to the axes, can be represented as a combination of m rectangles Q. For m = we suggest a graphical illustration. For c) analyze the saw-tooth function d and the height of its jumps. Hints on Exercise 3.: It is recommendable to use the abbreviation W j := W tj+1 W tj. Whereas proving a) only requires basic calculus, the assertion in b) needs stochastic analysis. For n the left-hand side of the assertion a) converges in the square mean to the stochastic integral t 0 W s dw s of equation (3.9). (This is not part of the assignment.) The remaining step in the proof of b) amounts to show that the final sum in a) converges to t in the mean. After carrying out themultiplicationsof(σ j Wj t), splitoffthesum Σ j Wj 4. Incorporatetheexpectation and use the formula E( Wj 4) = 3 t j for the fourth moments of a normal deviate. Finally you reach n E Wj t n = t j, which converges to 0 for n. j=1 j=1 Hints on Exercise 3.3: t := t t 0 Hints on Exercise 3.1: The parabola is defined by the intersection of its left branch with the S-axis. Hints on Exercise 4.1: a) The model Ṡ = δs, S(1) = S(0) D > 0 defines a continuous dividend flow with rate δ. (Try to motivate this model assumption.) By means of the solution of this differential equation one obtains a simple formula for δ depending on the ratio D/S(0). b) S = 0 is not needed and meaningless. 5

Hints on Exercise 4.3: To show ǫ := y i,ν+1 y iν τ 1 ( δ x y iν +δ xy i,ν+1 ) = O( τ )+O( x ), perform a Taylor expansion about (x i,τ ν ). We suggest to abbreviate fourth-order ( x 4 and t 4 ) and higher-order terms by O( x 4 ) and O( t 4 ), and to summarize them appropriately. Make use of the fact that y solves the differential equation. Hints on Exercise 4.4: Transform the boundary conditions of the (S, t)-world into the (x, τ)-world, and obtain x exp( (q δ +1)+ τ 4 (q δ +1) ) ( x exp (q δ 1)+ τ 4 (q δ 1) ) (case of the call). Hints on Exercise 4.5: The functions g for a put and a call are listed in Section 4.6. Do the derivation only for the put, because the call is analogous. Hints on Exercise 4.8: (In earlier editions, typo in the text before part c): the intrinsic value of a put is K S, and not S K.) Replace in line 3 with high contact to by: contacting. (Because the high is shown by the analysis of this exercise.) Hints on Exercise 4.9: For S > S f use the Lemma of Itô. The drift term is abbreviated by O(dt). Apply arbitrage arguments to answer the final question. Hints on Exercise 5.1: The main work is the construction of the specific spline of assignment a). Instead of using in each subinterval a general ansatz such as α+βx+γx +δx 3, it is recommendable to start on the right (for x > ) with the trivial polynomial 0 and continue at each node x 4 =, x 3 = 1, x = 0,... by adding a polynomial of the type a k ( x k x) 3. (Why?) For example, the polynomial 0 for x > is extended at x 4 = by the polynomial ( x 3 ) in C -smooth way, with a 4 = 1. When x 0 = is reached, the parameters must be determined such that the polynomial 0 for x < is matched in a C -smooth way. 6

Hints on Exercise 5.4: The normal distribution is characterized by the density in (.10). So apply Y 1 := logs 1, Y := logs and continue in the (Y 1,Y )-plane. In the (S 1,S )-plane, the Y-ellipse is distorted. Hints on Exercise 5.5: In a), D and b are defined in equation (5.8). In c), D and b are different from (5.8). Hints on Exercise 5.7: Recall = ( x, y )tr. Use Cramer s rule for the inversion. Hints on Exercise 5.8: Follow the convention to number the vertices of each triangle in the counterclockwise fashion. It does not matter at which vertex you start with the numbering. In b) you better implement your algorithm to make sure that it works correctly. By testing the algorithm you can determine the bandwidth. Hints on Exercise 5.10 (5.4 in earlier editions): First verify for δ := u u I on an arbitrary subinterval the existence of a ζ with δ (ζ) = 0. Let x j be the node that is the closest to ζ. Expand δ about ζ to obtain δ(x j ). For the assignment (b) of the lemma the relation is helpful. δ (x) = x ζ δ (ξ) dξ Hints on Exercise Exercise 6.7: in c) disregard the hint Cexp(...) = B. Replace the numbers at the end by: δ 1 = 0.05, δ = 0.3. For M = 000 an approximation of the American-style option is 0.1303, and for the European-style 0.100. Version 19 June 014 7