Density and diagnostics for density estimation#
Diagnostics for assessing the goodness-of-fit of estimated distributions to the underlying data using the Probability Integral Transform (PIT) and the Δ-ECDF-PIT plots.
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_dgof_dist(dt,
var_names="g",
kind="kde",
backend="none" # change to preferred backend
)
pc.show()
See also
API Documentation: plot_dgof_dist
EABM chapter on Visualization of Random Variables with ArviZ
