skillfed

arviz

Expose features from _ArviZverse_ refactored packages together in the ``arviz`` namespace.

arviz v1.3.0 3.9M downloads/30d#2,440 on PyPI1,846
Permissive license Active released

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 arviz

uv

uv add arviz

poetry

poetry add arviz

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

bayesian model analysisposterior diagnosticsbayesian inference visualizationmcmc diagnosticsbayesian model comparison
bayesian-inferencediagnosticsvisualization

More Scientific/Engineering packages