public class SABRShiftedSmileCalibration extends Object
SABRVolatilityCube by shifting increments in the market data of cash settled swaptions onto physically settled swaptions and calibrating a SABR model
on the resulting smiles. The calibration happens per node and is thus much faster than a calibration of the whole cube at once.| Constructor and Description |
|---|
SABRShiftedSmileCalibration(LocalDate referenceDate,
SwaptionDataLattice cashPayerPremiums,
SwaptionDataLattice cashReceiverPremiums,
SwaptionDataLattice physicalPremiumsATM,
AnalyticModel model,
double sabrDisplacement,
double sabrBeta,
double correlationDecay,
double iborOisDecorrelation)
Create the calibrator to be able to modify calibration parameters before building the cube.
|
| Modifier and Type | Method and Description |
|---|---|
SABRVolatilityCube |
build(String name)
Perform the calibrations and build the cube.
|
static SABRVolatilityCube |
createSABRVolatilityCube(String name,
LocalDate referenceDate,
SwaptionDataLattice cashPayerPremiums,
SwaptionDataLattice cashReceiverPremiums,
SwaptionDataLattice physicalPremiumsATM,
AnalyticModel model,
double sabrDisplacement,
double sabrBeta,
double correlationDecay,
double iborOisDecorrelation)
Calibrate a cube via shifting cash settled swaption smiles onto physically settled swaption atm volatility.
|
static Map<Integer,DataTable> |
createVolatilityCubeLattice(String name,
LocalDate referenceDate,
SwaptionDataLattice cashPayerPremiums,
SwaptionDataLattice cashReceiverPremiums,
SwaptionDataLattice physicalPremiumsATM,
AnalyticModel model)
Return all data points as volatilities that serve as calibration targets.
|
int |
getMaxIterations() |
int |
getNumberOfThreads() |
boolean |
isUseLinearInterpolation() |
void |
setCalibrationParameters(int maxIterations,
int numberOfThreads)
Set the parameters for calibration.
|
void |
setUseLinearInterpolation(boolean useLinearInterpolation) |
public SABRShiftedSmileCalibration(LocalDate referenceDate, SwaptionDataLattice cashPayerPremiums, SwaptionDataLattice cashReceiverPremiums, SwaptionDataLattice physicalPremiumsATM, AnalyticModel model, double sabrDisplacement, double sabrBeta, double correlationDecay, double iborOisDecorrelation)
referenceDate - The reference date of the calibrated cube.cashPayerPremiums - Lattice containing cash settled payer swaption premiums.cashReceiverPremiums - Lattice containing cash settled receiver swaption premiums.physicalPremiumsATM - Table containing physical settled swaption atm premiums.model - The model providing context.sabrDisplacement - The displacement parameter the SABR smiles of the cube is supposed to have.sabrBeta - The beta parameter the SABR smiles of the cubes are supposed to have.correlationDecay - The correlation decay parameter the cube is supposed to have.iborOisDecorrelation - The ibor ois decorrelation parameter the calibrated cube is supposed to have.public static SABRVolatilityCube createSABRVolatilityCube(String name, LocalDate referenceDate, SwaptionDataLattice cashPayerPremiums, SwaptionDataLattice cashReceiverPremiums, SwaptionDataLattice physicalPremiumsATM, AnalyticModel model, double sabrDisplacement, double sabrBeta, double correlationDecay, double iborOisDecorrelation) throws SolverException
name - The name of the calibrated cube.referenceDate - The reference date of the tables.cashPayerPremiums - Lattice containing cash settled payer swaption premiums.cashReceiverPremiums - Lattice containing cash settled receiver swaption premiums.physicalPremiumsATM - Table containing physical settled swaption atm premiums.model - The model for context.sabrDisplacement - The displacement parameter the SABR smiles of the cube is supposed to have.sabrBeta - The beta parameter the SABR smiles of the cubes are supposed to have.correlationDecay - The correlation decay parameter the cube is supposed to have.iborOisDecorrelation - The ibor ois decorrelation parameter the calibrated cube is sipposed to have.SolverException - Thrown when solvers fail to find suitable parameters.public static Map<Integer,DataTable> createVolatilityCubeLattice(String name, LocalDate referenceDate, SwaptionDataLattice cashPayerPremiums, SwaptionDataLattice cashReceiverPremiums, SwaptionDataLattice physicalPremiumsATM, AnalyticModel model)
name - The name of the tables. Will be amended by their strike in moneyness.referenceDate - The reference date of the tables.cashPayerPremiums - Lattice containing cash settled payer swaption premiums.cashReceiverPremiums - Lattice containing cash settled receiver swaption premiums.physicalPremiumsATM - Table containing physical settled swaption atm premiums.model - The model for context.public SABRVolatilityCube build(String name) throws SolverException
name - The name of the cube.SolverException - Thrown when solvers fail to find suitable parameters.public void setCalibrationParameters(int maxIterations,
int numberOfThreads)
maxIterations - The maximum number of iterations done during calibration.numberOfThreads - The number of processor threads to be used.public int getMaxIterations()
public int getNumberOfThreads()
public boolean isUseLinearInterpolation()
public void setUseLinearInterpolation(boolean useLinearInterpolation)
useLinearInterpolation - Set whether the interpolation of SABR parameters should be linear as opposed to piecewise cubic spline.Copyright © 2019. All rights reserved.