public class ARIMAXModel
extends java.lang.Object
implements java.io.Serializable
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,
\[
X_t = \mu + \Sigma \phi_i X_{t-i} + \Sigma \theta_j \epsilon_{t-j} + \psi' D_t + \epsilon_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 ψ.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
toString() |
protected final double mu
protected final double[] AR
protected final double[] MA
protected final double[] psi
protected final double sigma
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 variancepublic 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 variancepublic 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 modelpublic double mu()
public double AR(int i)
i - an indexpublic double[] AR()
nullpublic double MA(int i)
i - an indexpublic double[] MA()
nullpublic double[] psi()
nullpublic int d()
public int p()
public int q()
public int maxPQ()
public double sigma()
public ARMAXModel getArmax()
public java.lang.String toString()
toString in class java.lang.Object