SlideShare a Scribd company logo
Probability and Statistics
Week 6 – Monte Carlo Simulation
Dr. Ferdin Joe John Joseph
Monte Carlo Simulation
• A method of estimating the value of an unknown quantity using the
principles of inferential statistics
• Inferential statistics
• Population: a set of examples
• Sample: a proper subset of a population
• Key fact: a random sample tends to exhibit the same properties as the
population from which it is drawn
2
Uncertainty
• When you develop a forecasting model
• any model that plans ahead for the future
• you make certain assumptions. These might be assumptions about
the investment return on a portfolio, the cost of a construction
project, or how long it will take to complete a certain task. Because
these are projections into the future, the best you can do is estimate
the expected value.
3
How it works
• In a Monte Carlo simulation, a random value is selected for each of
the tasks, based on the range of estimates.
• The model is calculated based on this random value. The result of the
model is recorded, and the process is repeated. A typical Monte Carlo
simulation calculates the model hundreds or thousands of times,
each time using different randomly-selected values.
4
Example
5
Solution 1
6
Solution scenario
• In the Monte Carlo simulation, we will randomly generate values for
each of the tasks, then calculate the total time to completion. The
simulation will be run 500 times. Based on the results of the
simulation, we will be able to describe some of the characteristics of
the risk in the model.
• To test the likelihood of a particular result, we count how many times
the model returned that result in the simulation. In this case, we want
to know how many times the result was less than or equal to a
particular number of months.
7
Solution
8
Exponential Distribution
9
Why Monte Carlo
• There are three main reasons to use Monte Carlo methods to
randomly sample a probability distribution. They are:
• Estimate density, gather samples to approximate the distribution of a
target function.
• Approximate a quantity, such as the mean or variance of a
distribution.
• Optimize a function, locate a sample that maximizes or minimizes the
target function.
10
Sampling in Monte Carlo
• Direct Sampling. Sampling the distribution directly without prior
information.
• Importance Sampling. Sampling from a simpler approximation of the
target distribution.
• Rejection Sampling. Sampling from a broader distribution and only
considering samples within a region of the sampled distribution.
11
Applications
Monte Carlo methods can be used for:
• Calculating the probability of a move by an opponent in a complex
game.
• Calculating the probability of a weather event in the future.
• Calculating the probability of a vehicle crash under specific
conditions.
12
Source code
13
Monte Carlo for dummies
14
Monte Carlo to dummies
15
Monte Carlo to dummies
16
Monte Carlo to dummies
17
Monte Carlo to dummies
18
Monte Carlo to dummies
19
Monte Carlo to dummies
20
21

More Related Content

PDF
model simulating
 
PPT
Operational Research
PPTX
Cross-validation aggregation for forecasting
PDF
Performance Evaluation for Classifiers tutorial
PDF
Classification using L1-Penalized Logistic Regression
PPTX
Simulation & Modelling
PPTX
Machine Learning Project - 1994 U.S. Census
PPT
Simulation
model simulating
 
Operational Research
Cross-validation aggregation for forecasting
Performance Evaluation for Classifiers tutorial
Classification using L1-Penalized Logistic Regression
Simulation & Modelling
Machine Learning Project - 1994 U.S. Census
Simulation

What's hot (9)

PPTX
Steps in Simulation Study
PDF
Monte carlo simulation
PDF
The use of Monte Carlo simulation in quantitative risk assessment of IT projects
PPTX
Research on sampling
PPT
Monte Carlo Simulation Of Heston Model In Matlab(1)
PPT
Comparison and evaluation of alternative designs
PPTX
Feature enginnering and selection
PPTX
Monte Carlo Simulation
PPT
Codecamp Iasi 7 mai 2011 Monte Carlo Simulation
Steps in Simulation Study
Monte carlo simulation
The use of Monte Carlo simulation in quantitative risk assessment of IT projects
Research on sampling
Monte Carlo Simulation Of Heston Model In Matlab(1)
Comparison and evaluation of alternative designs
Feature enginnering and selection
Monte Carlo Simulation
Codecamp Iasi 7 mai 2011 Monte Carlo Simulation
Ad

