pymc-extras
A home for new additions to PyMC, which may include unusual probability distribitions, advanced model fitting algorithms, or any code that may be inappropriate to include in the pymc repository, but may want to be made available to users.
Decision gist · record as of 2026-08-14
Yes. PyMC Extras is actively maintained by the PyMC team, carries no known vulnerabilities, installs with low friction, and is licensed permissively. Install it if you need specialized distributions, alternative inference methods, or statespace models beyond what PyMC core offers. It is production-ready (Development Status 5) and well-integrated with the PyMC ecosystem.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later and an existing PyMC installation.
- Low install friction with a pure-Python wheel.
- Actively maintained by the PyMC team with a release 17 days ago and recent commits.
License · maintenance · safety
permissive license (permissive) — Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects as long as you include a copy of the license and document any changes you make.
last release 2026-07-28 (17 days) · last repo commit 2026-08-14 · 142 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 257,653 downloads/mo, #8,438 on PyPI
Alternatives
Verify before relying
pip install pymc-extras
import pymc as pm
import pymc_extras as pmx
with pm.Model():
xi = pm.HalfNormal("xi", 0.2)
pmx.GenExtreme("llik", mu=1, sigma=0.5, xi=xi, observed=data)- Whether automatic marginalization via Laplace approximation is exact or approximate in practice for your use case.
- Performance characteristics of SARIMAX, VARMAX, and ETS models on typical time-series datasets.
- Compatibility of Pathfinder and DADVI methods with custom PyMC model structures.
What it is and what it does
PyMC Extras is a companion library to PyMC that houses specialized statistical methods and distributions too niche for the core library but mature enough to be useful. It provides alternative inference algorithms (Pathfinder, DADVI, INLA, Laplace approximation, better MAP estimation), additional probability distributions (DiscreteMarkovChain, GeneralizedPoisson, GenExtreme), and statespace models with Kalman filtering (SARIMAX, VARMAX, ETS, structural time series). The library mirrors PyMC's namespaces so distributions and methods integrate seamlessly into existing PyMC models.
It is maintained by the PyMC team and designed as an incubator: functionality that proves widely useful may graduate to the main PyMC repository. The package depends on pymc, pytensor, arviz, pydantic, preliz, and better-optimize, and targets modern Python versions (3.12, 3.13, 3.14). It carries no known vulnerabilities and is actively developed.
Use it for
- Fit time-series models like SARIMAX or structural time series with Kalman filtering when standard PyMC distributions are insufficient.
- Use alternative inference methods such as Pathfinder or INLA for faster or more accurate posterior approximation in specialized models.
- Apply automatic marginalization to handle finite discrete or conjugate variables exactly or via Laplace approximation.
- Model rare or extreme-value phenomena using specialized distributions like GenExtreme or GeneralizedPoisson.
- Implement Markov chain distributions for state-space or sequential modeling tasks.
- Experiment with advanced Bayesian techniques before they mature into the core PyMC library.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyMC Extras is actively maintained by the PyMC team, carries no known vulnerabilities, installs with low friction, and is licensed permissively. Install it if you need specialized distributions, alternative inference methods, or statespace models beyond what PyMC core offers. It is production-ready (Development Status 5) and well-integrated with the PyMC ecosystem.
Install
pymc-extras on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained by the PyMC team with a release 17 days ago and recent commits. Depends on pymc, pytensor, arviz, pydantic, preliz, and better-optimize—all established packages in the scientific Python ecosystem.
Requires Python 3.12 or later and an existing PyMC installation.
License in practice
Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects as long as you include a copy of the license and document any changes you make.
Quickstart
pip install pymc-extras
import pymc as pm
import pymc_extras as pmx
with pm.Model():
xi = pm.HalfNormal("xi", 0.2)
pmx.GenExtreme("llik", mu=1, sigma=0.5, xi=xi, observed=data)
Verify before relying
- Whether automatic marginalization via Laplace approximation is exact or approximate in practice for your use case.
- Performance characteristics of SARIMAX, VARMAX, and ETS models on typical time-series datasets.
- Compatibility of Pathfinder and DADVI methods with custom PyMC model structures.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesarvizbetter-optimizeprelizpydanticpymcpytensor |
| Maintenance | Actively maintained 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 257,653 / month, #8,438 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended 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.14Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Mathematics |
Evidence: pymc_extras-0.14.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pymc extensions distributions”
- pymc-extrasExtends PyMC with specialized distributions, alternative inference…
- pytensor-distributionsPyTensor-distributions provides a collection of probability…
- pymcPyMC is a Python package for Bayesian statistical modeling and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also pymc3 · pymc · nutpie · pymc-marketing · pyjpt · emcee · preliz · pytensor-distributions · numpyro · statsmodels