ARIMA#
- class cultivars.univariate.box_jenkins.ARIMA(endog, *, order, trend='c')[source]#
ARIMA(p, d, q): non-seasonal differencing, no seasonal block, no regressors.
The model \(\phi(L)\,(1 - L)^d\,(y_t - \mu_t) = \theta(L)\,\varepsilon_t\), with \(\mu_t\) the deterministic terms of
trendon the differenced scale, so that undertrend="c"andd = 1the constant is the drift of the levels. Reach forARIMAXwhen there are exogenous regressors. Splitting the two is what makes either name informative: a reader of a call site knows fromARIMAalone that the fit has no external drivers.- Parameters:
- Raises:
SpecificationError – If the order has the wrong length or a negative entry, or the trend is unrecognized.
DimensionError – If the series is too short for the specification.
See also
Example
A random walk with drift is an ARIMA(0, 1, 0) whose constant is the drift:
>>> import numpy as np >>> rng = np.random.default_rng(0) >>> levels = np.cumsum(0.3 + rng.standard_normal(500)) >>> res = ARIMA(levels, order=(0, 1, 0)).fit() >>> res.nobs, round(float(res.beta[0]), 1) (499, 0.3)
Attributes#
The validated endogenous series. |
|
The validated exogenous regressors, or |
|
The non-seasonal order |
|
The seasonal order |
|
The deterministic specification. |
Methods#
|
Estimate by exact maximum likelihood. |