public class MertonModel extends AbstractModel
AbstractProcessInterface via the specification of
\( f = exp \), \( \mu = r - \frac{1}{2} \sigma^2 - (exp(a)-1) \lambda \), \( \lambda_{1,1} = \sigma, \lambda_{1,2} = a - \frac{1}{2} b^2, \lambda_{1,3} = b \), i.e.,
of the SDE
\[
dX = \mu dt + \lambda_{1,1} dW + \lambda_{1,2} dN + \lambda_{1,3} Z dN, \quad X(0) = \log(S_{0}),
\]
with \( S = f(X) \). See AbstractProcessInterface for the notation.
For an example on the construction of the three factors \( dW \), \( dN \), and \( Z dN \) see MonteCarloMertonModel.MonteCarloMertonModel,
The interface for numerical schemes.,
The interface for models provinding parameters to numerical schemes.| Constructor and Description |
|---|
MertonModel(double initialValue,
double riskFreeRate,
double volatility,
double jumpIntensity,
double jumpSizeMean,
double jumpSizeStDev)
Create a Heston model.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
applyStateSpaceTransform(int componentIndex,
RandomVariableInterface randomVariable)
Applies the state space transform fi to the given state random variable
such that Yi → fi(Yi) =: Xi.
|
RandomVariableInterface |
applyStateSpaceTransformInverse(int componentIndex,
RandomVariableInterface randomVariable) |
AbstractModelInterface |
getCloneWithModifiedData(Map<String,Object> dataModified)
Returns a clone of this model where the specified properties have been modified.
|
RandomVariableInterface[] |
getDrift(int timeIndex,
RandomVariableInterface[] realizationAtTimeIndex,
RandomVariableInterface[] realizationPredictor)
This method has to be implemented to return the drift, i.e.
|
RandomVariableInterface[] |
getFactorLoading(int timeIndex,
int componentIndex,
RandomVariableInterface[] realizationAtTimeIndex)
This method has to be implemented to return the factor loadings, i.e.
|
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 |
getJumpIntensity() |
double |
getJumpSizeMean() |
double |
getJumpSizeStdDev() |
int |
getNumberOfComponents()
Returns the number of components
|
RandomVariableInterface |
getNumeraire(double time)
Return the numeraire at a given time index.
|
RandomVariableInterface |
getRandomVariableForConstant(double value)
Return a random variable initialized with a constant using the models random variable factory.
|
double |
getRiskFreeRate() |
double |
getVolatility() |
getInitialValue, getMonteCarloWeights, getNumberOfFactors, getProcess, getProcessValue, getTime, getTimeDiscretization, getTimeIndex, setProcesspublic MertonModel(double initialValue,
double riskFreeRate,
double volatility,
double jumpIntensity,
double jumpSizeMean,
double jumpSizeStDev)
initialValue - Spot value.riskFreeRate - The risk free rate.volatility - The log volatility.jumpIntensity - The intensity parameter lambda of the compound Poisson process.jumpSizeMean - The mean jump size of the normal distributes jump sizes of the compound Poisson process.jumpSizeStDev - The standard deviation of the normal distributes jump sizes of the compound Poisson process.public int getNumberOfComponents()
AbstractModelInterfacepublic RandomVariableInterface applyStateSpaceTransform(int componentIndex, RandomVariableInterface randomVariable)
AbstractModelInterfacecomponentIndex - The component index i.randomVariable - The state random variable Yi.public RandomVariableInterface applyStateSpaceTransformInverse(int componentIndex, RandomVariableInterface randomVariable)
public RandomVariableInterface[] getInitialState()
AbstractModelInterfacepublic RandomVariableInterface getNumeraire(double time) throws CalculationException
AbstractModelInterfacetime - The time t for which the numeraire N(t) should be returned.RandomVariableCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariableInterface[] getDrift(int timeIndex, RandomVariableInterface[] realizationAtTimeIndex, RandomVariableInterface[] realizationPredictor)
AbstractModelInterfacetimeIndex - The time index (related to the model times discretization).realizationAtTimeIndex - The given realization at timeIndexrealizationPredictor - The given realization at timeIndex+1 or null if no predictor is available.public RandomVariableInterface[] getFactorLoading(int timeIndex, int componentIndex, RandomVariableInterface[] realizationAtTimeIndex)
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 getRandomVariableForConstant(double value)
AbstractModelInterfacevalue - The constant value.public AbstractModelInterface getCloneWithModifiedData(Map<String,Object> dataModified) throws CalculationException
AbstractModelInterfacedataModified. If data is provided which is ignored by the model
no exception may be thrown.dataModified - Key-value-map of parameters to modify.CalculationException - Thrown when the model could not be created.public double getRiskFreeRate()
public double getVolatility()
public double getJumpIntensity()
public double getJumpSizeMean()
public double getJumpSizeStdDev()
Copyright © 2017. All rights reserved.