Posterior KDEs for two models

Posterior KDEs for two models#

Full marginal distribution comparison between different models

Matplotlib version of plot_dist_models

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")

c = load_arviz_data("centered_eight")
n = load_arviz_data("non_centered_eight")
pc = azp.plot_dist(
    {"Centered": c, "Non Centered": n},
    backend="none"  # change to preferred backend
)
pc.show()

See also

API Documentation: plot_dist

Other examples comparing marginal distributions: Posterior forest for two models

Other examples with plot_dist#