Skip to content

[PyMCon] The Only Constant is Change: Bespoke Changepoint Modelling in PyMC

Photo of Ravin Kumar
Hosted By
Ravin K. and Christian L.
[PyMCon] The Only Constant is Change: Bespoke Changepoint Modelling in PyMC

Details

πŸŽ™οΈ Speaker: Abuzar Mahmood | ⏰ Time: 2 pm UTC / 6 am PT / 9 am ET / 3 pm Berlin

Dynamic data are all around us. Changepoint models allow us to know when changes happen in these data and what they look like. Probabilistic modelling allows us to elegantly build customizable changepoint models for different data types, as well as provide us with uncertainty estimates for the position and magnitude of the change (both indispensable quantities for decision-making and hypothesis testing). This tutorial will briefly cover building changepoint models for multivariate data using PyMC but will primarily focus on the ways in which this β€œbasic” model can be extended.

This tutorial is targeted towards academic researchers, data scientists, and anyone interested in being able to easily build bespoke models which provide uncertainty estimates for inferred statistics. This talk will attempt to be accessible to beginners but leans towards more intermediate users interested in changepoint modelling. Previous experience with PyMC, and a background in statistical modelling is assumed. No libraries other than PyMC and the basic scientific stack (numpy, scipy, matplotlib) will be used.

The tutorial aims to be hands-on, will discuss some theory to provide context for the models discussed, and will be heavy on understanding code to construct the β€œguts” of the models (in particular, selection of distributions for modelling the emissions and changepoint locations, and the details of the tensor manipulation to put everything together).
The tutorial will be divided into three parts:

  1. Introduction to changepoint modelling and use cases.
  2. Construction of the β€œbasic” multivariate changepoint model.
  3. Extensions to the β€œbasic” model:
    - Handling drift/noise in repeated observations using mixture emissions across multiple timeseries observations.
    - Determining the distribution over number of changepoints using a Dirichlet Process prior.

Content:
πŸŽ₯ Abuzar's Interview: https://www.youtube.com/watch?v=ySF3X45XRyQ
πŸŽ₯ Walkthrough of changepoint modelling in PyMC: https://www.youtube.com/watch?v=iwNju1o5yQo
πŸ“ Code Notebook: [https://github.com/abuzarmahmood/pymcon_bayesian_changepoint/blob/72102ad6149b86d586595bf4523f40f66eb20c25/Bayesian_Changepoint_Zoo_neural_data.ipynb ](https://github.com/abuzarmahmood/pymcon_bayesian_changepoint/blob/72102ad6149b86d586595bf4523f40f66eb20c25/Bayesian_Changepoint_Zoo_neural_data.ipynb)
πŸ‘‰ Discourse Post for more details and discussion: https://discourse.pymc.io/t/13251

πŸ’Ό About the Speaker:

  • Abuzar Mahmood
    Dr. Mahmood is a neuroscientist with a PhD from Brandeis University, where he investigated the neural coordination of taste. His research, initially using electrophysiology to probe brain region interactions, hints at a complex network processing flavors. His forthcoming studies aim to unravel this network further, exploring the directional flow of neural information and the impact of feedback mechanisms in taste perception.

πŸ”— Connect with Abuzar:
πŸ‘‰ Website: https://abuzarmahmood.github.io
πŸ‘‰ Medium: https://medium.com/@abuzar_mahmood
πŸ‘‰ GitHub: https://github.com/abuzarmahmood
πŸ‘‰ LinkedIn: https://www.linkedin.com/in/abuzarmahmood

🀝 Sponsor
We thank our sponsors for supporting PyMC and the PyMCon Web Series. If you would like to sponsor us, contact us for more information.

Adia Lab is an independent, Abu Dhabi-based laboratory dedicated to basic and applied research in data and computational sciences.
ADIA Lab focuses on societally-important topics such as climate change and energy transition, blockchain technology, financial inclusion and investing, decision making, automation, cybersecurity, health sciences, education, telecommunications, and space, by conducting cutting-edge research in Data Science, Artificial Intelligence, Machine Learning, and High-Performance Computing.

πŸ“– Code of Conduct:
Please note that participants are expected to abide by PyMC's Code of Conduct.

🌐 Connecting with PyMC
πŸ“Ί PyMCon Web Series: https://pymcon.com/
πŸ‘₯ LinkedIn: https://www.linkedin.com/company/pymc/
🐦 Twitter: https://twitter.com/pymc_devs
πŸŽ₯ YouTube: https://www.youtube.com/@pymc-devs
🀝 Meetup: https://www.meetup.com/pymc-online-meetup/
🐘 Mastodon: https://bayes.club/@pymc

Photo of PyMC Online Meetup group
PyMC Online Meetup
See more events