Skip to content

PyMC, Aesara and Aeppl: The New Kids on The Block

Photo of
Hosted By
Beryl K. and 3 others
PyMC, Aesara and Aeppl: The New Kids on The Block


## Speaker

Ricardo Vieira

## Duration

60 minutes

## Resources

- Slides:
- PyMC V4 Release announcement:
- PyMC V4 Release notes:
- PyMC website:
- About Aesara:
- About Aeppl:

## Outline

- Introduction
- Aesara and random variables
- Aeppl and probabilities
- PyMC and the modern Bayesian workflow
- Q&A

## Event Description

In this talk, Ricardo Vieira will explore the inner workings of the newly released version of PyMC (v 4.0). He will take a cursory look at the Aesara backend, focusing on the brand new RandomVariable operators, which are the foundation of PyMC models. He will then talk about a self-contained PPL project (Aeppl) dedicated to converting Aesara RandomVariable graphs to probability functions. Finally, he will clarify how PyMC makes use of these two packages to create efficient random generator functions and probability evaluation functions, with the ultimate goal of facilitating a fully-fledged modern Bayesian workflow.

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.

Aesara is a Python library that allows users to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. Aesara is based on Theano (, which has been powering large-scale computationally intensive scientific investigations since 2007.

Aeppl is a new library focused on converting (arbitrary) graphs containing Aesara RandomVariables into joint log-probability graphs. It can understand complex graphs that include nested operations, conditionals, loops, and advanced indexing, allowing one to generate rich probability functions automatically without having to muddle through the mathematical details.

## About the speaker

Ricardo Vieira is a PyMC developer and data scientist at PyMC Labs. He spent several years teaching himself Statistics and Computer Science at the expense of his official degrees in Psychology and Neuroscience.

PyMC Labs:

## Code of Conduct
Please note that participants are expected to abide by PyMC's Code of Conduct.

## Connecting with PyMC

- Q&A/Discussion:
- GitHub:
- Twitter:
- LinkedIn:
- YouTube:

PyMC Online Meetup
PyMC Online Meetup
See more events
Online event
Link visible for attendees