1 Simulation: Modeling Uncertainty with Monte Carlo 12-706 / 19-702.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. A PowerPoint Presentation Package to Accompany Applied Statistics.
Advertisements

Chapter 18 If mathematical analysis is too difficult, we can try each possibility out on paper. That way we can find which alternative appears to work.
SE503 Advanced Project Management Dr. Ahmed Sameh, Ph.D. Professor, CS & IS Project Uncertainty Management.
Materials for Lecture 11 Chapters 3 and 6 Chapter 16 Section 4.0 and 5.0 Lecture 11 Pseudo Random LHC.xls Lecture 11 Validation Tests.xls Next 4 slides.
Sampling Distributions (§ )
Outline/Coverage Terms for reference Introduction
Probability Distributions and Stochastic Budgeting AEC 851 – Agribusiness Operations Management Spring, 2006.
Resampling techniques Why resampling? Jacknife Cross-validation Bootstrap Examples of application of bootstrap.
Why Do Stochastic Simulations? Empirical evaluation of statistical tests or methods –Want to know how well t-test performs when have unequal variances.
Review.
Simulation Modeling and Analysis
Software Tools for Sensitivity and Uncertainty Analysis H. Scott Matthews / Lecture 11 - Oct. 6, 2004.
Discrete Event Simulation How to generate RV according to a specified distribution? geometric Poisson etc. Example of a DEVS: repair problem.
Copyright © 2009 Pearson Education, Inc. Chapter 16 Random Variables.
1 Simulation: Modeling Uncertainty with Monte Carlo /
Software Tools for Simulation H. Scott Matthews / Lecture 17 - Oct. 26, 2005.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 15, Slide 1 Chapter 15 Random Variables.
- 1 - Summary of P-box Probability bound analysis (PBA) PBA can be implemented by nested Monte Carlo simulation. –Generate CDF for different instances.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Introduction to ModelingMonte Carlo Simulation Expensive Not always practical Time consuming Impossible for all situations Can be complex Cons Pros Experience.
Monte Carlo Simulation 1.  Simulations where random values are used but the explicit passage of time is not modeled Static simulation  Introduction.
Component Reliability Analysis
Estimation and Hypothesis Testing. The Investment Decision What would you like to know? What will be the return on my investment? Not possible PDF for.
Marko Tainio, marko.tainio[at]thl.fi Modeling and Monte Carlo simulation Marko Tainio Decision analysis and Risk Management course in Kuopio
Simulation Examples ~ By Hand ~ Using Excel
Chapter 4 – Modeling Basic Operations and Inputs  Structural modeling: what we’ve done so far ◦ Logical aspects – entities, resources, paths, etc. 
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Random Variables.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 16 Random Variables.
CPSC 531: Probability Review1 CPSC 531:Distributions Instructor: Anirban Mahanti Office: ICT Class Location: TRB 101.
0 Simulation Modeling and Analysis: Input Analysis K. Salah 8 Generating Random Variates Ref: Law & Kelton, Chapter 8.
Chapter 5 Statistical Models in Simulation
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
Monte Carlo Simulation and Personal Finance Jacob Foley.
Monte Carlo Simulation CWR 6536 Stochastic Subsurface Hydrology.
The AIE Monte Carlo Tool The AIE Monte Carlo tool is an Excel spreadsheet and a set of supporting macros. It is the main tool used in AIE analysis of a.
Chapter 10 Introduction to Simulation Modeling Monte Carlo Simulation.
About the Exam No cheat sheet Bring a calculator.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review II Instructor: Anirban Mahanti Office: ICT 745
Lecture 15: Statistics and Their Distributions, Central Limit Theorem
1 Chapter 16 Random Variables. 2 Expected Value: Center A random variable assumes a value based on the outcome of a random event.  We use a capital letter,
1 Lesson 8: Basic Monte Carlo integration We begin the 2 nd phase of our course: Study of general mathematics of MC We begin the 2 nd phase of our course:
Monte Carlo Methods Versatile methods for analyzing the behavior of some activity, plan or process that involves uncertainty.
Materials for Lecture 08 Chapters 4 and 5 Chapter 16 Sections Lecture 08 Bernoulli.xlsx Lecture 08 Normality Test.xls Lecture 08 Simulation Model.
Outline of Chapter 9: Using Simulation to Solve Decision Problems Real world decisions are often too complex to be analyzed effectively using influence.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2009 Session Two Michel-Alexandre Cardin – Prof. Richard.
5-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. May 28, 2009 Inventory # Chapter 5 Six Sigma.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 16 Random Variables.
FIN 614: Financial Management Larry Schrenk, Instructor.
12/4/2015 Vijit Mittal (NBS, Gr. Noida) 1 Monte Carlo Simulation,Real Options and Decision Tree.
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
Learning Simio Chapter 10 Analyzing Input Data
STA 2023 Module 5 Discrete Random Variables. Rev.F082 Learning Objectives Upon completing this module, you should be able to: 1.Determine the probability.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2010 Session Two Xin Zhang – Prof. Richard de Neufville.
Sampling Distributions & Sample Means Movie Clip.
Gil McVean, Department of Statistics Thursday February 12 th 2009 Monte Carlo simulation.
Unit 4 Review. Starter Write the characteristics of the binomial setting. What is the difference between the binomial setting and the geometric setting?
Chapter 15 Random Variables.
Monte Carlo Simulation Random Number Generation
Prepared by Lloyd R. Jaisingh
Materials for Lecture 18 Chapters 3 and 6
Chapter 3 Component Reliability Analysis of Structures.
Project Management for Software Engineers (Summer 2017)
Chapter 5 Statistical Models in Simulation
Ch13 Empirical Methods.
Chapter 16 Random Variables Copyright © 2009 Pearson Education, Inc.
Sampling Distributions (§ )
Presentation transcript:

