Decision Technology Modeling, Software and Applications Matthew J. Liberatore Robert L. Nydick John Wiley & Sons, Inc.

Slides:



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

CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel.
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.
BUSINESS DRIVEN TECHNOLOGY Decision Analysis Tools in Excel
McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T4 PROBLEM SOLVING USING EXCEL Goal Seek, Solver & Pivot Tables.
Decision Analysis Tools in Excel
6 - 1 Lecture 4 Analysis Using Spreadsheets. Five Categories of Spreadsheet Analysis Base-case analysis What-if analysis Breakeven analysis Optimization.
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.
Outline/Coverage Terms for reference Introduction
McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited. Adapted by Peter Au, George Brown College.
Regression Analysis Using Excel. Econometrics Econometrics is simply the statistical analysis of economic phenomena Here, we just summarize some of the.
Spreadsheet Demonstration New Car Simulation. 2 New car simulation Basic problem  To simulate the profitability of a new model car over a several-year.
Engineering Economic Analysis Canadian Edition
Spreadsheet Simulation
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
MANAGEMENT SCIENCE The Art of Modeling with Spreadsheets STEPHEN G. POWELL KENNETH R. BAKER Compatible with Analytic Solver Platform FOURTH EDITION CHAPTER.
1 SIMULATION – PART I Introduction to Simulation and Its Application to Yield Management For this portion of the session, the learning objectives are:
Chap 3-1 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 3 Describing Data: Numerical.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-1 Statistics for Business and Economics 7 th Edition Chapter 2 Describing Data:
Slides by JOHN LOUCKS St. Edward’s University.
Example 11.1 Simulation with Built-In Excel Tools.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 7 Sampling.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Introduction
Chap 3-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 3 Describing Data: Numerical Statistics for Business and Economics.
Statistics for Managers Using Microsoft® Excel 7th Edition
SW388R6 Data Analysis and Computers I Slide 1 One-sample T-test of a Population Mean Confidence Intervals for a Population Mean.
Financial Simulation N. Gershun. Overview is a spreadsheet add-in that has two advantages. provides easy access.
Chapter 6: Normal Probability Distributions
Simulation.
Sampling Distribution of the Mean Problem - 1
COMPREHENSIVE Excel Tutorial 10 Performing What-If Analyses.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 11 Regression.
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 | | | | | | |
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 3-1 Chapter 3 Numerical Descriptive Measures Statistics for Managers.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
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
Spreadsheet Modeling of Linear Programming (LP). Spreadsheet Modeling There is no exact one way to develop an LP spreadsheet model. We will work through.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 7 Sampling Distributions.
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 © 2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
Example 2.3 An Ordering Decision with Quantity Discounts.
Copyright © 2009 Pearson Education, Inc. Chapter 18 Sampling Distribution Models.
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 2009 Session Two Michel-Alexandre Cardin – Prof. Richard.
June 21, Objectives  Enable the Data Analysis Add-In  Quickly calculate descriptive statistics using the Data Analysis Add-In  Create a histogram.
Sampling distributions rule of thumb…. Some important points about sample distributions… If we obtain a sample that meets the rules of thumb, then…
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.
ANOVA, Regression and Multiple Regression March
6 - 1 Chapter 6: Analysis Using Spreadsheets PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with.
Statistical Methods © 2004 Prentice-Hall, Inc. Week 3-1 Week 3 Numerical Descriptive Measures Statistical Methods.
Descriptive Statistics ( )
Supplementary Chapter B Optimization Models with Uncertainty
Business and Economics 6th Edition
Monte Carlo Simulation
Analysis Using Spreadsheets
Mixed Costs Chapter 2: Managerial Accounting and Cost Concepts. In this chapter we explain how managers need to rely on different cost classifications.
Break-Even Analysis.
Introduction to Crystal Ball (Part I)
Advanced Algebra Unit 1 Vocabulary
Business and Economics 7th Edition
Presentation transcript:

Decision Technology Modeling, Software and Applications Matthew J. Liberatore Robert L. Nydick John Wiley & Sons, Inc.

Financial Simulation

