Simulation.

Slides:



Advertisements
Similar presentations
Session 8a. Decision Models -- Prof. Juran2 Overview Operations Simulation Models Reliability Analysis –RANK, VLOOKUP, MIN Inventory Order Quantities.
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.
Session 9a. Decision Models -- Prof. Juran2 Overview Finance Simulation Models Forecasting –Retirement Planning –Butterfly Strategy Risk Management –Introduction.
1 Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions set for analytic.
11 Simulation. 22 Overview of Simulation – When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions.
McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T4 PROBLEM SOLVING USING EXCEL Goal Seek, Solver & Pivot Tables.
Intro to Simulation (using Excel) DSC340 Mike Pangburn.
Session 8b Decision Models -- Prof. Juran.
Probability Distributions CSLU 2850.Lo1 Spring 2008 Cameron McInally Fordham University May contain work from the Creative Commons.
Simulation Operations -- Prof. Juran.
Session 7a. Decision Models -- Prof. Juran2 Overview Monte Carlo Simulation –Basic concepts and history Excel Tricks –RAND(), IF, Boolean Crystal Ball.
6-1 Stats Unit 6 Sampling Distributions and Statistical Inference - 1 FPP Chapters 16-18, 20-21, 23 The Law of Averages (Ch 16) Box Models (Ch 16) Sampling.
Outline/Coverage Terms for reference Introduction
Spreadsheet Demonstration
Session 9b. Decision Models -- Prof. Juran2 Overview Finance Simulation Models Securities Pricing –Black-Scholes –Electricity Option Miscellaneous –Monte.
Chapter 8 Estimating Single Population Parameters
Project: – Several options for bid: Bid our signal Develop several strategies Develop stable bidding strategy Simulating Normal Random Variables.
MBA7020_07.ppt/July 11, 2005/Page 1 Georgia State University - Confidential MBA 7020 Business Analysis Foundations Simulation July 11, 2005.
1 SIMULATION – PART I Introduction to Simulation and Its Application to Yield Management For this portion of the session, the learning objectives are:
Simulating Normal Random Variables Simulation can provide a great deal of information about the behavior of a random variable.
Example 12.1 Operations Models: Bidding on Contract.
Building and Running a FTIM n 1. Define the system of interest. Identify the DVs, IRVs, DRVs, and Objective. n 2. Develop an objective function of these.
Session 7b. Decision Models -- Prof. Juran2 Example: Preventive Maintenance At the beginning of each week, a machine is in one of four conditions: 1 =
1 The Basics of Regression Regression is a statistical technique that can ultimately be used for forecasting.
Introduction to Simulation. What is simulation? A simulation is the imitation of the operation of a real-world system over time. It involves the generation.
1 Confidence Interval for the Population Mean. 2 What a way to start a section of notes – but anyway. Imagine you are at the ground level in front of.
Session 10b. Decision Models -- Prof. Juran2 Overview Marketing Simulation Models New Product Development Decision –Uncertainty about competitor behavior.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 7 Sampling.
Statistics for Managers Using Microsoft® Excel 7th Edition
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 7-1 Chapter 7 Confidence Interval Estimation Statistics for Managers.
Monte Carlo Methods A Monte Carlo simulation creates samples from a known distribution For example, if you know that a coin is weighted so that heads will.
Chapter 9: Simulation Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Chapter 10 Hypothesis Testing
Confidence Intervals and Hypothesis Testing - II
Fundamentals of Hypothesis Testing: One-Sample Tests
Example 16.1 Ordering calendars at Walton Bookstore
Confidence Intervals (Chapter 8) Confidence Intervals for numerical data: –Standard deviation known –Standard deviation unknown Confidence Intervals for.
© 2003 Prentice-Hall, Inc.Chap 6-1 Business Statistics: A First Course (3 rd Edition) Chapter 6 Sampling Distributions and Confidence Interval Estimation.
SIMULATION USING CRYSTAL BALL. WHAT CRYSTAL BALL DOES? Crystal ball extends the forecasting capabilities of spreadsheet model and provide the information.
Vegas Baby A trip to Vegas is just a sample of a random variable (i.e. 100 card games, 100 slot plays or 100 video poker games) Which is more likely? Win.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
1 SMU EMIS 7364 NTU TO-570-N Inferences About Process Quality Updated: 2/3/04 Statistical Quality Control Dr. Jerrell T. Stracener, SAE Fellow.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Crystal Ball: Risk Analysis  Risk analysis uses analytical decision models or Monte Carlo simulation models based on the probability distributions to.
DECISION MODELING WITH MICROSOFT EXCEL Chapter 9 Copyright 2001 Prentice Hall Publishers and Ardith E. Baker Monte Carlo Simulation Part 1.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2006 Session Two Alex Fadeev - Link for this PPT:
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2009 Session Two Michel-Alexandre Cardin – Prof. Richard.
Expected Value.
Monte Carlo Process Risk Analysis for Water Resources Planning and Management Institute for Water Resources 2008.
Estimation of a Population Mean
Simulation is the process of studying the behavior of a real system by using a model that replicates the system under different scenarios. A simulation.
Risk Analysis Simulate a scenario of possible input values that could occur and observe key impacts Pick many input scenarios according to their likelihood.
Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.
26134 Business Statistics Tutorial 12: REVISION THRESHOLD CONCEPT 5 (TH5): Theoretical foundation of statistical inference:
L56 – Discrete Random Variables, Distributions & Expected Values
CHAPTER 27: One-Way Analysis of Variance: Comparing Several Means
1 BA 555 Practical Business Analysis Linear Programming (LP) Sensitivity Analysis Simulation Agenda.
Advanced Simulation Methods. © The McGraw-Hill Companies, Inc., 2004 Operations -- Prof. Juran2 Overview Advanced Simulation Applications Beta Distribution.
Risk Analysis Simulate a scenario of possible input values that could occur and observe key financial impacts Pick many different input scenarios according.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 7-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Simulation Chapter 16 of Quantitative Methods for Business, by Anderson, Sweeney and Williams Read sections 16.1, 16.2, 16.3, 16.4, and Appendix 16.1.
Class 5 Estimating  Confidence Intervals. Estimation of  Imagine that we do not know what  is, so we would like to estimate it. In order to get a point.
Copyright © 2009 Pearson Education, Inc t LEARNING GOAL Understand when it is appropriate to use the Student t distribution rather than the normal.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 7 l Hypothesis Tests 7.1 Developing Null and Alternative Hypotheses 7.2 Type I & Type.
Hypothesis Tests l Chapter 7 l 7.1 Developing Null and Alternative
Chapter 9: Inferences Involving One Population
Introduction to Crystal Ball (Part I)
Presentation transcript:

