Posterior PlotΒΆ

API documentation: plot_posterior()

../_images/mpl_plot_posterior.png

Python source code: [download source: matplotlib/mpl_plot_posterior.py]

import matplotlib.pyplot as plt

import arviz as az

az.style.use("arviz-darkgrid")

data = az.load_arviz_data("centered_eight")

coords = {"school": ["Choate"]}
az.plot_posterior(data, var_names=["mu", "theta"], coords=coords, rope=(-1, 1))

plt.show()

Python source code: [download source: bokeh/bokeh_plot_posterior.py]

import arviz as az

data = az.load_arviz_data("centered_eight")

coords = {"school": ["Choate"]}
ax = az.plot_posterior(
    data, var_names=["mu", "theta"], coords=coords, rope=(-1, 1), backend="bokeh"
)