|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.timeseries.linear.univariate.stationaryprocess.garch.Garch
public class Garch
This class does fitting for the Generalized Autoregressive Conditional Heteroscedasticity (GARCH) model.
This implementation does the fitting by maximizing the likelihood function, using the gradient information.
| Constructor Summary | |
|---|---|
Garch(TimeSeries xt,
int p,
int q)
Fit the GARCH(p, q) model to the time series. |
|
Garch(TimeSeries xt,
int p,
int q,
int maxIterations)
Fit the GARCH(p, q) model to the time series. |
|
| Method Summary | |
|---|---|
RealVectorFunction |
dLogLikelihood(double[] e_t2,
int p,
int q)
the gradient of the log-likelihood function for a set of observations The gradient log-likelihood takes θ as the inputs. |
RealScalarFunction |
logLikelihood(double[] e_t2,
int p,
int q)
the log-likelihood function for a set of observations The log-likelihood takes θ as the inputs. |
GarchModel |
model()
Get the fitted GARCH model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Garch(TimeSeries xt,
int p,
int q,
int maxIterations)
xt - a time series of the observationsq - the ARCH orderp - the GARCH part ordermaxIterations - the maximum number of iterations in the numerical optimization algorithm
public Garch(TimeSeries xt,
int p,
int q)
xt - a time series of the observationsq - the ARCH orderp - the GARCH part order| Method Detail |
|---|
public GarchModel model()
public RealScalarFunction logLikelihood(double[] e_t2,
int p,
int q)
The log-likelihood takes θ as the inputs.
e_t2 - squared observationsq - the ARCH orderp - the GARCH part order
public final RealVectorFunction dLogLikelihood(double[] e_t2,
int p,
int q)
The gradient log-likelihood takes θ as the inputs.
e_t2 - the squared observationsp - the number of AR termsq - the number of MA terms
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||