IRMonteCarlo
Create IRMonteCarlo pricer object for interest-rate
instruments using HullWhite, BraceGatarekMusiela,
BlackKarasinski, or LinearGaussian2F
model
Since R2021b
Description
Create and price a Cap, Floor,
Swap, Swaption, FloatBond,
FixedBond, FixedBondOption,
FloatBondOption, OptionEmbeddedFixedBond, or
OptionEmbeddedFloatBond instrument object with a
HullWhite, BraceGatarekMusiela,
SABRBraceGatarekMusiela, BlackKarasinski, or
LinearGaussian2F model and a IRMonteCarlo
pricing method using this workflow:
Use
fininstrumentto create aFixedBond,FloatBond,Cap,Floor,Swap,Swaption,FixedBondOption,FloatBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.Use
finmodelto specify aHullWhite,BlackKarasinski, orLinearGaussian2Fmodel for theCap,Floor,Swap,Swaption,FloatBond,FixedBond,FixedBondOption,FloatBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.Use
finmodelto specify aBraceGatarekMusielaorSABRBraceGatarekMusielamodel for theCap,Floor,FloatBond,FixedBond,FixedBondOption,FloatBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.When using a
HullWhite,BlackKarasinski, orLinearGaussian2Fmodel, usefinpricerto specify anIRMonteCarlopricer object for theCap,Floor,Swap,Swaption,FloatBond,FixedBond,FixedBondOption,FloatBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.When using a
BraceGatarekMusielaorSABRBraceGatarekMusielamodel, usefinpricerto specify anIRMonteCarlopricer object for theCap,Floor,FloatBond,FixedBond,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
Cap, Floor, Swap,
Swaption, FloatBond,
FixedBond, FixedBondOption,
FloatBondOption, OptionEmbeddedFixedBond, or
OptionEmbeddedFloatBond instruments, see Choose Instruments, Models, and Pricers.
Creation
Syntax
Description
creates an IRMonteCarloPricerObj = finpricer(PricerType,Model=model,DiscountCurve=ratecurve_obj,SimulationDates=simulation_dates)IRMonteCarlo pricer object by specifying
PricerType and sets the properties using the
required name-value arguments Model,
DiscountCurve, and
SimulationDates.
sets optional properties using
additional name-value arguments in addition to the required arguments in the
previous syntax. For example, IRMonteCarloPricerObj = finpricer(___,Name=Value)IRMonteCarloPricerObj =
finpricer("irmontecarlo",Model=HWModel,DiscountCurve=ratecurve_obj,SimulationDates=[datetime(2018,1,30);
datetime(2019,1,30)],NumTrials=500) creates an
IRMonteCarlo pricer object using a
HullWhite model. You can specify multiple name-value
arguments.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
price | Compute price for interest-rate instrument with IRMonteCarlo
pricer |