Sensitivity posterior marginals

Sensitivity posterior marginals#

The posterior sensitivity is assessed by power-scaling the prior or likelihood and visualizing the resulting changes. Sensitivity can then be quantified by considering how much the perturbed posteriors differ from the base posterior.

Matplotlib version of plot_psense

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

idata = load_arviz_data("rugby")
pc = azp.plot_psense_dist(
    idata,
    var_names=["defs", "sd_att", "sd_def"],
    coords={"team": ["Scotland", "Wales"]},
    y=[-2, -1, 0],
    backend="none",
)
pc.show()

See also

API Documentation: plot_psense_dist

Other examples with plot_psense_dist#