| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Derivatives Toolbox |
| Contents | Index |
| Learn more about Financial Derivatives Toolbox |
[Alpha, Sigma, OptimOut] = hwcalbycap(RateSpec,
MarketStrike,
MarketMaturity, MarketVolatility,
Strike, Settle, Maturity)
[Alpha, Sigma, OptimOut] = hwcalbycap(RateSpec,
MarketStrike,
MarketMaturity, MarketVolatility,
Strike, Settle, Maturity,
'Name1',
Value1...)
RateSpec | The annualized, continuously compounded rate term structure. For more information, see intenvset. |
MarketStrike | NSTRIKES-by-1 vector of market caplet strikes, as a decimal number. |
MarketMaturity | NMATS-by-1 vector of market caplet maturity dates. |
MarketVolatility | NSTRIKES-by-NMATS matrix of market flat volatilities. |
Strike | Scalar representing the rate at which the cap is exercised, as a decimal number. |
Settle | Scalar representing the settle date of the cap. |
Maturity | Scalar representing the maturity date of the cap. |
Reset | (Optional) Scalar representing the frequency of payments per year. Default is 1. |
Principal | (Optional) Scalar representing the notional principal amount. Default is 100. |
Basis | NINST-by-1 vector representing the basis used when annualizing the input forward rate.
|
ValuationDate | (Optional) Scalar representing the observation date of the investment horizons. The default is the Settle date. |
LB | (Optional) 2-by-1 vector of the lower bounds, defined as [LBSigma; LBAlpha], used in the search algorithm function. Default is LB =[0;0]. For more information, see lsqnonlin. |
UB | (Optional) 2-by-1 vector of the upper bounds, defined as [UBSigma; LBAlpha], used in the search algorithm function. Default is UB =[ ](unbound). For more information, see lsqnonlin. |
X0 | (Optional) 2-by-1 vector of the initial values, defined as [Sigma0; Alpha0], used in the search algorithm function. Default is X0 = [0.5;0.5]. For more information, see lsqnonlin. |
OptimOptions | (Optional) Structure with optimization parameters. For more information, see optimset. |
Note All optional inputs are specified as matching parameter name/value pairs. The parameter name is specified as a character string, followed by the corresponding parameter value. You can specify parameter name/value pairs in any order. Names are case-insensitive and partial string matches are allowed provided no ambiguities exist. |
[Alpha, Sigma, OptimOut] = hwcalbycap(RateSpec, MarketStrike,MarketMaturity, MarketVolatility, Strike, Settle, Maturity)
[Alpha, Sigma, OptimOut] = hwcalbycap(RateSpec, MarketStrike,MarketMaturity, MarketVolatility, Strike, Settle, Maturity,'Name1', Value1...)
Use hwcalbycap to estimate the Alpha (mean reversion) and Sigma (volatility) using cap market data and the Hull-White model.
The outputs are:
Alpha — Scalar representing the mean reversion value obtained from calibrating the cap using caplet market information.
Sigma — Scalar representing the volatility value obtained from calibrating the cap using market caplet information.
OptimOut — Structure with optimization results.
For an example, see Calibrating the Hull-White Model Using Market Data.
capbyblk, hwcalbyfloor, hwtree, lsqnonlin
![]() | hjmvolspec | hwcalbyfloor | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |