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
- Use data-driven fitting when sufficient historical data exists (n > 30)
- Validate fitted distributions against holdout data
- Use PERT for expert estimates when asymmetry is expected
- Document expert credentials and elicitation process
- Consider mixture distributions for multimodal data
- Always visualize fitted distribution against data/estimates
- Use multiple goodness-of-fit tests for robustness
Expert Elicitation Guidelines
- Explain probability concepts clearly
- Use familiar reference points
- Ask for extreme estimates first, then middle
- Check for overconfidence (typical: too narrow ranges)
- Consider debiasing techniques
- 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
1---2name: risk-distribution-fitter3description: Probability distribution fitting skill for calibrating uncertainty models from historical data or expert judgment4---5
6# Risk Distribution Fitter
7
8## Overview
9
10The 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.
11
12## Capabilities
13
14- Maximum likelihood estimation (MLE)
15- Method of moments estimation
16- Bayesian parameter estimation
17- Goodness-of-fit testing (KS, AD, Chi-square)
18- Distribution comparison and selection
19- Expert elicitation protocol support (3-point, 5-point)
20- PERT distribution calculation
21- Visualization of fitted distributions
22
23## Used By Processes
24
25- Monte Carlo Simulation for Decision Support
26- Predictive Analytics Implementation
27- Decision Quality Assessment
28
29## Usage
30
31### Data-Driven Fitting
32
33```python
34# Fit distributions to historical data
35fitting_config = {
36 "data": [/* historical observations */],
37 "candidate_distributions": [
38 "normal", "lognormal", "gamma", "weibull",
39 "exponential", "beta", "triangular"
40 ],
41 "fitting_method": "mle",
42 "selection_criterion": "AIC"
43}
44```
45
46### Expert Elicitation
47
48```python
49# 3-point estimate (PERT)
50expert_estimate = {
51 "method": "PERT",
52 "minimum": 50000,
53 "most_likely": 75000,
54 "maximum": 120000,
55 "confidence_level": 0.90 # optional: confidence that true value is within range
56}
57
58# 5-point estimate (for more precision)
59detailed_estimate = {
60 "method": "5_point",
61 "P10": 45000,
62 "P25": 60000,
63 "P50": 75000,
64 "P75": 95000,
65 "P90": 115000
66}
67```
68
69### Supported Distributions
70
71| Distribution | Use Case | Parameters |
72|-------------|----------|------------|
73| Normal | Symmetric, unbounded | mean, std |
74| Lognormal | Right-skewed, positive | mu, sigma |
75| Triangular | Bounded with mode | min, mode, max |
76| PERT | Bounded, weighted mode | min, mode, max |
77| Uniform | Equal probability | min, max |
78| Beta | Bounded, flexible shape | alpha, beta |
79| Gamma | Positive, right-skewed | shape, scale |
80| Weibull | Reliability/time | shape, scale |
81| Exponential | Memoryless | rate |
82
83### Goodness-of-Fit Tests
84
85- **Kolmogorov-Smirnov (KS)**: Distribution-free, sensitive to center
86- **Anderson-Darling (AD)**: More sensitive to tails
87- **Chi-Square**: Categorical/binned data
88- **Cramér-von Mises**: Similar to KS, different weighting
89
90### Model Selection Criteria
91
92- **AIC (Akaike Information Criterion)**: Balance fit and complexity
93- **BIC (Bayesian Information Criterion)**: Stronger penalty for parameters
94- **Log-Likelihood**: Raw fit quality
95
96## Input Schema
97
98```json
99{
100 "fitting_mode": "data_driven|expert_elicitation",
101 "data_driven_config": {
102 "data": ["number"],
103 "candidate_distributions": ["string"],
104 "fitting_method": "mle|mom|bayesian",
105 "selection_criterion": "AIC|BIC|likelihood"
106 },
107 "expert_elicitation_config": {
108 "method": "3_point|5_point|PERT|direct",
109 "estimates": "object",
110 "confidence_level": "number"
111 },
112 "options": {
113 "gof_tests": ["KS", "AD", "chi_square"],
114 "visualize": "boolean",
115 "compare_all": "boolean"
116 }
117}
118```
119
120## Output Schema
121
122```json
123{
124 "best_fit": {
125 "distribution": "string",
126 "parameters": "object",
127 "gof_statistics": {
128 "test_name": {
129 "statistic": "number",
130 "p_value": "number"
131 }
132 },
133 "selection_score": "number"
134 },
135 "all_fits": [
136 {
137 "distribution": "string",
138 "parameters": "object",
139 "scores": "object"
140 }
141 ],
142 "summary": {
143 "mean": "number",
144 "std": "number",
145 "percentiles": "object"
146 },
147 "visualization_path": "string",
148 "recommendations": ["string"]
149}
150```
151
152## Best Practices
153
1541. Use data-driven fitting when sufficient historical data exists (n > 30)
1552. Validate fitted distributions against holdout data
1563. Use PERT for expert estimates when asymmetry is expected
1574. Document expert credentials and elicitation process
1585. Consider mixture distributions for multimodal data
1596. Always visualize fitted distribution against data/estimates
1607. Use multiple goodness-of-fit tests for robustness
161
162## Expert Elicitation Guidelines
163
1641. Explain probability concepts clearly
1652. Use familiar reference points
1663. Ask for extreme estimates first, then middle
1674. Check for overconfidence (typical: too narrow ranges)
1685. Consider debiasing techniques
1696. Document reasoning behind estimates
170
171## Integration Points
172
173- Feeds into Monte Carlo Engine for simulation inputs
174- Supports Calibration Trainer for expert accuracy assessment
175- Connects with Bayesian Network Analyzer for CPT estimation
176- Integrates with Risk Register Manager for risk quantification