lrtimespec

Specify time structure for Leisen-Reimer binomial tree

Syntax

TimeSpec = lrtimespec(ValuationDate,Maturity,NumPeriods)

Description

example

TimeSpec = lrtimespec(ValuationDate,Maturity,NumPeriods) specifies a time structure for a Leisen-Reimer stock tree (lrtree).

Examples

collapse all

This example shows how to specify a 5-period tree with time steps of 1 year.

ValuationDate = '1-July-2010';
Maturity = '1-July-2015';
TimeSpec = lrtimespec(ValuationDate, Maturity, 5)
TimeSpec = struct with fields:
           FinObj: 'BinTimeSpec'
    ValuationDate: 734320
         Maturity: 736146
       NumPeriods: 5
            Basis: 0
     EndMonthRule: 1
             tObs: [0 1 2 3 4 5]
             dObs: [734320 734685 735050 735415 735780 736146]

Input Arguments

collapse all

Pricing date and first observation in the lrtree, specified as a scalar date using a serial date number or date character vector.

Data Types: double | char

Date marking the depth of the Leisen-Reimer stock tree, specified as scalar serial date number or date character vector.

Data Types: double | char

Number of time steps in the Leisen-Reimer stock tree, specified as scalar odd integer value.

Note

Leisen-Reimer requires the number of steps to be an odd number.

Data Types: double

Output Arguments

collapse all

Specification for the time layout for lrtree, returned as a structure.

References

[1] Leisen D.P., M. Reimer. “Binomial Models for Option Valuation – Examining and Improving Convergence.” Applied Mathematical Finance. Number 3, 1996, pp. 319–346.

Introduced in R2010b