SlideShare a Scribd company logo
2
Most read
11
Most read
14
Most read
• Monte Carlo simulation is a computerized mathematical technique to
generate random sample data based on some known distribution for
numerical experiments.
• The Law of large numbers ensures that the relative frequency of
occurrence of a possible result of a random variable converges to the
theoretical or expected outcome as the number of experiments
increases.
• The essence of Monte Carlo simulation is to sample random variables
significant number of times so that the relative frequency converges to
the theoretical probability with greatest reliability.
MONTE CARLO SIMULATION
• Step 1: Identify the factors and formulate a model
• Step 2: carry out a preliminary sensitivity analysis to establish the
factors (variables) for which probability distribution should be
assessed. ( random variables).
• Step 3: Establish the shape of the probability distribution for each
random variables.
MONTE CARLO SIMULATION
• Step 4: sampling of random variables (random variables sample
generation). Use random numbers from a standard uniform
distribuition on the interval [0,1]. Each number in the range [0,1] is
given an equal chance of being generated at any one time. These
numbers are used as inputs in the cumulative distribution functions in
order to obtain the values of the random variables. The logic for the
procedure is that the cumulative distribution, F (x), has value between
0 and 1, that is, it is in the same range as a random number. Therefore,
the formula converts the values of the random numbers into
quantities of the variables
• Step 5: description of output variables
• Step 6 : Performing statistical analysis on output results
MONTE CARLO SIMULATION
An important step of Monte Carlo Simulation is to determine de probability
distribution for the random variables.
There are two ways of categorizing distributions: by whether it is discrete or
continuous, and by whether it is a probability density function (PDF) or
a cumulative distribution function(CDF).
The probability density function specifies the probability that the random
variable will take on a specific value. The cumulative distribution function
gives the probability that the random variable is less than or equal to a
specific value. The CDF plays an important role in Monte Carlo Simulation.
The probability distribution might be determined by:
• time series data;
• estimates from experts;
• Previous knowledge
MONTE CARLO SIMULATION
Common Probability distributions in Monte Carlo Simulation
Uniform distribution
Triangular distribution
Normal distribution
Lognormal distribution
Beta distribution
MONTE CARLO SIMULATION
MONTE CARLO SIMULATION
6
Triangular distribution
a m b
a is the lowest value asssumed by the
random variable, b is the highest value
and m the most likely value (mode).
f(X)
X
The probability density function for a random
variable is as follows:
=
2 −
− −
2 −
− −
≤ ≤
< ≤
0
7
Triangular distribution
The cumulative distribution function is:
= ≤ =
−
− −
= ≤ = 1 −
< ≤
< <
MONTE CARLO SIMULATION
= ≤ = 0 ≤
= ≤ = 1 ≥
ANÁLISE DE RISCO – SIMULAÇÃO MONTE CARLO
8
Triangular distribution
Given a random number r, 0 ≤ ≤ 1, and a random variable ≤ ≤ .
Equating the cumulative distribution function to r: =
=
−
− −
= + − −
This is the cumulative probability of
occurrence of a specific value of the
random variable between and
Value of the random variable between
and .
(1)
(2)
9
Triangular Distribution
Given a random number r [0,1] and a random variable < ≤ .
Assuming = :
= 1 −
−
− −
= − 1 − − −
This is the cumulative probability of
occurrence of a specific value of the
random variable between and b
Value of the random variable
between and b.
(3)
4)
MONTE CARLO SIMULATION
10
To establish a routine to generate the random variable, equating = and
calculating ∗
through the equation 1:
Triangular distribution
∗
=
−
−
Then, create random numbers r 0 ≤ ≤ 1 and calculate as follows:
 if < ∗, calculate using equation 2
 if > ∗
, calculate using equation 4
 if = ∗
, então =
MONTE CARLO SIMULATION
11
Uniform distribution
MONTE CARLO SIMULATION
0
)
(
)
(
1
)
(



x
f
a
b
x
f for a ≤ x ≤ b
elsewhere
The cumulative distribution Function is:


 )
(
)
( x
X
P
x
F
,
1
,
,
0
a
b
a
x


b
x
b
x
a
a
x




The probability density function for a random
variable is as follows
12
MONTE CARLO SIMULATION
Example 1 (Goodwin and Wright, 2009)
Cash inflows
($)
Probability
(%) CDF
Cash outflows
($)
Probability
(%) CDF
50000 30 30 50000 45 45
60000 40 70 70000 55 100
70000 30 100
Cash inflows
($) CDF
Random
number
Cash outflows
($) CDF
Random
number
50000 30 00-29 50000 45 00-44
60000 70 30-69 70000 100 45-99
70000 100 70-99
13
MONTE CARLO SIMULATION
Example 1
Net cash flow($)
Calculated
probability
Simulated
Probability 1570
-20000 0.165 0.166
-10000 0.220 0.206
0 0.300 0.300
10000 0.180 0.193
20000 0.135 0.135
14
MONTE CARLO SIMULATION
Example 2: The Elite Pottery Company (Goodwin and Wright, 2009)
The Elite Pottery Company is planing to market a special product
(commemorative plate) to comemorate a major sporting event that is due
to take place in a few month’s time.
The company needs to estimate the profit that would be earned by the
plate. There is some uncertainty about the costs of manufacturing the
product and the level of sales. The company is willing to use Monte Carlo
Simulation to assess the risk involved in the project.
Stage 1: Identify the factors we think will affect the profit.
costs and level of sales can be treated as random variables
Stage 2: Formulate the model
Profit = (price – variable cost) x sales – fixed costs
15
MONTE CARLO SIMULATION
Example 2: The Elite Pottery Company
Stage 3: Assess probability distribution
Estimates of values of the Elite Pottery Problem
Random variables
Most
Likely value
Lowest
possible value
Highest
possible value
Variable Costs ($) 13 8 18
Sales (units) 22000 10000 30000
Fixed Costs ($) 175000 100000 300000
Stage 4: Perform the simulation
Monte Carlo Simulation examples.xlsx
The price of the plate will be fixed at $ 25 per unit.
MONTE CARLO SIMULATION
Exercise Pamplona:
The EnviroTech Inc. is determining the economic viability of a new
project. After obtaining information about market conditions and
costs, the company has the estimates below to work with:
Values ($) Prob. (%) Cum. Prob Values ($) Prob. (%) Cum. Prob Year Prob. (%) Cum. Prob ($)
65.000 12 12 12.000 5 5 9 35 35
70.000 35 47 13.000 15 20 10 45 80
75.000 25 72 14.000 50 70 11 20 100
80.000 15 87 15.000 20 90
85.000 13 100 16.000 10 100
Investment Net Cash flow Lifetime
Use Monte Carlo simulation for simulating the Net Present Value (NPV).
What is the probability that the project will be economic viable.

More Related Content

PPTX
Probability
PPTX
Poisson distribution
PPTX
Poisson distribution
PPT
Monte carlo
PDF
Basic concepts of probability
PPT
Monte Carlo Simulations
PPTX
Monte Carlo Simulation
PDF
Lecture: Monte Carlo Methods
Probability
Poisson distribution
Poisson distribution
Monte carlo
Basic concepts of probability
Monte Carlo Simulations
Monte Carlo Simulation
Lecture: Monte Carlo Methods

What's hot (20)

PPTX
Poission distribution
PPTX
Markov chain
PPT
Probability distribution
PPT
Basic concept of probability
PDF
Lecture: Joint, Conditional and Marginal Probabilities
PPTX
Binomial probability distribution
PPTX
Probability
PPT
Basic Probability
PPT
The Method Of Maximum Likelihood
PPTX
Binomial probability distributions ppt
PPTX
Theorems And Conditional Probability
PPTX
Monte carlo simulation
PDF
Chapter 4 part1-Probability Model
PDF
Monte carlo simulation
PPTX
Discrete distributions: Binomial, Poisson & Hypergeometric distributions
PPTX
Binomial and Poisson Distribution
PPTX
Probability definitions and properties
PDF
Typesetting Mathematics with LaTeX - Day 2
PPTX
Arithmetic Mean, Geometric Mean, Harmonic Mean
PPTX
Probability
Poission distribution
Markov chain
Probability distribution
Basic concept of probability
Lecture: Joint, Conditional and Marginal Probabilities
Binomial probability distribution
Probability
Basic Probability
The Method Of Maximum Likelihood
Binomial probability distributions ppt
Theorems And Conditional Probability
Monte carlo simulation
Chapter 4 part1-Probability Model
Monte carlo simulation
Discrete distributions: Binomial, Poisson & Hypergeometric distributions
Binomial and Poisson Distribution
Probability definitions and properties
Typesetting Mathematics with LaTeX - Day 2
Arithmetic Mean, Geometric Mean, Harmonic Mean
Probability
Ad

Similar to Monte Carlo Simulation lecture.pdf (20)

PDF
Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)
PPTX
BDA_MO_1_S7_Apply_basic_analytics_methods_such_as_distributions.pptx
ODT
Probability and random processes project based learning template.pdf
PPTX
The monte carlo method
PPTX
Week14_Business Simulation Modeling MSBA.pptx
PPT
Ch13 slides
PDF
model simulating
 
PDF
Monte carlo-simulation
PDF
1100163YifanGuo
PDF
ORMR_Monte Carlo Method.pdf
PPT
Chapter 06.ppt
PPTX
Robust Design And Variation Reduction Using DiscoverSim
PPTX
Unit-3 of mathematical foundation of ai ml
PPT
MAchin learning graphoalmodesland bayesian netorls
PPT
discrete and continuous probability distributions pptbecdoms-120223034321-php...
PPTX
Risk and Decision Analysis in Petroleum Enginering
PPTX
Montecarlosimulation2
PDF
Firefly exact MCMC for Big Data
PDF
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf
PPT
engine90-crawford-DECISION-MAKING power point
Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)
BDA_MO_1_S7_Apply_basic_analytics_methods_such_as_distributions.pptx
Probability and random processes project based learning template.pdf
The monte carlo method
Week14_Business Simulation Modeling MSBA.pptx
Ch13 slides
model simulating
 
Monte carlo-simulation
1100163YifanGuo
ORMR_Monte Carlo Method.pdf
Chapter 06.ppt
Robust Design And Variation Reduction Using DiscoverSim
Unit-3 of mathematical foundation of ai ml
MAchin learning graphoalmodesland bayesian netorls
discrete and continuous probability distributions pptbecdoms-120223034321-php...
Risk and Decision Analysis in Petroleum Enginering
Montecarlosimulation2
Firefly exact MCMC for Big Data
_1ab41a6be58a91bb70623682c706d9fe_Module-3-Probabilistic-models.pdf
engine90-crawford-DECISION-MAKING power point
Ad

Recently uploaded (20)

PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PDF
A Brief Introduction About Julia Allison
PPT
340036916-American-Literature-Literary-Period-Overview.ppt
PPTX
Lecture (1)-Introduction.pptx business communication
PDF
Roadmap Map-digital Banking feature MB,IB,AB
PPTX
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
PPTX
Amazon (Business Studies) management studies
PDF
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
PPTX
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
PPTX
Principles of Marketing, Industrial, Consumers,
PPTX
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
PDF
Power and position in leadershipDOC-20250808-WA0011..pdf
PDF
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
PPTX
Probability Distribution, binomial distribution, poisson distribution
PPTX
New Microsoft PowerPoint Presentation - Copy.pptx
PDF
How to Get Funding for Your Trucking Business
DOCX
Business Management - unit 1 and 2
PDF
Nidhal Samdaie CV - International Business Consultant
PPT
Chapter four Project-Preparation material
DOCX
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
A Brief Introduction About Julia Allison
340036916-American-Literature-Literary-Period-Overview.ppt
Lecture (1)-Introduction.pptx business communication
Roadmap Map-digital Banking feature MB,IB,AB
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
Amazon (Business Studies) management studies
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
Principles of Marketing, Industrial, Consumers,
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
Power and position in leadershipDOC-20250808-WA0011..pdf
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
Probability Distribution, binomial distribution, poisson distribution
New Microsoft PowerPoint Presentation - Copy.pptx
How to Get Funding for Your Trucking Business
Business Management - unit 1 and 2
Nidhal Samdaie CV - International Business Consultant
Chapter four Project-Preparation material
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement

