Questions tagged [arima]

ARIMA (AutoRegressive Integrated Moving Average) model is a statistical model for finding patterns in time series in order to predict future points in the series.

In time series analysis, ARIMA (AutoRegressive Integrated Moving Average) model is a statistical model for finding patterns in time series in order to predict future points in the series (forecasting).

If your question concerns theoretical topics on ARIMA or practical topics which are not about implementation you might want to ask the question on cross validated.

1230 questions
24
votes
2 answers

Error: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting

So I have a CSV file with two columns: date and price, but when I tried to use ARIMA on that time series I encountered this error: ValueWarning: A date index has been provided, but it has no associated frequency information and so will be ignored…
Dorki
  • 1,021
  • 2
  • 8
  • 23
20
votes
2 answers

Statsmodels ARIMA - Different results using predict() and forecast()

I use ARIMA from statsmodels package in order to predict values from a series: plt.plot(ind, final_results.predict(start=0 ,end=26)) plt.plot(ind, forecast.values) plt.show() I thought that I would get the same results from these two methods, but…
Simone
  • 4,800
  • 12
  • 30
  • 46
10
votes
3 answers

How to perform multi-step out-of-time forecast which does not involve refitting the ARIMA model?

I have an already existing ARIMA (p,d,q) model fit to a time-series data (for ex, data[0:100]) using python. I would like to do forecasts (forecast[100:120]) with this model. However, given that I also have the future true data (eg: data[100:120]),…
John.Ludlum
  • 145
  • 3
  • 13
9
votes
2 answers

multiple seasonality Time series analysis in Python

I have a daily time series dataset that I am using Python SARIMAX method to predict for future. But I do not know how to write codes in python that accounts for multiple seasonalities. As far as I know, SARIMAX takes care of only one seasonality but…
9
votes
0 answers

R Arima works but Python statsmodels SARIMAX throws invertibility error

I am comparing SARIMAX fitting results between R (3.3.1) forecast package (7.3) and Python's (3.5.2) statsmodels (0.8). The R-code is: library(forecast) data("AirPassengers") Arima(AirPassengers, order=c(2,1,1),…
cuckoops
  • 91
  • 1
  • 1
  • 2
8
votes
1 answer

ConvergenceWarning: Maximum Likelihood optimization failed to converge

I am trying to use the ARIMA algorithm in statsmodels library to do forecasting on a time series dataset. It is a stock price dataset and when I feed normalized data to the model it gives the below error. Note: This is a uni-variate forecasting and…
Suleka_28
  • 2,761
  • 4
  • 27
  • 43
8
votes
3 answers

Want to combine date and time in a column using R

I have the following dataframe Date Time 10/03/2014 12.00.00 11/03/2014 13.00.00 12/03/2014 14.00.00 I want to create one single column as follows DT 10/03/2014 12.00.00 11/03/2014 13.00.00 12/03/2014 14.00.00 when I…
Nikhil Mangire
  • 397
  • 5
  • 13
8
votes
1 answer

ARIMA Forecast: Cannot cast ufunc subtract output from dtype('float64') to dtype('int64') with casting rule 'same_kind'

I am using ARIMA to fit values and save it as a pickle file. Post that, the pickle file is used to get out of sample predictions. However, while getting sample predictions I am getting the following error: Cannot cast ufunc subtract output from…
Ankit Tripathi
  • 394
  • 1
  • 3
  • 13
8
votes
2 answers

Is this time series stationary or not?

I want to check the stationary of a time series data saved in TS.csv. However, R's tseries::adf.test() and Python's statsmodels.tsa.stattools.adfuller() give completely different results. adf.test() shows it's stationary (p < 0.05), while adfuller()…
Leo
  • 1,710
  • 2
  • 26
  • 29
7
votes
3 answers

Statsmodels ARIMA: how to get confidence/prediction interval?

How to generate "lower" and "upper" predictions, not just "yhat"? import statsmodels from statsmodels.tsa.arima.model import ARIMA assert statsmodels.__version__ == '0.12.0' arima = ARIMA(df['value'], order=order) model = arima.fit() Now I can…
Dzmitry Lazerka
  • 1,809
  • 2
  • 21
  • 37
7
votes
1 answer

How to use Monte Carlo for ARIMA Simulation Function in R

Here is the algorithm of what I want to do with R: Simulate 10 time series data set from ARIMA model through arima.sim() function Split the series into sub-series of possible 2s, 3s, 4s, 5s, 6s, 7s, 8s, and 9s. For each size take a resample the…
Daniel James
  • 1,381
  • 1
  • 10
  • 28
7
votes
2 answers

Python: pmdarima, autoarima does not work with large data

I have a Dataframe with around 80.000 observations taken every 15 min. The seasonal parameter m is assumed with 96, because every 24h the pattern repeats. When I insert these informations in my auto_arima algorithm, it takes a long time (some hours)…
christianbauer1
  • 467
  • 5
  • 16
7
votes
1 answer

Python ARIMA output - interpreting Sigma2

I am trying to interpret ARIMA output below and not clear about sigma2. The documentation says it is 'The variance of the residuals.'. What is the hypothesis behind this output/importance?. Kindly provide answer or a link where it is covered in…
Regi Mathew
  • 2,603
  • 3
  • 24
  • 38
7
votes
0 answers

Is there an ARIMA model in Spark Scala?

How can we do ARIMA modeling in spark scala? Can we directly import any ARIMA package like regression or classification? In Spark's ml library, we do not have anything like ARIMA model.
7
votes
1 answer

Is it possible to include lags of exogenous variables in an ARIMAX-model?

Suppose I have two time series {x} and {y} and want to examine how the current realization of {y} is dependent on current and past realizations of {x} and past realizations of {y}. For this purpose, I could run a VAR(p)-model including p lags of {x}…
W. Walter
  • 337
  • 1
  • 10
1
2 3
81 82