Skip to content
Back to skills

Posterior Estimator

ASecurity

Fit a conditional Gaussian posterior surrogate from simulated summary/parameter pairs without likelihood evaluations.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Posterior Estimator?

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

Security grade badge for Posterior Estimator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-posterior-estimator/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-posterior-estimator)

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

SKILL.md
---
name: posterior_estimator
description: Fit a conditional Gaussian posterior surrogate from simulated summary/parameter pairs without likelihood evaluations.
---

# Conditional Posterior Estimator

Use this skill when simulated pairs `(summary, theta)` are available and the task is to approximate `p(theta | observed_summary)` for an SNPE-style recovery. Do not use it when exact likelihood evaluation is required.

## Inputs
- `summaries`: list of summary vectors.
- `parameters`: list of parameter vectors paired with summaries.
- `observed_summary`: summary vector for the observation.
- Optional ridge regularization and posterior sample count.

## Outputs
- Posterior mean vector.
- Residual variance uncertainty proxy.
- Deterministic posterior samples.
- Diagnostics showing simulation count and no likelihood use.

## Workflow
1. Fit ridge-regularized linear maps from summary features to parameter dimensions.
2. Estimate residual variance from simulated pairs.
3. Predict the posterior mean for the observed summary.
4. Draw deterministic Gaussian samples for downstream posterior predictive checks.

## Validation
Run `python tests/test_posterior_estimator.py` from this skill directory.

## Limitations
This is a transparent reduced surrogate for recovery validation, not a full neural density estimator such as an MDN or normalizing flow.

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…