Plot prior and posterior

Plot prior and posterior#

Plot prior and posterior marginal distributions.

Matplotlib version of plot_prior_posterior

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

data = load_arviz_data("centered_eight")
pc = azp.plot_prior_posterior(
    data,
    var_names="mu",
    kind="hist",
    backend="none"  # change to preferred backend
)
pc.show()

See also

API Documentation: plot_prior_posterior

Other examples with plot_prior_posterior#