java.lang.Object
net.finmath.singleswaprate.model.volatilities.VolVolCube
- All Implemented Interfaces:
VolatilityCube
This cube provides the volatility of the stochastic driver for each sub-tenor of the swap rate's schedule in the Piterbarg model of the annuity mapping. They are linked to normal volatilities via
\[ \frac{\tau_j}{1+\tau_j S_j(0)} \rho_{i,j} \sigma_j ]\,
where \(\tau\) is the accrual fraction, \(S_j(0)\) is the swap rate of the j-th subtenor evaluated at time 0, \(\sigma_j\) the volatility of the j-th subtenor at the strike and \(\rho_{i,j}\) is the
correlation between the swap rates of the two tenors. We assume a correlation according to
\[ \rho_{i,j} = e^{d(T_j - T_i)} \],
where d is some decay parameter, given by the underlying cube.
- Author:
- Christian Fries, Roland Bachl
-
Constructor Summary
ConstructorsConstructorDescriptionVolVolCube(String name, LocalDate referenceDate, String referenceCubeName, Schedule schedule, double[] initialSwapRates)
Create the volvol cube. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Return the correlation decay parameter of the cube.double
Return the IBOR vs OIS decorrelation parameter.double
getLowestStrike(VolatilityCubeModel model)
Returns the lowest possible value of strike that can be evaluated by this cube.getName()
Returns the name of the volatility cube.Returns a map with all implementation dependent parameters of this volatility cube.Return the reference date of this cube, i.e.double
getValue(double tenorLength, double maturity, double strike, VolatilitySurface.QuotingConvention quotingConvention)
Return the volatility at the specified coordinates in the desired quotation.double
getValue(VolatilityCubeModel model, double termination, double maturity, double strike, VolatilitySurface.QuotingConvention quotingConvention)
Return the volatility at the specified coordinates in the desired quotation.toString()
-
Constructor Details
-
VolVolCube
public VolVolCube(String name, LocalDate referenceDate, String referenceCubeName, Schedule schedule, double[] initialSwapRates)Create the volvol cube.- Parameters:
name
- The name of the cube.referenceDate
- The referenceDate of the cube.referenceCubeName
- The name of the underlying cube.schedule
- The schedule of the swap rate.initialSwapRates
- Initial swap rates of all sub-tenors.
-
-
Method Details
-
getValue
public double getValue(VolatilityCubeModel model, double termination, double maturity, double strike, VolatilitySurface.QuotingConvention quotingConvention)Description copied from interface:VolatilityCube
Return the volatility at the specified coordinates in the desired quotation.- Specified by:
getValue
in interfaceVolatilityCube
- Parameters:
model
- A model providing context.termination
- End date of the underlying.maturity
- Maturity date of the option.strike
- Strike rate of the option.quotingConvention
- Desired quoting convention.- Returns:
- The volatility.
-
getName
Description copied from interface:VolatilityCube
Returns the name of the volatility cube.- Specified by:
getName
in interfaceVolatilityCube
- Returns:
- The name of the volatility cube.
-
getReferenceDate
Description copied from interface:VolatilityCube
Return the reference date of this cube, i.e. the date associated with t=0.- Specified by:
getReferenceDate
in interfaceVolatilityCube
- Returns:
- The date identified as t=0.
-
getReferenceCubeName
-
toString
-
getValue
public double getValue(double tenorLength, double maturity, double strike, VolatilitySurface.QuotingConvention quotingConvention)Description copied from interface:VolatilityCube
Return the volatility at the specified coordinates in the desired quotation.- Specified by:
getValue
in interfaceVolatilityCube
- Parameters:
tenorLength
- End date of the underlying.maturity
- Maturity date of the option.strike
- Strike rate of the option.quotingConvention
- Desired quoting convention.- Returns:
- The volatility.
-
getCorrelationDecay
public double getCorrelationDecay()Description copied from interface:VolatilityCube
Return the correlation decay parameter of the cube. This is used to determine the correlation between tenors in a derived volvol cube.- Specified by:
getCorrelationDecay
in interfaceVolatilityCube
- Returns:
- The correlation decay parameter.
-
getParameters
Description copied from interface:VolatilityCube
Returns a map with all implementation dependent parameters of this volatility cube.- Specified by:
getParameters
in interfaceVolatilityCube
- Returns:
- A map of all parameters.
-
getLowestStrike
Description copied from interface:VolatilityCube
Returns the lowest possible value of strike that can be evaluated by this cube. This is relevant for instance when an implementation uses a SABR model with displacement.- Specified by:
getLowestStrike
in interfaceVolatilityCube
- Parameters:
model
- A model for context.- Returns:
- Lowest possible strike this volatility cube supports.
-
getIborOisDecorrelation
public double getIborOisDecorrelation()Description copied from interface:VolatilityCube
Return the IBOR vs OIS decorrelation parameter. This parameter scales the convexity adjustment in a multi curve model, using different curves for forward rates and discounting.- Specified by:
getIborOisDecorrelation
in interfaceVolatilityCube
- Returns:
- The IBOR vs OIS decorrelation parameter.
-