Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds, fits, and validates Bayesian PyMC models: hierarchical models, NUTS sampling, variational inference, and LOO/WAIC comparison.
73% 91%+18 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 16 of 22 without it.
3 of 3 safety checks passed
Not used yet
PyMC is a Python library for Bayesian modeling and probabilistic programming. Build, fit, validate, and compare Bayesian models using PyMC's modern API (version 6.x+), including hierarchical models, MCMC sampling (NUTS), variational inference, posterior predictive checks, and model comparison (LOO, WAIC).
PyMC 6.0.1 is the current stable release as of June 2026. It requires Python 3.12+, uses PyTensor 3 as the computational graph backend, and defaults to compiled backends such as Numba. For reproducible local environments, pin the version:
uv pip install "pymc[nutpie]==6.0.1"
The nutpie extra enables the faster Rust/Numba NUTS implementation. If using NumPyro or BlackJAX, install those optional sampler dependencies in the same environment and pin them in the project lockfile.
This skill should be used when:
Follow this workflow for building and validating Bayesian models:
import pymc as pm
import arviz as az
import numpy as np
# Load and prepare data
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.