PAV-adjusted residual plot

PAV-adjusted residual plot#

Residual plot using PAV-adjusted calibration for binary predictions.

Matplotlib version of plot_ppc_pava_residuals

Link to this page with the bokeh tab selected

Link to this page with the plotly tab selected

from arviz_base import load_arviz_data

import arviz_plots as azp

azp.style.use("arviz-variat")

dt = load_arviz_data("roaches_zinb")
pc = azp.plot_ppc_pava_residuals(
    dt,
    var_names="y_pos",
    x_var="roach count",
    backend="none",
)
pc.show()

See also

API Documentation: plot_ppc_pava_residuals

EABM chapter on Posterior predictive checks for binary data

Other examples with plot_ppc_pava_residuals#