statsmodels.graphics.regressionplots.plot_leverage_resid2

statsmodels.graphics.regressionplots.plot_leverage_resid2(results, alpha=0.05, ax=None, **kwargs)[source]

Plots leverage statistics vs. normalized residuals squared

Parameters:
  • results (results instance) – A regression results instance
  • alpha (float) – Specifies the cut-off for large-standardized residuals. Residuals are assumed to be distributed N(0, 1) with alpha=alpha.
  • ax (Axes instance) – Matplotlib Axes instance
Returns:

fig – A matplotlib figure instance.

Return type:

matplotlib Figure