Financial Derivatives Toolbox    

Calculating Prices and Sensitivities

The function hjmsens computes the delta, gamma, and vega sensitivities of instruments using an interest rate tree created with hjmtree. It also optionally returns the calculated price for each instrument. hjmsens requires the same two input arguments used by hjmprice, namely HJMTree and HJMInstSet.

hjmsens calculates the dollar value of delta and gamma by shifting the observed forward yield curve by 100 basis points in each direction, and the dollar value of vega by shifting the volatility process by 1%. To obtain the per-dollar value of the sensitivities, divide the dollar sensitivity by the price of the corresponding instrument.

The calling syntax for the function is

Use the previous example data to calculate the price of instruments.

You can conveniently examine the sensitivities and the prices by arranging them into a single matrix.

As with the prices, each row of the sensitivity vectors corresponds to the similarly indexed instrument in HJMInstSet. To view the per-dollar sensitivities, divide each dollar sensitivity by the corresponding instrument price.


  HJM Pricing Options Structure Black-Derman-Toy Model (BDT)