Simulation

Operations -- Prof. Juran Overview Monte Carlo Simulation Basic concepts and history Excel Tricks RAND(), IF, Boolean Crystal Ball Probability Distributions Normal, Gamma, Uniform, Triangular Assumption and Forecast cells Run Preferences Output Analysis Examples Coin Toss, TSB Account Operations -- Prof. Juran

Monte Carlo Simulation Using theoretical probability distributions to model real-world situations in which randomness is an important factor. Differences from other spreadsheet models No optimal solution Explicit modeling of random variables in special cells Many trials, all with different results Objective function studied using statistical inference Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran Origins of Monte Carlo Operations -- Prof. Juran

Operations -- Prof. Juran Example: Coin Toss Imagine a game where you flip a coin once. If you get “heads”, you win $3.00 If you get “tails”, you lose $1.00 The coin is not fair; it lands on “heads” 35% of the time What is the expected value of this game? Operations -- Prof. Juran

Operations -- Prof. Juran Simulation “By Hand” Set up a spreadsheet model Add an element of randomness Excel built-in random number generator Use F9 key to create repetitive iterations of the random system (“realizations”) Keep track of the results Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran What Does =RAND() Do? Uniform random number between 0 and 1 Never below 0; never above 1 All values between 0 and 1 are equally likely P(X<0.35) = 0.35 0.35 0.65 Operations -- Prof. Juran

