Skip to content

Instantly share code, notes, and snippets.

@mikekeith52
Last active March 18, 2022 09:41
Show Gist options
  • Select an option

  • Save mikekeith52/2ca266fd9b1ceaf310a3fa5a6690d42b to your computer and use it in GitHub Desktop.

Select an option

Save mikekeith52/2ca266fd9b1ceaf310a3fa5a6690d42b to your computer and use it in GitHub Desktop.
# EDA
f.plot_acf()
plt.show()
f.plot_pacf()
plt.show()
f.seasonal_decompose().plot()
plt.show()
stat, pval, _, _, _, _ = f.adf_test(full_res=True)
print(stat)
print(pval)
# Forecast
f.manual_forecast(order=(1,1,1),seasonal_order=(2,1,1,12),call_me='arima2')
# View test results
f.plot_test_set(ci=True,models='arima2')
plt.title('ARIMA Test-Set Performance',size=14)
plt.show()
# View forecast results
f.plot(ci=True,models='arima2')
plt.title('ARIMA Forecast Performance',size=14)
plt.show()
# See summary stats
f.regr.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment