Graphical tools for Bayesian inference and posterior predictive checks.
Author hendersontrent
20 Stars
Updated Last
1 Year Ago
Started In
July 2021


DOI Coverage

Graphical tools for Bayesian inference and posterior predictive checks.


You can install PosteriorPlots.jl from the Julia Registry via:

using Pkg


R has excellent packages for the plotting and analysis of Bayesian models fit in probabilistic programming languages such as Stan. Examples of these packages include bayesplot and tidybayes. The functionality afforded by these packages greatly enables researchers to automatically obtain informative and clean graphical summaries of various posterior properties of interest. While packages such as MCMCChains.jl, ArviZ.jl, and others exist in Julia for models built in the PPLs Turing.jl and Soss.jl, the clean, inference-ready output aesthetics produced by bayesplot are not easily available by default. PosteriorPlots.jl seeks to bridge this gap. Since PosteriorPlots.jl functions can take standard object types such as Arrays as inputs (as well as special object types such as Chains), it can flexibly accommodate models from Stan and other PPLs.


PosteriorPlots.jl provides intuitive and simple functionality for both statistical inference of model parameter posterior distributions as well as visualisation and interpretation of model fits and posterior diagnostics. Package functionality can be summarised across these two domains:

Statistical inference

  • Parameter pointwise estimates and credible intervals
  • Parameter posterior density/mass distributions
  • Parameter posterior histograms

Model diagnostics

  • Posterior predictive checks of distribution
  • Posterior predictive checks of probability mass/density
  • Posterior predictive checks of empirical cumulative density functions

Citation instructions

If you use PosteriorPlots.jl in your work, please cite it using the following (included as BibTeX file in the package folder):

  author={Henderson, Trent},


Many thanks to Brendan Harris for error troubleshooting and other technical Julia advice.

Used By Packages

No packages found.