Similar to Monte Carlo and Markov Chain (20)

PPTX
The monte carlo method
PDF
Monte Carlo Simulation lecture.pdf
PDF
Lecture: Monte Carlo Methods
PPT
Monte carlo
PPT
MAchin learning graphoalmodesland bayesian netorls
PPTX
Monte Carlo Sim Primer
PPT
Monte Carlo Simulations
ODT
Probability and random processes project based learning template.pdf
PPTX
3. Modelling and Simulation in computer 3.pptx
PPTX
Monte carlo simulation
PDF
Monte carlo-simulation
PPTX
Risk and Decision Analysis in Petroleum Enginering
PDF
Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)
PPTX
Stochastic Modeling for Valuation and Risk Management
PPT
Probability distribution
PDF
ORMR_Monte Carlo Method.pdf
PDF
PhysicsSIG2008-01-Seneviratne
PDF
Simulation notes
PPT
Or ppt,new
PDF
Monte Carlo methods for some not-quite-but-almost Bayesian problems
The monte carlo method
Monte Carlo Simulation lecture.pdf
Lecture: Monte Carlo Methods
Monte carlo
MAchin learning graphoalmodesland bayesian netorls
Monte Carlo Sim Primer
Monte Carlo Simulations
Probability and random processes project based learning template.pdf
3. Modelling and Simulation in computer 3.pptx
Monte carlo simulation
Monte carlo-simulation
Risk and Decision Analysis in Petroleum Enginering
Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)
Stochastic Modeling for Valuation and Risk Management
Probability distribution
ORMR_Monte Carlo Method.pdf
PhysicsSIG2008-01-Seneviratne
Simulation notes
Or ppt,new
Monte Carlo methods for some not-quite-but-almost Bayesian problems
Ad

More from Ferdin Joe John Joseph PhD (20)

PDF
Invited Talk DGTiCon 2022
PDF
Week 12: Cloud AI- DSA 441 Cloud Computing
PDF
Week 11: Cloud Native- DSA 441 Cloud Computing
PDF
Week 10: Cloud Security- DSA 441 Cloud Computing
PDF
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
PDF
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
PDF
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
PDF
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
PDF
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
PDF
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
PDF
Week 2: Virtualization and VM Ware - DSA 441 Cloud Computing
PDF
Week 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
PDF
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculum
PDF
Hadoop in Alibaba Cloud
PDF
Cloud Computing Essentials in Alibaba Cloud
PDF
Transforming deep into transformers – a computer vision approach
PDF
Week 11: Programming for Data Analysis
PDF
Week 10: Programming for Data Analysis
PDF
Week 9: Programming for Data Analysis
PDF
Week 8: Programming for Data Analysis
Invited Talk DGTiCon 2022
Week 12: Cloud AI- DSA 441 Cloud Computing
Week 11: Cloud Native- DSA 441 Cloud Computing
Week 10: Cloud Security- DSA 441 Cloud Computing
Week 9: Relational Database Service Alibaba Cloud- DSA 441 Cloud Computing
Week 7: Object Storage Service Alibaba Cloud- DSA 441 Cloud Computing
Week 6: Server Load Balancer and Auto Scaling Alibaba Cloud- DSA 441 Cloud Co...
Week 5: Elastic Compute Service (ECS) with Alibaba Cloud- DSA 441 Cloud Compu...
Week 4: Big Data and Hadoop in Alibaba Cloud - DSA 441 Cloud Computing
Week 3: Virtual Private Cloud, On Premise, IaaS, PaaS, SaaS - DSA 441 Cloud C...
Week 2: Virtualization and VM Ware - DSA 441 Cloud Computing
Week 1: Introduction to Cloud Computing - DSA 441 Cloud Computing
Sept 6 2021 BTech Artificial Intelligence and Data Science curriculum
Hadoop in Alibaba Cloud
Cloud Computing Essentials in Alibaba Cloud
Transforming deep into transformers – a computer vision approach
Week 11: Programming for Data Analysis
Week 10: Programming for Data Analysis
Week 9: Programming for Data Analysis
Week 8: Programming for Data Analysis

