public class ARMAModel extends ARIMAModel
The constant argument is the intercept in
\(X_t=c+\sum_i\phi_i X_{t-i}+\varepsilon_t+\sum_j\theta_j\varepsilon_{t-j}\),
not the unconditional mean. For a stationary AR model the latter is
\(c/(1-\sum_i\phi_i)\). AR and MA arrays contain coefficients from lag one
onwards: do not prepend a leading one. The argument named sigma
is the innovation variance, not its standard deviation.
Supply finite coefficients for a causal/stationary specification and finite,
chronologically ordered observations at a consistent interval. Constructing a model
is not a model-selection, missing-data-cleaning, or stationarity-validation step.
Use ARMAForecast with a supplied model, or ConditionalSumOfSquares
when parameters must be estimated.
| Constructor and Description |
|---|
ARMAModel(ARMAModel that)
Copy constructor.
|
ARMAModel(double[] AR,
double[] MA)
Construct a univariate ARMA model with unit variance and zero-intercept
(mu).
|
ARMAModel(double[] AR,
double[] MA,
double sigma)
Construct a univariate ARMA model with zero-intercept (mu).
|
ARMAModel(double mu,
double[] AR,
double[] MA)
Construct a univariate ARMA model with unit variance.
|
ARMAModel(double mu,
double[] AR,
double[] MA,
double sigma)
Construct a univariate ARMA model.
|
| Modifier and Type | Method and Description |
|---|---|
double |
conditionalMean(double[] arLags,
double[] maLags)
Compute the univariate ARMA conditional mean, given all the lags.
|
ARMAModel |
getDemeanedModel()
Get the demeaned version of the time series model.
\[
Y_t = (X_t - \mu) = \sum_{i=1}^p \phi_i (X_{t-i} - \mu) + \sum_{i=1}^q
\theta_j \epsilon_{t-j} + \epsilon_t
\]
μ is the unconditional mean.
|
double |
unconditionalMean()
Compute the multivariate ARMA unconditional mean.
|
getARMApublic ARMAModel(double mu,
double[] AR,
double[] MA,
double sigma)
mu - the intercept (constant) termAR - the AR coefficients (excluding the initial 1); null
if no AR coefficientsMA - the MA coefficients (excluding the initial 1); null
if no MA coefficientssigma - the white noise variancepublic ARMAModel(double mu,
double[] AR,
double[] MA)
mu - the intercept (constant) termAR - the AR coefficients (excluding the initial 1); null if
no AR coefficientsMA - the MA coefficients (excluding the initial 1); null if
no MA coefficientspublic ARMAModel(double[] AR,
double[] MA,
double sigma)
AR - the AR coefficients (excluding the initial 1); null
if no AR coefficientsMA - the MA coefficients (excluding the initial 1); null
if no MA coefficientssigma - the white noise variancepublic ARMAModel(double[] AR,
double[] MA)
AR - the AR coefficients (excluding the initial 1); null if
no AR coefficientsMA - the MA coefficients (excluding the initial 1); null if
no MA coefficientspublic ARMAModel(ARMAModel that)
that - a univariate ARMA modelpublic double conditionalMean(double[] arLags,
double[] maLags)
arLags - the AR lagsmaLags - the MA lagspublic double unconditionalMean()
public ARMAModel getDemeanedModel()
Copyright © 2010-2026 NM Group. All Rights Reserved.