Predictive check with ECDF and PIT Δ-ECDFs.

Predictive check with ECDF and PIT Δ-ECDFs.#

Plot of the ECDF (right) of the PIT values (left) for samples from the posterior predictive and observed data.

Matplotlib version of plot_ppc_dist_pit

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("rugby")
pc = azp.plot_ppc_dist_pit(
    dt,
    kind="ecdf",
    backend="none",
)
pc.show()

See also

API Documentation: plot_ppc_pit

EABM chapter on Posterior predictive checks with PIT-ECDFs

Other examples with plot_ppc_dist_pit#