McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.1 Table of Contents Chapter 16 (Computer Simulation with Crystal Ball) A Case Study: Freddie.

Slides:



Advertisements
Similar presentations
Example 2.2 Estimating the Relationship between Price and Demand.
Advertisements

Session 8a. Decision Models -- Prof. Juran2 Overview Operations Simulation Models Reliability Analysis –RANK, VLOOKUP, MIN Inventory Order Quantities.
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.
Tutorial 10: Performing What-If Analyses
Chapter 10: Simulation Modeling
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.
Chapter 5 Discrete Random Variables and Probability Distributions
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
Engineering Economic Analysis Canadian Edition
© 2007 Pearson Education Chapter 14: Solving and Analyzing Optimization Models.
Spreadsheet Simulation
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:
Chapter 6 Continuous Random Variables and Probability Distributions
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.
Simulation.
Evaluating Hypotheses
Example 11.1 Simulation with Built-In Excel Tools.
CHAPTER 6 Statistical Analysis of Experimental Data
Lecture 10 Comparison and Evaluation of Alternative System Designs.
Chapter 5 Continuous Random Variables and Probability Distributions
Lecture Slides Elementary Statistics Twelfth Edition
Business Statistics: Communicating with Numbers
Simulation.
Spreadsheet-Based Decision Support Systems
Chapter 9: Simulation Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Example 12.6 A Financial Planning Model | 12.2 | 12.3 | 12.4 | 12.5 | 12.7 |12.8 | 12.9 | | | | | | |
Introduction to Statistical Inferences
6 - 1 Chapter 6: Analysis Using Spreadsheets The Art of Modeling with Spreadsheets S.G. Powell and K.R. Baker © John Wiley and Sons, Inc. PowerPoint Slides.
Example 16.1 Ordering calendars at Walton Bookstore
1 Statistical Analysis - Graphical Techniques Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND.
Spreadsheet Modeling of Linear Programming (LP). Spreadsheet Modeling There is no exact one way to develop an LP spreadsheet model. We will work through.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Probability Distributions Chapter 6.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Probability Distributions Chapter 6.
Modeling and Simulation CS 313
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.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
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.
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.
Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin 12 Financial and Cost- Volume-Profit Models.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
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,
Engineering Economic Analysis Canadian Edition
The McGraw-Hill Companies, Inc. 2006McGraw-Hill/Irwin 12 Financial and Cost- Volume-Profit Models.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Project Analysis and Evaluation Chapter Eleven.
Discrete Probability Distributions Chapter 06 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2009 Session Two Michel-Alexandre Cardin – Prof. Richard.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete.
5-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. May 28, 2009 Inventory # Chapter 5 Six Sigma.
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.
Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.
Simulations. To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 3-2 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ
Advanced Simulation Methods. © The McGraw-Hill Companies, Inc., 2004 Operations -- Prof. Juran2 Overview Advanced Simulation Applications Beta Distribution.
Lecture 03.0 Project analysis Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved McGraw-Hill/Irwin.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2010 Session Two Xin Zhang – Prof. Richard de Neufville.
COMPLETE f o u r t h e d i t i o n BUSINESS STATISTICS Aczel Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., l Using Statistics l Confidence.
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.
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.
1 Statistical Analysis - Graphical Techniques Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Chap 5-1 Discrete and Continuous Probability Distributions.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Probability Distributions Chapter 6.
Supplementary Chapter B Optimization Models with Uncertainty
Lecture Slides Elementary Statistics Twelfth Edition
Presentation transcript:

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 16 (Computer Simulation with Crystal Ball) A Case Study: Freddie the Newsboy’s Problem (Section 16.1)16.2–16.24 Bidding for a Construction Project (Section 16.2)16.25–16.31 Project Management: Reliable Construction Co. (Section 16.3)16.32–16.43 Cash Flow Management: Everglade Golden Years Co. (Section 16.4)16.44–16.49 Financial Risk Analysis: Think-Big Development Co. (Section 16.5)16.50–16.55 Revenue Management in the Travel Industry (Section 16.6)16.56–16.61 Choosing the Right Distribution (Section 16.7)16.62–16.83 Decision Making with Decision Tables (Section 16.8)16.84–16.99 Optimizing with OptQuest (Section 16.9)16.100– Monte-Carlo Simulation with Crystal Ball (UW Lecture)16.119– These slides are based upon a lecture from the MBA core course in Management Science at the University of Washington (as taught by one of the authors).

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model for Applying Simulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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 (first button in Crystal Ball toolbar). 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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Crystal Ball Toolbar

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Crystal Ball Distribution Gallery

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Crystal Ball Uniform Distribution Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Static versus Dynamic Option When cell references are used to enter parameters for a distribution, the Distribution Dialogue Box gives a choice between the “Static” option and the “Dynamic” option. The static option means that each cell reference is only evaluated once, at the beginning of the simulation run, and then each parameter value (e.g., Min and Max) is used for all trials of the simulation. The dynamic option means that each cell reference is evaluated for each separate trial. This would be needed if the parameter value might change from trial to trial because it depends on another assumption cell.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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 (3rd button) in the Crystal Ball 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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Crystal Ball Define Forecast Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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 toolbar. The Run Preferences dialogue box has six 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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Crystal Ball Run Preferences Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Frequency Chart for Freddie’s Profit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Statistics Table for Freddie’s Profit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Percentiles Table for Freddie’s Profit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Cumulative Chart for Freddie’s Profit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Reverse Cumulative Chart for Freddie’s Profit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Certainty that Profit ≥ $40

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., How Accurate Are the Simulation Results? An important number provided by the simulation is the mean profit of $ This sample average provides an estimate of the true mean of the distribution. The true mean might be somewhat different than $ The mean standard error (on the Statistics Chart) of $0.60 gives some indication of how accurate the estimate might be. The true mean will typically (approximately 68% of the time) be within the mean standard error of the estimated value. –It is about 68% likely that the true mean profit is between $46.07 and $ The mean standard error can be reduced by increasing the number of trials. However, cutting the mean standard error in half typically requires approximately ƒour times as many trials.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Precision Control: Expanded Define Forecast Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Results with Precision Control 750 trials were required to get the 95% confidence interval around the mean within $1.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Results with Precision Control This table shows the precision obtained for the various percentiles of profit after 750 trials.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Bidding for a Project: Reliable Construction Co. Reliable Construction Co. is bidding to construct a new plant for a major manufacturer. Reliable estimates the cost of the project to be $4.55 million, There also is an additional cost of approximately $50,000 for preparing the bid. Three other construction companies also were invited to submit bids for the project. –Competitor 1 is known to use a 30 percent profit margin, but are unpredictable bidders because of an inability to accurately estimate the true cost of the project. Previous bids have ranged from 5% below the expected cost to 60% above. –Competitor 2 uses a 25% profit margin, but is more accurate at predicting the true cost. In the past, they have missed this profit margin by up to 15% in either direction. –Competitor 3 is unusually accurate in estimating project cost. It is equally likely to set its profit margin anywhere between 20% and 30%. Question: How much should Reliable bid for this project?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model for Applying Computer Simulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Triangular Distribution for Competitor 2

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Frequency Chart for Reliable’s Bidding Problem

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Statistics Table for Reliable’s Bidding Problem

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Percentiles Table for Reliable’s Bidding Problem

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Cumulative Chart for Reliable’s Bidding Problem

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Project Management: Reliable Construction Co. Reliable Construction Co. has won the bid to construct a new plant for a major manufacturer. The contract includes a large penalty if construction is not completed by the deadline 47 weeks from now. There are 14 tasks that need to be completed to finish the project. –(a) excavate, (b) foundation, (c) rough wall, (d) roof, (e) exterior plumbing, (f) interior plumbing, (g) exterior siding, (h) exterior painting, (i) electrical work, (j) wallboard, (k) flooring, (l) interior painting, (m) exterior fixtures, (n) interior fixtures. –For each task, three estimates of their completion time have been made—a most- likely, an optimistic, and a pessimistic estimate Question: What is the probability that the project will complete by the deadline?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Project Network for Reliable Construction Co.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Triangular Distribution for an Activity Duration

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model for Applying Computer Simulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Triangular Distribution Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Frequency Chart for Reliable’s Project Duration

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Statistics Table for Reliable’s Project Duration

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Percentiles Table for Reliable’s Project Duration

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Probability of Meeting the Project Deadline

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Probability of Meeting the Project Deadline

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Calculate Sensitivity Option

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Sensitivity Chart for Reliable’s Project

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Cash Flow Management: Everglade Golden Years Co. Because of a temporary decline in business and some current or future construction costs, the company is facing some negative cash flows in the next few years. A long-term (10-year) loan can be taken now at a 7% annual interest rate. A series of short-term (1-year) loans can be taken as needed at 10% interest. The cash flows over the next 10 years are not certain. For each year, an estimate of the minimum, most-likely, and maximum cash flow has been made. Question: How large of a long-term loan should Everglade take out now?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Projected Net Cash Flows Year Projected Net Cash Flow (millions of dollars) 2003–8 2004–2 2005– – –

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Linear Programming Spreadsheet Model

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model for Applying Computer Simulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Frequency Chart for Everglade’s Ending Balance

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Cumulative Chart for Everglade’s Ending Balance

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Financial Risk Analysis: Think-Big Development Co. The Think-Big Development Co. is a major investor in commercial real estate development projects. It has been considering taking a share in three large construction projects—a high-rise office building, a hotel, and a shopping center. In each case, three years will be spent in construction, they will retain ownership for another three years while establishing the property, and then sell the property in the seventh year. Proposal: Don’t take any share in the high-rise, take a 16.5% share of the hotel, and take a 13.11% share of the shopping center. Management wants risk analysis to be performed (with computer simulation) to obtain a risk profile (frequency distribution) of what the total NPV might turn out to be for this proposal.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Estimated Cash Flows for 100 Percent Share Hotel ProjectShopping Center Project YearCash Flow ($1,000,000s)YearCash Flow ($1,000,000s) 0–800–90 1Normal (–80, 5)1Normal (–50, 5) 2Normal (–80, 10)2Normal (–20, 5) 3Normal (–70, 15)3Normal (–60, 10) 4Normal (+30, 20)4Normal (+15, 15) 5Normal (+40, 20)5Normal (+25, 15) 6Normal (+50, 20)6Normal (+40, 15) 7Uniform (200, 844)7Uniform (160, 600)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model for Applying Computer Simulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Normal Distribution Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Risk Profile (Frequency Chart) for Think-Big

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Percentiles Chart for Think-Big

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Transcontinental Airlines Overbooking Problem Transcontinental has a daily flight (excluding weekends) from San Francisco to Chicago that is mainly used by business travelers. There are 150 seats available in a single cabin. The average fare per seat is $300. This is a nonrefundable fare, so no-shows forfeit the entire fare. The fixed cost of operating the flight is $30,000. The average number of reservation requests for this flight has been 195, with a standard deviation of 30. Only 80% of passengers with a reservation actually show up to take the flight, so it makes sense to take more than 150 reservations (overbooking). If more passengers arrive to take the flight than there are seats, some passengers must be “bumped”. The total cost (including rebooking, travel vouchers, and lost goodwill) is estimated to be $450. Question: How many reservations should Transcontinental accept for this flight?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model for Applying Computer Simulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Binomial Distribution with Dynamic Option for Number that Show

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Frequency Chart for Profit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Frequency Chart for Number of Filled Seats

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Frequency Chart for Number Denied Boarding

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., A Popular Central-Tendency Distribution: Triangular Some value most likely Values close to most likely value more common Can be asymmetric Fixed upper and lower bound

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., A Popular Central-Tendency Distribution: Lognormal Some value most likely Positively skewed (below mean more likely) Values cannot fall below zero Extreme values (high end only) possible, but rare

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Uniform Distribution Fixed minimum and maximum value All values equally likely

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., A Three-Parameter Distribution: Weibull Random value above some number (location) Shape > 0 (usually ≤ 10) Shape < 3 becomes more positively-skewed (below mean more likely) until it resembles exponential distribution (equivalent at Shape = 1) Symmetrical at Shape = 3.25, becomes negatively skewed above that Scale defines width

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., A Three-Parameter Distribution: Beta Random value between 0 and some positive number (Scale) Shape specified using two positive values (alpha, beta) Alpha < beta: positively skewed (below mean more likely) Beta < alpha: negatively skewed

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., A Distribution for Random Events: Poisson Describes the number of times an event occurs during a given period of time or space Occurrences are independent Any number of events is possible Rate = average number of events per unit of time, assumed constant over time

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Distribution for Number of Trials Until Event Occurs: Geometric Describes number of trials until an event occurs (e.g., number of times to spin roulette wheel until you win) Probability same for each trial Continue until succeed Number of trials unlimited

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Distribution for Number of Trials Until n Events Occur: Negative Binomial Describes number of trials until an event occurs n times Same as geometric when Shape = n = 1 Probability same for each trial Continue until n th success Number of trials unlimited

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Custom Distribution (Set of Discrete Values) Enter set of values with varying probabilities For each discrete value, enter “Value” and “Prob.” (leave other boxes blank) Clicking Enter clears boxes for entering next discrete value

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Custom Distribution (Range of Discrete Values) Enter range of discrete values, each equally likely Enter lower and upper end of range in “Value” and “Value2” Enter the total probability for the whole set in “Prob.” Enter the distance between discrete values in “Step”

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Custom Distribution (Continuous Distribution) Enter the lower and upper end of range in “Value” and “Value2” Enter the total probability for the range in “Prob.” Leave “Step” blank for a continuous distribution Drag the corners of the distribution graph up or down to change relative probabilities Dragging corners may affect total probability. Click on “Rescale” to reset total probability.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Custom Distribution (Combination) Any combination of discrete values, ranges of discrete values, or continuous distributions can be entered Input each element, click on Enter, input next element, etc. If cumulative probabilities do not add to 1, click on “Rescale”

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Historical Demand Data for the Financial Times

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Procedure for Fitting the Best Distribution to Data 1.Gather the data needed to identify the best distribution to enter into an assumption cell. 2.Enter the data into the spreadsheet containing your simulation model. 3.Select the cell that you want to define as an assumption cell that contains the distribution that best fits the data. 4.Choose Define Assumption from the Crystal Ball toolbar, which brings up the Distribution Gallery dialogue box. 5.Click the Fit button on the dialogue box, which brings up the Fit Distribution dialogue box. 6.Use the Range box in this dialogue box to enter the range of the historical data in your worksheet. 7.Click the Next button in the dialogue box, which brings up the Second Fit Distribution Dialogue box.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Procedure for Fitting the Best Distribution to Data 8.Use this dialogue box to specify which continuous distributions are being considered for fitting. (Discrete distributions are not considered by this procedure.) 9.Also use this dialogue box to select which ranking method should be used to evaluate how well a distribution fits the data. (The default is the chi-square test.) 10.Click OK, which brings up the comparison chart that identifies the distribution (including its parameter values) that best fits the data. 11.If desired, the Next Distribution button can be clicked repeatedly for identifying the other types of distributions that are next in line for fitting the data well. 12.After choosing the distribution that you want to use, click the Accept button while that distribution is showing. This will enter the appropriate parameters into the dialogue box for this distribution. Clicking OK then enters this distribution into the assumption cell.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The First Fit Distribution Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Second Fit Distribution Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Comparison Chart Showing Best Fit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Making with Decision Tables Many simulation models include at least one decision variable –Examples: Order quantity, Bid, Number of reservations to accept Crystal Ball can be used to evaluate a particular value of the decision variable by providing a wealth of output for the forecast cells. However, this approach does not identify an optimal solution for the decision variable(s). Trial and error can be used to try different values of the decision variable(s). –Run a simulation for each, and see which one provides the best estimate of the chosen measure of performance. The Decision Table tool in Crystal Ball does this approach in a systematic way.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Procedure for Defining a Decision Variable 1.Select the cell containing the decision variable. 2.If the cell does not already contain a value, enter any number into the cell. 3.Click on the Define Decision button in the Crystal Ball toolbar, which brings up the Define Decision Variable dialogue box. 4.Enter the lower and upper limit of the range of values to be simulated for the decision variable. 5.Click on either Continuous or Discrete to define the type of variable. 6.If Discrete is selected in Step 5, use the Step box to specify the difference between the successive possible values (not just those to be simulated). 7.Click on OK.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Define Decision Variable Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table: Specify Target Cell

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table: Specify Decision Variable(s) to Vary

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table: Specify Options

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Decision Table for Freddie’s Order Quantity

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Overlay Chart Comparing Order Quantities of 55 and 60

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Trend Chart for Freddie’s Order Quantity

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Variable for Reliable’s Bidding Problem

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table: Specify Target Cell

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table: Specify Decision Variable

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table: Specify Options

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table for Reliable’s Bid

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Decision Table for Transcontinental’s Reservations to Accept

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Trend Chart for Transcontinental’s Reservations to Accept

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Optimizing with OptQuest Crystal Ball includes a module called OptQuest that automatically searches for an optimal solution for a simulation model with any number of decision variables. The search is conducted by executing a series of simulation runs of leading candidates to be the actual optimal solution. The results of each run are used to determine the most promising remaining candidate to try next. A powerful search engine (based on genetic algorithms) conducts an intelligent and efficient search.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Recommended Crystal Ball Run Preferences

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Recommended Crystal Ball Run Preferences

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Recommended Crystal Ball Run Preferences

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Procedure for Applying OptQuest 1.Formulate your simulation model on a spreadsheet. 2.Use Crystal Ball to complete your formulation by defining your assumption cells, forecast cells, and decision variables, as well as setting your run preferences. 3.Choose OptQuest from the Crystal Ball Tools menu and select New under the File menu. 4.Use the Decision Variable Selection dialogue box to select your decision variables. 5.Use the Constraints dialogue box to specify your constraints (if any). 6.Use the Forecast Selection dialogue box to specify the running time. 7.Use the Options dialogue box to specify the running time. 8.Select Start from the Run menu to run the optimization. 9.Choose Copy to Excel from the Edit menu to copy your results to your spreadsheet model.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., OptQuest for Freddie’s Problem: Selecting Variables and Specifying Constraints

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., OptQuest for Freddie’s Problem: Specifying Objective and Running Time

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., OptQuest Results for Freddie’s Problem

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Project Selection: Tazer Corp. Tazer Corp., a pharmaceutical manufacturing company, is beginning the search for a breakthrough drug. The following five potential R&D projects have been identified: –Project Up: Develop a more effective antidepressant that does not cause serious mood swings. –Project Stable: Develop a drug that addresses manic depression. –Project Choice: Develop a less intrusive birth control method for women. –Project Hope: Develop a vaccine to prevent HIV infection. –Project Release: Develop a more effective drug to lower blood pressure. $1.2 billion is available (enough for only two or three projects). Question: Which projects should Tazer Corp. undertake?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Data for Tazer Corp. Project Selection Revenue ($millions) if Successful Project R&D Investment ($millions) Success RateMean Standard Deviation Up$40050%$1,400$400 Stable300351, Choice600352, Hope500203, Release

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model for Applying Computer Simulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Binary Decision Variables

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., OptQuest for Tazer’s Project Selection: Selecting Variables and Specifying Constraints

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., OptQuest for Freddie’s Problem: Specifying Objective and Running Time

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., OptQuest Results for Tazer’s Project Selection

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Frequency Chart for Tazer’s Total Profit

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Maximizing Probability (Profit ≥ $100 million)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Maximizing Probability (Profit ≥ $100 million)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Frequency Chart for Tazer’s Project Selection

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Monte-Carlo Simulation with Crystal Ball 1.Setup Spreadsheet Build a spreadsheet that will calculate the performance measure (e.g., profit) in terms of the inputs (random or not). For random inputs, just enter any number. 2.Define Assumptions (Random Variables) Define which cells are random and what distributions they should follow. 3.Define Forecast (Output or Performance Measure) Define which cell(s) you are interested in forecasting (typically the performance measure, e.g., profit). 4.Choose Number of Trials Select the number of trials. If you would later like to generate the Sensitivity Analysis chart, choose “Sensitivity Analysis” under Options in Run Preferences. 5.Run Simulation Run the simulation. If you would like to change parameters and re-run the simulation, you should “reset” the simulation (click on the “Reset Simulation button on the toolbar or in the Run menu) first. 6.View Results The forecast window showing the results of the simulation appears automatically after (or during) the simulation. Many different results are available (frequency chart, cumulative chart, statistics, percentiles, sensitivity analysis, and trend chart). The results can be copied into the worksheet.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Crystal Ball Toolbar

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #1 (Setup Spreadsheet)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #2 (Define Assumptions) Select a cell that contains a random variable. Click on the “Define Assumptions” button in the toolbar (or in Cell menu): Select the type of distribution. Provide the parameters of the distribution.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #2 (Define Assumptions)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #2 (Define Assumptions)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #3 (Define Forecast) Select the cell that contains the output variable to forecast. Click on the “Define Forecast” button in the toolbar (or in the Cell menu): Fill in the Define Forecast dialogue box:

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #4 (Choose Number of Trials) Click on the “Run Preferences” button in the toolbar (or in the Run menu): Select the number of trials to run:

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #5 (Run Simulation) Click on the “Start Simulation” button in the toolbar (or Run in the Run menu):

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #6 (View Results) The results of the simulation can be viewed in a variety of different ways (frequency chart, cumulative chart, statistics, and percentiles). Choose different options under the View menu in the forecast window.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #6 (View Results) The results can be copied into a worksheet or Word document (choose Copy under the Edit menu in the simulation output window).

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #6 (View Results)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Step #6 (View Results)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Certainty that Profit ≥ $40

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Fitting a Distribution Crystal Ball can be used to “fit” a distribution to data. The following data has been collected for the previous 100 phone calls to a mail-order house:

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Using Crystal Ball to Fit Data to a Distribution 1.Select a spreadsheet cell for which you want to fit a distribution. 2.Choose Define Assumption. 3.Click the Fit button, then select the source of the fitted data. 4.Click the Next button, then select the distributions to try to fit. 5.Click OK.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Best Fit for the Interarrival Time

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Best Fit for the Service Time