Monte Carlo methods for risk analysis
Stochastic simulation and numerical experiments
Overview
Some problems in risk analysis cannot be expressed in an analytical form. Others are difficult to define in a deterministic manner. Monte Carlo methods (also known as stochastic simulation techniques) consist of running “numerical experiments” to observe what happens over a large number of runs of a stochastic model. They consist of using repeated random sampling from input probability distributions, execution of the model with these stochastic inputs, then aggregation of the large number of executions to obtain an estimate of the quantity of interest. These methods rely on the ability of computers to generate pseudorandom numbers from various relevant probability distributions.
Monte Carlo methods are widely used in risk analysis, for instance for:

propagating uncertainty through a numerical model to obtain confidence intervals on your model outputs

estimating quantile measures for performance measures

simulating evacuation from a building during the design phase

predicting failure, cost overruns and schedule overruns in project management
This submodule is a part of the risk analysis module.
Course material
Monte Carlo methods in risk analysis 

Estimating pi using a Monte Carlo simulation
View Python notebook online 

Project risk analysis with Monte Carlo simulation
View Python notebook online 

Monte Carlo simulation of failure probability in mechanical design
View Python notebook online 

Numerical integration using Monte Carlo methods
View Python notebook online 

Monte Carlo sampling methods
View Python notebook online 

Limits of stochastic simulation methods: the Saint Petersburg problem
View Python notebook online 

Various poker odds: working with discrete probability distributions
View Python notebook online 
In these course materials, applications are presented using the NumPy, SciPy and SymPy libraries for the Python programming language.
Other resources
We recommend the following sources of further information on this topic:

MIT OpenCourseWare notes from the Numerical computation for mechanical engineers course

Article Principles of Good Practice for Monte Carlo Techniques, Risk Analysis, 1994

Book The Monte Carlo Simulation Method for System Reliability and Risk Analysis, Enrico Zio

An alternative geometrical method to estimate the value of pi using stochastic sampling is Buffon’s Needle, invented in 1777.