LinearGaussian2F
Create LinearGaussian2F
model object for
Cap
, Floor
, Swaption
,
Swap
, FixedBond
, FloatBond
,
FloatBondOption
, FixedBondOption
,
OptionEmbeddedFixedBond
, or
OptionEmbeddedFloatBond
instrument
Since R2021b
Description
Create and price a Cap
, Floor
,
Swaption
, Swap
, FloatBond
,
FloatBondOption
, FixedBond
,
FixedBondOption
, OptionEmbeddedFixedBond
, or
OptionEmbeddedFloatBond
instrument object with a
LinearGaussian2F
model using this workflow:
Use
fininstrument
to create aCap
,Floor
,Swaption
,Swap
,FixedBond
,FloatBond
,FloatBondOption
FixedBondOption
,OptionEmbeddedFixedBond
, orOptionEmbeddedFloatBond
instrument object.Use
finmodel
to specify aLinearGaussian2F
model object for theCap
,Floor
,Swaption
,Swap
,FixedBond
,FloatBond
,FloatBondOption
,FixedBondOption
,OptionEmbeddedFixedBond
, orOptionEmbeddedFloatBond
instrument object.Use
finpricer
to specify anIRMonteCarlo
pricing method for aCap
,Floor
,Swaption
,Swap
,FixedBond
,FloatBond
,FloatBondOption
,FixedBondOption
,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 pricing methods for a Cap
,
Floor
, Swaption
, Swap
,
FixedBond
, FloatBond
,
FloatBondOption
, FixedBondOption
,
OptionEmbeddedFixedBond
, or
OptionEmbeddedFloatBond
instrument, see Choose Instruments, Models, and Pricers.
Creation
Description
creates a LinearGaussian2FModelObj
= finmodel(ModelType
,Alpha1
=alpha1_value,Sigma1
=sigma1_value,Alpha2
=alpha2_value,Sigma2
=sigma2_value,Correlation
=correlation_value)LinearGaussian2F
model object by specifying
ModelType
and the required name-value arguments for
Alpha1
, Sigma1
,
Alpha2
, Sigma2
and
Correlation
to set properties using
name-value pair arguments. For example, LinearGaussian2FModelObj =
finmodel("LinearGaussian2F",Alpha1=0.07,Sigma1=0.01,Alpha2=0.5,Sigma2=0.006,Correlation=-0.7)
creates a LinearGaussian2F
model object.
Input Arguments
Properties
Examples
More About
Version History
Introduced in R2021b