Skip to main content

Welcome to pymc-extras

Contribute with Gitpod Codecov Badge

PyMC Extras extends PyMC with additional distributions, inference methods, and model transformations. It is maintained by the PyMC team and hosts functionality that is too specialized for the core library, but useful enough that you shouldn't have to write it yourself.

Highlights include:

  • Automatic marginalization: exact for finite discrete and conjugate variables, approximate via the Laplace approximation
  • Alternative inference methods: Pathfinder, DADVI, INLA, Laplace approximation, and better MAP estimation
  • Statespace models: SARIMAX, VARMAX, ETS, and structural time series with Kalman filtering
  • Additional distributions such as DiscreteMarkovChain, GeneralizedPoisson, and GenExtreme

pymc-extras mirrors the namespaces in pymc to make usage and migration as easy as possible. For example, distributions are used exactly like those in pymc:

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)

See the documentation for the full API reference.

Installation

pip install pymc-extras

or for the development version:

pip install git+https://github.com/pymc-devs/pymc-extras.git

Questions

What belongs in pymc-extras?

  • statistical methods, for example step methods or model construction helpers
  • distributions that are tricky to sample from or test
  • specialized fitting methods or distributions
  • any code that requires additional optimization before it can be used in practice

Functionality that proves widely useful may graduate to the main pymc repository.

What does not belong in pymc-extras?

  • Case studies
  • Implementations that cannot be applied generically, for example because they are tied to variables from a toy example

Contributing

We welcome contributions! Check out the contributing guidelines to get started.

Metadata

Release files for pymc-extras 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymc-extras 0.16.0
File Size Uploaded Provenance Actions
pymc_extras-0.16.0.tar.gz 790.3 kB With provenance Details for pymc_extras-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymc-extras 0.16.0
File Interpreter ABI Platform Actions
pymc_extras-0.16.0-py3-none-any.whl Python 3 none any Details for pymc_extras-0.16.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / pymc_extras-0.16.0.tar.gz

Download URL pymc_extras-0.16.0.tar.gz
Size 790.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c69b7e94baa88ee97c43f6c438d2622b8748d1f0c7b004e25fdaf0ecb6e858a6
BLAKE2b-256 checksum
How to use checksums
c44005edda1d708758bc60cf6e6336554a1550e582f86e0e0123f80588fcd67d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / pymc_extras-0.16.0-py3-none-any.whl

Download URL pymc_extras-0.16.0-py3-none-any.whl
Size 422.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dc575affba35c25eed494459235f017fe62f3841ff45bd95cae0aaee6f26af7
BLAKE2b-256 checksum
How to use checksums
8c354ee18e7632b0c1243d5be547276afe0b9625cfffef0c7f2dc3e61c724cc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for pymc-extras 0.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pymc_extras-0.16.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.16.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page