RecursiveLSResults.plot_diagnostics()

statsmodels.regression.recursive_ls.RecursiveLSResults.plot_diagnostics

RecursiveLSResults.plot_diagnostics(variable=0, lags=10, fig=None, figsize=None)

Diagnostic plots for standardized residuals of one endogenous variable

Parameters:

variable : integer, optional

Index of the endogenous variable for which the diagnostic plots should be created. Default is 0.

lags : integer, optional

Number of lags to include in the correlogram. Default is 10.

fig : Matplotlib Figure instance, optional

If given, subplots are created in this figure instead of in a new figure. Note that the 2x2 grid will be created in the provided figure using fig.add_subplot().

figsize : tuple, optional

If a figure is created, this argument allows specifying a size. The tuple is (width, height).

Notes

Produces a 2x2 plot grid with the following plots (ordered clockwise from top left):

  1. Standardized residuals over time
  2. Histogram plus estimated density of standardized residulas, along with a Normal(0,1) density plotted for reference.
  3. Normal Q-Q plot, with Normal reference line.
  4. Correlogram

© 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.regression.recursive_ls.RecursiveLSResults.plot_diagnostics.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部