Next: , Previous: , Up: Octave octarisk Classes   [Contents][Index]


4.7 Debt.help

Octarisk Class: object = Debt(id)
Octarisk Class: object = Debt()

Class for setting up Debt objects. The idea of this class is to model baskets (funds) of bond instruments. The shocked value is derived from a sensitivity approach based on Modified duration and convexity. These sensitivities describe the total basket properties in terms of interest rate sensitivity. The following formula is applied to calculate the instrument shock:

   dP
  --- = -D dY + 0.5 C dY^2
   P

If you want to model all underlying bonds directly, use Bond class for underlyings and Synthetic class for the basket (fund).

This class contains all attributes and methods related to the following Debt types:

In the following, all methods and attributes are explained and a code example is given.

Methods for Debt object obj:

Attributes of Debt objects:

For illustration see the following example: Stress values of a debt instrument with average maturity of underlyings of 8.35 years and given duration and convexity are calculated based on 100bp parallel down- and upshift scenarios of a given discount curve. Stress results are [108.5300000000000;91.1969278203125]


c = Curve();
c = c.set('id','IR_EUR','nodes',[730,3650,4380],'rates_base',[0.01,0.02,0.025],'method_interpolation','linear');
c = c.set('rates_stress',[0.00,0.01,0.015;0.02,0.031,0.035],'method_interpolation','linear');
d = Debt();
d = d.set('duration',8.35,'convexity',18,'term',8.35);
d = d.calc_value(c,'stress');
d.getValue('base')
d.getValue('stress')

Dependencies of class:

Debt

Next: , Previous: , Up: Octave octarisk Classes   [Contents][Index]