Home#

PyMC is a probabilistic programming library for Python that allows users to build Bayesian models with a simple Python API and fit them using Markov chain Monte Carlo (MCMC) methods.

Features#

PyMC strives to make Bayesian modeling as simple and painless as possible, allowing users to focus on their problem rather than the methods.

Here is what sets it apart:

  • Modern: Includes state-of-the-art inference algorithms, including MCMC (NUTS) and variational inference (ADVI).

  • User friendly: Write your models using friendly Python syntax. Learn Bayesian modeling from the many example notebooks.

  • Fast: Uses Aesara as its computational backend to compile to C and JAX, run your models on the GPU, and benefit from complex graph-optimizations.

  • Batteries included: Includes probability distributions, Gaussian processes, ABC, SMC and much more. It integrates nicely with ArviZ for visualizations and diagnostics, as well as Bambi for high-level mixed-effect models.

  • Community focused: Ask questions on discourse, join MeetUp events, follow us on Twitter, and start contributing.

Interactive Demo#

Get started#

Announcements#

Release announcement

PyMC is forking Aesara to PyTensor

PyTensor will allow for new features such as labeled arrays, as well as speed up development and streamline the PyMC codebase and user experience.

Release announcement

PyMC 4.0 is officially released!

PyMC 4.0 is a major rewrite of the library with many great new features while keeping the same modeling API of PyMC3.

Event

PyMC - Office Hours

The PyMC team has recently started hosting office hours regularly. Subscribe on Discourse to be notified of the next event!

Talk

Probabilistic Programming in PyMC

Austin Rochford gave the coolest talk on Probabilistic Programming in PyMC 4.0

Blog post

Sprint testimonials

Read about the recent PyMC-Data Umbrella sprint in this interview with Sandra Meneses, one of the participants who submitted a PR

Sponsors#

NumFOCUS

NumFOCUS is our non-profit umbrella organization.

PyMC Labs

PyMC Labs offers professional consulting services for PyMC.