|
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.GarchModel
public class GarchModel
This class represents a GARCH specification. The GARCH(p, q) model (where p is the order of the GARCH terms h_(t-i) and q is the order of the ARCH terms e_(t-i)^2) is given by
h(t)= α0 + Σ(α_i * e_(t-i)^2) + Σ(β_i * h_(t-i))
| Constructor Summary | |
|---|---|
GarchModel(double a0,
double[] a,
double[] b)
Construct a GARCH model. |
|
GarchModel(GarchModel that)
Copy constructor. |
|
| Method Summary | |
|---|---|
double |
a0()
Get the constant term. |
double[] |
alpha()
Get the ARCH coefficients. |
double[] |
beta()
Get the GARCH coefficients. |
int |
maxPQ()
Get the maximum of ARCH length or GARCH length. |
int |
p()
Get the number of GARCH terms. |
int |
q()
Get the number of ARCH terms. |
double |
sigma2(double[] e2,
double[] sigma2_lag)
Compute the conditional variance based on the past information. |
double |
var()
Compute the unconditional variance of the GARCH model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GarchModel(double a0,
double[] a,
double[] b)
a0 - the constant terma - the ARCH coefficients; null if no ARCH coefficientsb - the GARCH coefficients; null if no GARCH coefficientspublic GarchModel(GarchModel that)
that - a GARCH model| Method Detail |
|---|
public double a0()
public double[] alpha()
nullpublic double[] beta()
nullpublic int p()
public int q()
public int maxPQ()
public double var()
public double sigma2(double[] e2,
double[] sigma2_lag)
e2 - the last q squared observationssigma2_lag - the last p conditional variance
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||