zemlyansky / arima

ARIMA, SARIMA, SARIMAX and AutoARIMA models for time series analysis and forecasting in the browser and Node.js

Home Page:https://www.npmjs.com/arima

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need fix for broken prediction

muazhari opened this issue · comments

I tried to train/fit ARIMA & Auto ARIMA model with sin pattern datasets but it gives an invalid prediction, even in the first data point is invalid/not meaningful at all. can I get the solution or someone helps me out? I truly need this fix.

  const model = new ARIMA({
    auto: true,
    verbose: true,
  });

  model.train(trainDatasets);

  const [preds, errors] = model.predict(testLen);

below is the plotted data.

image

It's issue with auto mode. The api in library is created based on sarimmax function. There are few bugs with the parameters estimation. For your usage you can use the arima with p:2, d:1, q:2 parameters. It should produce the meaningfull result if no, add the seasonal s parameter. You need to count it by your own. It could be 16 or 8. This is the only one solution for you currently.

Yep, it seems that there's some issue with the AutoARIMA mode. Can be related to rafat/ctsa#5