1 Simulation: Modeling Uncertainty with Monte Carlo /

2 Notes on Uncertainty zUncertainty is inherent in everything we do yThere are no right answers zOur goal: yUnderstand and model it --> make better decisions zWe ‘internalize’ uncertainty using ranges or distributions of our inputs yThis is a computationally intensive idea

3 First: Reading PDFs & CDFs zWhat information can we get from simply looking at a PDF or CDF?

4 Some types of distributions zDiscrete zUniform zNormal zTriangular zExponential zLognormal z… zAll defined/expressed in the text

Some Reminders zFor 2 variables X and Y: yE(X+Y) = E(X) + E(Y) yE[f(x)] does not necessarily equal f(E[x]) zFor 2 independent X and Y (not typical) yE(X*Y) = E(X)*E(Y) yVar(X+Y) = Var(X-Y) = Var(X) + Var(Y) yStd dev = sqrt(Var) 5

Adding Distribution Functions zTriangular distribution with min -10, mid 0, max 10.. (mean 0, st dev 4) yIf X and Y both modeled like this.. yThen E(X+Y)=0 ; st dev ~ 5.6 (as above) 6

Simulation alternatives zPhysical – hydraulic tanks used for blood flow models in Porter Hall

3D CAD Simulations

Deterministic (system) dynamics

Monte Carlo (Stochastic) Simulation

11 Monte Carlo History zNot a new idea: “Statistical sampling” zFermi, Ulam, working on Manhattan Project in 1940’s yDeveloped method for doing many iterations of picking inputs to generate a distribution of “answers” yFinally have “fast” computers zLater, named after Monte Carlo (famous for gambling)

Monte Carlo History - Hendrickson zI used Monte Carlo Simulation for my doctoral dissertation research in zSimulated dial-a-ride tours in a service area to validate an analytical model. (used to model service tours performance). zGenerated service call times and locations, then constructed vehicle tours and calculated performance. zSeveral hundred computer punch cards for simulation of tours in areas. zNow could be done rapidly on a spreadsheet.

Computer Punch Cards

14 Monte Carlo Method zMonte Carlo analysis: 3 steps 1.Specify probability distributions in place of constants/variables in a model 2.Trial by random draws 3.Repeat for many* trials zMonte Carlo does not yield “the right answer”! xProduces a distribution of results xMany random draws simulated -> convergence * hundreds or thousands

Random Draws zHistorically, developing a random number generator was difficult. zNow, straightforward using numerical methods and modern computers.

Validating Simulation Models zValidation is difficult! zCheck internal consistency. zCheck input distribution assumptions. zCheck against known data. zDocument assumptions.

17 Monte Carlo Simulations zWe’ll (part of DecisionTools Suite) zAdds special probability functions to Excel yExcel has some, but these are better yBunch of distributions: Binomial, Discrete, Exponential, Normal, Poisson, Triangular, Uniform (more on these in a moment) zHas a lot of nice post-simulation analysis yStatistics, graphs, reports yAgain, these are not “answers”

18 Let’s Test It! zLook at test-montecarlo-07.xls spreadsheet yNumber of trials sheet first yCan random draws from a normal distribution give us the parameters of that distribution? xi.e. given a distribution w/mean, st dev “can we sample it”? xSee Excel formula to do so (and link on web page for more) yWhat difference does 10, 100, 1000 or trials make? yLook at histogram of trials worksheet to visualize yDon’t worry about MC mechanics: tutorial next week

19 Let’s talk about distributions zYou (should) have seen these before: yUniform, Normal, Triangular, Binomial, Discrete, Poisson, possibly Exponential, Lognormal, Weibull yImportant part of MC is picking “correct” distributions & parameters yBe careful of over-thinking this choice! yFirst – lets talk about normal (bell curve)

20 Distribution Examples?

21 Homework Grades – Normal?

22 Distributions – Thought Examples zWhat processes / items could be modeled with: zUniform zNormal zTriangular zBinomial zDiscrete zPoisson zExponential zLognormal zWeibull

Bootstrap Approach zApplicable when you have a sample of observations. zSample repeatedly from the observations with equal probability of each being used. zDoesn’t require underlying distribution assumption. zCan compare bootstrap and classic approaches.

Results zWhen you add distributions yYou get expected results as in E(X+Y) above zWhat happens when you multiply them? 24

25 zUsing examples familiar to us zInstead of point estimates, use probabilistic functions yPick up penny example? Examples Using Monte Carlo

Penny Example zWhy do we get big weights at bottom/top of output distributions? zHow can we fix? 26

27 Wrap Up zWe have much better models - and knowledge of our results now zImportant take away messages: yDon’t introduce unnecessary uncertainty with your input choices yMonte Carlo doesn’t give you the answer yInterpreting output (PDFs/CDFs) gives you an answer