Back to Skills

pymc-bayesian-modeling

Bayesian modeling with PyMC. Build hierarchical models, MCMC (NUTS), variational inference, LOO/WAIC comparison, posterior checks, for probabilistic programming and inference.

5,913stars710forksUpdated 1/15/2026

Security Assessment

Safe(100/100)
Security Score100/100

About pymc-bayesian-modeling

The pymc-bayesian-modeling skill provides a powerful framework for Bayesian modeling using the PyMC library. It enables users to build and validate complex hierarchical models, perform MCMC sampling with the No-U-Turn Sampler (NUTS), and utilize variational inference techniques. This skill addresses the challenges of probabilistic programming and inference, making it easier to understand uncertainty in models and derive insights from data. By leveraging PyMC's modern API, users can streamline their modeling processes and ensure robust statistical analyses.

FAQ

What type of models can I build with this skill?

You can build various Bayesian models, including linear and logistic regression, hierarchical models, and time series.

Is this skill compatible with older versions of PyMC?

This skill is designed for use with PyMC version 5.x and above.

What are the requirements for using this skill?

You need to have Python installed along with the PyMC and ArviZ libraries to use this skill effectively.

Can I perform model comparison with this skill?

Yes, you can compare multiple models using information criteria such as LOO and WAIC.

What should I do if I encounter sampling issues?

You can diagnose sampling issues by checking for divergences, convergence metrics, and effective sample size (ESS).

Install pymc-bayesian-modeling

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill