City University of Hong Kong Department of Economics and Finance
Course EF5213 Assignment #2 (due March 7, 2021) 1. Use VBA as programming tool, implement the implicit finite difference method under the Crank-
Nicholson scheme to price an accumulator contract written on a stock with Cox-Ingersoll-Ross volatility structure as (St, t)  St , where St is the underlying stock price at time t. Consider the following input parameters in your implementation :
On option :
r Risk free interest rate
  Volatility factor of the underlying stock
Q  Contract size
{ T1 , T2 ,  , Tn }  Settlement dates of the contract K  Strike price of the contract
L  Knock-out price of the contract
L K
St0
T1 T2 T3  Tn
On precision : imax  Number of steps to maturity
jmax  Size parameter of the tridiagonal matrix
S  Price increment in the lattice
To improve efficiency, use the enclosed SolveAxb routine from Numerical Recipies in solving the
matrix equation Ann xn1  bn1 based on singular value decomposition.
Note : With accumulator, investor agrees and also entitles to buy a certain amount Q of a stock at a fixed price K and at every settlement dates { T1 , T2 ,  , Tn } over a period of time. There is a knock-out price (L  K) that terminates the contract.
 Define time steps ti with imax t  Tn .
 Perform a backward iteration that starts off from Tn with payoff F(Sj , Tn)  Q  ( Sj  K ).  If ti corresponds to a settlement date, ( i.e. ti  12t  Tk  ti  12t for some Tk )
F(Sj L,ti)Fitr(Sj L,ti)Q(Sj K) F(Sj L,ti)Q(Sj K)
where Fitr() is the option vector immediately after the backward iteration  If ti is not a settlement date, F(Sj  L , ti)  Fitr(Sj  L , ti)
F(Sj L,ti)0
 Referring to the transition at boundaries, we have F(S0, ti  1)  b0 F(S0, ti) with b0  ert, and F(Sjmax , ti  1)  bjmax F(Sjmax , ti) with bjmax  1 in this case.
( 50 points ) 
		Programming
	
	
	
	
	
	
	[SOLVED] CS scheme finance City University of Hong Kong Department of Economics and Finance
$25
File Name: CS_scheme_finance_City_University_of_Hong_Kong_Department_of_Economics_and_Finance.zip 
File Size:  772.44 KB 
Only logged in customers who have purchased this product may leave a review.

![[SOLVED] CS scheme finance City University of Hong Kong Department of Economics and Finance](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[SOLVED] COP 3223 Program #2: P2 Lottery](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
 
 
Reviews
There are no reviews yet.