Predictive check with KDEs

Predictive check with KDEs#

Plot of samples from the posterior predictive and observed data.

Matplotlib version of plot_ppc_dist

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("radon")
pc = azp.plot_ppc_dist(
    dt,
    backend="none",
)
pc.show()

See also

API Documentation: plot_ppc_dist

EABM chapter on Posterior predictive checks

Other examples with plot_ppc_dist#