Skip to main content
deleted 7 characters in body
Source Link
Tim
  • 141.2k
  • 26
  • 270
  • 512

I know this has been asked a lot but I have checked everything and still don't understand. To start, I have a dataset of global temperatures averaged over years. There is a trend in the series and I use pmdarima ndiffs to give me the number of differencing. I use pmdarima auto_arima to get the model with the lowest aic value. But when I plot the predictions, I get a straight line with a trend. The model I use is:

size = len(avg_temp)
cutoff = int(size*0.7)
train = avg_temp[:cutoff]
test = avg_temp[cutoff:]    
model = pm.auto_arima(train, start_p=1, start_q=1,
                     max_p=10, max_q=10,
                     seasonal=False,
                     d=1, trace=True,  
                     suppress_warnings=True)

[![Image of the original series and the prediction][1]][1]Image of the original series and the prediction

The order of the model obtained by auto_arima is (1, 1, 3). I read in some answers that the forecast of ARIMA is only to the value of q. But I have seen people forecasting bigger ranges of values. I checked for seasonality by using statsmodels seasonal_decompose and there was no seasonality. [![Additive seasonal decompose][2]][2]

Additive seasonal decompose

My questions are: Am I doing something wrong? What can I do to improve it? and if it can't be improved how do I explain it? Thank you! [1]: https://i.sstatic.net/CGmqB.png [2]: https://i.sstatic.net/iN7Cv.png

I know this has been asked a lot but I have checked everything and still don't understand. To start, I have a dataset of global temperatures averaged over years. There is a trend in the series and I use pmdarima ndiffs to give me the number of differencing. I use pmdarima auto_arima to get the model with the lowest aic value. But when I plot the predictions, I get a straight line with a trend. The model I use is:

size = len(avg_temp)
cutoff = int(size*0.7)
train = avg_temp[:cutoff]
test = avg_temp[cutoff:]    
model = pm.auto_arima(train, start_p=1, start_q=1,
                     max_p=10, max_q=10,
                     seasonal=False,
                     d=1, trace=True,  
                     suppress_warnings=True)

[![Image of the original series and the prediction][1]][1]

The order of the model obtained by auto_arima is (1, 1, 3). I read in some answers that the forecast of ARIMA is only to the value of q. But I have seen people forecasting bigger ranges of values. I checked for seasonality by using statsmodels seasonal_decompose and there was no seasonality. [![Additive seasonal decompose][2]][2]

My questions are: Am I doing something wrong? What can I do to improve it? and if it can't be improved how do I explain it? Thank you! [1]: https://i.sstatic.net/CGmqB.png [2]: https://i.sstatic.net/iN7Cv.png

I know this has been asked a lot but I have checked everything and still don't understand. To start, I have a dataset of global temperatures averaged over years. There is a trend in the series and I use pmdarima ndiffs to give me the number of differencing. I use pmdarima auto_arima to get the model with the lowest aic value. But when I plot the predictions, I get a straight line with a trend. The model I use is:

size = len(avg_temp)
cutoff = int(size*0.7)
train = avg_temp[:cutoff]
test = avg_temp[cutoff:]    
model = pm.auto_arima(train, start_p=1, start_q=1,
                     max_p=10, max_q=10,
                     seasonal=False,
                     d=1, trace=True,  
                     suppress_warnings=True)

Image of the original series and the prediction

The order of the model obtained by auto_arima is (1, 1, 3). I read in some answers that the forecast of ARIMA is only to the value of q. But I have seen people forecasting bigger ranges of values. I checked for seasonality by using statsmodels seasonal_decompose and there was no seasonality.

Additive seasonal decompose

My questions are: Am I doing something wrong? What can I do to improve it? and if it can't be improved how do I explain it?

edited tags
Link
Richard Hardy
  • 69.5k
  • 13
  • 126
  • 278
Source Link

auto_arima straight line prediction python

I know this has been asked a lot but I have checked everything and still don't understand. To start, I have a dataset of global temperatures averaged over years. There is a trend in the series and I use pmdarima ndiffs to give me the number of differencing. I use pmdarima auto_arima to get the model with the lowest aic value. But when I plot the predictions, I get a straight line with a trend. The model I use is:

size = len(avg_temp)
cutoff = int(size*0.7)
train = avg_temp[:cutoff]
test = avg_temp[cutoff:]    
model = pm.auto_arima(train, start_p=1, start_q=1,
                     max_p=10, max_q=10,
                     seasonal=False,
                     d=1, trace=True,  
                     suppress_warnings=True)

[![Image of the original series and the prediction][1]][1]

The order of the model obtained by auto_arima is (1, 1, 3). I read in some answers that the forecast of ARIMA is only to the value of q. But I have seen people forecasting bigger ranges of values. I checked for seasonality by using statsmodels seasonal_decompose and there was no seasonality. [![Additive seasonal decompose][2]][2]

My questions are: Am I doing something wrong? What can I do to improve it? and if it can't be improved how do I explain it? Thank you! [1]: https://i.sstatic.net/CGmqB.png [2]: https://i.sstatic.net/iN7Cv.png