pymc

Build Bayesian models with PyMC and NumPyro for MCMC inference.

19|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/tondevrel/scientific-agent-skills --skill pymc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc
Source: https://github.com/tondevrel/scientific-agent-skills/tree/main/skills/pymc%20%26%20numpyro
Command: npx skills add https://github.com/tondevrel/scientific-agent-skills --skill pymc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymc, arviz, numpyro, jax, jaxlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill empowers users to perform advanced statistical modeling and inference using Bayesian methods, enabling a deeper understanding of uncertainty and relationships within data than traditional approaches.

Core Features & Use Cases

  • Probabilistic Programming: Define complex statistical models using a declarative syntax.
  • MCMC Sampling: Utilize state-of-the-art Markov Chain Monte Carlo (NUTS) samplers for posterior inference.
  • Uncertainty Quantification: Obtain full posterior distributions, credible intervals, and probability statements about parameters.
  • Hierarchical Modeling: Model nested data structures (e.g., students within schools).
  • Bayesian A/B Testing: Make data-driven decisions with clear probability statements about treatment effects.
  • Model Comparison: Evaluate and select between competing models using Bayesian criteria (WAIC, LOO-CV).
  • Use Case: A researcher wants to model the effect of a new drug, accounting for patient-specific variations and quantifying the probability that the drug is effective, rather than just relying on a p-value.

Quick Start

Use the pymc skill to build a Bayesian linear regression model for the provided data.

Frequently Asked Questions about pymc

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

FAQPage Schema
How do I perform Bayesian inference and quantify uncertainty in my statistical models?

Bayesian inference quantifies uncertainty by estimating full posterior distributions. This Skill uses PyMC and NumPyro to perform MCMC sampling and variational inference, providing credible intervals and probability statements for your parameters.

What is the best way to build hierarchical models for nested data structures?

Building hierarchical models for nested data structures requires declarative probabilistic programming. This Skill supports defining complex hierarchical models to accurately capture variations across grouped data, such as students within schools.

Can I use NumPyro and JAX for MCMC sampling with PyMC?

Yes, you can use NumPyro and JAX for MCMC sampling. This Skill integrates PyMC with NumPyro and JAX dependencies to execute state-of-the-art Markov Chain Monte Carlo NUTS samplers for efficient posterior inference.

How do I run a Bayesian A/B test to make data-driven decisions?

Running a Bayesian A/B test involves calculating the posterior probability of treatment effects. This Skill facilitates Bayesian A/B testing, allowing you to make clear, data-driven probability statements rather than relying solely on p-values.

How does model comparison work when evaluating competing Bayesian models?

Model comparison evaluates competing Bayesian models using specific statistical criteria. This Skill integrates with ArviZ to compute WAIC and LOO-CV metrics, enabling you to select the best model based on predictive accuracy.

Do I need to understand Bayesian principles to use probabilistic programming for posterior predictive checks?

Yes, you need a solid understanding of Bayesian principles and statistical modeling. This Skill requires prerequisite knowledge to effectively specify declarative models, perform inference, and conduct posterior predictive checks.