is a spreadsheet add-in that has two advantages. provides easy access to many probability distributions. 2. Add-ins make it easier to develop simulation models than Excel alone. Overview features:  Many built-in input probability distributions.  Output cells can be maintains statistics for these cells across replications.  The Risksimtable command allows the user to run the simulation several times for different values of input parameters.

OVERVIEW The development of a simulation model is a two-step process: 1. Build the model, that is, the logic that transforms input (e.g., demand uncertainty) into output (e.g., profit). automatically replicates the model with many random input values, reporting output as requested. Simply takes any spreadsheet (e.g., income statement, cash flow statement) and specifies that some of the cells are then repeats the simulation many times and computes statistics across is really an advanced sensitivity analysis since it studies how changes to key input parameters impacts output. Although we a similar add-in is Crystal Ball.

FITTING A PROBABILITY DISTRIBUTION Historical data are needed to estimate probability distributions and parameters for uncertain parameters. Suppose we believe that the probability distribution of demand can be estimated using the past data that was gathered and appears in the demand.xls file. We can use the “Fit Distributions to Data” button to analyze the data. After selecting this button, enter the following information: Excel Data Range, Type of Data (Sampled Values), No Filtering Options, Continuous Domain, and OK.

FITTING A PROBABILITY will analyze the data and use goodness of fit statistical tests to rank order probability distributions and their parameters for the data entered. In our example, we see that the best fit probability distribution is Normal with a mean of and a standard deviation of To attempt to validate this feature, the data in demand.xls was generated from a normal distribution with a mean of 100 and a standard deviation of 10.

FITTING A PROBABILITY DISTRIBUTION The difference between and 100 and and 10 is due to the small sample size. The first numbers in each pair are the sample estimates while the second numbers are the population values. If this were actual data, we would use the normal distribution with mean of and standard deviation of as our demand probability distribution within model. We are now ready to create our model.

CALENDAR SIMULATION Calendars are sold as a fundraiser activity. It costs $7.50 to purchase each calendar and they are sold for $ Unsold calendars can be returned for $2.50 each. The number of calendars demanded is assumed to follow a triangular distribution with minimum, most likely, and maximum values of 100, 175, and 300, respectively. How many calendars should be ordered?

CALENDAR SIMULATION We begin by simulating 1000 replications for an order size of 200. The following values and formulas are needed. See Calendar template.xls. B4: 7.50, B5: 10.00, B6: 2.50 E4-E6: 100, 175, 300 B9: 200 B13: =ROUND(RISKTRIANG(E4,E5,E6),0) C13: =B5*Min(B9,B13) D13: =B4*B9 E13: =B6*MAX(B9-B13,0) F13: =C13+E13-D13 B16-B19: =riskmin(F13), =riskmax(F13), =riskmean(F13), =riskstddev(F13)

CALENDAR SIMULATION Cells B4 – B6 contain the data for this problem. Cells C13 – F13 contain the formulas for Revenue, Salvage Value, Costs, and Profit. The formula in B13 computes the random demand based on the values given in E4:E6. B9 specifies that 200 calendars will be ordered. B16:B19 provide statistical results of the output.

CALENDAR SIMULATION With cell F13 highlighted, choose the Add Output button to make this the output cell. Click on the Simulation Settings button and select 1000 iterations and 1 simulation in the Iterations tab. In the sampling tab of the Simulation Settings button, select Latin Hypercube, Standard Recalc (Monte Carlo), Fixed = 1, All, check Save as Default, and OK. Click on the Report Settings button and select: Show Results Window, Generate Excel Reports Selected Below, Simulation Summary, Output Graphs, Active Workbook, Metafile, check Save as Default, and OK.

What is Sampling?  Sampling is the process by which values are randomly drawn from the selected distribution.  during each iteration of the simulation, one observation is chosen from the input distribution.  As the number of iterations increases, the sample of observations more closely resembles the input distribution.  When running a simulation, it is important that all areas of the input distribution get sampled, especially the low probability (high uncertainty) areas. If not, uncertainty will seem less than it actually is.

The Concept of “Efficiency”  Statisticians have developed different ways to sample (or draw) from distributions.  If we could do an infinite number of iterations in our simulation, these methods would produce equal results.  However, since we use a finite number of iterations, sampling methods do not produce equivalent results.  A sampling method is considered more efficient than another if it approximates a distribution with fewer iterations.  Two popular sampling methods:  Monte Carlo Simulation  Latin Hypercube

Monte Carlo Simulation  Monte Carlo simulation draws samples from the full range of the distribution on each draw.  Is an entirely random sampling technique.  Requires a large number of iterations to adequately approximate the input distribution.  Why? Most observations drawn are closer to the mean. Creates clustering. The tails (areas of high uncertainty) are usually underrepresented in the sampling.

Latin Hypercube  Latin Hypercube samples from all parts of the distribution, reducing clustering.  Not entirely random (is a “stratified” sampling method)  Latin Hypercube divides a distribution into intervals (strata) of equal probability and randomly draws from each interval.  Insures that all portions of the distribution are sampled, including the tails.  Latin Hypercube sampling is more efficient than Monte Carlo sampling:  Requires fewer iterations.

Example:  Suppose we sample 8 times from a normal distribution. With Monte Carlo sampling we might get: Source: Modeling the Future: The Full Monte, the Latin Hypercube and Other Curiosities by Glenn Kautt, CFP, and Fred Wieland, Ph.D., FPA Journal Notice that the tails (high uncertainty areas) are not adequately represented. This results in underestimating risk

Example continued  With Latin Hypercube, we would get: Source: Modeling the Future: The Full Monte, the Latin Hypercube and Other Curiosities by Glenn Kautt, CFP, and Fred Wieland, Ph.D., FPA Journal Notice that even with only 8 observations, the tails are much more adequately represented. This results in a truer representation of risk. The area in each strata is equal but the width of each strata varies.

CALENDAR SIMULATION To run the simulation, select the Start Simulation will create a Results window. Choose the Detailed Statistics Window to display additional output. Average profit for 1000 trials when 200 calendars are ordered is $ with a standard deviation of $

CALENDAR SIMULATION Scroll to the bottom of the Detailed Statistics Window to enter a target value or target percentage. For example, if 0 is entered in the target #1 value cell, 7.5% is returned. This means that 7.5% of the 1000 profits were 0 or negative. Enter 12% in the target #2 percentage cell to see that 12% of the profit values were less than or equal to $65. To view the full results – data, demand, and profit values from all 1000 replications – select the Insert/Data option in the Results Window.

CALENDAR SIMULATION To display a graph of profit, click on the Profit item in the left pane of the Results Window and then select the Insert/Graph/Histogram item. We see a spike at a profit of $500. This occurs whenever a demand greater than 200 is generated resulting in a profit of $500.

CALENDAR SIMULATION 95% confidence interval: Mean profit +/- 2(Mean Standard Error), where, Mean Standard Error = Standard deviation/SQRT(Iterations) When 200 calendars are ordered: Mean profit = Mean Standard Error = /SQRT(1000) = % Confidence Interval = (5.98) = and (5.98) = This means that we are 95% confident that the true population mean of profit is between and

CALENDAR SIMULATION If we want to narrow the range of the confidence interval but keep the confidence level fixed at 95%, the number of replications must be increased. To accomplish this, we use the following formula: n = [16*Estimated standard deviation^2]/L^2 Where L is the width of the confidence interval. On the previous slide we saw that L =

CALENDAR SIMULATION If we want L to be 10, then: n = [16* ^2]/10^2 = This implies that we need 5719 iterations to get a 95% confidence interval range of 10.

MULTIPLE ORDER QUANTITIES The objective of this problem is to choose an order quantity that maximizes profit. We could continue to rerun the simulation for different order quantities. It would be much better if we could automatically evaluate several order quantities on the same set of random demand values. The Risksimtable command accomplishes this. Enter “Possible order quantities” in cell D8 and the desired order quantities in cells D9 – H9: 150, 175, 200, 225, and 250. In cell B9 enter: =Risksimtable(D9:H9).

MULTIPLE ORDER QUANTITIES In the Simulation Settings dialog box, select 5 as the number of simulations since 5 different order quantity values need to be evaluated. After running the shows the results for all 5 order quantities in the Detailed Summary of the Results Window. The order quantity of 175 results in the largest mean profit; however, we may want to sacrifice a small amount of profit ( to ) to improve the standard deviation ( down to ).