Operations -- Prof. Juran What Does =IF Do? Evaluates a logical expression (true or false) Gives one result for true and a different result for false In our “coin” model, RAND and IF work together to generate heads and tails (and profits and losses) from a specific probability distribution Operations -- Prof. Juran

Operations -- Prof. Juran Some Random Results Sample means from 15 trials: Operations -- Prof. Juran

Problems with this Model Hitting F9 thousands of times is tedious Keeping track of the results (and summary statistics) is even more tedious What if we want to simulate something other than a uniform distribution between 0 and 1? Operations -- Prof. Juran

Simulation with Crystal Ball Operations -- Prof. Juran

Simulation with Crystal Ball Special cells for random variables (Assumptions) Special cells for objective functions (Forecasts) Run Preferences Number of trials Random number seed Sampling method Output Analysis Studying forecasts Extracting data Operations -- Prof. Juran

Operations -- Prof. Juran Assumption Cell An input random number; a building block for a simulation model The “Define Assumption” button: Must be a “value” cell (a number, not a function) Can be ANY number Gives Crystal Ball permission to generate random numbers in that cell according to a specific probability distribution Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran Assumption Cell Keeps track of important outcome cells during the simulation run. Select the “profit” cell and click on the forecast button. You can enter a name and units if you want. Then click OK. Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran Now click on the run preferences button. Operations -- Prof. Juran

Operations -- Prof. Juran Crystal Ball has buttons for controlling the simulation run, similar to the buttons on a DVD player: Operations -- Prof. Juran

Operations -- Prof. Juran The Crystal Ball toolbar The “play” button Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran The simulation will run until it reaches the maximum number of trials, at which point it will display this message: Operations -- Prof. Juran

Operations -- Prof. Juran Conclusions Crystal Ball performs the tedious functions of running a simulation in a spreadsheet model We can use statistical inference (confidence intervals and hypothesis tests) to study the results The results are only estimates, but they can be very precise estimates Much depends on the validity of our model; how well it represents the real-world system we really want to learn about Operations -- Prof. Juran

Random Number Generator Built into Excel RAND() function Tools – Data Analysis – Random Number Generation Built into all simulation software Not really random; correctly called pseudo-random Operations -- Prof. Juran

Random Number Generator Needs a “seed” to get started Each random number becomes the “seed” for its successor Operations -- Prof. Juran

Probability Trick: Uniform to Normal Start with template file: s-uniform-normal-0.xls Operations -- Prof. Juran

Example: Tax-Saver Benefit A TSB (Tax Saver Benefit) plan allows you to put money into an account at the beginning of the calendar year that can be used for medical expenses. This amount is not subject to federal tax — hence the phrase TSB. Operations -- Prof. Juran

Operations -- Prof. Juran As you pay medical expenses during the year, you are reimbursed by the administrator of the TSB until the TSB account is exhausted. From that point on, you must pay your medical expenses out of your own pocket. On the other hand, if you put more money into your TSB than the medical expenses you incur, this extra money is lost to you. Your annual salary is $50,000 and your federal income tax rate is 30%. Operations -- Prof. Juran

Operations -- Prof. Juran Assume that your medical expenses in a year are normally distributed with mean $2000 and standard deviation $500. Build a Crystal Ball model in which the output is the amount of money left to you after paying taxes, putting money in a TSB, and paying any extra medical expenses. Experiment with the amount of money put in the TSB, and identify an amount that is approximately optimal. Operations -- Prof. Juran

