1

I've tried running statsmodels SARIMAX code in Python but I keep getting:

"ValueError: Out-of-sample operations in a model with a regression component require additional exogenous values via the exog argument."

Both my endog ['Oil_(Sm3)'] and exog ['Water_(Sm3)'] variables have the same shape (91, 2).

I'm stumped!

enter image description here

Kush
  • 11
  • 3
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jun 20 '22 at 01:39
  • I've added more code. Does it suffice now? – Kush Jun 20 '22 at 10:12
  • Does this answer your question? [statsmodels ARIMA forecast without future values of exogenous variable](https://stackoverflow.com/questions/61765604/statsmodels-arima-forecast-without-future-values-of-exogenous-variable) – cfulton Jun 21 '22 at 13:45

1 Answers1

0

SARIMAX Prediction

I basically added the "exog = test_exog" component to the .predict() line

Kush
  • 11
  • 3