Products & Services Solutions Academia Support User Community Company

Learn more about Financial Derivatives Toolbox   

eqptimespec - Specify time structure for EQP binomial tree

Syntax

TimeSpec = eqptimespec(ValuationDate, Maturity, NumPeriods)

Arguments

ValuationDate

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

Maturity

Scalar date indicating depth of the tree.

NumPeriods

Scalar determining number of time steps in the tree.

Description

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.

Examples

Specify 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: [1x5 double]   

See Also

eqptree, stockspec

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS