0

I tried using sarimax to forecast my data but the forecast looked awfully wrong. But i do not understand why is it just a straight line. Tried to copy codes online and adjust but i still did not get a proper forecast. Anyone knows why?

My code: model=sm.tsa.statespace.SARIMAX(TN_posdf_positive['positiveTestsViralIncrease'],order=(1, 1, 1),seasonal_order=(1,1,1,12)) results=model.fit()

TN_posdf_positive['forecast'] = results.predict(start = 340, end = 388, dynamic= True)
TN_posdf_positive[['positiveTestsViralIncrease', 'forecast']].plot(figsize=(12, 8))

the code i did

AlexCole
  • 1
  • 1

0 Answers0