Skip to content
Back to skills

Distributions Logprob

ASecurity

"Choose, parameterize, shape, extend, and validate PyMC

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
businessapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill distributions-logprob --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Distributions Logprob?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Distributions Logprob
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-distributions-logprob/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-distributions-logprob)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

- Read [references/distribution-workflows.md](references/distribution-workflows.md) for choosing distribution families, `.dist()`, shapes/dims/support dimensions, and custom distributions.
- Read [references/api-reference.md](references/api-reference.md) for verified signatures and parameter notes.
- Read [references/troubleshooting.md](references/troubleshooting.md) for mixture, custom logp, transform, support point, or broadcasting errors.
- Run [scripts/distribution_logp_smoke.py](scripts/distribution_logp_smoke.py) for a tiny safe smoke of `CustomDist`, mixture `.dist()` components, `pm.logp`, and shape output.

## 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`.

Files in this skill

  • SKILL.md2.3 KB
  • references/api-reference.md1.2 KB
  • references/distribution-workflows.md2 KB
  • references/troubleshooting.md1.3 KB
  • scripts/distribution_logp_smoke.py3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.