java.lang.Object
net.finmath.timeseries.models.parametric.GARCH
- All Implemented Interfaces:
HistoricalSimulationModel
Log-normal process with GARCH(1,1) volatility.
This class estimate the process
\[
\mathrm{d} \log(X) = \sigma(t) \mathrm{d}W(t)
\]
where \( \sigma \) is given by a GARCH(1,1) process from time discrete
realizations \( X_{i} \). That is, given a time series of values \( X_{i} \)
the GARCH(1,1) volatility of the log-returns \( \log(X_{i+1}/X_{i}) \) is
estimated.
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameters estimated for the given time series.getBestParameters(Map<String,Object> guess)Returns the parameters estimated for the given time series, using a parameter guess.getCloneWithWindow(int windowIndexStart, int windowIndexEnd)Create a new model, using only a window of the times series.doublegetLastResidualForParameters(double omega, double alpha, double beta)Returns the last estimate of the time series volatility.doublegetLogLikelihoodForParameters(double omega, double alpha, double beta)Get log likelihood of the sample time series for given model parameters.double[]getQuantilPredictionsForParameters(double omega, double alpha, double beta, double[] quantiles)double[]getSzenarios(double omega, double alpha, double beta)
-
Constructor Details
-
GARCH
public GARCH(double[] values)Create GARCH model estimated form the given time series of values.- Parameters:
values- Given set of values.
-
GARCH
public GARCH(double[] values, int windowIndexStart, int windowIndexEnd)Create GARCH model estimated form the given time series of values.- Parameters:
values- Given set of values.windowIndexStart- First index to consider in the given set of values.windowIndexEnd- Last index to consider in the given set of values.
-
-
Method Details
-
getCloneWithWindow
Description copied from interface:HistoricalSimulationModelCreate a new model, using only a window of the times series.- Specified by:
getCloneWithWindowin interfaceHistoricalSimulationModel- Parameters:
windowIndexStart- Index of the first element to be part of the new time series.windowIndexEnd- Index of the last element to be part of the new time series.- Returns:
- A new historical simulation using a different data window.
-
getLogLikelihoodForParameters
public double getLogLikelihoodForParameters(double omega, double alpha, double beta)Get log likelihood of the sample time series for given model parameters.- Parameters:
omega- The parameter ω of the GARCH model.alpha- The parameter α of the GARCH model.beta- The parameter β of the GARCH model.- Returns:
- The log likelihood of the times series under the specified GARCH model.
-
getLastResidualForParameters
public double getLastResidualForParameters(double omega, double alpha, double beta)Returns the last estimate of the time series volatility.- Parameters:
omega- The parameter ω of the GARCH model.alpha- The parameter α of the GARCH model.beta- The parameter β of the GARCH model.- Returns:
- Last residual, i.e., σ
-
getSzenarios
public double[] getSzenarios(double omega, double alpha, double beta) -
getQuantilPredictionsForParameters
public double[] getQuantilPredictionsForParameters(double omega, double alpha, double beta, double[] quantiles) -
getBestParameters
Description copied from interface:HistoricalSimulationModelReturns the parameters estimated for the given time series.- Specified by:
getBestParametersin interfaceHistoricalSimulationModel- Returns:
- The parameters estimated for the given time series.
-
getBestParameters
Description copied from interface:HistoricalSimulationModelReturns the parameters estimated for the given time series, using a parameter guess.- Specified by:
getBestParametersin interfaceHistoricalSimulationModel- Parameters:
guess- A parameter guess.- Returns:
- The parameters estimated for the given time series.
-