advanced
Monte Carlo with Correlation
Correlated variable Monte Carlo simulation
Formula
Source: Ch 17
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
valuation_fn | string | Required | Function the simulation calls (e.g. capm_discount_rate, wacc). Every parameter of it must appear in distributions; only continuous distributions exist, so present_value (integer periods) cannot be used. |
distributions | json | Required | JSON array of {name, distribution, params} |
correlation_matrix | json | Required | JSON 2D array correlation matrix |
iterations | integer | Optional | Number of iterations |
seed | integer | Optional | Random seed |
Running it
Call intangible_valuation.core.statistics.monte_carlo_with_correlation with the parameters above, or use the calculator, which posts the same arguments to the API and shows the step-by-step result. No code sample is published here because this method has none that has been checked by hand.
MCP Tool
This method is available to AI agents through the MCP tool:
valuation_simulationselected with method: "monte_carlo_correlated"
Try it live
Use the interactive calculator to run this method with your own data and see the step-by-step proof.
Open Calculator