pymc

Perform Bayesian modeling with PyMC and ArviZ for MCMC sampling and diagnostics.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/nferrer-dev/claude-dotfiles --skill pymc-nferrer-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc
Source: https://github.com/nferrer-dev/claude-dotfiles/tree/main/skills/pymc
Command: npx skills add https://github.com/nferrer-dev/claude-dotfiles --skill pymc-nferrer-dev

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 addresses the complexity of Bayesian statistical modeling, providing a structured, reproducible framework for probabilistic programming that helps users avoid common pitfalls like convergence issues and model misspecification.

Core Features & Use Cases

  • Bayesian Workflow: Provides a complete pipeline for data preparation, prior predictive checks, MCMC sampling, and posterior validation.
  • Model Comparison: Includes automated utilities for comparing models using LOO/WAIC and checking reliability.
  • Use Case: Use this skill to build hierarchical models for grouped data, perform robust linear or logistic regression, or conduct time-series forecasting with full uncertainty quantification.

Quick Start

Use the pymc skill to build and fit a Bayesian linear regression model on the provided dataset and generate a diagnostic report.

Frequently Asked Questions about pymc

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

FAQPage Schema
How do I build and validate a Bayesian model with uncertainty quantification?

Bayesian modeling uses prior predictive checks, MCMC sampling, and posterior validation to quantify uncertainty. This pipeline structures model building, fits complex probabilistic models, and generates automated diagnostic reports for rigorous validation.

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

Bayesian model comparison evaluates predictive accuracy using LOO and WAIC metrics. This workflow provides automated utilities for calculating information criteria, checking model reliability, and generating diagnostic reports to validate your selections.

Can I use PyMC for hierarchical modeling and time-series forecasting?

PyMC supports hierarchical model construction for grouped data, robust linear and logistic regression, and time-series forecasting. It enables MCMC sampling and variational inference to fit complex probabilistic models with full uncertainty quantification.

How do I run MCMC sampling and variational inference for data analysis?

MCMC sampling and variational inference fit Bayesian models to data. This process uses PyMC for probabilistic programming and ArviZ for automated diagnostic reporting, ensuring convergence and validating posterior distributions for complex data analysis.

Why do my Bayesian models have convergence issues and how can I avoid them?

Bayesian convergence issues often stem from model misspecification. This framework provides a reproducible pipeline with prior predictive checks and automated diagnostic reporting to help avoid common pitfalls and ensure valid posterior distributions.

Does this Bayesian workflow require pandas and ArviZ for model diagnostics?

Yes, the workflow integrates pandas for data preparation and ArviZ for diagnostic reporting. It uses these dependencies alongside PyMC and NumPy to execute prior predictive validation, MCMC sampling, and posterior analysis.