Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARIMA - Could not find an appropriate ARIMA model. #337

Closed
mayanklal opened this issue Jul 17, 2021 · 3 comments
Closed

ARIMA - Could not find an appropriate ARIMA model. #337

mayanklal opened this issue Jul 17, 2021 · 3 comments

Comments

@mayanklal
Copy link

I'm trying to build a forecasting model that predicts monthly commodity price based on the information provided by exogenous variables.

Based on my analysis of the dataset, I have identified that the data has lagged predictors.

I have tried to incorporate the same into the model.

fit <- commodity_tsbl %>%
  model(m1_arimax = ARIMA(Rate ~ 0 + CNE + CCI +
                          CP + IP +
                          FS + SC +
                          IX+ EX+
                          mat_input + PI + lag(FD,3) +
                          Exchange_Rate + Input0+ lag(RR,3) +
                          Input1 + Input2 +
                          Input3 + lag(SP,1)))

It is giving me this error:

Warning message:
4 errors (1 unique) encountered for m1_arimax
[4] Could not find an appropriate ARIMA model.
This is likely because automatic selection does not select models with characteristic roots that may be numerically unstable.
For more details, refer to https://otexts.com/fpp3/arima-r.html#plotting-the-characteristic-roots

Based on some guess work, this error goes away when I remove this predictor from the equation - lag(FD,3). It gives this model after removing the mentioned predictor - <LM w/ ARIMA(0,0,0) errors>

Due to paucity of information available online on implementing SARIMAX in R, I would request you to help me with the following questions:

  1. How to select predictors in ARIMAX Model? Should we use the same concepts are that of Multivariate Regression?
  2. How to model a non-stationary dataset with more than one predictors? Given that the predictors can also be non-stationary and may have lagging influence as well.
  3. How to forecast the values using the final model when there is no data available for predictors in the future time period? Do we need to forecast their values separately?

I hope that these questions are not too naïve for this forum.

@mitchelloharawild
Copy link
Member

  1. fable::ARIMA() models with exogenous regressors are regression models with ARIMA errors (https://robjhyndman.com/hyndsight/arimax/) not ARIMAX models. As such, selecting predictors can be done similarly to regression.
  2. The regression errors will need to be stationary for an ARMA model to be used.
  3. You will need to forecast these values separately. Note that the forecast uncertainty will not factor in the uncertainty of the regressors forecasted.

@mitchelloharawild
Copy link
Member

Also note for statistics type questions as yours, you may get better help on https://stats.stackexchange.com/
Issues on GitHub are appropriate for issues with the codebase.

@mayanklal
Copy link
Author

mayanklal commented Aug 29, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants