pymc

Build and analyze Bayesian models with PyMC using MCMC sampling and diagnostics.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/Hung-3008/agusta --skill pymc-hung-3008
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc
Source: https://github.com/Hung-3008/agusta/tree/main/.agents/skills/pymc
Command: npx skills add https://github.com/Hung-3008/agusta --skill pymc-hung-3008

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Bayesian modeling and probabilistic programming made accessible with PyMC, enabling you to construct, fit, diagnose, and compare formal probabilistic models.

Core Features & Use Cases

  • Build a wide range of Bayesian models (linear, logistic, hierarchical, time-series) with PyMC.
  • Perform robust diagnostics, posterior predictive checks, and model comparison to select the best model.
  • Use case: quantify uncertainty in predictions across grouped data and perform principled prior/posterior analysis.

Quick Start

Ask PyMC to build and fit a simple Bayesian model with your data and report the posterior summaries.

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 hierarchical Bayesian models with PyMC?

Build hierarchical Bayesian models in PyMC by defining multilevel priors and likelihoods, then fit them using MCMC sampling or variational inference to quantify uncertainty across grouped data and generate posterior summaries.

What is the best way to perform posterior predictive checks and model comparison in probabilistic programming?

Perform posterior predictive checks and model comparison in probabilistic programming by analyzing the InferenceData object with ArviZ, which provides comprehensive diagnostics to assess model fit and select the best model.

Can I use PyMC for time series and GLM-like probabilistic modeling?

Yes, PyMC supports time series and GLM-like probabilistic modeling, allowing you to construct formal models for continuous and categorical outcomes while performing principled prior and posterior analysis.

Do I need ArviZ and NumPy to run MCMC sampling and variational inference diagnostics?

Yes, you need ArviZ and NumPy to run MCMC sampling and variational inference diagnostics, as PyMC relies on these dependencies to produce the InferenceData object required for comprehensive model assessment.

When should I not use Bayesian inference for my data analysis workflow?

Avoid Bayesian inference when you lack the computational resources for MCMC sampling or when real-time, ultra-low-latency predictions are required, as hierarchical models and robust diagnostics demand significant processing overhead.