plot_residual_qq

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

plot_residual_qq(y_true: ndarray, y_pred: ndarray, *, title: str = 'Normal Q-Q of residuals')[source]

Quantile-quantile plot of the residuals against a normal reference.

Residuals lying on the reference line are consistent with the normality that many regression inferential procedures assume; systematic S-curves or heavy tails flag a violation.

Parameters:
  • y_true – Observed responses.

  • y_pred – Predicted responses.

  • title – Figure title (sanitised).

Returns:

The matplotlib Figure.