Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
Presentation on Probability Distribution * Binomial * Chi-square
Table of Contents Chapter 12 (Computer Simulation: Basic Concepts)
Simulation Operations -- Prof. Juran.
AP STATISTICS Simulation “Statistics means never having to say you're certain.”
Session 7a. Decision Models -- Prof. Juran2 Overview Monte Carlo Simulation –Basic concepts and history Excel Tricks –RAND(), IF, Boolean Crystal Ball.
AP STATISTICS Simulating Experiments. Steps for simulation Simulation: The imitation of chance behavior, based on a model that accurately reflects the.
(Monté Carlo) Simulation
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
Outline/Coverage Terms for reference Introduction
Sections 4.1 and 4.2 Overview Random Variables. PROBABILITY DISTRIBUTIONS This chapter will deal with the construction of probability distributions by.
Engineering Economic Analysis Canadian Edition
Spreadsheet Simulation
Spreadsheet Demonstration
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 16 (Computer Simulation with Crystal Ball) A Case Study: Freddie.
1 SIMULATION – PART I Introduction to Simulation and Its Application to Yield Management For this portion of the session, the learning objectives are:
Session 7b. Decision Models -- Prof. Juran2 Example: Preventive Maintenance At the beginning of each week, a machine is in one of four conditions: 1 =
Chapter 4 Probability Distributions
Simulation.
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.
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
Slide 1 Statistics Workshop Tutorial 4 Probability Probability Distributions.
Lecture Slides Elementary Statistics Twelfth Edition
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 15 (Computer Simulation: Basic Concepts) The Essence of Computer.
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Discrete Distributions Chapter 5.
Simulation.
Discrete Probability Distributions
Chapter 9: Simulation Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Example 16.1 Ordering calendars at Walton Bookstore
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Review and Preview This chapter combines the methods of descriptive statistics presented in.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Chapter © 2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or.
Copyright © 2015 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 C H A P T E R F I V E Discrete Probability Distributions.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
Discrete Distributions The values generated for a random variable must be from a finite distinct set of individual values. For example, based on past observations,
Binomial Experiment A binomial experiment (also known as a Bernoulli trial) is a statistical experiment that has the following properties:
Crystal Ball: Risk Analysis  Risk analysis uses analytical decision models or Monte Carlo simulation models based on the probability distributions to.
Understanding Randomness
DECISION MODELING WITH MICROSOFT EXCEL Chapter 9 Copyright 2001 Prentice Hall Publishers and Ardith E. Baker Monte Carlo Simulation Part 1.
Outline of Chapter 9: Using Simulation to Solve Decision Problems Real world decisions are often too complex to be analyzed effectively using influence.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
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.
Sections 5.1 and 5.2 Review and Preview and Random Variables.
Random Variable The outcome of an experiment need not be a number, for example, the outcome when a coin is tossed can be 'heads' or 'tails'. However, we.
Random Variables Learn how to characterize the pattern of the distribution of values that a random variable may have, and how to use the pattern to find.
Risk Analysis Simulate a scenario of possible input values that could occur and observe key financial impacts Pick many different input scenarios according.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Section 5-1 Review and Preview.
Probability and Distributions. Deterministic vs. Random Processes In deterministic processes, the outcome can be predicted exactly in advance Eg. Force.
Chap 5-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 5 Discrete and Continuous.
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U.
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.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Chapter 5 Probability Distributions 5-1 Overview 5-2 Random Variables 5-3 Binomial Probability Distributions 5-4 Mean, Variance and Standard Deviation.
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U Authors: Gary Greer (with.
Introduction Imagine the process for testing a new design for a propulsion system on the International Space Station. The project engineers wouldn’t perform.
Copyright © 2009 Pearson Education, Inc. Chapter 11 Understanding Randomness.
Module 9.4 Random Numbers from Various Distributions -MC requires the use of unbiased random numbers.
1 Copyright © 2014, 2012, 2009 Pearson Education, Inc. Chapter 9 Understanding Randomness.
Probability Distributions ( 확률분포 ) Chapter 5. 2 모든 가능한 ( 확률 ) 변수의 값에 대해 확률을 할당하는 체계 X 가 1, 2, …, 6 의 값을 가진다면 이 6 개 변수 값에 확률을 할당하는 함수 Definition.
Monte Carlo Simulation
Binomial and Geometric Random Variables
Probability using Simulations
Introduction to Simulation Using Crystal Ball
Chapter 6 Continuous Probability Distributions
Presentation transcript:

Computer Simulation

The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions. Computer simulation imitates the operation of such a system by using the corresponding probability distributions to randomly generate the various events that occur in the system. Rather than literally operating a physical system, the computer just records the occurrences of the simulated events and the resulting performance of the system. Computer simulation is typically used when the stochastic system ivolved is too complex to be analyzed satisfactorily by analytical models. 12-2

Example 1: A Coin-Flipping Game Rules of the game: 1.Each play of the game involves repeatedly flipping an unbiased coin until the difference between the number of heads and tails tossed is three. 2.To play the game, you are required to pay $1 for each flip of the coin. You are not allowed to quit during the play of a game. 3.You receive $8 at the end of each play of the game. Examples: HHH3 flipsYou win $5 THTTT5 flipsYou win $3 THHTHTHTTTT11 flipsYou lose $3 12-3

Computer Simulation of Coin-Flipping Game A computer cannot flip coins. Instead it generates a sequence of random numbers. A number is a random number between 0 and 1 if it has been generated in such a way that every possible number within the interval has an equal chance of occurring. An easy way to generate random numbers is to use the RAND() function in Excel. To simulate the flip of a coin, let half the possible random numbers correspond to heads and the other half to tails. – to correspond to heads. – to correspond to tails. 12-4

Computer Simulation of Coin-Flipping Game 12-5

Data Table for 14 Replications of Coin-Flipping Game 12-6

Data Table for 1000 Replications of Coin-Flipping Game 12-7

Freddie the Newsboy Freddie runs a newsstand in a prominent downtown location of a major city. Freddie sells a variety of newspapers and magazines. The most expensive of the newspapers is the Financial Journal. Cost data for the Financial Journal: –Freddie pays $1.50 per copy delivered. –Freddie charges $2.50 per copy. –Freddie’s refund is $0.50 per unsold copy. Sales data for the Financial Journal: –Freddie sells anywhere between 40 and 70 copies a day. –The frequency of the numbers between 40 and 70 are roughly equal. 13-8

Spreadsheet Model for Applying Simulation 13-9

Application of Crystal Ball Four steps must be taken to use Crystal Ball on a spreadsheet model: 1.Define the random input cells. 2.Define the output cells to forecast. 3.Set the run preferences. 4.Run the simulation

Step 1: Define the Random Input Cells A random input cell is an input cell that has a random value. An assumed probability distribution must be entered into the cell rather than a single number. Crystal Ball refers to each such random input cell as an assumption cell. Procedure to define an assumption cell: 1.Select the cell by clicking on it. 2.If the cell does not already contain a value, enter any number into the cell. 3.Click on the Define Assumption button. 4.Select a probability distribution from the Distribution Gallery. 5.Click OK to bring up the dialogue box for the selected distribution. 6.Use the dialogue box to enter parameters for the distribution (preferably referring to cells on the spreadsheet that contain these parameters). 7.Click on OK

Crystal Ball Distribution Gallery 13-12

Crystal Ball Uniform Distribution Dialogue Box 13-13

Step 2: Define the Output Cells to Forecast Crystal Ball refers to the output of a computer simulation as a forecast, since it is forecasting the underlying probability distribution when it is in operation. Each output cell that is being used to forecast a measure of performance is referred to as a forecast cell. Procedure for defining a forecast cell: 1.Select the cell. 2.Click on the Define Forecast button on the Crystal Ball tab or toolbar, which brings up the Define Forecast dialogue box. 3.This dialogue box can be used to define a name and (optionally) units for the forecast cell. 4.Click on OK

Crystal Ball Define Forecast Dialogue Box 13-15

Step 3: Set the Run Preferences Setting run preferences refers to such things as choosing the number of trials to run and deciding on other options regarding how to perform the simulation. This step begins by clicking on the Run Preferences button on the Crystal Ball tab or toolbar. The Run Preferences dialogue box has five tabs to set various types of options. The Trials tab allows you to specify the maximum number of trials to run for the computer simulation

The Crystal Ball Run Preferences Dialogue Box 13-17

Step #4: Run the Simulation To begin running the simulation, click on the Start Simulation button. Once started, a forecast window displays the results of the computer simulation as it runs. The following can be obtained by choosing the corresponding option under the View menu in the forecast window display: –Frequency chart –Statistics table –Percentiles table –Cumulative chart –Reverse cumulative chart 13-18

Choosing the Right Distribution A continuous distribution is used if any values are possible, including both integer and fractional numbers, over the entire range of possible values. A discrete distribution is used if only certain specific values (e.g., only some integer values) are possible. However, if the only possible values are integer numbers over a relatively broad range, a continuous distribution may be used as an approximation by rounding any fractional value to the nearest integer

A Popular Central-Tendency Distribution: Normal Some value most likely (the mean) Values close to mean more likely Symmetric (as likely above as below mean) Extreme values possible, but rare 13-20

The Uniform Distribution Fixed minimum and maximum value All values equally likely 13-21

The Discrete Uniform Distribution Fixed minimum and maximum value All integer values equally likely 13-22

A Distribution for Random Events: Exponential Widely used to describe time between random events (e.g., time between arrivals) Events are independent Rate = average number of events per unit time (e.g., arrivals per hour) 13-23

Yes-No Distribution Describes whether an event occurs or not Two possible outcomes: 1 (Yes) or 0 (No) 13-24

Distribution for Number of Times an Event Occurs: Binomial Describes number of times an event occurs in a fixed number of trials (e.g., number of heads in 10 flips of a coin) For each trial, only two outcomes are possible Trials independent Probability remains the same for each trial 13-25