RISK OPTIMIZER We have now evaluated 5 different order quantities but we still have no guarantee that there isn’t an order quantity that generates even more profit. Risk Optimizer will accomplish this. Go back to Calendar.xls and also launch Risk Optimizer. Next select the Risk Optimizer Settings button:  We want to find the Maximum of the Mean of cell $F$13 (Profit).  Next, select: By Adjusting the Cells and Add: Adjust the Cells: Min 100, Cell Range is $B$9, Max is 300, check Integer Values Only, then Add, and OK.

RISK OPTIMIZER Select Options and choose the following:  Population Size: 50  Log Simulation Data  Random Number Seed is Random  Use Same Seed Each Sim  Check Change in Last 100 Valid Sims is Less Than 0.01%.  Stop on Actual Convergence  Tolerance Auto  OK These setting determine stopping rules for the optimization search.

RISK OPTIMIZER Next choose OK, then the Start Optimization button, and OK. Risk Optimizer then plays a king of the hill type of search. Depending on the level of complexity of the problem, this could take a VERY long time to stop. You can always select the Stop button to identify the best solution found so far. Eventually, Risk Optimizer will report the best order size and corresponding profit that it found. Note that we have no guarantees that this is in fact the true optimal solution since it was identified using simulation. In addition, if the same problem is run multiple times, there is a good chance that the solution will vary somewhat.

ADDITIONAL UNCERTAINTY  As in the previous example, we need to place an order for next year’s calendar.  See Additional Uncertainty template.xls.  We continue to assume that the calendars will sell for $10 (B6) and demand at this price is triangularly distributed with minimum, most likely, and maximum values of 100, 175, and 300, respectively (E5:E7).  However, there are now two other sources of uncertainty.

ADDITIONAL UNCERTAINTY  The maximum number of calendars that can be supplied follows a triangular distribution with values of 125, 200, and 250 (E10:E12).  The supplier charges $7.50 per calendar (B4) if he can supply the entire order. Otherwise, he will charge only $7.25 per calendar (B5).  Unsold calendars cannot be returned for a refund. Instead, they will be put on sale for $5 a piece after February 1 (B7).

ADDITIONAL UNCERTAINTY  At $5, we believe the demand for leftover calendars is triangularly distributed with parameters of 0, 50, and 75 (F5:F7).  Any calendars still left over after March 1, will be thrown away.  We plan to order 200 calendars and want to use simulation to analyze the resulting profit.

ADDITIONAL UNCERTAINTY  As before, we first need to develop the model.  Then we can run the simulation and examine the results.  The model itself requires a bit more logic than the previous models.

ADDITIONAL UNCERTAINTY  The model can be developed as follows:  Random inputs. There are three random inputs: the most the supplier can supply, the customer demand when the selling price is $10, and the customer demand for sale-price calendars. Generate these values in A16, D16 and G16 as: =ROUND(RiskTriang(E10,E11,E12),0), =ROUND(RiskTriang(E5,E6, E7),0) and =ROUND(RiskTriang(F5,F6, F7),0).  Random potential demand is generated at the sale price even though there might not be any calendars left to put on sale.

ADDITIONAL UNCERTAINTY  Actual supply. The number of calendars supplied is the smaller of the number ordered and the maximum the supplier is able to supply. Calculate this value in cell B16 as: =MIN(A16,B10).  Order cost. The reduced price of $7.25 is charged if the supplier cannot supply the entire order. Otherwise, $7.50 per calendar is paid. Calculate the total order cost in cell C16 as: =IF(A16>=B10,B4,B5)*B16

ADDITIONAL UNCERTAINTY  Other quantities. Calculate the revenue from regular-price sales in cell E16 with the formula =B6*MIN(B16,D16).  Calculate the number left over after regular- price sales in cell F16 with the formula =MAX(B16-D16,0).  Calculate revenue from sale-price sales in cell H16 with the formula =B7*MIN(F16,G16).  Calculate profit and designate it as an output cell in cell I16 with the formula =RISKOUTPUT( )+E16+H16-C16.

ADDITIONAL UNCERTAINTY  Next specify the simulation settings, specify the report settings and run the simulation.  When there are several input generates a value from each of them independently and calculates the corresponding profit on each iteration.  The results indicate an average profit of $396.29, a 5 th percentile of $55.75, a 95 th percentile of $528, and a distribution of profits that is again skewed to the left.

ADDITIONAL UNCERTAINTY  We now demonstrate a feature that is particularly useful when there are several random input cells.  This feature lets us see which of these inputs is most related to, or correlated with, an output cell.  To perform this analysis, select the Insert/Graph/Tornado Graph menu item from Results window.

ADDITIONAL UNCERTAINTY  In the dialog box, select Profit as the output variable and the Correlation Sensitivity button.  These results show graphically and numerically how each of the random inputs correlates with profit – the higher the correlation, the stronger the relationship between that input and profit.  We see that the regular-price demand has by far the strongest effect on profit (0.793 correlation).

ADDITIONAL UNCERTAINTY  The other two inputs, maximum supply (0.048 correlation) and sale-price demand (0.034 correlation), are not as important because they are nearly unrelated to profit.  If a random input is highly correlated with an output, then it might be worth the time and cost to learn more about this input and possibly reduce the amount of uncertainty involving it.

CORRELATED VARIABLES  All previous problems have had random numbers be probabilistically independent. This means that if a random value is much larger than its mean, the other random values are unaffected.  Sometimes values are correlated. If they are positively correlated, then a large number for one value will tend to produce a large number for a second value. While negatively correlated values tend to move in opposite directions.

CORRELATED VARIABLES  Suppose that there are two different calendars that are sold but their demand is negatively correlated. This means that if a customer buys one calendar they are unlikely to buy another one. Assume a correlation of  The other parameters of this problem are the same as Calendar.xls.  Compare the profit levels for correlation values of -0.90, 0, and 0.90.

CORRELATED VARIABLES  The RISKCORRMAT (correlation matrix) function is needed.  A correlation matrix has 1’s along the main diagonal since a variable is perfectly correlated with itself. The correlation values appear in the other parts of the matrix and the matrix is symmetric.  See Correlated Demand template.xls.  We would like to run this model for 3 different correlation values that appear in cells I9:K9 as -.90, 0, and 0.90.

CORRELATED VARIABLES  The correlation matrix is entered in cells J5:K6 as 1, =RISKSIMTABLE(I9:K9), =J6, and 1.  The RISKSIMTABLE command will to run the simulation for the three different correlation values that appear in cells I9:K9.  We assume that the company orders 200 calendars of each type (cells B9 and B10).  The data from Calendar.xls are entered into cells B4:B6 and E4:E6.

CORRELATED VARIABLES  The formulas for Revenue, Cost, Refund, and Profit from Calendar.xls are entered in row 14 for product 1 and then copied to row 15 for product 2.  All values for the two products are summed in row 16.  To finish the model we must randomly generate correlated demands for the two products in cells B14 and B15.

CORRELATED VARIABLES  The demand for product 1 is entered in cell B14 as: =ROUND(RISKTRIANG(E4,E5,E6,RISKCORRMAT(J5:K6,1)),0)  The demand for product 2 is entered in cell B15 as: =ROUND(RISKTRIANG(E4,E5,E6,RISKCORRMAT(J5:K6,2)),0)  The first argument of RISKCORRMAT is the correlation matrix range. The second is an index of the variable (1 for product 1 and 2 for product 2).  Correlated demand values for the two products will now be generated.

CORRELATED VARIABLES  Next specify the simulation settings (1000 runs and number of simulations 3, one for each correlation value).  In the Detailed Statistics window you will see Profit results for the 3 runs. The mean values are equal at

CORRELATED VARIABLES  This may be surprising but can be explained uses the same random numbers for each run but “shuffles” them in different orders to get the correct correlations.  The means are unaffected since this is like saying the average of 30, 26, and 48 is the same as the average of 48, 30, and 26.

CORRELATED VARIABLES  Notice, however, that the standard deviations for the three runs are different ( , , and ).  This means that the variation in profit increases as the correlation goes from negative to zero to positive.

CORRELATED VARIABLES  When demands are negatively correlated, high demands for one product tend to cancel low demands for another product making extreme profit values less likely.  When demands are positively correlated, high and low demands tend to go together making extreme profits more likely.  This is why investors are warned to diversify their portfolio to reduce risk.  Use Risk Optimizer to find the ideal number of calendars of each type to order.