Forecast total cost / budget (Monte Carlo)
forecast_costRun a Monte Carlo simulation over three-point cost estimates to forecast total budget probabilities (P50–P95) and check the odds of staying under a given budget cap.
Instructions
Run a Monte Carlo simulation over a list of cost line items, each with an optimistic / most-likely / pessimistic amount, to produce a probabilistic forecast of the TOTAL budget. Returns P50/P80/P90/P95, mean, standard deviation, and a distribution shape. Optionally give a budget to get the probability of coming in at or under it. Ideal for building a contingency-aware estimate instead of a single point number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | PRNG seed. Fixed by default so results are reproducible; change it to explore alternate random streams. | |
| unit | No | Currency or unit label, used only for display (e.g. EUR, USD, CHF). | EUR |
| items | Yes | Cost line items that are summed into a total budget. | |
| budget | No | Optional budget cap (same unit as the estimates). Returns the probability of coming in at or under it. | |
| iterations | No | Number of Monte Carlo iterations (100..200000). | |
| distribution | No | Probability distribution for the estimate. 'pert' (beta-PERT) is the project-management default. | pert |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | ||
| min | Yes | ||
| mean | Yes | ||
| seed | Yes | ||
| unit | Yes | Unit of the forecast values (e.g. days, EUR). | |
| budget | No | ||
| stdDev | Yes | ||
| histogram | Yes | ||
| iterations | Yes | ||
| percentiles | Yes | Map of percentile label (e.g. '80') to value. | |
| distribution | Yes | ||
| probabilityWithinBudget | No | Probability (0..1) of coming in at or under `budget`. |