Recently uploaded (20)

PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
[EN] Industrial Machine Downtime Prediction
PPTX
IB Computer Science - Internal Assessment.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Database Infoormation System (DBIS).pptx
PPTX
Computer network topology notes for revision
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPT
Quality review (1)_presentation of this 21
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
Reliability_Chapter_ presentation 1221.5784
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
[EN] Industrial Machine Downtime Prediction
IB Computer Science - Internal Assessment.pptx
Miokarditis (Inflamasi pada Otot Jantung)
SAP 2 completion done . PRESENTATION.pptx
1_Introduction to advance data techniques.pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Introduction to Knowledge Engineering Part 1
Galatica Smart Energy Infrastructure Startup Pitch Deck
Introduction-to-Cloud-ComputingFinal.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Database Infoormation System (DBIS).pptx
Computer network topology notes for revision
.pdf is not working space design for the following data for the following dat...
Qualitative Qantitative and Mixed Methods.pptx
Quality review (1)_presentation of this 21
Clinical guidelines as a resource for EBP(1).pdf
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
ISS -ESG Data flows What is ESG and HowHow

Monte Carlo and Markov Chain

  • 1. Probability and Statistics Week 6 – Monte Carlo Simulation Dr. Ferdin Joe John Joseph
  • 2. Monte Carlo Simulation • A method of estimating the value of an unknown quantity using the principles of inferential statistics • Inferential statistics • Population: a set of examples • Sample: a proper subset of a population • Key fact: a random sample tends to exhibit the same properties as the population from which it is drawn 2
  • 3. Uncertainty • When you develop a forecasting model • any model that plans ahead for the future • you make certain assumptions. These might be assumptions about the investment return on a portfolio, the cost of a construction project, or how long it will take to complete a certain task. Because these are projections into the future, the best you can do is estimate the expected value. 3
  • 4. How it works • In a Monte Carlo simulation, a random value is selected for each of the tasks, based on the range of estimates. • The model is calculated based on this random value. The result of the model is recorded, and the process is repeated. A typical Monte Carlo simulation calculates the model hundreds or thousands of times, each time using different randomly-selected values. 4
  • 7. Solution scenario • In the Monte Carlo simulation, we will randomly generate values for each of the tasks, then calculate the total time to completion. The simulation will be run 500 times. Based on the results of the simulation, we will be able to describe some of the characteristics of the risk in the model. • To test the likelihood of a particular result, we count how many times the model returned that result in the simulation. In this case, we want to know how many times the result was less than or equal to a particular number of months. 7
  • 10. Why Monte Carlo • There are three main reasons to use Monte Carlo methods to randomly sample a probability distribution. They are: • Estimate density, gather samples to approximate the distribution of a target function. • Approximate a quantity, such as the mean or variance of a distribution. • Optimize a function, locate a sample that maximizes or minimizes the target function. 10
  • 11. Sampling in Monte Carlo • Direct Sampling. Sampling the distribution directly without prior information. • Importance Sampling. Sampling from a simpler approximation of the target distribution. • Rejection Sampling. Sampling from a broader distribution and only considering samples within a region of the sampled distribution. 11
  • 12. Applications Monte Carlo methods can be used for: • Calculating the probability of a move by an opponent in a complex game. • Calculating the probability of a weather event in the future. • Calculating the probability of a vehicle crash under specific conditions. 12
  • 14. Monte Carlo for dummies 14
  • 15. Monte Carlo to dummies 15
  • 16. Monte Carlo to dummies 16
  • 17. Monte Carlo to dummies 17
  • 18. Monte Carlo to dummies 18
  • 19. Monte Carlo to dummies 19
  • 20. Monte Carlo to dummies 20
  • 21. 21