4
$\begingroup$

I am not well versed with statics. Basically an engineer, and use statistic algorithms to solve problem.Currently I am involved in time series analysis,, using R, and for this using forecast package.

So I am trying to understand the way Arimax(auto.arima) works. I was mainly trying to understand the forecast part. So i dig deep into forecast:::forecast.Arima function. There I found that after some QC, stats:::predict.Arima function is used for final prediction. In this function, I understood that prediction is basically the sum of multiplying the Xvariables with thier coefficients and the prediction from KalmanForecast function, which basically takes only the arima components as input i.e. KalmanForecast(n.ahead, object$model). Hence to summarize, the prediction for a Arimax model is

ArimaxPrediction = xData * coefficients + KalmanForecast(n.ahead, object$model)

Based on this, I have three questions:

  1. Is this understanding correct?

  2. How does arima model part is calculated in Arimax? In Arimax, do we first do the linear regression and on the residual of this regression, do we fit arima models? I generally use forecast:::auto.arima for this. This function does the linear regression and also the fits the arima part, while minimizing the aic.

  3. Can I replace the linear regression part of Arimax, with other techniques e.g. boosting, svm, etc. and then on the residual fit the arima model? Will that makes sense, or I am completely wrong.

Regards

$\endgroup$
1
  • 2
    $\begingroup$ arima, forecast::Arima and forecast::auto.arima do not fit ARIMAX models; they fit regressions with ARIMA errors. See Rob J. Hyndman's blog post. $\endgroup$ Jun 12, 2017 at 18:19

1 Answer 1

1
$\begingroup$

The link https://www.otexts.org/fpp/9/1 explains the R implementation of arimax.

$\endgroup$
1
  • 1
    $\begingroup$ The linked text is not on arimax. It is, as noted there, regression with arimax. See the blog post mentioned Richard Hardy in a comment to the question. $\endgroup$ Nov 23, 2020 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.