[Solved] MA 573 -Computational Methods of Mathematical Finance Assignment 9

$25

File Name: MA_573_-Computational_Methods_of_Mathematical_Finance__Assignment_9.zip
File Size: 631.14 KB

SKU: [Solved] MA 573 -Computational Methods of Mathematical Finance – Assignment 9 Category: Tag:
5/5 - (1 vote)
  1. (a) Write a Python code to implement the solver for a tridiagonal matrix-vector system of linear equations, Ax = b.

(b) Modify the solving algorithm such that it can handle also the generalized tridiagonal matrices of the form

000 00 00 00 00000 0000 0000 0 0 0 0

as they arise when implementing boundary conditions, either linearly or from non-central difference quotients.

Context: The solver should be written in a separate file, such that the program takes as input the matrix tridiagonal/generalized tridiagonal A and the vector b. Best implement a check that the algorithm runs only if the matrix has the correct structure and produces an error message otherwise. As many remaining problems will use this program, please test it extensively (e.g., by checking Ax = b by multiplication) to make sure not to have errors in.

2

  1. Price a European all option (ST K)+ by using an explicit finite difference scheme for the BlackScholes PDE

for S0 = 100, = 20%, r = 3%, T = 1 and K = 115. Use 1000 space discretization point on the interval [0,200] and implement the explicit boundary condition at 0 and a linearity boundary condition at 200. Calculate the price for (a) 20, (b) (50), (c) 100, (d) 500 time discretization steps and compare it to the price explicitly calculated by the Black-Scholes formula.

  1. Exactly the same as problem 2., but use now the Crank-Nicolson scheme instead of the explicit one.
  2. Consider the finite difference scheme

(similar to HW 8). Assume that you want to use it to solve the system of ODEs

numerically (ignoring the issue for the first step, which can e.g. be implemented by an implicit scheme).

  • Find the shift polynomial associate to the finite difference scheme.
  • Find the roots of the shift polynomial.
  • Calculate the amplification factors im for all eigenvalues i of A.
  • Assuming that the eigenvalues are all in the interval [min,max], under which condition on t is the finite difference scheme stable?

6 points per problems

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] MA 573 -Computational Methods of Mathematical Finance Assignment 9
$25