pymc
Builds, fits, checks, and compares Bayesian models in Python with PyMC and ArviZ. Covers hierarchical (multilevel) models, NUTS MCMC sampling, variational inference (ADVI), prior and posterior predictive checks, convergence diagnostics (R-hat, ESS, divergences), and LOO/WAIC model comparison. Use when writing a PyMC model for regression, count, or binary data. Use when fitting a hierarchical model with partial pooling. Use when diagnosing divergences, low ESS, or high R-hat. Use when comparing candidate models with LOO. Use when choosing priors or running prior predictive checks. Not for non-Bayesian regression; use statsmodels or scikit-learn instead.
- Version
- 1.4
- License
- Apache License, Version 2.0
- Compatibility
- Requires Python 3.12+ and PyMC 6.0.1-compatible dependencies. Install reproducible environments with `uv pip install "pymc[nutpie]==6.0.1"`; optional NumPyro or BlackJAX samplers require separately pinned JAX-compatible dependencies.
Pinned to revision df088027ff23, so it is the text this page describes rather than whatever the author pushed since.
Pre-approved tools experimental
Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.
- Read
- Write
- Edit
- Bash
Files
- skills/pymc/SKILL.md
- skills/pymc/assets/hierarchical_model_template.py
- skills/pymc/assets/linear_regression_template.py
- skills/pymc/references/distributions.md
- skills/pymc/references/model_patterns.md
- skills/pymc/references/sampling_inference.md
- skills/pymc/references/standard_workflow.md
- skills/pymc/references/workflows.md
- skills/pymc/scripts/model_comparison.py
- skills/pymc/scripts/model_diagnostics.py
Every link opens the file at its source, pinned to the revision this page describes.