arviz-stats
Statistical computation and diagnostics for ArviZ.
What it is and what it does
arviz-stats is the statistical computation subpackage within the ArviZ ecosystem for Bayesian model analysis. It handles the core diagnostics and statistical summaries needed after running Bayesian inference, such as convergence checks, posterior summaries, and model comparison metrics. The package is designed as a modular component that can be used standalone with just numpy and scipy, or integrated into the broader ArviZ suite with xarray support for richer data structures.
The package targets both researchers doing exploratory Bayesian analysis and library developers who want to compute diagnostics without adopting the full ArviZ dependency tree. It supports current Python versions (3.12+) and maintains active development with regular updates.
Use it for:
- Computing convergence diagnostics (Rhat, effective sample size) for MCMC chains after inference
- Generating posterior predictive checks and model comparison statistics for Bayesian model validation
- Integrating Bayesian diagnostics into custom inference pipelines without adopting xarray
- Analyzing posterior samples from Stan, PyMC, or other Bayesian inference libraries
- Building downstream tools that need standardized Bayesian statistical summaries
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides statistical computations and diagnostic functions for Bayesian model analysis, including posterior analysis, model checking, and comparison metrics.
Yes, if you work with Bayesian models and need standard diagnostics and posterior analysis. The low dependency footprint (numpy, scipy only) and active maintenance make it a practical choice. Install with the optional xarray extra for full feature access, or use the minimal version if you're integrating into a library with strict dependencies.
Install
arviz-stats on PyPI
pip
pip install arviz-statsuv
uv add arviz-statspoetry
poetry add arviz-statsInstalling arviz-stats
Before you install
Low friction installation with only numpy and scipy as runtime dependencies. Active maintenance with a release 3 days old and recent commits.
License in practice
Licensed under Apache License (permissive), allowing broad use in commercial and private projects with minimal restrictions.
Quickstart
pip install arviz-stats
import arviz_stats
# Use statistical functions for Bayesian model diagnostics
# Functions accept numpy arrays or scipy distributions
Requires Python 3.12 or later. Optional xarray dependency unlocks full feature set; minimal install provides only array-based functions.
Verify before relying
- Specific diagnostic functions and their names beyond generic 'posterior analysis, model checking, comparison'
- Whether the package is actively used by the broader Bayesian modeling community or primarily internal to ArviZ ecosystem
- Performance characteristics or scalability limits for large posterior samples
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — numpy, scipy |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 730,936/month — #5,208 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: arviz_stats-1.3.0-py3-none-any.whl
Tags
More Mathematics packages
NetworkX provides data structures and…
permissive · top 1,000 on PyPI
kiwisolverkiwisolver is a Python binding to a fast C++…
permissive · top 1,000 on PyPI
sympySymPy is a Python library for symbolic…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
torchPyTorch provides GPU-accelerated tensor…
permissive · top 1,000 on PyPI
onnxruntimeonnxruntime loads and executes Open Neural…
permissive · top 1,000 on PyPI
arvizArviZ is a Python package for exploratory…
permissive · top 5,000 on PyPI
prelizPreliZ helps you specify prior distributions…
permissive · top 15,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
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
krippendorffComputes Krippendorff's alpha, a statistical…
copyleft · top 15,000 on PyPI
bayesian-optimizationBayesian optimization using Gaussian processes…
permissive · top 15,000 on PyPI
pymcPyMC is a Python package for Bayesian…
permissive · top 5,000 on PyPI
pymc3PyMC3 is a Python package for Bayesian…
permissive · top 15,000 on PyPI