pymc

Build and analyze Bayesian models with PyMC's MCMC sampling and variational inference.

Updated Jun 6, 2026
One-click install
npx skills add https://github.com/Ritabrata-Chakraborty/Claude-Setup --skill pymc-ritabrata-chakraborty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc
Source: https://github.com/Ritabrata-Chakraborty/Claude-Setup/tree/main/skills/pymc
Command: npx skills add https://github.com/Ritabrata-Chakraborty/Claude-Setup --skill pymc-ritabrata-chakraborty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymc, arviz, numpy, pandas, matplotlib, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of building and analyzing Bayesian models, providing a comprehensive toolkit for probabilistic programming and inference.

Core Features & Use Cases

  • Bayesian Modeling: Construct hierarchical models and perform MCMC sampling or variational inference.
  • Model Comparison: Compare models using LOO or WAIC and perform posterior predictive checks.
  • Data Preparation: Guide on data standardization, handling missing data, and using named dimensions for clarity.
  • Use Case: Suppose you are analyzing sales data and want to model customer behavior using Bayesian methods. This Skill can help you build a hierarchical model, perform MCMC sampling, and compare models to make informed decisions.

Quick Start

Use the pymc skill to build a Bayesian linear regression model using the data in 'sales_data.csv'.

Frequently Asked Questions about pymc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a hierarchical Bayesian model for data analysis?

Building a hierarchical Bayesian model involves structuring your data with named dimensions and using probabilistic programming to define priors and likelihoods. This Skill provides tools to construct these models and perform inference for data analysis.

What is the best way to compare Bayesian models using LOO or WAIC?

Comparing Bayesian models using LOO or WAIC involves calculating information criteria to estimate out-of-sample predictive accuracy. This Skill supports model comparison and posterior predictive checks to help you select the best performing model.

How does MCMC sampling work for probabilistic programming?

MCMC sampling for probabilistic programming works by drawing samples from a posterior distribution to approximate complex mathematical integrals. This Skill supports NUTS sampling and variational inference to perform Bayesian inference on your models.

Can I use this Skill for Bayesian inference on sales data with missing values?

Yes, you can use this Skill for Bayesian inference on sales data with missing values. It provides guidance on data standardization and handling missing data, allowing you to model customer behavior and make informed decisions.

Do I need PyMC and ArviZ to perform Bayesian modeling and model comparison?

Yes, you need PyMC and ArviZ to perform Bayesian modeling and model comparison, along with numpy, pandas, and matplotlib. These dependencies are required to build models, run sampling, and analyze the resulting inference data.

What are the limitations of using variational inference instead of MCMC sampling?

Variational inference offers faster approximation than MCMC sampling but may underestimate posterior uncertainty. This Skill supports both methods, allowing you to choose NUTS for precise hierarchical modeling or variational inference for faster estimates.