public class LIBORMarketModelStandard extends AbstractProcessModel implements LIBORMarketModel
ProcessModel 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.Driftapproximation |
static class |
LIBORMarketModelStandard.Measure |
| Constructor and Description |
|---|
LIBORMarketModelStandard(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelStandard(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel,
AbstractSwaptionMarketData swaptionMarketData)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelStandard(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
DiscountCurve discountCurve,
LIBORCovarianceModel covarianceModel,
CalibrationProduct[] calibrationProducts)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelStandard(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
LIBORCovarianceModel covarianceModel)
Creates a LIBOR Market Model for given covariance.
|
LIBORMarketModelStandard(TimeDiscretization liborPeriodDiscretization,
ForwardCurve forwardRateCurve,
LIBORCovarianceModel covarianceModel,
AbstractSwaptionMarketData swaptionMarketData)
Creates a LIBOR Market Model using a given covariance model and calibrating this model
to given swaption volatility data.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
applyStateSpaceTransform(int componentIndex,
RandomVariable randomVariable)
Applies the state space transform fi to the given state random variable
such that Yi → fi(Yi) =: Xi.
|
RandomVariable |
applyStateSpaceTransformInverse(int componentIndex,
RandomVariable randomVariable) |
Object |
clone() |
AnalyticModel |
getAnalyticModel()
Return the associated analytic model, a collection of market date object like discount curve, forward curve
and volatility surfaces.
|
LIBORMarketModelStandard |
getCloneWithModifiedCovarianceModel(LIBORCovarianceModel covarianceModel)
Create a new object implementing LIBORMarketModel, using the new covariance model.
|
LIBORMarketModelStandard |
getCloneWithModifiedData(Map<String,Object> dataModified)
Create a new object implementing LIBORModel, using the new data.
|
LIBORCovarianceModel |
getCovarianceModel()
Return the forward rate (LIBOR) covariance model.
|
DiscountCurve |
getDiscountCurve()
Return the discount curve associated the forwards.
|
RandomVariable[] |
getDrift(int timeIndex,
RandomVariable[] realizationAtTimeIndex,
RandomVariable[] realizationPredictor)
Return the complete vector of the drift for the time index timeIndex, given that current state is realizationAtTimeIndex.
|
LIBORMarketModelStandard.Driftapproximation |
getDriftApproximationMethod() |
protected RandomVariable |
getDriftEuler(int timeIndex,
int componentIndex,
RandomVariable[] liborVectorStart) |
RandomVariable[] |
getFactorLoading(int timeIndex,
int componentIndex,
RandomVariable[] realizationAtTimeIndex)
This method has to be implemented to return the factor loadings, i.e.
|
ForwardCurve |
getForwardRateCurve()
Return the initial forward rate curve.
|
RandomVariable[] |
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 \).
|
RandomVariable |
getLIBOR(double time,
double periodStart,
double periodEnd)
Returns the time \( t \) forward rate on the models forward curve.
|
RandomVariable |
getLIBOR(int timeIndex,
int liborIndex)
Return the forward rate at a given timeIndex and for a given liborIndex.
|
double |
getLiborPeriod(int timeIndex)
The period start corresponding to a given forward rate discretization index.
|
TimeDiscretization |
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() |
Map<String,RandomVariable> |
getModelParameters()
Returns a map of independent model parameters of this model.
|
int |
getNumberOfComponents()
This method is just a synonym to getNumberOfLibors
|
int |
getNumberOfLibors()
Get the number of LIBORs in the LIBOR discretization.
|
RandomVariable |
getNumeraire(double time)
Return the numeraire at a given time.
|
RandomVariable |
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, getReferenceDate, getTime, getTimeDiscretization, getTimeIndex, setProcessequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetForwardDiscountBondgetNumberOfFactors, getProcess, getReferenceDate, getTimeDiscretization, setProcesspublic LIBORMarketModelStandard(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, LIBORCovarianceModel 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(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel 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(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, LIBORCovarianceModel 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(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel 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(TimeDiscretization liborPeriodDiscretization, ForwardCurve forwardRateCurve, DiscountCurve discountCurve, LIBORCovarianceModel covarianceModel, CalibrationProduct[] calibrationProducts) 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.calibrationProducts - 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 RandomVariable getNumeraire(double time) throws CalculationException
getNumeraire in interface ProcessModeltime - Time time t for which the numeraire should be returned N(t).RandomVariableFromDoubleArrayCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariable[] getInitialState()
ProcessModelgetInitialState in interface ProcessModelpublic RandomVariable[] getDrift(int timeIndex, RandomVariable[] realizationAtTimeIndex, RandomVariable[] realizationPredictor)
getDrift in interface ProcessModeltimeIndex - 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.RandomVariableFromDoubleArray[]The calculation of the drift is consistent with the calculation of the numeraire in getNumeraire.public RandomVariable[] getFactorLoading(int timeIndex, int componentIndex, RandomVariable[] realizationAtTimeIndex)
ProcessModelgetFactorLoading in interface ProcessModeltimeIndex - 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 RandomVariable applyStateSpaceTransform(int componentIndex, RandomVariable randomVariable)
ProcessModelapplyStateSpaceTransform in interface ProcessModelcomponentIndex - The component index i.randomVariable - The state random variable Yi.public RandomVariable applyStateSpaceTransformInverse(int componentIndex, RandomVariable randomVariable)
applyStateSpaceTransformInverse in interface ProcessModelpublic RandomVariable getRandomVariableForConstant(double value)
ProcessModelgetRandomVariableForConstant in interface ProcessModelvalue - The constant value.public LIBORMarketModelStandard.Driftapproximation getDriftApproximationMethod()
public RandomVariable getLIBOR(double time, double periodStart, double periodEnd) throws CalculationException
TermStructureModelgetLIBOR in interface TermStructureModeltime - The evaluation time.periodStart - The period start of the forward rate.periodEnd - The period end of the forward rate.CalculationException - Thrown if model fails to calculate the random variable.public RandomVariable getLIBOR(int timeIndex, int liborIndex) throws CalculationException
LIBORModelgetLIBOR in interface LIBORModeltimeIndex - The time index (associated with ProcessModel.getTimeDiscretization().liborIndex - The forward rate index (associated with LIBORModel.getLiborPeriodDiscretization().CalculationException - Thrown if calculation failed.public int getNumberOfComponents()
getNumberOfComponents in interface ProcessModelpublic int getNumberOfLibors()
LIBORModelgetNumberOfLibors in interface LIBORModelpublic double getLiborPeriod(int timeIndex)
LIBORModelgetLiborPeriod in interface LIBORModeltimeIndex - The index corresponding to a given time (interpretation is start of period)public int getLiborPeriodIndex(double time)
LIBORModelgetLiborPeriodIndex in interface LIBORModeltime - The period start.public TimeDiscretization getLiborPeriodDiscretization()
LIBORModelgetLiborPeriodDiscretization in interface LIBORModelprotected RandomVariable getDriftEuler(int timeIndex, int componentIndex, RandomVariable[] liborVectorStart)
public LIBORMarketModelStandard.Measure getMeasure()
public double[][][] getIntegratedLIBORCovariance()
LIBORMarketModelintegratedLIBORCovariance[timeIndex][componentIndex1][componentIndex2].getIntegratedLIBORCovariance in interface LIBORMarketModelpublic void setDriftApproximationMethod(LIBORMarketModelStandard.Driftapproximation driftApproximationMethod)
driftApproximationMethod - The driftApproximationMethod to set.public void setMeasure(LIBORMarketModelStandard.Measure measure)
measure - The measure to set.public AnalyticModel getAnalyticModel()
TermStructureModelgetAnalyticModel in interface TermStructureModelpublic DiscountCurve getDiscountCurve()
TermStructureModelgetDiscountCurve in interface TermStructureModelpublic ForwardCurve getForwardRateCurve()
TermStructureModelgetForwardRateCurve in interface TermStructureModelpublic AbstractSwaptionMarketData getSwaptionMarketData()
public LIBORCovarianceModel getCovarianceModel()
LIBORMarketModelgetCovarianceModel in interface LIBORMarketModelpublic LIBORMarketModelStandard getCloneWithModifiedCovarianceModel(LIBORCovarianceModel covarianceModel)
LIBORMarketModelgetCloneWithModifiedCovarianceModel in interface LIBORMarketModelcovarianceModel - A covariance modelLIBORMarketModelStandard using the specified covariance model.public LIBORMarketModelStandard getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
LIBORModelgetCloneWithModifiedData in interface LIBORModelgetCloneWithModifiedData in interface TermStructureModelgetCloneWithModifiedData in interface ProcessModeldataModified - 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.public Map<String,RandomVariable> getModelParameters()
IndependentModelParameterProvidergetModelParameters in interface IndependentModelParameterProviderCopyright © 2019. All rights reserved.