pymc

Build and infer Bayesian models with MCMC sampling and variational inference.

1|2|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/fuzzy-dynamics/strings --skill pymc-fuzzy-dynamics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc
Source: https://github.com/fuzzy-dynamics/strings/tree/main/packages/skills/pymc
Command: npx skills add https://github.com/fuzzy-dynamics/strings --skill pymc-fuzzy-dynamics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

PyMC provides an end-to-end framework to design, fit, and diagnose Bayesian models in Python, enabling principled uncertainty quantification and robust decision making.

Core Features & Use Cases

  • Build linear, logistic, hierarchical, and time-series models with MCMC (NUTS) or VI
  • Compare competing models using LOO/WAIC and check fit with posterior predictive checks
  • Use ArviZ for diagnostics and visualization in a reproducible workflow
  • Use Case: Evaluate treatment effects in a clinical trial, quantify uncertainty, and select the best model

Quick Start

Train a simple Bayesian linear regression on your data with PyMC and inspect 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 hierarchical Bayesian models in Python?

You can build hierarchical Bayesian models by defining probabilistic layers in Python, enabling principled uncertainty quantification across grouped data structures. This approach supports robust decision making in applied analytics scenarios.

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

The best way to compare competing Bayesian models is by calculating Leave-One-Out (LOO) and WAIC criteria to evaluate predictive accuracy. This allows you to select the most robust model for your data.

How do I run MCMC sampling and variational inference for probabilistic programming?

You can run MCMC sampling (NUTS) and variational inference to estimate posterior distributions during probabilistic programming. These inference methods allow you to fit linear, logistic, and time-series models efficiently.

Can I perform posterior predictive checks and visualize diagnostics with ArviZ?

Yes, you can perform posterior predictive checks and visualize diagnostics with ArviZ to validate model fit. This integration ensures a reproducible workflow for analyzing Bayesian inference outputs.

When do I need Bayesian modeling for quantifying uncertainty in clinical trials?

You need Bayesian modeling for clinical trials when evaluating treatment effects requires rigorous uncertainty quantification. It allows you to infer posterior distributions and make robust decisions based on probabilistic outcomes.