IRTree
Create IRTree pricer object for Cap,
Floor, Swap, Swaption,
FloatBond, FixedBond,
FixedBondOption, FloatBondOption,
OptionEmbeddedFixedBond, or
OptionEmbeddedFloatBond instrument
Description
Create and price a Cap, Floor,
Swap, Swaption, FloatBond,
FixedBond, FixedBondOption,
FloatBondOption, OptionEmbeddedFixedBond, or
OptionEmbeddedFloatBond instrument object with a
HullWhite or BlackKarasinski model and an
IRTree pricing method using this workflow:
Use
fininstrumentto create aCap,Floor,Swaption,Swap,FloatBond,FixedBond,FixedBondOption,FloatBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.Use
finmodelto specify aHullWhite,BlackKarasinski,BlackDermanToy, orCoxIngersollRossmodel for theCap,Floor,Swaption,Swap,FixedBond,FloatBond,FixedBondOption,FloatBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.Use
finpricerto specify anIRTreepricer object for a BK, BDT, CIR, or HW trinomial tree model for theCap,Floor,Swaption,Swap,FixedBond,FloatBond,FixedBondOption,FloatBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.
For more information on this workflow, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.
For more information on the available instruments, models, and pricing methods for a
Cap, Floor, Swaption,
Swap, FixedBond, FloatBond,
FloatBondOption, OptionEmbeddedFixedBond, or
OptionEmbeddedFloatBond instrument, see Choose Instruments, Models, and Pricers.
Creation
Syntax
Description
creates a IRTreePricerObj = finpricer(PricerType,'Model',model_type,'DiscountCurve',ratecurve_obj,'TreeDates',tree_dates)IRTree pricer object for BDT, HW, and BK models
by specifying PricerType and the required name-value
pair arguments for Model,
DiscountCurve, and TreeDates
to set properties using name-value
pair arguments. For example, IRTreePricerObj =
finpricer("IRTree",'Model',HullWhite,'DiscountCurve',ratecure_obj,'TreeDates',['jan-30-2018';'jan-30-2019'])
creates an IRTree pricer object for a HW model.
creates a IRTreePricerObj = finpricer(PricerType,'Model',model_type,'DiscountCurve',ratecurve_obj,'Maturity',maturity_date,'NumPeriods',number_periods)IRTree pricer object for a CIR model by
specifying PricerType and the required name-value pair
arguments for Model,
DiscountCurve, and Maturity, and
NumPeriods to set properties using name-value
pair arguments. For example, IRTreePricerObj =
finpricer("IRTree",'Model',CIRModel,'DiscountCurve',ZeroCurve,'Maturity',ZDates(end),'NumPeriods',
length(ZDates)) creates an IRTree pricer
object for a CIR model.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
Examples
References
[1] Hull, John, and Alan White. “The General Hull–White Model and Supercalibration.” Financial Analysts Journal, vol. 57, no. 6, Nov. 2001, pp. 34–43.