Monte Carlo Simulation lecture.pdf

  • 1. • Monte Carlo simulation is a computerized mathematical technique to generate random sample data based on some known distribution for numerical experiments. • The Law of large numbers ensures that the relative frequency of occurrence of a possible result of a random variable converges to the theoretical or expected outcome as the number of experiments increases. • The essence of Monte Carlo simulation is to sample random variables significant number of times so that the relative frequency converges to the theoretical probability with greatest reliability. MONTE CARLO SIMULATION
  • 2. • Step 1: Identify the factors and formulate a model • Step 2: carry out a preliminary sensitivity analysis to establish the factors (variables) for which probability distribution should be assessed. ( random variables). • Step 3: Establish the shape of the probability distribution for each random variables. MONTE CARLO SIMULATION
  • 3. • Step 4: sampling of random variables (random variables sample generation). Use random numbers from a standard uniform distribuition on the interval [0,1]. Each number in the range [0,1] is given an equal chance of being generated at any one time. These numbers are used as inputs in the cumulative distribution functions in order to obtain the values of the random variables. The logic for the procedure is that the cumulative distribution, F (x), has value between 0 and 1, that is, it is in the same range as a random number. Therefore, the formula converts the values of the random numbers into quantities of the variables • Step 5: description of output variables • Step 6 : Performing statistical analysis on output results MONTE CARLO SIMULATION
  • 4. An important step of Monte Carlo Simulation is to determine de probability distribution for the random variables. There are two ways of categorizing distributions: by whether it is discrete or continuous, and by whether it is a probability density function (PDF) or a cumulative distribution function(CDF). The probability density function specifies the probability that the random variable will take on a specific value. The cumulative distribution function gives the probability that the random variable is less than or equal to a specific value. The CDF plays an important role in Monte Carlo Simulation. The probability distribution might be determined by: • time series data; • estimates from experts; • Previous knowledge MONTE CARLO SIMULATION
  • 5. Common Probability distributions in Monte Carlo Simulation Uniform distribution Triangular distribution Normal distribution Lognormal distribution Beta distribution MONTE CARLO SIMULATION
  • 6. MONTE CARLO SIMULATION 6 Triangular distribution a m b a is the lowest value asssumed by the random variable, b is the highest value and m the most likely value (mode). f(X) X The probability density function for a random variable is as follows: = 2 − − − 2 − − − ≤ ≤ < ≤ 0
  • 7. 7 Triangular distribution The cumulative distribution function is: = ≤ = − − − = ≤ = 1 − < ≤ < < MONTE CARLO SIMULATION = ≤ = 0 ≤ = ≤ = 1 ≥
  • 8. ANÁLISE DE RISCO – SIMULAÇÃO MONTE CARLO 8 Triangular distribution Given a random number r, 0 ≤ ≤ 1, and a random variable ≤ ≤ . Equating the cumulative distribution function to r: = = − − − = + − − This is the cumulative probability of occurrence of a specific value of the random variable between and Value of the random variable between and . (1) (2)
  • 9. 9 Triangular Distribution Given a random number r [0,1] and a random variable < ≤ . Assuming = : = 1 − − − − = − 1 − − − This is the cumulative probability of occurrence of a specific value of the random variable between and b Value of the random variable between and b. (3) 4) MONTE CARLO SIMULATION
  • 10. 10 To establish a routine to generate the random variable, equating = and calculating ∗ through the equation 1: Triangular distribution ∗ = − − Then, create random numbers r 0 ≤ ≤ 1 and calculate as follows:  if < ∗, calculate using equation 2  if > ∗ , calculate using equation 4  if = ∗ , então = MONTE CARLO SIMULATION
  • 11. 11 Uniform distribution MONTE CARLO SIMULATION 0 ) ( ) ( 1 ) (    x f a b x f for a ≤ x ≤ b elsewhere The cumulative distribution Function is:    ) ( ) ( x X P x F , 1 , , 0 a b a x   b x b x a a x     The probability density function for a random variable is as follows
  • 12. 12 MONTE CARLO SIMULATION Example 1 (Goodwin and Wright, 2009) Cash inflows ($) Probability (%) CDF Cash outflows ($) Probability (%) CDF 50000 30 30 50000 45 45 60000 40 70 70000 55 100 70000 30 100 Cash inflows ($) CDF Random number Cash outflows ($) CDF Random number 50000 30 00-29 50000 45 00-44 60000 70 30-69 70000 100 45-99 70000 100 70-99
  • 13. 13 MONTE CARLO SIMULATION Example 1 Net cash flow($) Calculated probability Simulated Probability 1570 -20000 0.165 0.166 -10000 0.220 0.206 0 0.300 0.300 10000 0.180 0.193 20000 0.135 0.135
  • 14. 14 MONTE CARLO SIMULATION Example 2: The Elite Pottery Company (Goodwin and Wright, 2009) The Elite Pottery Company is planing to market a special product (commemorative plate) to comemorate a major sporting event that is due to take place in a few month’s time. The company needs to estimate the profit that would be earned by the plate. There is some uncertainty about the costs of manufacturing the product and the level of sales. The company is willing to use Monte Carlo Simulation to assess the risk involved in the project. Stage 1: Identify the factors we think will affect the profit. costs and level of sales can be treated as random variables Stage 2: Formulate the model Profit = (price – variable cost) x sales – fixed costs
  • 15. 15 MONTE CARLO SIMULATION Example 2: The Elite Pottery Company Stage 3: Assess probability distribution Estimates of values of the Elite Pottery Problem Random variables Most Likely value Lowest possible value Highest possible value Variable Costs ($) 13 8 18 Sales (units) 22000 10000 30000 Fixed Costs ($) 175000 100000 300000 Stage 4: Perform the simulation Monte Carlo Simulation examples.xlsx The price of the plate will be fixed at $ 25 per unit.
  • 16. MONTE CARLO SIMULATION Exercise Pamplona: The EnviroTech Inc. is determining the economic viability of a new project. After obtaining information about market conditions and costs, the company has the estimates below to work with: Values ($) Prob. (%) Cum. Prob Values ($) Prob. (%) Cum. Prob Year Prob. (%) Cum. Prob ($) 65.000 12 12 12.000 5 5 9 35 35 70.000 35 47 13.000 15 20 10 45 80 75.000 25 72 14.000 50 70 11 20 100 80.000 15 87 15.000 20 90 85.000 13 100 16.000 10 100 Investment Net Cash flow Lifetime Use Monte Carlo simulation for simulating the Net Present Value (NPV). What is the probability that the project will be economic viable.