Specify time structure for Equal Probabilities binomial tree


TimeSpec = eqptimespec(ValuationDate, Maturity, NumPeriods)



Scalar date indicating the pricing date and first observation in the tree. A serial date number or date string.


Scalar date indicating depth of the tree.


Scalar determining number of time steps in the tree.


TimeSpec = eqptimespec(ValuationDate, Maturity, NumPeriods) sets the number of levels and node times for an equal probabilities tree.

TimeSpec is a structure specifying the time layout for an equal probabilities tree.


expand all

Set the Number of Levels and Node Times for an EQP Tree

This example shows how to set the number of levels and node times for an EQP tree by specifying a four-period tree with time steps of 1 year.

ValuationDate = '1-July-2002';
Maturity = '1-July-2006';
TimeSpec = eqptimespec(ValuationDate, Maturity, 4)
TimeSpec = 

           FinObj: 'BinTimeSpec'
    ValuationDate: 731398
         Maturity: 732859
       NumPeriods: 4
            Basis: 0
     EndMonthRule: 1
             tObs: [0 1 2 3 4]
             dObs: [731398 731763 732128 732493 732859]

See Also


Was this topic helpful?