|
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.multivariate.stationaryprocess.arima.ArimaxModel
public class ArimaxModel
This class represents a multivariate ARIMAX (ARIMA model with eXogenous inputs) model.
The multivariate ARIMAX model incorporates exogenous variables and it can be considered as a generalization of the multivariate ARIMA model. Letting L be lag operator, the d-th difference of a multivariate 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.
In the equation above, X_s, μ and ε_s are n-dimensional vectors; (n * n) matrices {φ_i} and {θ_j} are the AR and MA
coefficients, respectively; 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 a (n * m) matrix ψ.
| Field Summary | |
|---|---|
protected ImmutableVector |
mu
the intercept (constant) vector |
protected ImmutableMatrix[] |
phi
the AR coefficients |
protected ImmutableMatrix |
psi
the coefficients of the deterministic terms (excluding the intercept term) |
protected ImmutableMatrix |
sigma
the covariance matrix of white noise |
protected ImmutableMatrix[] |
theta
the MA coefficients |
| Constructor Summary | |
|---|---|
ArimaxModel(ArimaxModel that)
Copy constructor. |
|
ArimaxModel(ArimaxModel model)
Cast a univariate ARIMAX model to a multivariate model. |
|
ArimaxModel(Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi)
Construct a zero-intercept (mu) multivariate ARIMAX model with unit variance. |
|
ArimaxModel(Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi,
Matrix sigma)
Construct a zero-intercept (mu) multivariate ARIMAX model. |
|
ArimaxModel(Vector mu,
Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi)
Construct a multivariate ARIMAX model with unit variance. |
|
ArimaxModel(Vector mu,
Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi,
Matrix sigma)
Construct a multivariate ARIMAX (ARIMA model with eXogenous inputs) model. |
|
| Method Summary | |
|---|---|
ImmutableMatrix[] |
AR()
Get the AR coefficients, excluding the initial 1. |
ImmutableMatrix |
AR(int i)
Get the i-th AR coefficient; AR(0) = 1. |
int |
d()
Get the order of integration. |
int |
dimension()
Get the dimension of multivariate time series. |
ArmaxModel |
getArmax()
Get the ARMAX specification of this ARIMAX model, essentially ignoring the differencing. |
ImmutableMatrix[] |
MA()
Get the MA coefficients, excluding the initial 1. |
ImmutableMatrix |
MA(int i)
Get the i-th MA coefficient; AR(0) = 1. |
int |
maxPQ()
Get the maximum of AR length or MA length. |
ImmutableVector |
mu()
Get the intercept vector. |
int |
p()
Get the number of AR terms. |
ImmutableMatrix |
psi()
Get the coefficients of the deterministic terms. |
int |
q()
Get the number of MA terms. |
ImmutableMatrix |
sigma()
Get the covariance matrix of white noise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ImmutableVector mu
protected final ImmutableMatrix[] phi
protected final ImmutableMatrix[] theta
protected final ImmutableMatrix psi
protected final ImmutableMatrix sigma
| Constructor Detail |
|---|
public ArimaxModel(Vector mu,
Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi,
Matrix sigma)
mu - the intercept (constant) vectorphi - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationtheta - the MA coefficients (excluding the initial 1); null if no MA coefficientpsi - the coefficients of the deterministic terms (excluding the intercept term)sigma - the covariance matrix of white noise
public ArimaxModel(Vector mu,
Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi)
mu - the intercept (constant) vectorphi - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationtheta - the MA coefficients (excluding the initial 1); null if no MA coefficientpsi - the coefficients of the deterministic terms (excluding the intercept term)
public ArimaxModel(Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi,
Matrix sigma)
phi - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationtheta - the MA coefficients (excluding the initial 1); null if no MA coefficientpsi - the coefficients of the deterministic terms (excluding the intercept term)sigma - the covariance matrix of white noise
public ArimaxModel(Matrix[] phi,
int d,
Matrix[] theta,
Matrix psi)
phi - the AR coefficients (excluding the initial 1); null if no AR coefficientd - the order of integrationtheta - 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 multivariate ARIMAX modelpublic ArimaxModel(ArimaxModel model)
model - a univariate ARIMAX model| Method Detail |
|---|
public ImmutableVector mu()
public ImmutableMatrix AR(int i)
i - an index
public ImmutableMatrix[] AR()
nullpublic ImmutableMatrix MA(int i)
i - an index
public ImmutableMatrix[] MA()
nullpublic ImmutableMatrix psi()
nullpublic int d()
public int dimension()
public int p()
public int q()
public int maxPQ()
public ImmutableMatrix 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 | |||||||