|
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.arima.ArimaxModel
public class ArimaxModel
This class represents a univariate ARIMAX (ARIMA model with eXogenous inputs) model.
The ARIMAX model incorporates exogenous variables and it can be considered as a generalization of the ARIMA model. Letting L be lag operator, the d-th difference of an ARIMAX(p, d, q) process Y_t is
X_t = (1 - L) ^ d * Y_t,
where
X_t is an ARMAX(p, q) process, for which
X_t = μ + Σ φ_i * X_{t-i} + Σ θ_j * ε_{t-j} + ψ' * D_t + ε_t,
where D_t is an (m * 1) vector which contains all exogenous variables at time t (excl. the intercept term),
and its coefficients are represented by an m-dimensional vector ψ.
| Field Summary | |
|---|---|
protected double[] |
AR
the AR coefficients |
protected double[] |
MA
the MA coefficients |
protected double |
mu
the intercept (constant) term |
protected double[] |
psi
the coefficients of the deterministic terms (excluding the intercept term) |
protected double |
sigma
the white noise variance |
| Constructor Summary | |
|---|---|
ArimaxModel(ArimaxModel that)
Copy constructor. |
|
ArimaxModel(double[] AR,
int d,
double[] MA,
double[] psi)
Construct a zero-intercept (mu) univariate ARIMAX model with unit variance. |
|
ArimaxModel(double[] AR,
int d,
double[] MA,
double[] psi,
double sigma)
Construct a zero-intercept (mu) univariate ARIMAX model. |
|
ArimaxModel(double mu,
double[] AR,
int d,
double[] MA,
double[] psi)
Construct a univariate ARIMAX model with unit variance. |
|
ArimaxModel(double mu,
double[] AR,
int d,
double[] MA,
double[] psi,
double sigma)
Construct a univariate ARIMAX (ARIMA model with eXogenous inputs) model. |
|
| Method Summary | |
|---|---|
double[] |
AR()
Get the AR coefficients, excluding the initial 1. |
double |
AR(int i)
Get the i-th AR coefficient; AR(0) = 1. |
int |
d()
Get the order of integration. |
ArmaxModel |
getArmax()
Get the ARMAX specification of this ARIMAX model, essentially ignoring the differencing. |
double[] |
MA()
Get the MA coefficients, excluding the initial 1. |
double |
MA(int i)
Get the i-th MA coefficient; MA(0) = 1. |
int |
maxPQ()
Get the maximum of AR length or MA length. |
double |
mu()
Get the intercept term. |
int |
p()
Get the number of AR terms. |
double[] |
psi()
Get the coefficients of the deterministic terms. |
int |
q()
Get the number of MA terms. |
double |
sigma()
Get the white noise variance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final double mu
protected final double[] AR
protected final double[] MA
protected final double[] psi
protected final double sigma
| Constructor Detail |
|---|
public ArimaxModel(double mu,
double[] AR,
int d,
double[] MA,
double[] psi,
double sigma)
mu - the intercept (constant) termAR - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationMA - the MA coefficients (excluding the initial 1); null if no MA coefficientpsi - the coefficients of the deterministic terms (excluding the intercept term)sigma - the white noise variance
public ArimaxModel(double mu,
double[] AR,
int d,
double[] MA,
double[] psi)
mu - the intercept (constant) termAR - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationMA - the MA coefficients (excluding the initial 1); null if no MA coefficientpsi - the coefficients of the deterministic terms (excluding the intercept term)
public ArimaxModel(double[] AR,
int d,
double[] MA,
double[] psi,
double sigma)
AR - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationMA - the MA coefficients (excluding the initial 1); null if no MA coefficientpsi - the coefficients of the deterministic terms (excluding the intercept term)sigma - the white noise variance
public ArimaxModel(double[] AR,
int d,
double[] MA,
double[] psi)
AR - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationMA - the MA coefficients (excluding the initial 1); null if no MA coefficientpsi - the coefficients of the deterministic terms (excluding the intercept term)public ArimaxModel(ArimaxModel that)
that - a univariate ARIMAX model| Method Detail |
|---|
public double mu()
public double AR(int i)
i - an index
public double[] AR()
nullpublic double MA(int i)
i - an index
public double[] MA()
nullpublic double[] psi()
nullpublic int d()
public int p()
public int q()
public int maxPQ()
public double sigma()
public ArmaxModel getArmax()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||