distribution-search

Find probability distributions satisfying specified statistical constraints via numerical optimization.

127|27|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill distribution-search-lazyfroglol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: distribution-search
Source: https://github.com/lazyFrogLOL/Harness_Engineering/tree/main/skills/distribution-search
Command: npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill distribution-search-lazyfroglol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach for constructing discrete or continuous probability distributions that meet specific statistical constraints (e.g., KL divergence targets, target entropy, or moment conditions) through a combination of mathematical analysis and numerical optimization.

Core Features & Use Cases

  • Analytical constraint analysis: Feasibility checks, bounds, and closed-form insights to narrow the search space.
  • Modular parameterizations: Start simple (two-group distributions) and progressively increase flexibility to satisfy multiple constraints.
  • Verification and tooling: Dedicated verification steps to ensure probability validity and target convergence.

Quick Start

Provide target constraints (e.g., forward KL, entropy, or moments) and run the optimization workflow to obtain a distribution that satisfies them.

Frequently Asked Questions about distribution-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find a probability distribution that satisfies specific KL divergence and entropy targets?

To find a probability distribution meeting specific KL divergence and entropy targets, you can use numerical optimization combined with analytical constraint analysis to narrow the search space and verify convergence against your specified statistical measures.

What's the best way to construct distributions with exact moment conditions in high-dimensional spaces?

Constructing distributions with exact moment conditions in high-dimensional spaces requires modular parameterization, starting with simple two-group distributions and progressively increasing flexibility to satisfy multiple constraints while running verification routines to ensure probability validity.

How does analytical constraint analysis help when searching for constrained probability distributions?

Analytical constraint analysis helps by performing feasibility checks, establishing bounds, and providing closed-form insights that narrow the search space before applying numerical optimization to find the exact probability distribution.

Can I use numerical optimization to verify probability validity and target convergence for multiple statistical measures?

Yes, numerical optimization includes dedicated verification steps that ensure probabilities remain valid and that divergences and moment conditions meet their specified targets across multiple statistical measures.

What prerequisites are needed to search for probability distributions satisfying multiple statistical constraints?

Searching for probability distributions satisfying multiple statistical constraints demands mathematical analysis before coding, requiring you to define target measures like forward KL, entropy, or moments to run the optimization workflow effectively.

Are there limitations when applying numerical optimization to large discrete distribution spaces?

Optimization in large discrete spaces requires careful modular parameterization to avoid infeasibility, and you must run dedicated verification routines to ensure the resulting probabilities are valid and all divergences meet their targets.