pymc

Build and fit Bayesian models with PyMC using NUTS and ADVI inference.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/must1f/Dissertaion-Project --skill pymc-must1f
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc
Source: https://github.com/must1f/Dissertaion-Project/tree/main/.agents/skills/pymc
Command: npx skills add https://github.com/must1f/Dissertaion-Project --skill pymc-must1f

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?

PyMC provides a principled framework for building and evaluating Bayesian models, enabling robust uncertainty quantification in data analysis.

Core Features & Use Cases

  • Build and fit Bayesian models (linear, hierarchical, time series) with PyMC's modern API
  • Perform MCMC (NUTS) and variational inference (ADVI) with diagnostics via ArviZ
  • Compare models using LOO/WAIC and conduct posterior predictive checks
  • Use named dimensions (dims) and coordinates for readable, scalable models
  • Real-world use: quantify uncertainty in forecasts, parameter estimates, and model comparisons across domains

Quick Start

Define a small PyMC model, sample from the posterior, and inspect the results.

Frequently Asked Questions about pymc

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

FAQPage Schema
How do I build and fit Bayesian models with PyMC for uncertainty quantification?

To build Bayesian models with PyMC, define your probabilistic model using its modern API, fit it using NUTS or ADVI, and quantify uncertainty in parameter estimates and forecasts across domains like finance and science.

How do I perform posterior predictive checks and compare Bayesian models using LOO or WAIC?

Posterior predictive checks and model comparison using LOO and WAIC are performed by sampling the posterior with PyMC and passing the results to ArviZ for diagnostics and information criteria calculation.

Does this Skill support hierarchical and time series Bayesian modeling?

Yes, this Skill supports building and fitting hierarchical and time series Bayesian models, utilizing named dimensions and coordinates for scalable and readable model definitions.

What is the best way to diagnose MCMC inference results in PyMC?

The best way to diagnose MCMC inference results is by using ArviZ, which is fully integrated to provide comprehensive diagnostics for your PyMC posterior samples and ensure robust model evaluation.

Do I need ArviZ to run NUTS and ADVI variational inference?

While PyMC handles the NUTS and ADVI variational inference execution, ArviZ is required as a dependency to inspect the results, conduct diagnostics, and perform posterior predictive checks.

Can I use PyMC for Bayesian forecasting in social science applications?

Yes, PyMC is explicitly designed for Bayesian forecasting and data analysis in social science, allowing you to apply robust uncertainty quantification to your models and parameter estimates.