Post by qianqian zhangHi Chad,
Thank you for your reply.
I checked the references you mentioned above, I am still not sure about
the ARIMA formula behind the codes ("statsmodels.tsa.arima_model import
ARIMA'').
I found some references showed the formula contain a constant (for example,
Yt = µ + Ï1 Yt-1 + ... + Ïp Yt-p + εt + Ï1 εt-1 + ... + Ïq εt-q, where µ is
a constant, http://www.stanfordphd.com/ARIMA_Process.html ) but some
donot have.
Do you have some suggestions?
Thanks!
Best Regards,
Qian
Post by Chad FultonPost by z***@gmail.comI used "statsmodels.tsa.arima_model import ARIMA" in Python to develop
an ARIMA model. Recently I am writing the methodology of ARIMA, but I can
https://www.statsmodels.org/dev/generated/statsmodels.tsa.arima_model.ARIMA.html
So here my question is where could I find the reference (or formula)
used "statsmodels.tsa.arima_model import ARIMA" in Python?
Thank you in advance.
For sm.tsa.ARIMA estimated via MLE, the model is cast into state space
form and the log-likelihood is evaluated using the prediction error
decomposition computed using the Kalman filter.
You can consult Hamilton (1994) "Time series analysis" or Durbin and
Koopman (2012) "Time series analysis by state space methods" for details.
Chad
If you are looking for the description of the ARIMA model itself, it is
provided at the link from your first e-mail:
https://www.statsmodels.org/dev/generated/statsmodels.tsa.arima_model.ARIMA.html
and it is:
\phi(L) (y_t - X_t \beta) = \theta(L) \espilon_t
where \phi(L) and \theta(L) are the autoregressive and moving average lag
polynomials.
So for example, if you specify `mod = sm.tsa.ARIMA(endog, order=(1, 0, 1)`
and you include a constant term (which is the default), then your model is:
(y_t - \mu) = \phi_1 (y_{t-1} - \mu) + \varepsilon_t + \theta_1
\varepsilon_t
Best,
Chad
Post by qianqian zhangHi Chad,
Thank you for your reply.
I checked the references you mentioned above, I am still not sure about
the ARIMA formula behind the codes ("statsmodels.tsa.arima_model import
ARIMA'').
I found some references showed the formula contain a constant (for example,
Yt = µ + Ï1 Yt-1 + ... + Ïp Yt-p + εt + Ï1 εt-1 + ... + Ïq εt-q, where µ is
a constant, http://www.stanfordphd.com/ARIMA_Process.html ) but some
donot have.
Do you have some suggestions?
Thanks!
Best Regards,
Qian
Post by Chad FultonPost by z***@gmail.comI used "statsmodels.tsa.arima_model import ARIMA" in Python to develop
an ARIMA model. Recently I am writing the methodology of ARIMA, but I can
https://www.statsmodels.org/dev/generated/statsmodels.tsa.arima_model.ARIMA.html
So here my question is where could I find the reference (or formula)
used "statsmodels.tsa.arima_model import ARIMA" in Python?
Thank you in advance.
For sm.tsa.ARIMA estimated via MLE, the model is cast into state space
form and the log-likelihood is evaluated using the prediction error
decomposition computed using the Kalman filter.
You can consult Hamilton (1994) "Time series analysis" or Durbin and
Koopman (2012) "Time series analysis by state space methods" for details.
Chad