Practical Bayesian Modeling with PyMC

Abstract: 

In this tutorial, we explore Bayesian regression using PyMC -- the primary library for Bayesian sampling in Python -- focusing on survey data and other datasets with categorical outcomes. Starting with logistic regression, we’ll build up to categorical and ordered logistic regression, showcasing how Bayesian approaches provide versatile tools for developing and evaluating complex models. Participants will leave with practical skills for implementing Bayesian regression models in PyMC, along with a deeper appreciation for the power of Bayesian inference in real-world data analysis. Participants should be familiar with Python, the SciPy ecosystem, and basic statistics, but no experience with Bayesian methods is required.

Session Outline:

Logistic Regression with PyMC
* Overview of Bayesian inference
* Modeling binary outcomes with logistic regression
* Introduction to PyMC and its capabilities
* Hands-on example: Happiness data in the General Social Survey
Categorical Regression
* Extending logistic regression to multi-class outcomes
* Differences between Bayesian models and GLM
* Hands-on example: Political alignment and party affiliation
Ordered Logistic Regression
* Introduction to ordinal outcomes and their challenges
* Implementing ordered logistic regression in PyMC
* Hands-on example: Analyzing ordered survey responses
Conclusion and Q&A
* Recap of key concepts
* Resources for further learning
* Open discussion and questions

By the end of the session, participants will have hands-on experience with Bayesian regression models in PyMC and a solid understanding of how to apply these techniques to real-world data analysis.

Background Knowledge:

This tutorial is aimed at data scientists who are comfortable with Python, the SciPy ecosystem, and basic statistics but are new to Bayesian statistics and/or PyMC.

Bio: 

Alexander Fengler is a postdoctoral researcher at Brown University, where he works on developing and applying Bayesian methods for cognitive models, with a focus on decision-making and learning. His research bridges cognitive science, computational modeling, and neuroscience to better understand human behavior.

Open Data Science

 

 

 

Open Data Science
One Broadway
Cambridge, MA 02142
info@odsc.com

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from - Youtube
Vimeo
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google