statsmodels.tsa.vector_ar.var_model.VARResults.plot_acorr

VARResults.plot_acorr(nlags=10, resid=True, linewidth=8) [source]

Plot autocorrelation of sample (endog) or residuals

Sample (Y) or Residual autocorrelations are plotted together with the standard \(2 / \sqrt{T}\) bounds.

Parameters:
  • nlags (int) – number of lags to display (excluding 0)
  • resid (boolean) – If True, then the autocorrelation of the residuals is plotted If False, then the autocorrelation of endog is plotted.
  • linewidth (int) – width of vertical bars
Returns:

fig

Return type:

matplotlib figure instance

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.tsa.vector_ar.var_model.VARResults.plot_acorr.html