界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

distributions-logprob

distributions-logprob

【效率与协作】Choose, parameterize, shape, extend, and validate PyMC distributions and log-probability graphs.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

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.
我的收藏