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
fininstrument
to create aFixedBond
,FloatBond
,Cap
,Floor
,Swap
,Swaption
,FixedBondOption
,FloatBondOption
,OptionEmbeddedFixedBond
, orOptionEmbeddedFloatBond
instrument object.Use
finmodel
to specify aHullWhite
,BlackKarasinski
, orLinearGaussian2F
model for theCap
,Floor
,Swap
,Swaption
,FloatBond
,FixedBond
,FixedBondOption
,FloatBondOption
,OptionEmbeddedFixedBond
, orOptionEmbeddedFloatBond
instrument object.Use
finmodel
to specify aBraceGatarekMusiela
orSABRBraceGatarekMusiela
model for theCap
,Floor
,FloatBond
,FixedBond
,FixedBondOption
,FloatBondOption
,OptionEmbeddedFixedBond
, orOptionEmbeddedFloatBond
instrument object.When using a
HullWhite
,BlackKarasinski
, orLinearGaussian2F
model, usefinpricer
to specify anIRMonteCarlo
pricer object for theCap
,Floor
,Swap
,Swaption
,FloatBond
,FixedBond
,FixedBondOption
,FloatBondOption
,OptionEmbeddedFixedBond
, orOptionEmbeddedFloatBond
instrument object.When using a
BraceGatarekMusiela
orSABRBraceGatarekMusiela
model, usefinpricer
to specify anIRMonteCarlo
pricer object for theCap
,Floor
,FloatBond
,FixedBond
,FixedBondOption
,FloatBondOption
,OptionEmbeddedFixedBond
, orOptionEmbeddedFloatBond
instrument 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
Properties
Object Functions
price | Compute price for interest-rate instrument with IRMonteCarlo
pricer |