pymc-bayesian-modeling

Build Bayesian models with PyMC for MCMC sampling and variational inference.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill pymc-bayesian-modeling-robotlearning123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymc-bayesian-modeling
Source: https://github.com/robotlearning123/claude-scientific-skills/tree/main/scientific-skills/pymc
Command: npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill pymc-bayesian-modeling-robotlearning123

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill allows for the construction and analysis of Bayesian models, enabling probabilistic programming and inference with PyMC.

Core Features & Use Cases

  • Hierarchical Modeling: Build complex models with nested data structures.
  • MCMC Sampling: Perform Markov Chain Monte Carlo sampling for parameter estimation.
  • Variational Inference: Use variational inference for efficient posterior approximation.
  • Model Comparison: Compare multiple models using LOO or WAIC.
  • Use Case: For a pharmaceutical company, use this Skill to build and validate a model predicting drug efficacy based on preclinical data.

Quick Start

To create a simple linear regression model, use the following command: use pymc-bayesian-modeling to build a linear regression model with predictors 'X1' and 'X2' and outcome 'y'.

Frequently Asked Questions about pymc-bayesian-modeling

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

FAQPage Schema
How do I build a Bayesian hierarchical model with PyMC?

You can build a Bayesian hierarchical model with PyMC by defining nested data structures and using MCMC sampling for parameter estimation. This Skill provides the capabilities to construct and validate models with complex nested relationships.

How does variational inference work for Bayesian modeling in PyMC?

Variational inference in PyMC works by efficiently approximating the posterior distribution. This Skill supports variational inference as an alternative to MCMC sampling for faster parameter estimation in probabilistic models.

Can I use PyMC for model comparison using LOO or WAIC?

Yes, you can use PyMC for model comparison using LOO or WAIC. This Skill enables you to compare multiple probabilistic models to evaluate predictive accuracy and select the best fit for your data.

Do I need ArviZ to validate MCMC sampling results in PyMC?

Yes, ArviZ is required to validate MCMC sampling results and perform model comparison in PyMC. This Skill depends on ArviZ alongside PyMC, NumPy, and Pandas to execute Bayesian inference and analyze posterior distributions.

What is the best way to quantify uncertainty in preclinical drug efficacy data?

The best way to quantify uncertainty in preclinical data is through Bayesian modeling with PyMC. This Skill allows you to build and validate probabilistic models, applying MCMC sampling to estimate parameters and quantify prediction uncertainty.

When should I not use MCMC sampling for Bayesian inference?

You should avoid MCMC sampling for Bayesian inference when dealing with large datasets where computational efficiency is critical. Instead, this Skill supports variational inference to provide a faster posterior approximation for your probabilistic models.