跳到主要内容
知仓学习社ZHICANG

risk-distribution-fitter

Probability distribution fitting skill for calibrating uncertainty models from historical data or expert judgment

不碰外部(只输出文字)无严重或高危命中a5c-ai/babysitter

它会碰到什么

扫了多少1 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Risk Distribution Fitter

Overview

The Risk Distribution Fitter skill provides capabilities for calibrating probability distributions from historical data or expert judgment. It supports both data-driven fitting using statistical methods and expert elicitation protocols for subjective probability assessment.

Capabilities

  • Maximum likelihood estimation (MLE)
  • Method of moments estimation
  • Bayesian parameter estimation
  • Goodness-of-fit testing (KS, AD, Chi-square)
  • Distribution comparison and selection
  • Expert elicitation protocol support (3-point, 5-point)
  • PERT distribution calculation
  • Visualization of fitted distributions

Used By Processes

  • Monte Carlo Simulation for Decision Support
  • Predictive Analytics Implementation
  • Decision Quality Assessment

Usage

Data-Driven Fitting

# Fit distributions to historical data
fitting_config = {
    "data": [/* historical observations */],
    "candidate_distributions": [
        "normal", "lognormal", "gamma", "weibull",
        "exponential", "beta", "triangular"
    ],
    "fitting_method": "mle",
    "selection_criterion": "AIC"
}

Expert Elicitation

# 3-point estimate (PERT)
expert_estimate = {
    "method": "PERT",
    "minimum": 50000,
    "most_likely": 75000,
    "maximum": 120000,
    "confidence_level": 0.90  # optional: confidence that true value is within range
}

# 5-point estimate (for more precision)
detailed_estimate = {
    "method": "5_point",
    "P10": 45000,
    "P25": 60000,
    "P50": 75000,
    "P75": 95000,
    "P90": 115000
}

Supported Distributions

| Distribution | Use Case | Parameters |

|-------------|----------|------------|

| Normal | Symmetric, unbounded | mean, std |

| Lognormal | Right-skewed, positive | mu, sigma |

| Triangular | Bounded with mode | min, mode, max |

| PERT | Bounded, weighted mode | min, mode, max |

| Uniform | Equal probability | min, max |

| Beta | Bounded, flexible shape | alpha, beta |

| Gamma | Positive, right-skewed | shape, scale |

| Weibull | Reliability/time | shape, scale |

| Exponential | Memoryless | rate |

Goodness-of-Fit Tests

  • Kolmogorov-Smirnov (KS): Distribution-free, sensitive to center
  • Anderson-Darling (AD): More sensitive to tails
  • Chi-Square: Categorical/binned data
  • Cramér-von Mises: Similar to KS, different weighting

Model Selection Criteria

  • AIC (Akaike Information Criterion): Balance fit and complexity
  • BIC (Bayesian Information Criterion): Stronger penalty for parameters
  • Log-Likelihood: Raw fit quality

Input Schema

{
  "fitting_mode": "data_driven|expert_elicitation",
  "data_driven_config": {
    "data": ["number"],
    "candidate_distributions": ["string"],
    "fitting_method": "mle|mom|bayesian",
    "selection_criterion": "AIC|BIC|likelihood"
  },
  "expert_elicitation_config": {
    "method": "3_point|5_point|PERT|direct",
    "estimates": "object",
    "confidence_level": "number"
  },
  "options": {
    "gof_tests": ["KS", "AD", "chi_square"],
    "visualize": "boolean",
    "compare_all": "boolean"
  }
}

Output Schema

{
  "best_fit": {
    "distribution": "string",
    "parameters": "object",
    "gof_statistics": {
      "test_name": {
        "statistic": "number",
        "p_value": "number"
      }
    },
    "selection_score": "number"
  },
  "all_fits": [
    {
      "distribution": "string",
      "parameters": "object",
      "scores": "object"
    }
  ],
  "summary": {
    "mean": "number",
    "std": "number",
    "percentiles": "object"
  },
  "visualization_path": "string",
  "recommendations": ["string"]
}

Best Practices

  1. Use data-driven fitting when sufficient historical data exists (n > 30)
  2. Validate fitted distributions against holdout data
  3. Use PERT for expert estimates when asymmetry is expected
  4. Document expert credentials and elicitation process
  5. Consider mixture distributions for multimodal data
  6. Always visualize fitted distribution against data/estimates
  7. Use multiple goodness-of-fit tests for robustness

Expert Elicitation Guidelines

  1. Explain probability concepts clearly
  2. Use familiar reference points
  3. Ask for extreme estimates first, then middle
  4. Check for overconfidence (typical: too narrow ranges)
  5. Consider debiasing techniques
  6. Document reasoning behind estimates

Integration Points

  • Feeds into Monte Carlo Engine for simulation inputs
  • Supports Calibration Trainer for expert accuracy assessment
  • Connects with Bayesian Network Analyzer for CPT estimation
  • Integrates with Risk Register Manager for risk quantification

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,796
本站分层T1
该仓技能数2115
原文件路径library/specializations/domains/business/decision-intelligence/skills/risk-distribution-fitter/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 2115 个技能