The interface is localized. Skill descriptions and documents are machine-translated by AI into your language; code, commands, paths and technical terms stay in the original, and the author's document governs.
Explore skills
Productivity · SKILL.md

distributions-logprob

distributions-logprob

Choose, parameterize, shape, extend, and validate PyMC distributions and log-probability graphs.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill documentation

GitHub

name: distributions-logprob description: "Choose, parameterize, shape, extend, and validate PyMC distributions and log-probability graphs." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

PyMC distributions and log-probability graphs

Use this sub-skill when the task is to choose a PyMC probability distribution, parameterize it, reason about shape/size/dims and support dimensions, build unregistered component distributions with .dist(), define a CustomDist/DensityDist, or inspect pm.logp / pm.logcdf graphs.

Operating checklist

  1. Decide whether the variable should be registered (pm.Normal("x", ...)) or an unregistered component (pm.Normal.dist(...)). Components for mixtures, truncation, censoring, and symbolic custom graphs should almost always use .dist().
  2. Choose the family by support and dependency structure: continuous, discrete, multivariate, time-series, mixture/zero-inflated/hurdle, censored/truncated, simulator, or custom.
  3. Set shape/size/dims deliberately. dims belongs to registered model variables; .dist(dims=...) is not supported.
  4. Validate support, parameter domains, broadcasting, transforms, and initial values before spending time on inference.
  5. For custom distributions, provide consistent logp, optional random, optional logcdf, optional support_point, and signature/ndims_params when support or parameter dimensions are not scalar.

Bundled resources

Route elsewhere

  • General model context/data mutation: ../modeling-data/SKILL.md.
  • Sampling and posterior predictive execution: ../inference-predictive/SKILL.md.
  • Gaussian-process modeling family details: ../advanced-workflows/SKILL.md.
Saved skills