Financial Derivatives Toolbox | ![]() ![]() |
Specify an HJM forward rate volatility process
Syntax
Arguments
The arguments to hjmvolspec
vary according to the type and number of volatility factors specified when calling the function. Factors are specified by pairs of names and parameter sets. Factor names can be 'Constant'
, 'Stationary'
, 'Exponential'
, 'Vasicek'
, or 'Proportional'
. The parameter set is specific for each of these factor types:
Constant volatility (Ho-Lee):VolSpec = hjmvolspec('Constant', Sigma_0)
Stationary volatility:VolSpec = hjmvolspec('Stationary', CurveVol, CurveTerm)
Exponential volatility: VolSpec = hjmvolspec('Exponential', Sigma_0, Lambda)
Vasicek, Hull-White:
VolSpec = hjmvolspec('Vasicek', Sigma_0, CurveDecay, CurveTerm)
Nearly proportional stationary: VolSpec = hjmvolspec('Proportional', CurveProp, CurveTerm, MaxSpot)
You can specify more than one factor by concatenating names and parameter sets.
The table below defines the various arguments to hjmvolspec
.
Description
Volspec = hjmvolspec(varargin)
computes VolSpec
, a structure that specifies the volatility model for hjmtree
.
hjmvolspec
specifies a HJM forward rate volatility process. Each factor is specified with one of the functional forms:
The volatility process is , where
is the observation time and
is the starting time of a forward rate. In a stationary process the volatility term is
. Multiple factors can be specified sequentially.
The time values
, , and
Term
are in coupon interval units specified by the Compounding
input of hjmtimespec
. For instance if Compounding
= 2
, Term = 1
is a semiannual period (six months).
Examples
Volatility is single-factor proportional.
CurveProp = [0.11765; 0.08825; 0.06865]; CurveTerm = [1; 2; 3]; VolSpec = hjmvolspec('Proportional', CurveProp, CurveTerm, 1e6) VolSpec = FinObj: 'HJMVolSpec' FactorModels: {'Proportional'} FactorArgs: {{1x3 cell}} SigmaShift: 0 NumFactors: 1 NumBranch: 2 PBranch: [0.5000 0.5000] Fact2Branch: [-1 1]
Volatility is two-factor exponential and constant.
VolSpec = hjmvolspec('Exponential', 0.1, 1, 'Constant', 0.2) VolSpec = FinObj: 'HJMVolSpec' FactorModels: {'Exponential' 'Constant'} FactorArgs: {{1x2 cell} {1x1 cell}} SigmaShift: 0 NumFactors: 2 NumBranch: 3 PBranch: [0.2500 0.2500 0.5000] Fact2Branch: [2x3 double]
See Also
![]() | hjmtree | instadd | ![]() |