skillfed

arviz-stats

Statistical computation and diagnostics for ArviZ.

arviz-stats v1.3.0 730.9K downloads/30d#5,208 on PyPI18
Permissive license Active released

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-stats

uv

uv add arviz-stats

poetry

poetry add arviz-stats

Installing 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

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 diagnosticsposterior analysis statisticsbayesian inference diagnosticsmodel comparison metricsbayesian convergence diagnosticsposterior predictive checkingbayesian model validation
bayesian-inferencediagnosticsstatistics

More Mathematics packages