arviz
Expose features from _ArviZverse_ refactored packages together in the ``arviz`` namespace.
What it is and what it does
ArviZ is a modular library for analyzing Bayesian models after inference. It sits downstream of sampling tools (like PyMC or Stan) and provides a unified interface for posterior diagnostics, visualization, and model comparison. The package exposes features from three refactored subpackages—arviz_base, arviz_stats, and arviz_plots—together in the arviz namespace, allowing users to work with inference results in a consistent way regardless of which sampler generated them.
The library is designed for exploratory analysis: inspecting posterior distributions, checking convergence, comparing competing models, and validating inference quality. It handles data storage and transformation, making it straightforward to load traces from different Bayesian frameworks and apply a common suite of diagnostics and plots. Development is active (last commit 2026-08-11) and the package supports modern Python versions.
Use it for:
- Inspect posterior distributions and convergence diagnostics after running MCMC or variational inference.
- Compare competing Bayesian models using built-in comparison metrics and visualizations.
- Validate inference quality and detect sampling issues through standardized diagnostic plots.
- Store and reload Bayesian inference results in a framework-agnostic format.
- Generate publication-quality plots of Bayesian analysis results for reports or papers.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
ArviZ is a Python package for exploratory analysis of Bayesian models, providing functions for posterior analysis, data storage, model checking, comparison, and diagnostics.
Yes. ArviZ is a mature, actively maintained tool (release 3 days old, 1846 repository stars) with no known vulnerabilities, permissive licensing, and low install friction. It is essential for anyone working with Bayesian inference in Python who needs systematic posterior analysis and diagnostics beyond what individual samplers provide.
Install
arviz on PyPI
pip
pip install arvizuv
uv add arvizpoetry
poetry add arvizInstalling arviz
Before you install
Low friction installation as a pure Python wheel. Actively maintained with a release 3 days old and recent commits; supports current Python versions (3.12, 3.13, 3.14).
License in practice
Licensed under Apache (permissive), imposing no significant restrictions on use or redistribution.
Quickstart
pip install arviz
import arviz as az
# Load and analyze Bayesian model results
data = az.from_pymc3(trace=your_trace, prior=your_prior)
az.plot_posterior(data)
Requires Python 3.12 or later.
Verify before relying
- Whether arviz_base, arviz_stats, and arviz_plots are required at runtime or optional modular components.
- Specific Bayesian sampling frameworks (PyMC, Stan, etc.) that ArviZ integrates with beyond what the fact sheet states.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — arviz_base, arviz_stats, arviz_plots |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,940,649/month — #2,440 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: arviz-1.3.0-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
arviz-baseProvides converters and base data manipulation…
permissive · top 15,000 on PyPI
arviz-plotsarviz-plots provides visualization functions…
permissive · top 15,000 on PyPI
arviz-statsProvides statistical computations and…
permissive · top 15,000 on PyPI
prelizPreliZ helps you specify prior distributions…
permissive · top 15,000 on PyPI
cornerGenerates publication-quality corner plots…
permissive · top 15,000 on PyPI
pystanPyStan provides a Python interface to Stan for…
permissive · top 5,000 on PyPI
emceeemcee implements affine-invariant ensemble…
permissive · top 5,000 on PyPI
nutpienutpie provides a fast NUTS sampler for…
permissive · top 15,000 on PyPI
bayesian-optimizationBayesian optimization using Gaussian processes…
permissive · top 15,000 on PyPI
pymc3PyMC3 is a Python package for Bayesian…
permissive · top 15,000 on PyPI