Skip to content

Instantly share code, notes, and snippets.

@dpbac
Created June 23, 2021 15:19
Show Gist options
  • Select an option

  • Save dpbac/4e5a0359062678f2251c6f5935edac08 to your computer and use it in GitHub Desktop.

Select an option

Save dpbac/4e5a0359062678f2251c6f5935edac08 to your computer and use it in GitHub Desktop.
dates = df_store_2_item_28_time.index
# Plot mean ARIMA and SARIMA predictions and observed
plt.figure(figsize=(15,10))
plt.title('Comparing forecasting in sample of all models', size = 16)
plt.plot(arima_mean.index, arima_mean, label='ARIMA(4,1,5)')
plt.plot(sarima_01_mean.index, sarima_01_mean, label='SARIMA(0,1,6)(0,1,1)7')
plt.plot(sarima_02_mean.index, sarima_02_mean, label='SARIMAX(6,1,1)(6,1,0)7')
plt.plot(df_store_2_item_28_time[-90:], label='observed')
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment