Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,

Slides:



Advertisements
Similar presentations
Exercise 7.5 (p. 343) Consider the hotel occupancy data in Table 6.4 of Chapter 6 (p. 297)
Advertisements

STATISTICS.
EGN 1006 – Introduction to Engineering Engineering Problem Solving and Excel.
Managerial Decision Making and Problem Solving Computer Lab Notes 1.
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.
Slides 2c: Using Spreadsheets for Modeling - Excel Concepts (Updated 1/19/2005) There are several reasons for the popularity of spreadsheets: –Data are.
A. Ruiz Méthodes d ’aide à la décision en RO Using Spreadsheets in Management Science Models Spreadsheets have become a powerful tool in management.
Variance reduction techniques. 2 Introduction Simulation models should be coded such that they are efficient. Efficiency in terms of programming ensures.
Simulation Operations -- Prof. Juran.
GRAPHICAL DESCRIPTIVE STATISTICS FOR QUANTITATIVE DATA.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 19 Scheduling IV.
Spreadsheet Simulation
Spreadsheet Demonstration
Planning under Uncertainty
1.2 Row Reduction and Echelon Forms
Linear Equations in Linear Algebra
1 SIMULATION – PART I Introduction to Simulation and Its Application to Yield Management For this portion of the session, the learning objectives are:
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.
Example 11.1 Simulation with Built-In Excel Tools.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Module C9 Simulation Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas --
Compunet Corporation Programming with Visual Basic.NET Random Number Week # 12 Tariq Ibn Aziz & Kevin Jones.
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
Generating Random Samples SAS, EXCEL, JMP, SPSS. Population of Data  Sample Data should be in a dataset where each row represents an individual unit,
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.
Chapter 5: z-scores.
Simulation.
ETM 607 – Random Number and Random Variates
Example 16.1 Ordering calendars at Walton Bookstore
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
16-1 Copyright  2010 McGraw-Hill Australia Pty Ltd PowerPoint slides to accompany Croucher, Introductory Mathematics and Statistics, 5e Chapter 16 The.
Chapter © 2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or.
Chapter 14 Simulation. What Is Simulation? Simulation is to mimic a process by using computers.
1-7 Data and Spread Big Idea Two measures of the spread of a data set are range and mean absolute deviation. Range, the difference between the maximum.
CONSTRUCTING RELATIVE & CUMULATIVE FREQUENCY DISTRIBUTIONS using EXCEL & WORD.
Statistics Measures Chapter 15 Sections
Experimental Method and Data Process: “Monte Carlo Method” Presentation # 1 Nafisa Tasneem CHEP,KNU
Module 13: Normal Distributions This module focuses on the normal distribution and how to use it. Reviewed 05 May 05/ MODULE 13.
Crystal Ball: Risk Analysis  Risk analysis uses analytical decision models or Monte Carlo simulation models based on the probability distributions to.
Monte Carlo Methods So far we have discussed Monte Carlo methods based on a uniform distribution of random numbers on the interval [0,1] p(x) = 1 0  x.
Outline of Chapter 9: Using Simulation to Solve Decision Problems Real world decisions are often too complex to be analyzed effectively using influence.
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.
CSC 211 Data Structures Lecture 13
Confidence intervals and hypothesis testing Petter Mostad
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 6.4.
Monté Carlo Simulation  Understand the concept of Monté Carlo Simulation  Learn how to use Monté Carlo Simulation to make good decisions  Learn how.
CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel Martin Schedlbauer, Ph.D.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2009 Session Two Michel-Alexandre Cardin – Prof. Richard.
Chapter 11 Understanding Randomness. What is Randomness? Some things that are random: Rolling dice Shuffling cards Lotteries Bingo Flipping a coin.
Simulation Using computers to simulate real- world observations.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 1-1 A Population is the set of all items or individuals of interest.
March 23 & 28, Hashing. 2 What is Hashing? A Hash function is a function h(K) which transforms a key K into an address. Hashing is like indexing.
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.
Introduction to the Essentials of Excel COMP 066.
Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.
Sampling and estimation Petter Mostad
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
1 BA 555 Practical Business Analysis Linear Programming (LP) Sensitivity Analysis Simulation Agenda.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2010 Session Two Xin Zhang – Prof. Richard de Neufville.
1 1 Slide © 2004 Thomson/South-Western Simulation n Simulation is one of the most frequently employed management science techniques. n It is typically.
CHAPTER 5 Simulation Modeling. Introduction In many situations a modeler is unable to construct an analytic (symbolic) model adequately explaining the.
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.
Simulation in Healthcare Ozcan: Chapter 15 ISE 491 Fall 2009 Dr. Burtner.
Simulation. Simulation is a way to model random events, such that simulated outcomes closely match real-world outcomes. By observing simulated outcomes,
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
1 1.2 Linear Equations in Linear Algebra Row Reduction and Echelon Forms © 2016 Pearson Education, Ltd.
Computer Simulation Henry C. Co Technology and Operations Management,
MS-Excel Part 1.
Lecture 2 – Monte Carlo method in finance
Presentation transcript:

Simulation Basic Concepts

NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting, inventory, queuing –Obtained by algorithms -- linear programming, PERT/CPM However, each of these models had to satisfy a restrictive set of assumptions –Many “real-life” situations do not meet these conditions or are too complex. SIMULATIONSIMULATION can be used to get “good” results

BACKGROUND Simulation is, in fact, the most used management science technique Simulation is not an optimization procedure like the one used to solve linear programs However, if you are considering one of a set of options, simulation can indicate which of these options appears to be the best in the set.

BASIC IDEA Recognize the components of the system under study Develop a random number mapping that will “map” random numbers from a (computer generated) random number table into events

Random Number Table

RANDOM NUMBER MAPPINGS Suppose that the number of students that miss a statistics class have been observed to be 0, 1, 2, 3, or 4 with the following probabilities: NUMBER PROB RN Map

APPROACH Generate a set of random numbers and map them into events We will choose the first two digits from column 1 of the random number table in the book

Simulation of 10 Classes ClassRandom # # Absences

ANALYSIS BETTER RESULTS We can now analyze “simulated results” Average # absences = ( )/10 = 1.6 For better results we can: –Repeat this 10-class simulation many times –Run the simulation for many more than 10 classes

PSEUDO RANDOM NUMBERS Random numbers should be uniformly distributed: –each digit in a random number should have a probability of 1/10 of occurring after any other digit –no pattern should exist in the random numbers Random numbers generated by a computer program are done so by an algorithm and the above conditions may be slightly violated The result is that the random numbers are not truly random - they are PSEUDO RANDOM NUMBERS

Mid Square Random Number Generating algorithm Mid Square.There are many ways to generate “random” numbers. One of the easy algorithm is Mid Square.

Mid Square Method 7182First, we start with a four-digit seed value, for example, We then square it to get a number up to eight digits long –If the number has fewer than eight digits, we pad the left with zeroes until we get eight digits. In our example, 7182^2 gives us Now we choose the “middle” four digits of our result, which is 5811 in our example. We divide by 10,000 to get our first random number, e.g We repeat this process indefinitely…

Mid Square Method

BENEFIT OF USING PSEUDO RANDOM NUMBERS The string of pseudo random numbers can be regenerated This allows us to compare policies under exactly the same conditions

PROBABILITIES AND RANDOM NUMBERS Typically computer generated random numbers are numbers between 0 and 1 –We can “lop off” the decimal for convenience The probabilities of possible events will be expressed as 1-digit, 2-digit, 3-digit, or …. probabilities -- the random numbers we use/assign should be of the same length

USING EXCEL TO GENERATE RANDOM EVENTS 1.Create a 3-column LOOKUP table Column 1 – Lower Limit of the RN Interval Column 2 – Probability in the RN interval Column 3 – The corresponding X value for the interval =RAND() 2.Create a series of random numbers by =RAND() and drag down. EDIT/PASTE SPECIAL/VALUESCopy the random numbers then go to: EDIT/PASTE SPECIAL/VALUES and paste the same set of numbers on top of themselves (otherwise they will change anytime is pressed.) VLOOKUP(A,B,C) 3.To get the corresponding simulated results enter VLOOKUP(A,B,C) and drag, where: A = cell with the random number in it B = location of the table (i.e. $A$2:$C$7) make address of table absolute C = the column that has the simulated result in the table (3)

RANDOM NUMBER MAPPINGS Suppose that the number of students that miss a statistics class have been observed to be 0, 1, 2, 3, or 4 with the following probabilities: NUMBER PROB (Table) RN Map (Pseudo RN) RN Map (Beginning Interval)

Create Probability Table

Create Lower Limits For Intervals 0 =A3+B3 Drag down

Generate Random Numbers =RAND() Drag down You will get different numbers Highlight cells B11:B25 – copy Leave cursor in cell B11.

Get Simulated Results =VLOOKUP(B11,$A$3:$C$7,3) Drag down Where the random number is Where the table is Put in $ signs Column of Lookup table that has Simulated results

Review Simulation can be used to approximate complex systems Use of pseudorandom numbers Random Number Mapping into Events Calculations How to Gain More Confidence Use of Lookup Tables and Excel’s RAND() and VLOOKUP functions