public class ErrorEstimation extends Object
| Constructor and Description |
|---|
ErrorEstimation(LocalDate referenceDate,
SchedulePrototype fixMetaSchedule,
SchedulePrototype floatMetaSchedule,
AnnuityMapping.AnnuityMappingType annuityMappingType,
SwaptionDataLattice physicalPremiumsATM,
SwaptionDataLattice cashPayerPremiums,
SwaptionDataLattice cashReceiverPremiums,
String discountCurveName,
String forwardCurveName,
String volatilityCubeName,
double replicationLowerBound,
double replicationUpperBound,
int replicationNumberOfEvaluationPoints)
Create the class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(SwaptionDataLattice nodes,
VolatilityCubeModel model)
Evaluate the market data against the model.
|
double |
getCashAverageError()
Get the average error in cash settled swaption premiums.
|
double |
getCashAverageError(int maturity,
int termination,
VolatilityCubeModel model)
Get the average error in cash settled swaption premiums at a specific node on the tenor grid.
|
double |
getCashAverageErrorPercent()
Get the average error in cash settled swaption premiums, in percent difference from the market data.
|
double |
getCashAverageErrorPercent(int maturity,
int termination,
VolatilityCubeModel model)
Get the average error in cash settled swaption premiums, in percent difference from the market data at a specific node on the tenor grid.
|
double |
getCashMaxError()
Get the maximal error in cash settled swaption premiums.
|
double |
getCashMaxError(int maturity,
int termination,
VolatilityCubeModel model)
Get the maximal error in cash settled swaption premiums at a specific node on the tenor grid.
|
double |
getCashMaxErrorPercent()
Get the maximal error in cash settled swaption premiums, in percent difference from the market data.
|
double |
getCashMaxErrorPercent(int maturity,
int termination,
VolatilityCubeModel model)
Get the maximal error in cash settled swaption premiums, in percent difference from the market data at a specific node on the tenor grid.
|
double |
getPhysicalAverageError()
Get the average error in physically settled swaption premiums.
|
double |
getPhysicalAverageErrorPercent()
Get the average error in physically settled swaption premiums, in percent difference from the market data.
|
double |
getPhysicalMaxError()
Get the maximal error in physically settled swaption premiums.
|
double |
getPhysicalMaxErrorPercent()
Get the maximal error in physically settled swaption premiums, in percent difference from the market data.
|
public ErrorEstimation(LocalDate referenceDate, SchedulePrototype fixMetaSchedule, SchedulePrototype floatMetaSchedule, AnnuityMapping.AnnuityMappingType annuityMappingType, SwaptionDataLattice physicalPremiumsATM, SwaptionDataLattice cashPayerPremiums, SwaptionDataLattice cashReceiverPremiums, String discountCurveName, String forwardCurveName, String volatilityCubeName, double replicationLowerBound, double replicationUpperBound, int replicationNumberOfEvaluationPoints) throws IOException
referenceDate - The reference date.fixMetaSchedule - The meta data with which to create schedules from the tenor grid for the fixed leg.floatMetaSchedule - The meta data with which to create schedules from the tenor grid for the float leg.annuityMappingType - The type of annuity mapping to use for cash settled swaptions.physicalPremiumsATM - The lattice containing atm physically settled swaption premiums.cashPayerPremiums - The lattice containing cash payer premiums.cashReceiverPremiums - The lattice containing cash receiver premiums.discountCurveName - The name of the discount curve in the model.forwardCurveName - The name of the forward curve in the model.volatilityCubeName - The name of the volatility cube in the model.replicationLowerBound - The lowest strike to use during replication.replicationUpperBound - The highest strike to use during replication.replicationNumberOfEvaluationPoints - The number of strikes to evaluate during replication.IOException - Thrown when there is a problem fetching data from the MarketDataHandler.public void evaluate(SwaptionDataLattice nodes, VolatilityCubeModel model)
nodes - A lattice indicating on which points errors should be evaluated. Optional.model - The model against which to evaluate.public double getCashAverageError()
public double getCashMaxError()
public double getCashAverageErrorPercent()
public double getCashMaxErrorPercent()
public double getPhysicalAverageError()
public double getPhysicalMaxError()
public double getPhysicalAverageErrorPercent()
public double getPhysicalMaxErrorPercent()
public double getCashAverageError(int maturity,
int termination,
VolatilityCubeModel model)
maturity - The maturity at which to evaluate.termination - The termination at which to evaluate.model - The model against which to evaluate.public double getCashMaxError(int maturity,
int termination,
VolatilityCubeModel model)
maturity - The maturity at which to evaluate.termination - The termination at which to evaluate.model - The model against which to evaluate.public double getCashAverageErrorPercent(int maturity,
int termination,
VolatilityCubeModel model)
maturity - The maturity at which to evaluate.termination - The termination at which to evaluate.model - The model against which to evaluate.public double getCashMaxErrorPercent(int maturity,
int termination,
VolatilityCubeModel model)
maturity - The maturity at which to evaluate.termination - The termination at which to evaluate.model - The model against which to evaluate.Copyright © 2019. All rights reserved.