Operations -- Prof. Juran First, we set up a spreadsheet to organize all of the information. In particular, we want to make sure we’ve identified the decision variable (how much to have taken out of our salary and put into the TSB account — here in cell B1), the objective (Maximize net income — after tax, and after extra medical expenses not covered by the TSB — which we have here in cell B14), and the random variable (in this case the amount of medical expenses — here in cell B9). Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran Note (this is important): We will never get a simulation model to tell us directly what is the optimal value of the decision variable. We will try different values (here we have arbitrarily started with $3000 in cell B1) and see how the objective changes. Through educated trial-and-error, we will eventually come to some conclusion about what is the best amount of money to put into the TSB account. Operations -- Prof. Juran

Operations -- Prof. Juran Now we add the element of randomness by making B9 into an assumption cell. First, enter the mean and standard deviation for the medical expenses random variable (we put them in cells B16 and B17, respectively). Operations -- Prof. Juran

Operations -- Prof. Juran Select the assumption cell B9 and click on the assumption button. Select “Normal” and click “OK”. Operations -- Prof. Juran

Operations -- Prof. Juran We are presented with a screen where we can enter the parameters for this normal distribution. We can enter values (2000 and 500) or we can use cell references. Here we enter the cell references. Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran Now we need to tell Crystal Ball to keep track of our objective cell during all of our simulation runs, so we can see its mean and standard deviation over many trials. Select the net income cell B14 and click on the forecast button. You can enter a name and units if you want. Then click OK. Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran Now click on the run preferences button. Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran To see the summary statistics from the 1000 simulations, we click on the extract data button. Select one of the options (here we pick statistics): Operations -- Prof. Juran

Operations -- Prof. Juran We see the following information appear in a new worksheet: This gives us everything we need to perform analysis such as making a confidence interval for the true mean net income when we put $3000 into the TSB account. Operations -- Prof. Juran

Operations -- Prof. Juran The formula for a 95% confidence interval: To perform normal distribution calculations in Excel, we use the NORMSDIST and NORMSINV functions. Operations -- Prof. Juran

Operations -- Prof. Juran NORMSDIST Operations -- Prof. Juran

Operations -- Prof. Juran NORMSINV Operations -- Prof. Juran

95% Confidence Interval for the Population Mean Operations -- Prof. Juran

Operations -- Prof. Juran Unfortunately, we can’t tell whether $3000 is the optimal amount without trying many other possible amounts. This could entail a long and tedious series of simulation runs, but fortunately it is possible to test many values at once. We set up numerous columns in the worksheet, so that we can perform simulation experiments on many possible TSB amounts simultaneously: Operations -- Prof. Juran

Operations -- Prof. Juran Here we have set up different columns, each with its own possible amount to be put into the TSB account in row 1. In row 14 we have the net income forecast for each possible value of the decision variable. To make the output easy to interpret, we had to select each forecast cell, click on the “define forecast” button, and give each of them a logical name. This is a pain, but it pays off later. Operations -- Prof. Juran

Operations -- Prof. Juran Now we re-run the simulation, click on extract data, select “all” forecasts, and get summary statistics for all of our possible values for the TSB: Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran What if we assume that annual medical expenses follow a gamma distribution? To have the same mean and standard deviation as our normal distribution, we would use $0 for the location parameter, $125 for the scale parameter (sometimes symbolized with β), and 16 for the shape parameter (sometimes symbolized with ). Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran

Operations -- Prof. Juran Conclusions The best amount to put into the TSB is apparently about $1,750 per year. This result is robust over different distributions of medical costs. This result is based on sample statistics, not known population parameters. We have confidence in these sample statistics because of the large sample size (1,000). Operations -- Prof. Juran

Operations -- Prof. Juran Summary Monte Carlo Simulation Basic concepts and history Excel Tricks RAND(), IF, Boolean Crystal Ball Probability Distributions Normal, Gamma, Uniform, Triangular Assumption and Forecast cells Run Preferences Output Analysis Examples Coin Toss, TSB Account Operations -- Prof. Juran