public class LIBORMarketModelStandard extends AbstractModel implements LIBORMarketModelInterface
AbstractModelInterface for details on the implemented interface.
AbstractLIBORCovarianceModel for the specification of (λ1,j,...,λm,j) as a covariance model,
which may have the ability to calibrate to swaptions.AbstractLIBORCovarianceModel| Modifier and Type | Class and Description |
|---|---|
static class |
LIBORMarketModelStandard.CalibrationItem |
static class |
LIBORMarketModelStandard.Driftapproximation |
static class |
LIBORMarketModelStandard.Measure |
| Constructor and Description |
|---|
LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization,
ForwardCurveInterface forwardRateCurve,
AbstractLIBORCovarianceModel covarianceModel)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization,
ForwardCurveInterface forwardRateCurve,
AbstractLIBORCovarianceModel covarianceModel,
AbstractSwaptionMarketData swaptionMarketData)
Creates a LIBOR Market Model using a given covariance model and calibrating this model
to given swaption volatility data.
|
LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization,
ForwardCurveInterface forwardRateCurve,
DiscountCurveInterface discountCurve,
AbstractLIBORCovarianceModel covarianceModel)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization,
ForwardCurveInterface forwardRateCurve,
DiscountCurveInterface discountCurve,
AbstractLIBORCovarianceModel covarianceModel,
AbstractSwaptionMarketData swaptionMarketData)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization,
ForwardCurveInterface forwardRateCurve,
DiscountCurveInterface discountCurve,
AbstractLIBORCovarianceModel covarianceModel,
LIBORMarketModelStandard.CalibrationItem[] calibrationItems)
Creates a LIBOR Market Model for given covariance.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
applyStateSpaceTransform(int componentIndex,
RandomVariableInterface randomVariable)
Applied the state space transform fi to the given state random variable
such that Yi → fi(Yi) =: Xi.
|
Object |
clone() |
AnalyticModelInterface |
getAnalyticModel()
Return the associated analytic model, a collection of market date object like discount curve, forward curve
and volatility surfaces.
|
LIBORMarketModelStandard |
getCloneWithModifiedCovarianceModel(AbstractLIBORCovarianceModel covarianceModel)
Create a new object implementing LIBORMarketModelInterface, using the new covariance model.
|
LIBORMarketModel |
getCloneWithModifiedData(Map<String,Object> dataModified)
Create a new object implementing LIBORModelInterface, using the new data.
|
AbstractLIBORCovarianceModel |
getCovarianceModel()
Return the libor covariance model.
|
DiscountCurveInterface |
getDiscountCurve()
Return the discount curve associated the forwards.
|
RandomVariableInterface[] |
getDrift(int timeIndex,
RandomVariableInterface[] realizationAtTimeIndex,
RandomVariableInterface[] realizationPredictor)
Return the complete vector of the drift for the time index timeIndex, given that current state is realizationAtTimeIndex.
|
LIBORMarketModelStandard.Driftapproximation |
getDriftApproximationMethod() |
protected RandomVariableInterface |
getDriftEuler(int timeIndex,
int componentIndex,
RandomVariableInterface[] liborVectorStart) |
RandomVariableInterface[] |
getFactorLoading(int timeIndex,
int componentIndex,
RandomVariableInterface[] realizationAtTimeIndex)
This method has to be implemented to return the factor loadings, i.e.
|
ForwardCurveInterface |
getForwardRateCurve()
Return the initial forward rate curve.
|
RandomVariableInterface[] |
getInitialState()
Returns the initial value of the state variable of the process Y, not to be
confused with the initial value of the model X (which is the state space transform
applied to this state value.
|
double[][][] |
getIntegratedLIBORCovariance()
Returns the integrated instantaneous log-forward rate covariance, i.e.,
\( \int_{0}^{t_i} \mathrm{d} \log(L_{j}) \mathrm{d} \log(L_{k}) \mathrm{d}t \).
|
RandomVariableInterface |
getLIBOR(double time,
double periodStart,
double periodEnd) |
RandomVariableInterface |
getLIBOR(int timeIndex,
int liborIndex) |
double |
getLiborPeriod(int timeIndex)
The period start corresponding to a given forward rate discretization index.
|
TimeDiscretizationInterface |
getLiborPeriodDiscretization()
The tenor time discretization of the forward rate curve.
|
int |
getLiborPeriodIndex(double time)
Same as java.util.Arrays.binarySearch(liborPeriodDiscretization,time).
|
LIBORMarketModelStandard.Measure |
getMeasure() |
int |
getNumberOfComponents()
This method is just a synonym to getNumberOfLibors
|
int |
getNumberOfLibors()
Get the number of LIBORs in the LIBOR discretization.
|
RandomVariableInterface |
getNumeraire(double time)
Return the numeraire at a given time.
|
RandomVariableInterface |
getRandomVariableForConstant(double value)
Return a random variable initialized with a constant using the models random variable factory.
|
AbstractSwaptionMarketData |
getSwaptionMarketData()
Return the swaption market data used for calibration (if any, may be null).
|
void |
setDriftApproximationMethod(LIBORMarketModelStandard.Driftapproximation driftApproximationMethod) |
void |
setMeasure(LIBORMarketModelStandard.Measure measure) |
getInitialValue, getMonteCarloWeights, getNumberOfFactors, getProcess, getProcessValue, getTime, getTimeDiscretization, getTimeIndex, setProcessequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNumberOfFactors, getProcess, getTimeDiscretization, setProcesspublic LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization, ForwardCurveInterface forwardRateCurve, AbstractLIBORCovarianceModel covarianceModel)
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.covarianceModel - The covariance model to use.public LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization, ForwardCurveInterface forwardRateCurve, DiscountCurveInterface discountCurve, AbstractLIBORCovarianceModel covarianceModel)
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.public LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization, ForwardCurveInterface forwardRateCurve, AbstractLIBORCovarianceModel covarianceModel, AbstractSwaptionMarketData swaptionMarketData) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.covarianceModel - The covariance model to use.swaptionMarketData - The set of swaption values to calibrate to.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization, ForwardCurveInterface forwardRateCurve, DiscountCurveInterface discountCurve, AbstractLIBORCovarianceModel covarianceModel, AbstractSwaptionMarketData swaptionMarketData) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.swaptionMarketData - The set of swaption values to calibrate to.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public LIBORMarketModelStandard(TimeDiscretizationInterface liborPeriodDiscretization, ForwardCurveInterface forwardRateCurve, DiscountCurveInterface discountCurve, AbstractLIBORCovarianceModel covarianceModel, LIBORMarketModelStandard.CalibrationItem[] calibrationItems) throws CalculationException
liborPeriodDiscretization - The discretization of the interest rate curve into forward rates (tenor structure).forwardRateCurve - The initial values for the forward rates.discountCurve - The discount curve to use. This will create an LMM model with a deterministic zero-spread discounting adjustment.covarianceModel - The covariance model to use.calibrationItems - The vector of calibration items (a union of a product, target value and weight) for the objective function sum weight(i) * (modelValue(i)-targetValue(i).CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariableInterface getNumeraire(double time) throws CalculationException
getNumeraire in interface AbstractModelInterfacetime - Time time t for which the numeraire should be returned N(t).RandomVariableCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariableInterface[] getInitialState()
AbstractModelInterfacegetInitialState in interface AbstractModelInterfacepublic RandomVariableInterface[] getDrift(int timeIndex, RandomVariableInterface[] realizationAtTimeIndex, RandomVariableInterface[] realizationPredictor)
getDrift in interface AbstractModelInterfacetimeIndex - Time index i for which the drift should be returned μ(ti).realizationAtTimeIndex - Time current forward rate vector at time index i which should be used in the calculation.realizationPredictor - The given realization at timeIndex+1 or null if no predictor is available.RandomVariable[]The calculation of the drift is consistent with the calculation of the numeraire in getNumeraire.public RandomVariableInterface[] getFactorLoading(int timeIndex, int componentIndex, RandomVariableInterface[] realizationAtTimeIndex)
AbstractModelInterfacegetFactorLoading in interface AbstractModelInterfacetimeIndex - The time index (related to the model times discretization).componentIndex - The index j of the driven component.realizationAtTimeIndex - The realization of X at the time corresponding to timeIndex (in order to implement local and stochastic volatlity models).public RandomVariableInterface applyStateSpaceTransform(int componentIndex, RandomVariableInterface randomVariable)
AbstractModelInterfaceapplyStateSpaceTransform in interface AbstractModelInterfacecomponentIndex - The component index i.randomVariable - The state random variable Yi.public RandomVariableInterface getRandomVariableForConstant(double value)
AbstractModelInterfacegetRandomVariableForConstant in interface AbstractModelInterfacevalue - The constant value.public LIBORMarketModelStandard.Driftapproximation getDriftApproximationMethod()
public RandomVariableInterface getLIBOR(double time, double periodStart, double periodEnd) throws CalculationException
getLIBOR in interface TermStructureModelInterfaceCalculationExceptionpublic RandomVariableInterface getLIBOR(int timeIndex, int liborIndex) throws CalculationException
getLIBOR in interface LIBORModelInterfaceCalculationExceptionpublic int getNumberOfComponents()
getNumberOfComponents in interface AbstractModelInterfacepublic int getNumberOfLibors()
LIBORModelInterfacegetNumberOfLibors in interface LIBORModelInterfacepublic double getLiborPeriod(int timeIndex)
LIBORModelInterfacegetLiborPeriod in interface LIBORModelInterfacetimeIndex - The index corresponding to a given time (interpretation is start of period)public int getLiborPeriodIndex(double time)
LIBORModelInterfacegetLiborPeriodIndex in interface LIBORModelInterfacetime - The period start.public TimeDiscretizationInterface getLiborPeriodDiscretization()
LIBORModelInterfacegetLiborPeriodDiscretization in interface LIBORModelInterfaceprotected RandomVariableInterface getDriftEuler(int timeIndex, int componentIndex, RandomVariableInterface[] liborVectorStart)
public LIBORMarketModelStandard.Measure getMeasure()
public double[][][] getIntegratedLIBORCovariance()
LIBORMarketModelInterfaceintegratedLIBORCovariance[timeIndex][componentIndex1][componentIndex2].getIntegratedLIBORCovariance in interface LIBORMarketModelInterfacepublic void setDriftApproximationMethod(LIBORMarketModelStandard.Driftapproximation driftApproximationMethod)
driftApproximationMethod - The driftApproximationMethod to set.public void setMeasure(LIBORMarketModelStandard.Measure measure)
measure - The measure to set.public AnalyticModelInterface getAnalyticModel()
TermStructureModelInterfacegetAnalyticModel in interface TermStructureModelInterfacepublic DiscountCurveInterface getDiscountCurve()
TermStructureModelInterfacegetDiscountCurve in interface TermStructureModelInterfacepublic ForwardCurveInterface getForwardRateCurve()
TermStructureModelInterfacegetForwardRateCurve in interface TermStructureModelInterfacepublic AbstractSwaptionMarketData getSwaptionMarketData()
public AbstractLIBORCovarianceModel getCovarianceModel()
LIBORMarketModelInterfacegetCovarianceModel in interface LIBORMarketModelInterfacepublic LIBORMarketModelStandard getCloneWithModifiedCovarianceModel(AbstractLIBORCovarianceModel covarianceModel)
LIBORMarketModelInterfacegetCloneWithModifiedCovarianceModel in interface LIBORMarketModelInterfacecovarianceModel - A covariance modelLIBORMarketModelStandard using the specified covariance model.public LIBORMarketModel getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
LIBORModelInterfacegetCloneWithModifiedData in interface LIBORModelInterfacegetCloneWithModifiedData in interface TermStructureModelInterfacegetCloneWithModifiedData in interface AbstractModelInterfacedataModified - A map with values to be used in constructions (keys are identical to parameter names of the constructors).CalculationException - Thrown when the model could not be created.Copyright © 2017. All rights reserved.