47 / Operations & risk
Monte Carlo simulation and decision risk
Monte Carlo simulation repeatedly samples uncertain inputs and calculates the resulting business outcomes. It exposes a distribution of results and decision trade-offs that a single average-input forecast can conceal.
The business question
How wide is the range of plausible outcomes under explicit uncertain inputs?
- Explore the probability and size of an operating loss under a specified demand and cost model.
- Compare competing policies using the same underlying demand scenarios to isolate their modelled differences.
How the method works
Start with a transparent business calculation and identify which inputs vary. Choose distributions, dependence and parameter values from defensible information, then generate many scenarios. For each scenario, apply the same accounting and operating logic. The collection can estimate an expected result, selected percentiles, probability of a loss and other decision measures under that model.
Simulation error is different from uncertainty about the real business. Increasing the number of replications reduces the random numerical error in estimated model averages; it does not repair an unrealistic demand distribution, biased parameter estimate or omitted response. For independent simulated outcomes, the estimated Monte Carlo standard error of a mean is sample standard deviation divided by the square root of replications.
Compare policies with common random numbers when the same underlying scenario meaningfully applies to both. Calculate each scenario’s paired policy difference, then estimate its mean and standard error. Reproducible random seeds make development and review easier. Scenario percentiles are conditional on modelling assumptions, not automatic confidence intervals for a real-world causal effect.
The calculation
| Symbol | Meaning |
|---|---|
| s, N | Scenario index and number of independent simulation replications. |
| demand_s | A simulated demand value under the declared demand model. |
| MCSE | Monte Carlo standard error: numerical precision of the estimated model mean, not total business uncertainty. |
A worked business example
ILLUSTRATIVE SCENARIO
Illustrative annual operating comparison: two policies face identical simulated demand and differ in cost structure.
Inputs
- Policy A: price R100, variable cost R60 and fixed cost R200,000.
- Policy B: variable cost R58 and fixed cost R210,000, with the same price and demand.
- Demand is a normal draw with mean 5,000 and standard deviation 800, rounded to a non-negative whole number; use 100,000 draws and seed 42.
Work through the numbers
- At exactly 5,000 units, Policy A profit is (100−60) × 5,000−200,000 = R0.
- The scenario-level policy difference is 2 × demand−10,000, so it is also zero at 5,000 units.
- Ignoring negligible lower-tail truncation and small rounding effects, Policy A profit standard deviation is 40 × 800 = R32,000.
- With 100,000 independent scenarios, the expected scale of MCSE for Policy A’s mean is R32,000/sqrt(100,000) ≈ R101.19.
- The paired-difference standard deviation is about 2 × 800 = R1,600, giving an MCSE near R5.06. The code calculates the seeded sample results directly.
- The seeded 100,000-run sample gives Policy A mean −R135.50, loss probability 50.359% and mean MCSE R101.57. Its mean paired B−A difference is −R6.78 with MCSE R5.08; these are simulated sample estimates, not exact model expectations.
The seeded results illustrate numerical sampling variation around approximately zero model expectations. A small policy difference may be numerical noise or assumption sensitivity. Neither policy is assumed to change demand, and that assumption is not established by the simulation.
Explore the decision
Explore a demand-risk profit model. The live explorer has its own example inputs; it is separate from the worked calculation above.
Enable JavaScript to use this calculator. The worked example and executable Python remain available.
Apply it at work
- Write and validate the single-scenario business calculation before adding randomness.
- Specify input distributions, correlations, parameter uncertainty, policy responses and operational constraints.
- Run reproducible scenarios, use paired comparisons where valid and report MC standard errors alongside risk measures.
- Test alternative plausible assumptions and compare against data or a pilot before treating the simulation as decision evidence.
Check these assumptions
- The scenario generator is a plausible representation of uncertainty for the question being asked.
- Replications used in the simple MCSE calculation are independent across scenarios.
- The two policies can meaningfully share the same demand draw in the paired comparison.
- No unmodelled feedback, capacity cap or accounting inconsistency changes how the policies translate demand into profit.
Common mistakes and how to avoid them
- One hundred thousand replications do not make invented input assumptions empirically true.
- Independent policy runs can waste precision when a meaningful paired comparison is available.
- A modelled loss percentile is not automatically a frequentist confidence bound for an actual company’s future loss.
How this can help the business
- A risk distribution can reveal downside exposure and break-even sensitivity hidden by a favourable average scenario.
- Reporting numerical precision helps a manager distinguish a stable simulated comparison from a result needing more runs or a better model.
Prefer a policy only when its modelled advantage is meaningful relative to numerical error, downside risk, implementation cost and uncertainty in the assumptions; seek external validation.
When to use another approach
Use deterministic scenarios for transparent early exploration, discrete-event simulation for process interactions, or robust optimisation when probabilities cannot be defended.
Reproduce the worked example in Python
The code is self-contained for this example. Dependencies and run instructions are included with the downloadable notebook.
Show executable code and recorded output
import numpy as np
rng = np.random.default_rng(42)
n = 100000
demand = np.maximum(0,np.rint(rng.normal(5000,800,n)))
profit_a = (100-60)*demand-200000
profit_b = (100-58)*demand-210000
difference = profit_b-profit_a
print("Policy A mean profit: R",round(profit_a.mean(),2))
print("Policy A loss probability %:",round(100*np.mean(profit_a<0),3))
print("Policy A profit 5th/95th percentiles:",np.round(np.quantile(profit_a,[0.05,0.95]),2).tolist())
print("Policy A mean MCSE: R",round(profit_a.std(ddof=1)/np.sqrt(n),2))
print("Mean paired B minus A: R",round(difference.mean(),2))
print("Paired-difference MCSE: R",round(difference.std(ddof=1)/np.sqrt(n),2))Recorded output
Policy A mean profit: R -135.5 Policy A loss probability %: 50.359 Policy A profit 5th/95th percentiles: [-53080.0, 52680.0] Policy A mean MCSE: R 101.57 Mean paired B minus A: R -6.78 Paired-difference MCSE: R 5.08
Sources and further reading
Concepts are linked to primary teaching or technical sources. The business examples are illustrative applications, not reported client results.