Financial Derivatives Toolbox | ![]() ![]() |
Specify time structure for BDT interest rate tree
Syntax
Arguments
Description
TimeSpec = bdttimespec(ValuationDate, Maturity, Compounding)
sets the number of levels and node times for a BDT tree and determines the mapping between dates and time for rate quoting.
TimeSpec
is a structure specifying the time layout for bdttree
. The state observation dates are [ValuationDate; Maturity(1:end-1)]
. Because a forward rate is stored at the last observation, the tree can value cash flows out to Maturity
.
Examples
Specify a four period tree with annual nodes. Use annual compounding to report rates.
Compounding = 1; ValuationDate = '01-01-2000'; Maturity = ['01-01-2001'; '01-01-2002'; '01-01-2003'; '01-01-2004'; '01-01-2005']; Volatility = [.2; .19; .18; .17; .16]; TimeSpec = bdttimespec(ValuationDate, Maturity, Compounding) TimeSpec = FinObj: 'BDTTimeSpec' ValuationDate: 730486 Maturity: [5x1 double] Compounding: 1 Basis: 0 EndMonthRule: 1
See Also
![]() | bdtsens | bdttree | ![]() |