Density and diagnostics for density estimation

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.

Matplotlib version of plot_dgof_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_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

Other examples with plot_dgof_dist#