pymc

Build and validate Bayesian models with PyMC 5+ and ArviZ.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/BKZhao/MIMIC-Papers-Repro-Agent --skill pymc-bkzhao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc
Source: https://github.com/BKZhao/MIMIC-Papers-Repro-Agent/tree/main/.codex/skills/pymc
Command: npx skills add https://github.com/BKZhao/MIMIC-Papers-Repro-Agent --skill pymc-bkzhao

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 enables building, calibrating, and validating Bayesian models with a modern Python API, streamlining uncertainty quantification across disciplines.

Core Features & Use Cases

  • Flexible modeling: linear, logistic, hierarchical, time-series, and probabilistic programming with PyMC 5+.
  • Full inference and validation: MCMC (NUTS), VI options, prior/posterior predictive checks, and model comparison via ArviZ.
  • Reusable templates and references: templates for common workflows and a curated reference library to accelerate projects.

Quick Start

Run a simple PyMC model by defining data, specifying priors, sampling with pm.sample, and inspecting the idata with ArviZ.

Frequently Asked Questions about pymc

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

FAQPage Schema
How do I build hierarchical Bayesian models in Python for uncertainty quantification?

Bayesian modeling in Python uses PyMC 5+ to define hierarchical structures, sample with NUTS, and validate uncertainty using ArviZ. This workflow covers linear, logistic, and time-series probabilistic programming with prior and posterior predictive checks.

What is the best way to compare Bayesian models using posterior predictive checks?

Posterior predictive checks compare Bayesian models by evaluating fit and diagnostics through ArviZ. You sample models with PyMC, inspect the idata object, and run model comparison workflows to validate probabilistic assumptions rigorously.

Can I use PyMC for time-series analysis and logistic regression with structured data?

PyMC supports time-series analysis and logistic regression by applying probabilistic programming to structured pandas and numpy data workflows. You specify priors, sample with pm.sample, and inspect inference data for rigorous insights.

Do I need ArviZ and PyMC 5+ to run MCMC sampling and variational inference?

ArviZ and PyMC 5+ are required to run MCMC sampling and variational inference. This Bayesian modeling stack provides the modern Python API needed for calibration, diagnostics, and validating uncertainty quantification across disciplines.

When should I not use Bayesian modeling with PyMC for my data analysis workflow?

Bayesian modeling with PyMC is not ideal for workflows lacking structured data or requiring rapid point estimates without uncertainty quantification. It demands a structured data workflow and familiarity with prior specification, MCMC diagnostics, and posterior validation.

Does the pymc skill provide templates for common Bayesian workflows?

The pymc skill provides reusable templates and a curated reference library for common Bayesian workflows. These assets accelerate adoption for linear, logistic, hierarchical, and time-series analyses by streamlining data definition and prior specification.