PyMC Samplers

Configure PyMC NUTS, HMC, and Metropolis samplers for Bayesian inference.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/benmaier/decision-agent-placeholder --skill pymc-samplers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: PyMC Samplers
Source: https://github.com/benmaier/decision-agent-placeholder/tree/main/decision-packs/mmm/opencode/skills/samplers
Command: npx skills add https://github.com/benmaier/decision-agent-placeholder --skill pymc-samplers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps data scientists optimize Bayesian inference by selecting and configuring PyMC sampling methods to ensure reliable and efficient posterior exploration.

Core Features & Use Cases

  • NUTS, HMC, and Metropolis variants for flexible sampling across continuous and discrete models
  • Customizable step methods, initialization, and convergence diagnostics to improve reliability
  • Example: Compare NUTS and Metropolis on a hierarchical Bayesian model to evaluate convergence and efficiency

Quick Start

Provide a PyMC model and call pm.sample with your desired settings to begin posterior inference.

Frequently Asked Questions about PyMC Samplers

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

FAQPage Schema
How do I configure PyMC sampling methods for reliable Bayesian inference?

Compare NUTS and Metropolis samplers in PyMC by applying both to a hierarchical Bayesian model and evaluating convergence and efficiency. This comparative analysis reveals which method provides more reliable posterior exploration for your specific model structure.

What is the difference between NUTS, HMC, and Metropolis samplers in PyMC?

NUTS, HMC, and Metropolis are PyMC sampling variants offering flexible sampling across continuous and discrete models. NUTS and HMC are gradient-based methods efficient for high-dimensional continuous spaces, while Metropolis is a simpler alternative often used for discrete or specific model structures.

How do I run convergence diagnostics on a PyMC posterior trace?

Run convergence diagnostics on a PyMC posterior trace by configuring customizable step methods and initialization settings during sampling. These diagnostics evaluate whether the posterior exploration has reliably converged, ensuring efficient and valid Bayesian inference results.

Can I use PyMC samplers for both continuous and discrete Bayesian models?

Use PyMC samplers in production environments by specifying sampler choices, tuning parameters, and initialization settings within pm.sample. The framework supports model fitting and posterior predictive checks explicitly designed for reliable research and production deployments.