Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Created August 9, 2022 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liannewriting/2a153616a22b2307499dd3060754a0cd to your computer and use it in GitHub Desktop.
Save liannewriting/2a153616a22b2307499dd3060754a0cd to your computer and use it in GitHub Desktop.
time series prediction arima model python
import matplotlib.pyplot as plt
residuals = model_fit.resid[1:]
fig, ax = plt.subplots(1,2)
residuals.plot(title='Residuals', ax=ax[0])
residuals.plot(title='Density', kind='kde', ax=ax[1])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment