HullWhite
Create HullWhite model object for Cap,
Floor, Swaption, Swap,
FixedBond, FloatBond,
FloatBondOption, FixedBondOption,
RangeAccrualNote, OptionEmbeddedFixedBond,
OptionEmbeddedFloatBond, or
OptionEmbeddedRangeAccrualNote instrument
Description
Create and price a Cap, Floor,
Swaption, Swap, FloatBond,
FloatBondOption, FixedBond,
FixedBondOption, RangeAccrualNote,
OptionEmbeddedFixedBond,
OptionEmbeddedFloatBond, or
OptionEmbeddedRangeAccrualNote instrument object with a
HullWhite model using this workflow:
Use
fininstrumentto create aCap,Floor,Swaption,Swap,FixedBond,FloatBond,FloatBondOptionFixedBondOption,RangeAccrualNote,OptionEmbeddedFixedBond,OptionEmbeddedFloatBond, orOptionEmbeddedRangeAccrualNoteinstrument object.Use
finmodelto specify aHullWhitemodel object for theCap,Floor,Swaption,Swap,RangeAccrualNote,FixedBond,FloatBond,FloatBondOption,FixedBondOption,OptionEmbeddedFixedBond,OptionEmbeddedFloatBond, orOptionEmbeddedRangeAccrualNoteinstrument object.Choose a pricing method.
Use
finpricerto specify aHullWhitepricing method for aCap,Floor, orSwaptioninstrument object and use anIRTreeorIRMonteCarlopricing method for theCap,Floor,Swaption,Swap,FixedBond,FloatBond,FloatBondOption,FixedBondOption,OptionEmbeddedFixedBond, orOptionEmbeddedFloatBondinstrument object.When using an
RangeAccrualNoteorOptionEmbeddedRangeAccrualNote, with aHullWhitemodel, you can usefinpricerto specify anIRMonteCarlopricing method.
Optionally, when using an
OptionEmbeddedFixedBondwith anIRTreepricing method and aHullWhitemodel, you can calculate the option adjusted spread (OAS) usingoas.
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,
RangeAccrualNote, FloatBondOption,
FixedBondOption, OptionEmbeddedFixedBond,
OptionEmbeddedFloatBond, or
OptionEmbeddedRangeAccrualNote instrument, see Choose Instruments, Models, and Pricers.
Creation
Description
creates a HullWhiteModelObj = finmodel(ModelType,'Alpha'alpha_value,'Sigma',sigma_value)HullWhite model object by specifying
ModelType and the required name-value pair
argumentsAlpha and Sigma to
set properties using
name-value pair arguments. For example, HullWhiteModelObj =
finmodel("HullWhite",'Alpha',0.052,'Sigma',0.34) creates a
HullWhite model object.