Decision Model Using Excel
Decision Model Using Excel
Detailed Contents
Chapter 1 Introduction to Decision Modeling ............................................................... 9 1.1 Models to Aid Decision Making .............................................................................. 9 Components of a Decision Model ............................................................................ 10 1.2 Basic What-If Model.............................................................................................. 12 Influence Diagram Representation ........................................................................... 12 Decision Tree Representation .................................................................................. 13 Consequence Table Representation.......................................................................... 14 Chapter 2 Sensitivity Analysis Using SensIt ................................................................ 15 2.1 How to Install SensIt .............................................................................................. 15 2.2 How to Uninstall or Delete SensIt.......................................................................... 15 2.3 SensIt Overview ..................................................................................................... 16 2.4 Example Problem ................................................................................................... 16 2.5 Plot ......................................................................................................................... 17 Plot Input Variable ................................................................................................... 17 Plot Output Variable................................................................................................. 17 Plot Input Values...................................................................................................... 17 2.6 Spider ..................................................................................................................... 19 Spider Input Variables.............................................................................................. 19 Spider Output Variable............................................................................................. 19 Spider Input Changes ............................................................................................... 19 2.7 Tornado .................................................................................................................. 22 Tornado Input Variables........................................................................................... 22 Tornado Output Variable ......................................................................................... 23 Tornado Input Values............................................................................................... 23 2.8 Tornado Tips .......................................................................................................... 25 2.9 Eagle Airlines Problem .......................................................................................... 26 2.10 Seven-Variable Non-SensIt Spider Chart............................................................. 27
Detailed Contents
Chapter 3 Monte Carlo Simulation Using RiskSim .................................................... 29 3.1 Introduction ............................................................................................................ 29 3.2 Using RiskSim Functions....................................................................................... 31 3.3 Using RiskSim Functions....................................................................................... 31 3.4 Excel Error Message .............................................................................................. 32 3.5 Monte Carlo Simulation ......................................................................................... 32 3.6 Random Number Seed ........................................................................................... 33 3.7 One-Output Example.............................................................................................. 34 3.8 RiskSim Output for One-Output Example ............................................................. 35 3.9 Random Number Generator Functions................................................................... 38 RandBinomial .......................................................................................................... 38 RandCumulative....................................................................................................... 38 RandDiscrete ............................................................................................................ 40 RandExponential ...................................................................................................... 42 RandInteger .............................................................................................................. 43 RandNormal ............................................................................................................. 44 RandPoisson............................................................................................................. 45 RandTriangular ........................................................................................................ 45 RandUniform............................................................................................................ 47 3.10 RiskSim Technical Details ................................................................................... 48 3.11 Modeling Uncertain Relationships ....................................................................... 49 Base Model, Four Inputs .......................................................................................... 49 Three Inputs ............................................................................................................. 50 Two Inputs ............................................................................................................... 51 Four Inputs with Three Uncertainties....................................................................... 52 Intermediate Details ................................................................................................. 54 Chapter 4 Decision Trees Using TreePlan ................................................................... 57 4.1 TreePlan Installation .............................................................................................. 57 Occasional Use......................................................................................................... 57 Selective Use............................................................................................................ 57 Steady Use................................................................................................................ 58 4.2 Building a Decision Tree in TreePlan .................................................................... 58 4.3 Anatomy of a TreePlan Decision Tree ................................................................... 60 4.4 Step-by-Step TreePlan Tutorial.............................................................................. 62 DriveTek Problem .................................................................................................... 62 Nodes and Branches ................................................................................................. 63 Terminal Values ....................................................................................................... 64 Building the Tree Diagram....................................................................................... 65 Interpreting the Results ............................................................................................ 73 Formatting the Tree Diagram ................................................................................... 74 Displaying Model Inputs.......................................................................................... 76 Printing the Tree Diagram........................................................................................ 78 Alternative Model .................................................................................................... 79
Detailed Contents
4.5 Decision Tree Solution........................................................................................... 79 Strategy .................................................................................................................... 79 Payoff Distribution................................................................................................... 80 DriveTek Strategies.................................................................................................. 80 Strategy Choice ........................................................................................................ 84 Certainty Equivalent................................................................................................. 85 Rollback Method...................................................................................................... 87 Optimal Strategy ...................................................................................................... 88 4.6 Newox Decision Tree Problem .............................................................................. 90 4.7 Brandon Decision Tree Problem ............................................................................ 91 Decision Tree Strategies........................................................................................... 91 Chapter 5 Multiattribute Utility ................................................................................... 99 5.1 Applications of Multi-Attribute Utility .................................................................. 99 5.2 MultiAttribute Utility Swing Weights.................................................................. 100 Attribute Scores...................................................................................................... 101 Swing Weights ....................................................................................................... 102 Overall Scores ........................................................................................................ 103 5.3 Sensitivity Analysis Methods............................................................................... 104 Dominance ............................................................................................................. 105 Monetary Equivalents Assessment......................................................................... 105 Additive Utility Function ....................................................................................... 106 Weight Ratio Assessment....................................................................................... 107 Weight Ratio Sensitivity Analysis ......................................................................... 109 Swing Weight Assessment ..................................................................................... 110 Swing Weight Sensitivity Analysis ........................................................................ 112 Direct Weight Assessment and Sensitivity Analysis.............................................. 115 Summary ................................................................................................................ 117 Sensitivity Analysis Examples References ............................................................ 117 Screenshots from Excel to Word............................................................................ 118 Chapter 6 Product Mix Optimization ........................................................................ 119 6.1 Linear Programming Concepts............................................................................. 119 Formulation ............................................................................................................ 119 Graphical Solution.................................................................................................. 119 Sensitivity Analysis................................................................................................ 119 6.2 Basic Product Mix Problem ................................................................................. 121 6.3 Outdoors Problem ................................................................................................ 124 Spreadsheet Model ................................................................................................. 126 Solver Reports........................................................................................................ 127 Chapter 7 Uncertain Quantities.................................................................................. 129 7.1 Discrete Uncertain Quantities .............................................................................. 129 7.2 Continuous Uncertain Quantities ......................................................................... 129
Detailed Contents
Case A: Uniform Density ....................................................................................... 129 Case B: Ramp Density ........................................................................................... 132 Case C: Triangular Density .................................................................................... 134 Chapter 8 Simulation Without Add-Ins..................................................................... 137 8.1 Simulation Using Excel Functions ....................................................................... 137 Chapter 9 Multiperiod What-If Modeling ................................................................. 139 9.1 Apartment Building Purchase Problem ................................................................ 139 Apartment Building Analysis Notes....................................................................... 142 9.2 Product Launch Financial Model ......................................................................... 143 9.3 Machine Simulation Model .................................................................................. 147 Chapter 10 Modeling Waiting Lines .......................................................................... 155 10.1 Queue Simulation............................................................................................... 155 Chapter 11 Introduction to Data Analysis ................................................................. 161 11.1 Levels of Measurement ...................................................................................... 161 Categorical Measure............................................................................................... 161 Numerical Measure ................................................................................................ 161 11.2 Describing Categorical Data .............................................................................. 162 11.3 Describing Numerical Data ................................................................................ 162 Frequency Distribution and Histogram .................................................................. 162 Numerical Summary Measures .............................................................................. 162 Distribution Shapes ................................................................................................ 163 Chapter 12 Regression Models for Cross-Sectional Data......................................... 165 12.1 Cross-Sectional Regression Checklist................................................................ 165 Plot Y versus each X .............................................................................................. 165 Examine the correlation matrix .............................................................................. 165 Calculate the regression model with diagnostics.................................................... 165 Use the model......................................................................................................... 166 Chapter 13 Time Series Data and Forecasts.............................................................. 167 13.1 Time Series Patterns........................................................................................... 167 Chapter 14 Regression Models for Time Series Data ............................................... 171 14.1 Time Series Regression Checklist...................................................................... 171 Plot Y versus time .................................................................................................. 171 Plot Y versus each X .............................................................................................. 171 Examine the correlation matrix .............................................................................. 171 Calculate the regression model with diagnostics.................................................... 172 Use the model......................................................................................................... 172
Detailed Contents
14.2 Autocorrelation of Residuals.............................................................................. 173 Chapter 15 Sensitivity Analysis for Decision Trees................................................... 175 15.1 One-Variable Sensitivity Analysis ..................................................................... 175 15.2 Two-Variable Sensitivity Analysis..................................................................... 177 Setup for Data Table .............................................................................................. 178 Obtaining Results Using Data Table Command..................................................... 178 Embellishments ...................................................................................................... 179 15.3 Multiple-Outcome Sensitivity Analysis ............................................................. 180 15.4 Robin Pinelli's Sensitivity analysis..................................................................... 182 Chapter 16 Value of Information in Decision Trees ................................................. 185 16.1 Value of Information.......................................................................................... 185 16.2 Expected Value of Perfect Information.............................................................. 185 16.3 DriveTek Post-Contract-Award Problem ........................................................... 188 16.4 Sensitivity Analysis vs EVPI ............................................................................. 192 Chapter 17 Value of Imperfect Information.............................................................. 193 17.1 Technometrics Problem...................................................................................... 193 Prior Problem ......................................................................................................... 193 Imperfect Information ............................................................................................ 194 Revision of Probability........................................................................................... 196 Chapter 18 Modeling Attitude Toward Risk ............................................................. 197 18.1 Risk Utility Function.......................................................................................... 197 18.2 Exponential Risk Utility..................................................................................... 200 18.3 Approximate Risk Tolerance.............................................................................. 203 18.4 Exact Risk Tolerance Using Excel..................................................................... 203 18.5 Exact Risk Tolerance Using RiskTol.xla ........................................................... 207 18.6 Exponential Utility and TreePlan ....................................................................... 208 18.7 Exponential Utility and RiskSim........................................................................ 208 18.8 Risk Sensitivity for Machine Problem ............................................................... 210 18.9 Risk Utility Summary......................................................................................... 211 Concepts................................................................................................................. 211 Fundamental Property of Utility Function ............................................................. 212 Using a Utility Function To Find the CE of a Lottery............................................ 212 Exponential Utility Function .................................................................................. 212 TreePlan's Simple Form of Exponential Utility ..................................................... 212 Approximate Assessment of RiskTolerance .......................................................... 212 Exact Assessment of RiskTolerance ...................................................................... 213 Using Exponential Utility for TreePlan Rollback Values ...................................... 213 Using Exponential Utility for a Payoff Distribution .............................................. 214
Detailed Contents
Chapter 19 Modeling Marketing Decisions ............................................................... 215 19.1 Allocating Advertising Expenditures ................................................................. 215 Chapter 20 Nonlinear Product Mix Optimization .................................................... 221 20.1 Diminishing Profit Margin ................................................................................. 221 Chapter 21 Integer-Valued Optimization Models..................................................... 223 21.1 Transportation Problem...................................................................................... 223 21.2 Modified Transportation Problem ...................................................................... 224 21.3 Scheduling Problem ........................................................................................... 226 Chapter 22 Optimization Models for Finance Decisions .......................................... 229 22.1 Working Capital Management Problem............................................................. 229 22.2 Work Cap Alternate Formulations ..................................................................... 231 22.3 Stock Portfolio Problem ..................................................................................... 233 22.4 MoneyCo Problem ............................................................................................. 235
10
11
Influence chart Rectangle for controllable inputs Rounded rectangle or oval for other variables Figure 1.2 Generic Influence Chart
...
Intermediate Variables
...
...
...
12
Output
Unit Price
Units Sold
Fixed Costs
Inputs
13
=
Decision Fan
=
Event Fan
14
SensIt is a sensitivity analysis add-in for Microsoft Excel 97 (and later versions of Excel) for Windows and Macintosh. It was written by Mike Middleton of the University of San Francisco and Jim Smith of Duke University.
(B2) If SensIt is listed under Excel's add-in manager and the box is not checked, start Excel and choose Tools | Add-Ins. Check the box for SensIt; you'll see "Cannot find ... Delete from list?" Click Yes.
16
$230,000 $216,000
$14,000
Adapted from Bob Clemen's textbook, Making Hard Decisions, 2nd ed., Duxbury (1996).
2.5 Plot
17
=(B8*B6*B4)+((1-B8)*B6*B5*B7*5) =(B6*B9)+B10
=B13-B14
2.5 PLOT
Use SensIts Plot option to see how your models output depends on changes in a single input variable.
18
identified are used as the charts axis labels. (You could do this manually using the ChartWizard.) Figure 2.3 SensIt Plot Dialog Box
45%
50%
55%
60%
2.6 Spider
19
2.6 SPIDER
Use SensIts Spider option to see how your models output depends on the same percentage changes for each of the models input variables. Before using Spider, arrange your model input cells in adjacent cells in a single column, arrange corresponding labels in adjacent cells in a single column, and be sure your models input cells contain base case values. For example, if your model has five inputs, the names of the five inputs could be text in A1:A5. The input cells of your model could be numbers in B1:B5; when you change a number in one of these cells, the output of your model changes; enter base case values in the input cells B1:B5 before using Spider.
20
and percentage change of model output value on the other; the input variables labels are used for chart legends. Figure 2.5 SensIt Spider Dialog Box
2.6 Spider
21
Output Variable Values (Annual Profit) 80% Charter Price/Hour -$12,000 Ticket Price/Hour -$6,000 Hours Flown $7,200 Scheduled Capacity -$6,000 Chartered Proportion $8,000 Operating Cost/Hour $53,200 Insurance $18,000
Charter Price/Hour Ticket Price/Hour Hours Flown Capacity of Scheduled Flights Proportion of Chartered Flights Operating Cost/Hour
22
2.7 TORNADO
Use SensIts Tornado option to see how your models output depends on ranges you specify for each of the models input variables. Before using Tornado, arrange your model input cells in adjacent cells in a single column, arrange corresponding labels in adjacent cells in a single column, and arrange Low, Base, and High input values for each input variable in three separate columns. Alternatively, the three columns containing input values can be worst case, likely case, and best case. For example, if your model has five inputs, the names of the five inputs could be text in A1:A5. The input cells of your model could be numbers in B1:B5; when you change a number in one of these cells, the output of your model changes. The Low input values could be numbers in D1:D5, chosen as the minimum possible value you think each input variable could be. The Base input values could be numbers in E1:E5, chosen as the most likely value for each input; you might also have these same numbers in B1:B5 as current inputs to your model. The High input values could be numbers in F1:F5, chosen as the maximum possible value you think each input variable could be.
2.7 Tornado
23
point to the range containing numeric values that are inputs to your model. Each range must be adjacent cells in a single column.
Lower Bound Base Value Upper Bound $300 $325 $350 $95 $100 $108 500 800 1000 40% 50% 60% 0.45 0.5 0.7 $230 $245 $260 $18,000 $20,000 $25,000
$230,000 $216,000
$14,000
Adapted from Bob Clemen's textbook, Making Hard Decisions, 2nd ed., Duxbury (1996).
24
Input Variable Capacity of Scheduled Flights Operating Cost/Hour Hours Flown Charter Price/Hour Proportion of Chartered Flights Ticket Price/Hour Insurance
Input Values Low Base High 40% 50% 60% $230 $245 $260 500 800 1000 $300 $325 $350 0.45 0.5 0.7 $95 $100 $108 $18,000 $20,000 $25,000
Output Values (Annual Profit) Low Base High -$6,000 $14,000 $34,000 $26,000 $14,000 $2,000 $1,250 $14,000 $22,500 $4,000 $14,000 $24,000 $11,000 $14,000 $26,000 $9,000 $14,000 $22,000 $16,000 $14,000 $9,000
Percent Swing Variance $40,000 46.1% $24,000 16.6% $21,250 13.0% $20,000 11.5% $15,000 6.5% $13,000 4.9% $7,000 1.4%
25
26
27
Figure 2.14 Worst Case and Best Case Inputs Determined by Solver
Variable Hours Flown Charter Price/Hour Ticket Price/Hour Capacity of Scheduled Flights Proportion Of Chartered Flights Operating Cost/Hour Insurance Proportion Financed Interest Rate Purchase Price Total Revenue Total Cost Annual Profit Worst Case 1000 $300 $95 40% 0.45 $260 $25,000 0.5 13.0% $90,000 $239,500 $290,850 -$51,350 Base Case 800 $325 $100 50% 0.5 $245 $20,000 0.4 11.5% $87,500 $230,000 $220,025 $9,975 Best Case 1000 $350 $108 60% 0.7 $230 $18,000 0.3 10.5% $85,000 $342,200 $250,678 $91,523
$30,000
$25,000
$20,000 Output Value: Annual Profit Capacity of Scheduled Flights Operating Cost/Hour Hours Flown Charter Price/Hour Proportion Of Chartered Flights Ticket Price/Hour Insurance
$15,000
$10,000
$5,000
$0
-$5,000
-$10,000
-$15,000 40%
60%
80%
100%
120%
140%
160%
28
3.1 INTRODUCTION
$ Unit Price Fixed Costs 3 values Units Sold ~400 values Unit Variable Cost ~500 values
~600,000 values
30
Discrete
Normal
Uniform
Unit Price
Fixed Costs
Units Sold
$29
Constant
Discrete
Normal
Uniform
31
RiskSim facilitates Monte Carlo simulation by providing: Nine random number generator functions Ability to set the seed for random number generation Automatic repeated sampling for simulation Frequency distribution of simulation results Histogram and cumulative distribution charts
32
RANDEXPONENTIAL(lambda) RANDINTEGER(bottom,top) RANDNORMAL(mean,standard_dev) RANDPOISSON(mean) RANDTRIANGULAR(minimum,most_likely,maximum) RANDUNIFORM(minimum,maximum) RiskSim's RAND... functions include extensive error checking of arguments. After verifying that the functions are working properly, you may want to substitute RiskSim's FAST... functions which have minimal error checking and therefore run faster. From the Edit menu choose Replace; in the Replace dialog box, type =RAND in the "Find What" edit box, type =FAST in the "Replace with" edit box, and click the Replace All button.
33
Optionally, select the "Output Label Cell" edit box, and point or type a reference to a cell containing the name of the model output (for example, a cell whose contents is the text label "Net Profit"). Select the "Output Formula Cell" edit box, and point to a single cell on your worksheet or type a cell reference. The output cell of your model must contain a formula that depends, usually indirectly, on the model inputs determined by the random number generator functions. Select the "Random Number Seed" edit box, and type a number between zero and one. (If you want to change the seed without performing a simulation, enter zero in the "Number of iterations" edit box.) Select the "Number Of Trials" edit box, and type an integer value (for example, 100 or 500). This value, sometimes called the sample size or number of iterations, specifies the number of times the worksheet will be recalculated to determine output values of your model.
34
actually calculated by an algorithm where each random number depends on the previous random number. Such an algorithm generates a repeatable sequence. The seed specifies where the algorithm starts in the sequence. A Monte Carlo simulation model usually has uncontrollable inputs (uncertain quantities using random number generator functions), controllable inputs (decision variables that have fixed values for a particular set of simulation iterations), and an output variable (a performance measure or operating characteristic of the system). For example, a simple queuing system model may have an uncertain arrival pattern, a controllable number of servers, and total cost (waiting time plus server cost) as output. To evaluate a different number of servers, you would specify the same seed before generating the uncertain arrivals. Then the variation in total cost should depend on the different number of servers, not on the particular sequence of random numbers that generates the arrivals.
Price is controllable and constant. Normal Mean = 700, StDev = 100 Triangular Min = $6, Mode = $8, Max = $11 Discrete Value Probability $10,000 0.25 $12,000 0.50 $15,000 0.25
35
36
RiskSim Histogram, (current date), (current time) 140 120 100 Frequency 80 60 40 20 0 -$6,000 -$2,000 $2,000 $6,000 $10,000 Net Cash Flow, Upper Limit of Interval
RiskSim Cumulative Chart, (current date), (current time) 1.0 0.9 Cumulative Probability 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 -$6,000 -$4,000 -$2,000 $0 $2,000 $4,000 $6,000 $8,000 $10,000 $12,000
37
The histogram is based on the frequency distribution in columns I:J. The cumulative distribution is based on the sorted output values in column C and the cumulative probabilities in column D. Figure 3.9 RiskSim Numerical Output for One-Output Example
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 B Trial Net Cash Flow 1 $1,653 2 $2,804 3 $2,280 4 $761 5 -$1,817 6 -$692 7 $623 8 $5,575 9 $1,389 10 $445 11 $2,573 12 $5,055 13 $1,430 14 $4,529 15 $701 16 -$903 17 $3,900 18 $7,282 19 $9,901 20 $285 21 $3,833 22 $4,369 23 $1,991 24 -$11 25 $1,100 26 -$1,100 27 -$5,455 C D Sorted Cumulative -$5,455 0.0010 -$4,267 0.0030 -$4,185 0.0050 -$3,898 0.0070 -$3,675 0.0090 -$3,582 0.0110 -$3,569 0.0130 -$3,562 0.0150 -$3,547 0.0170 -$3,275 0.0190 -$3,207 0.0210 -$3,137 0.0230 -$3,135 0.0250 -$3,063 0.0270 -$3,036 0.0290 -$3,008 0.0310 -$2,968 0.0330 -$2,950 0.0350 -$2,774 0.0370 -$2,649 0.0390 -$2,485 0.0410 -$2,370 0.0430 -$2,319 0.0450 -$2,219 0.0470 -$2,195 0.0490 -$1,986 0.0510 -$1,969 0.0530 E F Percent 0% 5% 10% 15% 20% 25% 30% 35% 40% 45% 50% 55% 60% 65% 70% 75% 80% 85% 90% 95% 100% G Percentile -$5,455 -$1,996 -$1,132 -$637 $77 $536 $923 $1,331 $1,823 $2,063 $2,458 $2,756 $3,138 $3,644 $4,104 $4,416 $4,867 $5,412 $5,897 $7,109 $10,236 H I J Upper Limit Frequency -$6,000 0 -$4,000 3 -$2,000 22 $0 72 $2,000 122 $4,000 128 $6,000 105 $8,000 38 $10,000 9 $12,000 1 0
The cumulative probabilities start at 1/(2*N), where N is the number of trials, and increase by 1/N. The rationale is that the lowest ranked output value of the sampled values is an estimate of the population's values in the range from 0 to 1/N, and the lowest ranked value is associated with the median of that range. Column B contains the original sampled output values. Columns F:G show percentiles based on Excel's PERCENTILE worksheet function. Refer to Excel's online help for the interpolation method used by the PERCENTILE function. The summary measures in columns Q:R are also based on Excel worksheet functions: AVERAGE, STDEV, QUARTILE, and SKEW.
38
RandCumulative
Returns a random value from a piecewise-linear cumulative distribution. This function can model a continuous-valued uncertain quantity, X, by specifying points on its cumulative distribution. Each point is specified by a possible value, x, and a
39
corresponding left-tail cumulative probability, P(X<=x). Random values are based on linear interpolation between the specified points. RANDCUMULATIVE Syntax: RANDCUMULATIVE(value_cumulative_table) Value_cumulative_table must be a reference, or the defined name of a reference, for a two-column range, with values in the left column and corresponding cumulative probabilities in the right column. RANDCUMULATIVE Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if the argument is text and the name is undefined. Returns #NUM! if the first (top) cumulative probability is not zero, if the last (bottom) cumulative probability is not one, or if the values or cumulative probabilities are not in ascending order. Returns #REF! if the number of columns in the table reference is not two. Returns #VALUE! if the argument is not a reference, if the argument is a defined name but not for a reference, or if any cell of the table contains text or is blank. RANDCUMULATIVE Example A corporate planner thinks that minimum possible market demand is 1000 units, median is 5000, and maximum possible is 9000. Also, there is a ten percent chance that demand will be less than 4000 and a ten percent chance it will exceed 7000. The values, x, and cumulative probabilities, P(X<=x), are entered into spreadsheet cells A1:B5. Figure 3.10 RandDiscrete Example Spreadsheet Data
The function is entered into another cell: =RANDCUMULATIVE(A1:B5) RANDCUMULATIVE Related Function FASTCUMULATIVE: Same as RANDCUMULATIVE without any error checking of the arguments.
40
0.0003
0.0002
0.0001
0.8
0.6
0.4
0.2
RandDiscrete
Returns a random value from a discrete probability distribution. This function can model a discrete-valued uncertain quantity, X, by specifying its probability mass function. The function is specified by each possible discrete value, x, and its corresponding probability, P(X=x). RANDDISCRETE Syntax: RANDDISCRETE(value_discrete_table)
41
Value_discrete_table must be a reference, or the defined name of a reference, for a twocolumn range, with values in the left column and corresponding probability mass in the right column. RANDDISCRETE Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if the argument is text and the name is undefined. Returns #NUM! if a probability is negative or if the probabilities do not sum to one. Returns #REF! if the number of columns in the table reference is not two. Returns #VALUE! if the argument is not a reference, if the argument is a defined name but not for a reference, or if any cell of the table contains text or is blank. RANDDISCRETE Example A corporate planner thinks that uncertain market demand, X, can be approximated by three possible values and their associated probabilities: P(X=3000) = 0.3, P(X=4000) = 0.6, and P(X=5000) = 0.1. The values and probabilities are entered into spreadsheet cells A1:B3. Figure 3.13 RandDiscrete Example Spreadsheet Data
The function is entered into another cell: =RANDDISCRETE(A1:B3) RANDDISCRETE Related Function FASTDISCRETE: Same as RANDDISCRETE without any error checking of the arguments. RandDiscrete Example Probability Mass Function
42
0.8
0.6
0.4
0.2
0 0 1000 2000 3000 4000 5000 6000 7000 Market Demand, x, in units
RandExponential
Returns a random value from an exponential distribution. This function can model the uncertain time interval between successive arrivals at a queuing system or the uncertain time required to serve a customer. RANDEXPONENTIAL Syntax: RANDEXPONENTIAL(lambda) Lambda is the mean number of occurrences per unit of time.
43
RANDEXPONENTIAL Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if the argument is text and the name is undefined. Returns #NUM! if lambda is negative or zero. Returns #VALUE! if the argument is a defined name of a cell and the cell is blank or contains text. RANDEXPONENTIAL Examples Cars arrive at a toll plaza with a mean rate of 3 cars per minute. The uncertain time between successive arrivals, measured in minutes, is =RANDEXPONENTIAL(3). The average value returned by repeated recalculation of RANDEXPONENTIAL(3) is 0.333. A bank teller requires an average of two minutes to serve a customer. The uncertain customer service time, measured in minutes, is =RANDEXPONENTIAL(0.5). The average value returned by repeated recalculation of RANDEXPONENTIAL(0.5) is 2. RANDEXPONENTIAL Related Functions FASTEXPONENTIAL: Same as RANDEXPONENTIAL without any error checking of the arguments. LN(RAND())/lambda: Excel's inverse of the exponential, or LN(RANDUNIFORM(0,1))/lambda to use the RiskSim Seed feature. RANDPOISSON: Counts number of occurrences for a Poisson process.
RandInteger
Returns a uniformly distributed random integer between two integers you specify. RANDINTEGER Syntax: RANDINTEGER(bottom,top) Bottom is the smallest integer RANDINTEGER will return. Top is the largest integer RANDINTEGER will return. RANDINTEGER Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if an argument is text and the name is undefined. Returns #NUM! if top is less than or equal to bottom. Returns #VALUE! if bottom or top is not an integer or if an argument is a defined name of a cell and the cell is blank or contains text.
44
RANDINTEGER Example The number of orders a particular customer will place next year is between 7 and 11, with no number more likely than the others. The uncertain number of orders is =RANDINTEGER(7,11). RANDINTEGER Related Function FASTINTEGER: Same as RANDINTEGER without any error checking of the arguments. RANDBETWEEN(bottom,top): Excels function for uniformly distributed integers, without RiskSims capability of setting the seed.
RandNormal
Returns a random value from a normal distribution. This function can model a variety of phenomena where the values follow the familiar bell-shaped curve, and it has wide application in statistical quality control and statistical sampling. RANDNORMAL Syntax: RANDNORMAL(mean,standard_dev) Mean is the arithmetic mean of the normal distribution. Standard_dev is the standard deviation of the normal distribution. RANDNORMAL Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if an argument is text and the name is undefined. Returns #NUM! if standard_dev is negative. Returns #VALUE! if an argument is a defined name of a cell and the cell is blank or contains text. RANDNORMAL Example The total market for a product is approximately normally distributed with mean 60,000 units and standard deviation 5,000 units. The uncertain total market is =RANDNORMAL(60000,5000). RANDNORMAL Related Function FASTNORMAL: Same as RANDNORMAL without any error checking of the arguments. NORMINV(RAND(),mean,standard_dev): Excel's inverse of the normal, or NORMINV(RANDUNIFORM(0,1),mean,standard_dev) to use the RiskSim Seed feature.
45
RandPoisson
Returns a random value from a Poisson distribution. This function can model the uncertain number of occurrences during a specified time interval, for example, the number of arrivals at a service facility during an hour. The possible values of RANDPOISSON are the non-negative integers, 0, 1, 2, ... . RANDPOISSON Syntax: RANDPOISSON(mean) Mean is the mean number of occurrences per unit of time. RANDPOISSON Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if the argument is text and the name is undefined. Returns #NUM! if mean is negative or zero. Returns #VALUE! if mean is a defined name of a cell and the cell is blank or contains text. RANDPOISSON Examples Cars arrive at a toll plaza with a mean rate of 3 cars per minute. The uncertain number of arrivals in a minute is =RANDPOISSON(3). The average value returned by repeated recalculation of RANDPOISSON(3) is 3. A bank teller requires an average of two minutes to serve a customer. The uncertain number of customers served in a minute is =RANDPOISSON(0.5). The average value returned by repeated recalculation of RANDPOISSON(0.5) is 0.5. RANDPOISSON Related Functions FASTPOISSON: Same as RANDPOISSON without any error checking of the arguments. RANDEXPONENTIAL: Describes time between occurrences for a Poisson process.
RandTriangular
Returns a random value from a triangular probability density function. This function can model an uncertain quantity where the most likely value (mode) has the largest probability of occurrence, the minimum and maximum possible values have essentially zero probability of occurrence, and the probability density function is linear between the minimum and the mode and between the mode and the maximum. This function can also model a ramp density function where the minimum equals the mode or the mode equals the maximum. RANDTRIANGULAR Syntax: RANDTRIANGULAR(minimum,most_likely,maximum)
46
Minimum is the smallest value RANDTRIANGULAR will return. Most_likely is the most likely value RANDTRIANGULAR will return. Maximum is the largest value RANDTRIANGULAR will return. RANDTRIANGULAR Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if an argument is text and the name is undefined. Returns #NUM! if minimum is greater than or equal to maximum, if most_likely is less than minimum, or if most_likely is greater than maximum. Returns #VALUE! if an argument is a defined name of a cell and the cell is blank or contains text. RANDTRIANGULAR Example The minimum time required to complete a particular task that is part of a large project is 4 hours, the most likely time required is 6 hours, and the maximum time required is 10 hours. The function returning the uncertain time required for the task is entered into a cell: =RANDTRIANGULAR(4,6,10). RANDTRIANGULAR Related Function FASTTRIANGULAR: Same as RANDTRIANGULAR without any error checking of arguments. Figure 3.16 RandTriangular Example Probability Density Function
0.6 0.5 Probability Density, f(x) 0.4 0.3 0.2 0.1 0 0 2 4 6 8 10 Task Time, x, in hours
47
0.8
0.6
0.4
0.2
RandUniform
Returns a uniformly distributed random value between two values you specify. As a special case, RANDUNIFORM(0,1) is the same as Excel's built-in RAND() function. RANDUNIFORM Syntax: RANDUNIFORM(minimum,maximum) Minimum is the smallest value RANDUNIFORM will return. Maximum is the largest value RANDUNIFORM will return. RANDUNIFORM Remarks Returns #N/A if there are too few or too many arguments. Returns #NAME! if an argument is text and the name is undefined. Returns #NUM! if minimum is greater than or equal to maximum. Returns #VALUE! if an argument is a defined name of a cell and the cell is blank or contains text. RANDUNIFORM Example A corporate planner thinks that the company's product will garner between 10% and 15% of the total market, with all possible percentages equally likely in the specified range. The uncertain market proportion is =RANDUNIFORM(0.10,0.15). RANDUNIFORM Related Function
48
49
RANDPOISSON(mean) compares RandSeed with cumulative probabilities of Excel's built-in POISSON function until the probability exceeds the RandSeed value, and then returns the previous value. RANDTRIANGULAR(minimum,most_likely,maximum) uses RandSeed once. The triangular density function has two linear segments, so the cumulative distribution has two quadratic segments. The returned value is determined by interpolation on the appropriate quadratic segment. RANDUNIFORM(minimum,maximum) returns minimum + RandSeed*(maximumminimum). RANDUNIFORM(0,1) is equivalent to Excel's built-in RAND() function. RiskSim includes a FAST... version of each of the nine functions, e.g., FASTBINOMIAL, FASTCUMULATIVE, etc. The FAST... functions are identical to the RAND... functions except there is no error checking of arguments.
Price
Fixed Costs
Units Sold
50
Three Inputs
Price is variable. Units sold depends on price. The two cost inputs are independent. Figure 3.21 Three Inputs Influence Chart
Net Cash Flow
Units Sold
Price
Fixed Costs
51
Two Inputs
Price is variable. Units sold depends on price. Unit variable cost depends on fixed costs. Figure 3.24 Two Inputs Influence Chart
Net Cash Flow
Units Sold
Price
Fixed Costs
52
Fixed Costs Unit Variable Cost $10,000 $11 $12,000 $8 $15,000 $6 a b c 0.000000166667 -0.005166666667 46
53
Units Sold
Price
Fixed Costs
Fixed Costs Unit Variable Cost $10,000 $11 $12,000 $8 $15,000 $6 a b c 0.000000166667 -0.005166666667 46
54
Intermediate Details
Price is variable. Units sold depends on price. Unit variable cost depends on fixed costs. Fixed costs, units sold, and unit variable cost are uncertain. Include revenue, total variable cost, and total costs as intermediate variables. Figure 3.30 Intermediate Details Influence Chart
Net Cash Flow
Revenue
Total Costs
Units Sold
Price
Fixed Costs
55
Fixed Costs Unit Variable Cost $10,000 $11 $12,000 $8 $15,000 $6 a b c 0.000000166667 -0.005166666667 46
56
TreePlan is a decision tree add-in for Microsoft Excel 97 (and later versions of Excel) for Windows and Macintosh. It was developed by Professor Michael R. Middleton at the University of San Francisco and modified for use at Fuqua (Duke) by Professor James E. Smith.
Occasional Use
If you plan to use TreePlan on an irregular basis, simply use Excels File | Open command to load TreePlan.xla each time you want to use it. You may keep the TreePlan.xla file on a floppy disk, your computers hard drive, or a network server.
Selective Use
You can use Excels Add-In Manager to install TreePlan. First, copy TreePlan.xla to a location on your computers hard drive. Second, if you save TreePlan.xla in the Excel or Office Library subdirectory, go to the third step. Otherwise, run Excel, choose Tools | Add-Ins; in the Add-Ins dialog box, click the Browse button, use the Browse dialog box to specify the location of TreePlan.xla, and click OK. Third, in the Add-Ins dialog box, note that TreePlan is now listed with a check mark, indicating that its menu command will appear in Excel, and click OK. If you plan to not use TreePlan and you want to free up main memory, uncheck the box for TreePlan in the Add-In Manager. When you do want to use TreePlan, choose Tools | Add-Ins and check TreePlans box.
58
To remove TreePlan from the Add-In Manager, use Windows Explorer or another file manager to delete TreePlan.xla from the Library subdirectory or from the location you specified when you used the Add-In Managers Browse command. The next time you start Excel and choose Tools | Add-Ins, a dialog box will state Cannot find add-in treeplan.xla. Delete from list? Click Yes.
Steady Use
If you want TreePlans options immediately available each time you run Excel, use Windows Explorer or another file manager to save TreePlan.xla in the Excel XLStart directory. Alternatively, in Excel you can use Tools | Options | General to specify an alternate startup file location and use a file manager to save TreePlan.xla there. When you start Excel, it tries to open all files in the XLStart directory and in the alternate startup file location. For additional information visit TreePlan FAQ at www.treeplan.com. After opening TreePlan.xla in Excel, the command "Decision Tree" appears at the bottom of the Tools menu (or, if you have a customized main menu, at the bottom of the sixth main menu item).
Decision 1 0 0 1 0 Decision 2 0 0 0 0
59
Build up a tree by adding or modifying branches or nodes in the default tree. To change the branch labels or probabilities, click on the cell containing the label or probability and type the new label or probability. To modify the structure of the tree (e.g., add or delete branches or nodes in the tree), select the node or the cell containing the node in the tree to modify, and choose Tools | Decision Tree or press Ctrl+t. TreePlan will then present a dialog box showing the available commands. For example, to add an event node to the top branch of the tree shown above, select the square cell (cell G4) next to the vertical line at the end of a terminal branch and press Ctrl+t.. TreePlan then presents this dialog box. Figure 4.2 TreePlan Terminal Dialog Box
To add an event node to the branch, we change the selected terminal node to an event node by selecting Change to event node in the dialog box, selecting the number of branches (here two), and pressing OK. TreePlan then redraws the tree with a chance node in place of the terminal node. Figure 4.3
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 B C D E F G H I 0.5 Event 3 0 Decision 1 0 0 0 0.5 Event 4 0 1 0 Decision 2 0 0 0 0 0 0 J K L M
The dialog boxes presented by TreePlan vary depending on what you have selected when you choose Tools | Decision Tree or press Ctrl+t. The dialog box shown below is presented when you press Ctrl+t with an event node selected; a similar dialog box is
60
presented when you select a decision node. If you want to add a branch to the selected node, choose Add branch and press OK. If you want to insert a decision or event node before the selected node, choose Insert decision or Insert event and press OK. To get a description of the available commands, click on the Help button. Figure 4.4
The Copy subtree command is particularly useful when building large trees. If two or more parts of the tree are similar, you can copy and paste "subtrees" rather than building up each part separately. To copy a subtree, select the node at the root of the subtree and choose Copy subtree. This tells TreePlan to copy the selected node and everything to the right of it in the tree. To paste this subtree, select a terminal node and choose Paste subtree. TreePlan then duplicates the specified subtree at the selected terminal node. Since TreePlan decision trees are built directly in Excel, you can use Excel's commands to format your tree. For example, you can use bold or italic fonts for branch labels: select the cells you want to format and change them using Excel's formatting commands. To help you, TreePlan provides a Select dialog box that appears when you choose Tools Decision Tree or press Ctrl+t without a node selected. You can also bring up this dialog box by pressing the Select button on the Node dialog box. From here, you can select all items of a particular type in the tree. For example, if you choose Probabilities and press OK, TreePlan selects all cells containing probabilities in the tree. You can then format all of the probabilities simultaneously using Excel's formatting commands. (Because of limitations in Excel, the Select dialog box will not be available when working with very large trees.)
61
cell references, or labels pertaining to that branch. You may edit the labels, probabilities, and partial cash flows associated with each branch. The partial cash flows are the amount the firm "gets paid" to go down that branch. Here, the firm pays $50,000 if it decides to prepare the proposal, receives $250,000 up front if awarded the contract, spends $50,000 to try the electronic method, and spends $120,000 on the mechanical method if the electronic method fails. Figure 4.5
DECISION NODES: TreePlan formula for which alternative is optimal. PROBABILITIES: Enter numbers or formulas in these cells. TERMINAL VALUES: TreePlan formula for sum of partial cash flows along path.
Use mechanical method $80,000 PARTIAL CASH FLOWS: Enter numbers or formulas in these cells. 0.5 Awarded contract 2 $250,000 $90,000 Try electronic method Prepare proposal -$50,000 $20,000 -$50,000 ROLLBACK EVs: TreePlan formula for expected value at this point in the tree. $90,000 -$120,000 $80,000 0.5 Electronic success $150,000 $0 0.5 Electronic failure $30,000 -$120,000 BRANCH LABELS: Type text in these cells. 0.5 Not awarded contract $0 -$50,000 TERMINAL NODES Don't prepare proposal $0 $0 $0 $30,000 $150,000
1 $20,000
The trees are "solved" using formulas embedded in the spreadsheet. The terminal values sum all the partial cash flows along the path leading to that terminal node. The tree is then "rolled back" by computing expected values at event nodes and by maximizing at decision nodes; the rollback EVs appear next to each node and show the expected value at that point in the tree. The numbers in the decision nodes indicate which alternative is optimal for that decision. In the example, the "1" in the first decision node indicates that it is optimal to prepare the proposal, and the "2" in the second decision node indicates the firm should try the electronic method because that alternative leads to a higher expected value, $90,000, than the mechanical method, $80,000. TreePlan has a few options that control the way calculations are done in the tree. To select these options, press the Options button in any of TreePlan's dialog boxes. The first choice is whether to Use Expected Values or Use Exponential Utility Function for computing certainty equivalents. The default is to rollback the tree using expected values. If you choose to use exponential utilities, TreePlan will compute utilities of endpoint cash flows at the terminal nodes and compute expected utilities instead of expected values at event nodes. Expected utilities are calculated in the cell below the certainty equivalents. You may also choose to Maximize (profits) or Minimize (costs) at decision nodes; the default is to maximize profits. If you choose to minimize costs instead, the cash flows are
62
interpreted as costs, and decisions are made by choosing the minimum expected value or certainty equivalent rather than the maximum. See the Help file for details on these options.
DriveTek Problem
DriveTek Research Institute discovers that a computer company wants a new tape drive for a proposed new computer system. Since the computer company does not have research people available to develop the new drive, it will subcontract the development to an independent research firm. The computer company has offered a fee of $250,000 for the best proposal for developing the new tape drive. The contract will go to the firm with the best technical plan and the highest reputation for technical competence. DriveTek Research Institute wants to enter the competition. Management estimates a cost of $50,000 to prepare a proposal with a fifty-fifty chance of winning the contract. However, DriveTek's engineers are not sure about how they will develop the tape drive if they are awarded the contract. Three alternative approaches can be tried. The first approach is a mechanical method with a cost of $120,000, and the engineers are certain they can develop a successful model with this approach. A second approach involves electronic components. The engineers estimate that the electronic approach will cost only $50,000 to develop a model of the tape drive, but with only a 50 percent chance of satisfactory results. A third approach uses magnetic components; this costs $80,000, with a 70 percent chance of success. DriveTek Research can work on only one approach at a time and has time to try only two approaches. If it tries either the magnetic or electronic method and the attempt fails, the second choice must be the mechanical method to guarantee a successful model. The management of DriveTek Research needs help in incorporating this information into a decision to proceed or not.
63
[Source: The tape drive example is adapted from Spurr and Bonini, Statistical Analysis for Business Decisions, Irwin.]
64
Figure 4.6 Nodes and Symbols Type of Node Written Symbol Decision square Event circle Terminal endpoint
Terminal Values
Each terminal node has an associated terminal value, sometimes called a payoff value, outcome value, or endpoint value. Each terminal value measures the result of a scenario: the sequence of decisions and events on a unique path leading from the initial decision node to a specific terminal node. To determine the terminal value, one approach assigns a cash flow value to each decision branch and event branch and then sum the cash flow values on the branches leading to a terminal node to determine the terminal value. In the DriveTek problem, there are distinct cash flows associated with many of the decision and event branches. Some problems require a more elaborate value model to determine the terminal values. The following diagram shows the arrangement of branch names, probabilities, and cash flow values on an unsolved tree.
65
Figure 4.7
Use mechanical method -$120,000 0.5 Electronic success 0.5 Awarded contract $250,000 Try electronic method -$50,000 $0 0.5 Electronic failure -$120,000 0.7 Magnetic success Prepare proposal Try magnetic method -$50,000 -$80,000 0.3 Magnetic failure -$120,000 0.5 Not awarded contract $0 $0
To build the decision tree, you use TreePlans dialog boxes to develop the structure. You enter a branch name, branch cash flow, and branch probability (for an event) in the cells above and below the left side of each branch. As you build the tree diagram, TreePlan enters formulas in other cells.
66
Figure 4.8
Figure 4.9
A 1 2 3 4 5 6 7 8 9 B C D Decision 1 0 0 1 0 Decision 2 0 0 0 0 E F G
3.
Do not type the quotation marks in the following instructions. Select cell D2, and enter Prepare proposal. Select cell D4, and enter 50000. Select cell D7, and enter Don't prepare proposal.
Figure 4.10
A 1 2 3 4 5 6 7 8 9 B C D E F G
4.
Select cell F3. From the Tools menu, choose Decision Tree. In the TreePlan Terminal dialog box, select Change To Event Node, select Two Branches, and click OK. The tree is redrawn.
67
Figure 4.11
Figure 4.12
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 B C D E F G H 0.5 Event 3 -50000 Prepare proposal -50000 -50000 0 0.5 Event 4 -50000 2 0 Don't prepare proposal 0 0 0 0 -50000 -50000 I J K
5.
Select cell H2, and enter Awarded contract. Select cell H4, and enter 250000. Select cell H7, and enter Not awarded contract.
68
Figure 4.13
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 B C D E F G I 0.5 Awarded contract 250000 200000 H J K
0 0 0
6.
Select cell J3. From the Tools menu, choose Decision Tree. In the TreePlan Terminal dialog box, select Change To Decision Node, select Three Branches, and click OK. The tree is redrawn.
Figure 4.14
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 B C D E F G H I J K L Decision 5 200000 0 0.5 Awarded contract 1 250000 200000 0 200000 200000 M N O
Decision 6 200000
Prepare proposal -50000 75000 0.5 Not awarded contract 1 75000 0 -50000
-50000
7.
Select cell L2, and enter Use mechanical method. Select cell L4, and enter 120000. Select cell L7, and enter Try electronic method. Select cell L9, and
69
enter 50000. Select cell L12, and enter Try magnetic method. Select cell L14, and enter 80000. Figure 4.15
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 B C D E F G H I J K L M N O
Use mechanical method 80000 -120000 0.5 Awarded contract 2 250000 150000 -50000 150000 80000
Prepare proposal -50000 50000 0.5 Not awarded contract 1 50000 0 -50000
-50000
8.
Select cell N8. From the Tools menu, choose Decision Tree. In the TreePlan Terminal dialog box, select Change To Event Node, select Two Branches, and click OK. The tree is redrawn.
70
Figure 4.16
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 B C D E F G H I J K L M N O P Q R S Use mechanical method 80000 -120000 80000 0.5 Event 8 0.5 Awarded contract 2 250000 150000 -50000 150000 0.5 Event 9 150000 0 Prepare proposal -50000 50000 Try magnetic method 120000 -80000 0.5 Not awarded contract -50000 0 -50000 120000 150000 150000 Try electronic method 0 150000
1 50000
9.
Select cell P7, and enter Electronic success. Select cell P12, and enter Electronic failure. Select cell P14, and enter 120000.
71
Figure 4.17
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 B C D E F G H I J K L M N O P Q R S Use mechanical method 80000 -120000 80000 0.5 Electronic success 0.5 Awarded contract 3 250000 120000 -50000 90000 0.5 Electronic failure 30000 -120000 Prepare proposal -50000 35000 Try magnetic method 120000 -80000 0.5 Not awarded contract -50000 0 -50000 120000 30000 150000 Try electronic method 0 150000
1 35000
10.
Select cell N18. From the Tools menu, choose Decision Tree. In the TreePlan Terminal dialog box, select Change To Event Node, select Two Branches, and click OK. The tree is redrawn.
72
Figure 4.18
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 B C D E F G H I J K L M N O P Q R S Use mechanical method 80000 -120000 80000 0.5 Electronic success 150000 0.5 Awarded contract 3 250000 120000 Try electronic method -50000 90000 0 150000
Prepare proposal Try magnetic method -50000 35000 -80000 120000 0.5 Event 11 0 120000
120000
11.
Select cell P16, and enter .7. Select cell P17, and enter Magnetic success. Select cell P21, and enter .3. Select cell P22, and enter Magnetic failure. Select cell P24, and enter 120000.
73
Figure 4.19
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 B C D E F G H I J K L M N O P Q R S Use mechanical method 80000 -120000 80000 0.5 Electronic success 150000 0.5 Awarded contract 2 250000 90000 Try electronic method -50000 90000 0 150000
0.7 Magnetic success Prepare proposal Try magnetic method -50000 20000 -80000 84000 0.3 Magnetic failure 0 -120000 1 20000 0.5 Not awarded contract -50000 0 -50000 0 0 120000 120000
12.
Double-click the sheet tab (or right-click the sheet tab and choose Rename from the shortcut menu), and enter Original. Save the workbook.
Branch Name Prepare proposal Awarded contract Try electronic method Electronic failure (Use mechanical method) Terminal value
TreePlan put the formula =SUM(P14,L11,H12,D20) into cell S13 for determining the terminal value.
74
Other formulas, called rollback formulas, are in cells below and to the left of each node. These formulas are used to determine the optimal choice at each decision node. In cell B26, a formula displays 1, indicating that the first branch is the optimal choice. Thus, the initial choice is to prepare the proposal. In cell J11, a formula displays 2, indicating that the second branch (numbered 1, 2, and 3, from top to bottom) is the optimal choice. If awarded the contract, DriveTek should try the electronic method. A subsequent chapter provides more details about interpretation.
14.On sheet Original (2), select cell H9. From the Tools menu, choose Decision Tree. In the TreePlan Select dialog box, verify that the option button for Cells with Probabilities is selected, and click OK. With all probability cells selected, click the Align Left button. Figure 4.21
15.
Select cell H12. From the Tools menu, choose Decision Tree. In the TreePlan Select dialog box, verify that the option button for Cells with Partial Cash Flows is selected, and click OK. With all partial cash flow cells selected, click the Align Left button. With those cells still selected, choose Format | Cells. In the Format Cells dialog box, click the Number tab. In the Category list box, choose
75
Currency; type 0 (zero) for Decimal Places; select $ in the Symbol list box; select -$1,234 for Negative Numbers. Click OK. Figure 4.22
16.
Select cell I12. From the Tools menu, choose Decision Tree. In the TreePlan Select dialog box, verify that the option button for Cells with Rollback EVs/CEs is selected, and click OK. With all rollback cells selected, choose Format | Cells. Repeat the Currency formatting of step 16 above. Select cell S3. From the Tools menu, choose Decision Tree. In the TreePlan Select dialog box, verify that the option button for Cells with Terminal Values is selected, and click OK. With all terminal value cells selected, choose Format | Cells. Repeat the Currency formatting of step 16 above.
17.
76
Figure 4.23
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 B C D E F G H I J K L M N O P Q R S Use mechanical method $80,000 -$120,000 $80,000 0.5 Electronic success $150,000 0.5 Awarded contract 2 $250,000 $90,000 Try electronic method -$50,000 $90,000 $0 $150,000
0.7 Magnetic success Prepare proposal Try magnetic method -$50,000 $20,000 -$80,000 $84,000 0.3 Magnetic failure $0 -$120,000 1 $20,000 0.5 Not awarded contract -$50,000 $0 -$50,000 $0 $0 $120,000 $120,000
18.
Double-click the Original (2) sheet tab (or right-click the sheet tab and choose Rename from the shortcut menu), and enter Formatted. Save the workbook.
20.
77
Figure 4.24
Explanation: A custom number format has four sections of format codes. The sections are separated by semicolons, and they define the formats for positive numbers, negative numbers, zero values, and text, in that order. When you specify three semicolons without format codes, Excel does not display positive numbers, negative numbers, zero values, or text. The formula remains in the cell, but its result is not displayed. Later, if you want to display the result, you can change the format without having to enter the formula again. Editing an existing format does not delete it. All formats are saved with the workbook unless you explicitly delete a format. 21. Select cell A27. From the Tools menu, choose Decision Tree. In the TreePlan Select dialog box, verify that the option button for Cells with Rollback EVs/CEs is selected, and click OK. With all rollback values selected, choose Format | Cells | Number. In the Category list box, select Custom. Scroll to the bottom of the Type list box, and select the three-semicolon entry. Click OK. Double-click the Formatted (2) sheet tab (or right-click the sheet tab and choose Rename from the shortcut menu), and enter Model Inputs. Save the workbook.
22.
78
25.
Figure 4.25
Use mechanical method $80,000 -$120,000 0.5 Electronic success $150,000 0.5 Awarded contract $250,000 Try electronic method -$50,000 $0 0.5 Electronic failure $30,000 -$120,000 0.7 Magnetic success Prepare proposal Try magnetic method -$50,000 -$80,000 0.3 Magnetic failure $0 -$120,000 0.5 Not awarded contract -$50,000 $0 $0 $120,000
79
Alternative Model
If you want to emphasize that the time constraint forces DriveTek to use the mechanical approach if they try either of the uncertain approaches and experience a failure, you can change the terminal nodes in cells R13 and R23 to decision nodes, each with a single branch. Figure 4.26
Use mechanical method $80,000 -$120,000 0.5 Electronic success $150,000 0.5 Awarded contract $250,000 Try electronic method -$50,000 $0 0.5 Electronic failure $0 0.7 Magnetic success Prepare proposal Try magnetic method -$50,000 -$80,000 0.3 Magnetic failure $0 0.5 Not awarded contract -$50,000 $0 Use mechanical method $0 -$120,000 $0 $120,000
80
Payoff Distribution
Each strategy has an associated payoff distribution, sometimes called a risk profile. The payoff distribution of a particular strategy is a probability distribution showing the probability of obtaining each terminal value associated with a particular strategy. In decision tree models, the payoff distribution can be shown as a list of possible payoff values, x, and the discrete probability of obtaining each value, P(X=x), where X represents the uncertain terminal value associated with a strategy. Since a strategy specifies a choice at each decision node, the uncertainty about terminal values depends only on the occurrence of events. The probability of obtaining a specific terminal value equals the product of the probabilities on the event branches on the path leading to the terminal node.
DriveTek Strategies
In this section each strategy of the DriveTek problem is described by a shorthand statement and a more detailed statement. The possible branches following a specific strategy are shown in decision tree form, and the payoff distribution is shown in a table with an explanation of the probability calculations.
Strategy 1 (Mechanical): Prepare; if awarded, use mechanical. Details: Prepare the proposal; if not awarded the contract, stop (payoff = -$50,000); if awarded the contract, use the mechanical method (payoff = $80,000).
81
Figure 4.27
Use mechanical method $80,000
0.5 Electronic success $150,000 0.5 Awarded contract Try electronic method 0.5 Electronic failure $30,000
0.7 Magnetic success Prepare proposal Try magnetic method 0.3 Magnetic failure $0 $120,000
Figure 4.28 Value, x $80,000 -$50,000 Probability P(X=x) 0.50 0.50 1.00
Strategy 2 (Electronic): Prepare; if awarded, try electronic. Details: Prepare the proposal; if not awarded the contract, stop (payoff = -$50,000); if awarded the contract, try the electronic method; if the electronic method is successful, stop (payoff = $150,000); if the electronic method fails, use the mechanical method (payoff = $30,000).
82
Figure 4.29
Use mechanical method $80,000
0.5 Electronic success $150,000 0.5 Awarded contract Try electronic method 0.5 Electronic failure $30,000
0.7 Magnetic success Prepare proposal Try magnetic method 0.3 Magnetic failure $0 $120,000
Figure 4.30 Value, x $150,000 $30,000 -$50,000 Probability P(X=x) 0.25 0.25 0.50 1.00
Strategy 3 (Magnetic): Prepare; if awarded, try magnetic. Details: Prepare the proposal; if not awarded the contract, stop (payoff = -$50,000); if awarded the contract, try the magnetic method; if the magnetic method is successful, stop (payoff = $120,000); if the magnetic method fails, use the mechanical method (payoff = $0).
83
Figure 4.31
Use mechanical method $80,000
0.5 Electronic success $150,000 0.5 Awarded contract Try electronic method 0.5 Electronic failure $30,000
0.7 Magnetic success Prepare proposal Try magnetic method 0.3 Magnetic failure $0 $120,000
Figure 4.32 Value, x $120,000 $0 -$50,000 Probability P(X=x) 0.35 0.15 0.50 1.00
Strategy 4 (Don't): Don't. Details: Don't prepare the proposal (payoff = $0).
84
Figure 4.33
Use mechanical method $80,000
0.5 Electronic success $150,000 0.5 Awarded contract Try electronic method 0.5 Electronic failure $30,000
0.7 Magnetic success Prepare proposal Try magnetic method 0.3 Magnetic failure $0 $120,000
Strategy Choice
Since each strategy can be characterized completely by its payoff distribution, selecting the best strategy becomes a problem of choosing the best payoff distribution. One approach is to make a choice by direct comparison of the payoff distributions.
85
Figure 4.35 Strategy 1 (Mechanical) Probability Value, x P(X=x) $80,000 0.50 -$50,000 0.50 1.00
Strategy 2 (Electronic) Probability Value, x P(X=x) $150,000 0.25 $30,000 0.25 -$50,000 0.50 1.00
Strategy 3 (Magnetic) Probability Value, x P(X=x) $120,000 0.35 $0 0.15 -$50,000 0.50 1.00
Certainty Equivalent
A certainty equivalent is a certain payoff value which is equivalent, for the decision maker, to a particular payoff distribution. If the decision maker can determine his or her certainty equivalent for the payoff distribution of each strategy, then the optimal strategy is the one with the highest certainty equivalent. The certainty equivalent is the minimum selling price for a payoff distribution; it depends on the decision maker's personal attitude toward risk. A decision maker may be risk preferring, risk neutral, or risk avoiding. If the terminal values are not regarded as extreme (relative to the decision maker's total assets), if the decision maker will encounter other decision problems with similar payoffs, and if the decision maker has the attitude that he or she will "win some and lose some," then the decision maker's attitude toward risk may be described as risk neutral. If the decision maker is risk neutral, the expected value is the appropriate certainty equivalent for choosing among the strategies. Thus, for a risk neutral decision maker, the optimal strategy is the one with the highest expected value. The expected value of a payoff distribution is calculated by multiplying each terminal value by its probability and summing the products. The expected value calculations for each of the four strategies of the DriveTek problem are shown below.
86
Figure 4.36 Strategy 1 (Mechanical) Probability Value, x P(X=x) $80,000 0.50 -$50,000 0.50
Strategy 2 (Electronic) Probability Value, x P(X=x) $150,000 0.25 $30,000 0.25 -$50,000 0.50
Strategy 3 (Magnetic) Probability Value, x P(X=x) $120,000 0.35 $0 0.15 -$50,000 0.50
The four strategies of the DriveTek problem have expected values of $15,000, $20,000, $17,000, and $0. Strategy 2 (Electronic) is the optimal strategy with expected value $20,000. A risk neutral decision maker's choice is based on the expected value. However, note that if strategy 2 (Electronic) is chosen, the decision maker does not receive $20,000. The actual payoff will be $150,000, $30,000, or -$50,000, with probabilities shown in the payoff distribution.
87
Rollback Method
If we have a method for determining certainty equivalents (expected values for a risk neutral decision maker), we don't need to examine every possible strategy explicitly. Instead, the method known as rollback determines the single best strategy. The rollback algorithm, sometimes called backward induction or "average out and fold back," starts at the terminal nodes of the tree and works backward to the initial decision node, determining the certainty equivalent rollback values for each node. Rollback values are determined as follows: At a terminal node, the rollback value equals the terminal value. At an event node, the rollback value for a risk neutral decision maker is determined using expected value; the branch probability is multiplied times the successor rollback value, and the products are summed. At a decision node, the rollback value is set equal to the highest rollback value on the immediate successor nodes.
In TreePlan tree diagrams the rollback values are located to the left and below each decision, event, and terminal node. Terminal values and rollback values for the DriveTek problem are shown below. Figure 4.37
Use mechanical method $80,000 $80,000 0.5 Electronic success $150,000 0.5 Awarded contract $90,000 Try electronic method $90,000 $150,000 0.5 Electronic failure $30,000 $30,000 0.7 Magnetic success Prepare proposal Try magnetic method $20,000 $84,000 0.3 Magnetic failure $0 $0 0.5 Not awarded contract -$50,000 -$50,000 $120,000 $120,000
$20,000
88
Optimal Strategy
After the rollback method has determined certainty equivalents for each node, the optimal strategy can be identified by working forward through the tree. At the initial decision node, the $20,000 rollback value equals the rollback value of the "Prepare proposal" branch, indicating the alternative that should be chosen. DriveTek will either be awarded the contract or not; there is a subsequent decision only if DriveTek obtains the contract. (In a more complicated decision tree, the optimal strategy must include decision choices for all decision nodes that might be encountered.) At the decision node following "Awarded contract," the $90,000 rollback value equals the rollback value of the "Try electronic method" branch, indicating the alternative that should be chosen. Subsequently, if the electronic method fails, DriveTek must use the mechanical method to satisfy the contract. Cell B26 has the formula =IF(A27=E20,1,IF(A27=E34,2)) which displays 1, indicating that the first branch is the optimal choice. Thus, the initial choice is to prepare the proposal. Cell J11 has the formula =IF(I12=M4,1,IF(I12=M11,2,IF(I12=M21,3))) which displays 2, indicating that the second branch (numbered 1, 2, and 3, from top to bottom) is the optimal choice. If awarded the contract, DriveTek should try the electronic method. The pairs of rollback values at the relevant decision nodes ($20,000 and $90,000) and the preferred decision branches are shown below in bold.
89
Figure 4.38
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 B C D E F G H I J K L M N O P Q R S Use mechanical method $80,000 $80,000 0.5 Electronic success $150,000 0.5 Awarded contract 2 $90,000 Try electronic method $90,000 $150,000 0.5 Electronic failure $30,000 $30,000 0.7 Magnetic success Prepare proposal Try magnetic method $20,000 $84,000 0.3 Magnetic failure $0 $0 1 $20,000 0.5 Not awarded contract -$50,000 -$50,000 $120,000 $120,000
Taking into account event branches with subsequent terminal nodes, all branches and terminal values associated with the optimal risk neutral strategy are shown below.
90
Figure 4.39
Use mechanical method $80,000
0.5 Electronic success $150,000 0.5 Awarded contract Try electronic method 0.5 Electronic failure $30,000
0.7 Magnetic success Prepare proposal Try magnetic method 0.3 Magnetic failure $0 $120,000
The rollback method has identified strategy 2 (Electronic) as optimal. The rollback value on the initial branch of the optimal strategy is $20,000, which must be the same as the expected value for the payoff distribution of strategy 2. Some of the intermediate calculations for the rollback method differ from the calculations for the payoff distributions, but both approaches identify the same optimal strategy with the same initial expected value. For decision trees with a large number of strategies, the rollback method is more efficient.
91
(assuming that Newox has actually found gas). Alternatively, if gas is found, Newox can decide to keep the well instead of selling to West Gas; in this case Newox manages the gas production and takes its chances by selling the gas on the open market. At the current price of natural gas, if gas is found it would have a value of $150,000 on the open market. However, there is a possibility that the price of gas will rise to double its current value, in which case a successful well will be worth $300,000. The company's engineers feel that the chance of finding gas is 30 percent; their staff economist thinks there is a 60 percent chance that the price of gas will double.
92
following decision tree is based on information about cash flows and probability assignments. Figure 4.40
0.6 Success +$5,000 National 0.4 Failure -$1,000
0.58 Favorable
Don't Brandon Test 0.14 Success +$4,965 National 0.86 Failure -$1,035 -$35
0.42 Unfavorable
Don't -$35
Don't $0
In a decision tree model, a strategy is a specification of an initial choice and any subsequent choices that must be made by the decision maker. How many strategies are there in the Brandon problem? Describe each strategy.
93
0.58 Favorable
Don't Brandon Test 0.14 Success +$4,965 National 0.86 Failure -$1,035 -$35
0.42 Unfavorable
Don't -$35
Don't $0
94
0.58 Favorable
Don't Brandon Test 0.14 Success +$4,965 National 0.86 Failure -$1,035 -$35
0.42 Unfavorable
Don't -$35
Don't $0
95
0.58 Favorable
Don't Brandon Test 0.14 Success +$4,965 National 0.86 Failure -$1,035 -$35
0.42 Unfavorable
Don't -$35
Don't $0
96
0.58 Favorable
Don't Brandon Test 0.14 Success +$4,965 National 0.86 Failure -$1,035 -$35
0.42 Unfavorable
Don't -$35
Don't $0
97
0.58 Favorable
Don't Brandon Test 0.14 Success +$4,965 National 0.86 Failure -$1,035 -$35
0.42 Unfavorable
Don't -$35
Don't $0
98
0.58 Favorable
Don't Brandon Test 0.14 Success +$4,965 National 0.86 Failure -$1,035 -$35
0.42 Unfavorable
Don't -$35
Don't $0
Multiattribute Utility
100
Energy to produce Cost Environmental waste Customer service Selecting a best job Monetary compensation Geographical location Travel requirements Nature of work
101
Attribute Scores
Figure 5.2 Individual Utility for Life Span
Life Span
Scores for Life Span
Years 6 9 12
Score 0 0.5 1
Life Span Score
1.0
0.8
0.6
0.4
0.2
0.0 5 6 7 8 9 10 11 12 13
Score 0 0.78 1
Price Score
1.0
0.8
0.6
0.4
0.2
102
Score 0 0.667 1
Color Score
1.0
0.8
0.6
0.4
0.2
Swing Weights
Figure 5.5 Swing Weight Assessment Display
1 2 3 4 5 6 7 8 9 10 A Swing Weights B C D E F G
Consequence to Compare Attribute Swung from Worst to Best Life span Price Color Rank Rate Weight (Benchmark) 6 years $17,000 red 4 0 0.000 Life span 12 years $17,000 red 2 75 0.405 Price 6 years $8,000 red 1 100 0.541 Color 6 years $17,000 yellow 3 10 0.054 185
1) Hypothetical alternatives (number of attributes plus one) Benchmark alternative is worst for all attributes Each other hypothetical alternative has one attribute at best, all others at worst 2) Rank the hypothetical alternatives 3) Benchmark has rating zero, first ranked alternative has rating 100
103
Assign level-of-satisfaction ratings to the intermediate alternatives 4) Weight equals rating divided by sum of ratings Figure 5.6 Swing Weight Assessment Formulas
1 2 3 4 5 6 7 8 9 10 A Swing Weights B C D E F G
Consequence to Compare Attribute Swung from Worst to Best Life span (Benchmark) 6 years Life span 12 years Price 6 years Color 6 years Price Color Rank Rate Weight $17,000 red 4 0 =F6/$F$10 $17,000 red 2 75 =F7/$F$10 $8,000 red 1 100 =F8/$F$10 $17,000 yellow 3 10 =F9/$F$10 =SUM(F6:F9)
Overall Scores
Figure 5.7 Swing Weight Overall Scores Display
1 2 3 4 5 6 7 8 9 10 11 12 I Overall Scores J K L M N O P Q
Red Portalo Attribute Attribute Value Score 12 $17,000 Red 1.000 0.000 0.000 0.40541 Blue Norushi
Blue Norushi Attribute Attribute Value Score 9 $10,000 Blue 0.500 0.780 0.667 0.66038
Yellow Standard Attribute Attribute Value Score 6 $8,000 Yellow 0.000 1.000 1.000 0.59459
Yellow Standard Attribute Attribute Value Score 6 $8,000 Yellow 0.000 1.000 1.000 =SUMPRODUCT($G$7:$G$9,Q6:Q8)
=SUMPRODUCT($G$7:$G$9,K6:K8)
=SUMPRODUCT($G$7:$G$9,N6:N8)
104
Color Rate (0 to 75) Z9 Output Formula: =J12 Column Input Cell: F9 Color Rate 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 Best Blue Norushi Blue Norushi Blue Norushi Blue Norushi Blue Norushi Blue Norushi Blue Norushi Blue Norushi Blue Norushi Blue Norushi Yellow Standard Yellow Standard Yellow Standard Yellow Standard Yellow Standard Yellow Standard
Base Case
105
Other attributes might be important, e.g., comfort and prestige. The cost attribute should include operating costs, insurance, and salvage value, in addition to purchase price. It might be appropriate to combine the cost and lifetime attributes into a single attribute, e.g., cost per year. Clemen [1] suggests that a set of attributes should be complete (so that all important objectives are included), as small as possible (to facilitate analysis), not redundant (to avoid double-counting a common underlying characteristic), and decomposable (so that the decision maker can think about each attribute separately).
Dominance
An alternative can be eliminated if another alternative is better on some objectives and no worse on the others. The Garnett is more expensive than the Delta, has the same lifetime, and has a lower safety rating. So the Garnett can be eliminated from further consideration.
106
107
Assess individual utility for each attribute. Cost U($20,000)=0, U($10,000)=1, linear Lifetime U(6 years)=0, U(10 years)=1, linear Safety U(Low)=0, U(Medium)=2/3, U(High)=1 Non-Dominated Alternatives Bulldog Cruiser Delta 0.200 0.400 0.600 1.000 0.500 0.500 0.667 1.000 0.667
Compared to the assessments for individual utility, the assessments for tradeoffs are usually much more difficult to make. The following sections focus on assessments of tradeoff weights and sensitivity analysis.
108
With three attributes, the two assessed weight ratios determine two equations and the requirement that the weights sum to one determines a third equation. Using algebra, a solution for the three unknown weights is shown in cells J8:J10 in Figure 5. The formula for overall utility in cell B7, with a relative reference to the attribute utilities in B3:B5 and an absolute reference to the weights in J8:J10, is copied to cells C7:G7. The MAX worksheet function determines the maximum overall utility in B7:G7, the MATCH function determines the location of that maximum in B7:G7, and the INDEX function returns the alternative name located in B2:G2. The zero argument in the MATCH function is needed to specify that an exact match is required; the zero argument in the INDEX function is used as a placeholder and could be omitted in this application without affecting the results. Cell B13 combines these functions into a single formula. Figure 5 Formulas for Weight Ratio Assessment and Choice
A 1 2 3 4 5 6 7 8 9 10 11 12 13 Attribute Cost Lifetime Safety Overall Alta 0 1 1 =SUMPRODUCT(B3:B5,$J$8:$J$10) B Non-Dominated Alternatives H I Assess weight ratios. Weight Ratio Cost/Lifetime Cost/Safety Weights Cost Lifetime Safety Input 5 1.5 J
After deleting cells A9:B12, the single formula is in cell B9. The arrangement shown in Figure 6 is used for the remaining analyses.
109
Cost/Lifetime Weight Ratio 3.0 4.0 5.0 Cruiser Cruiser Cruiser Egret Egret Cruiser Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret
6.0 Cruiser Egret Egret Egret Egret Egret Egret Egret Egret
7.0 Cruiser Egret Egret Egret Egret Egret Egret Egret Egret
Cell P7, corresponding to the original assessments, has a border. The data table is dynamic, so the macro view may be refined near the base-case assessments by specifying different input values.
110
Cost/Lifetime Weight Ratio 4.0 4.5 5.0 Cruiser Cruiser Cruiser Cruiser Cruiser Cruiser Cruiser Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret
5.5 Cruiser Egret Egret Egret Egret Egret Egret Egret Egret
6.0 Cruiser Egret Egret Egret Egret Egret Egret Egret Egret
Figure 8 shows that the Cost/Safety weight ratio must be less than 1.2 to affect the choice. If the decision maker regards 1.2 as "far away" from 1.5, then the Egret choice is appropriate. Otherwise, the decision maker should think more carefully about the original assessments before making a choice based on this analysis. The assessment of the Cost/Lifetime weight ratio is not as critical, because any value between 4 and 6 yields the same choice.
2) 3)
111
4)
Sum the scores, as shown in cell N9. In the additive utility function, the weight for each attribute equals the score divided by sum of the scores. (The algebra solution, not shown here, is based on the special zero and one individual utility values of the hypothetical alternatives.) Formulas are shown in Figure 10.
The individual utility values are in a column, and the weights are in a row. The SUMPRODUCT function requires that the two arrays for its arguments have the same orientation, so the TRANSPOSE function converts the weights into a column format, as shown in Figure 11. The function in B7 must be array-entered; after typing the function, hold down Control and Shift while you press Enter.
112
113
Best Lifetime Overall Score Base case Score is 20 Rank 3 as long as Score is between 0 and 70 Output Formula in cell R13: =B9 Data Table Column Input Cell: M9 Detail Best Lifetime Overall Score 30 31 32 33 34 35
Choice Egret Egret Egret Egret Egret Egret Egret Cruiser Cruiser Cruiser Cruiser Cruiser Cruiser Cruiser Cruiser
Base Case
The results in the left table Figure 13, cells Q13:R28, indicate that the Best-Lifetime score must be greater than 30 to affect the choice. A refined data table in cells T13:U19 shows that the score must be greater than 33 before the choice changes from Egret to Cruiser. If the decision maker regards 33 as "far away" from 20, then the Egret choice is appropriate. Figure 14 shows a similar sensitivity analysis for the Best-Safety score. The assessed score of 70 must be greater than 89 to affect the choice.
114
Best Safety Overall Score Base case Score is 70 Rank 2 as long as Score is between 20 and 100 Output Formula in cell Y13 and cell AB13: =B9 Data Table Column Input Cell: N9 Detail Best Safety Overall Score 85 86 87 88 89 90
Choice Fleet Fleet Fleet Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Cruiser Cruiser Cruiser
Base Case
To construct a two-way data table for sensitivity analysis of the swing weight assessments as shown in Figure 15, enter a set of values in a row, R4:V4, and another set of values in a column, Q5:Q13. In the top left cell of the data table, Q4, enter a formula for determining the data table's output values, =B9. (To improve the appearance of the table, cell Q4 is formatted with a custom three-semicolon format so that the formula result is not displayed.) Select Q4:V13. Choose Data | Table. In the Data Table dialog box, specify L9 as the Row Input Cell and M9 as the Column Input Cell. Click OK.
115
50 55 60 65 70 75 80 85 90
Best Lifetime Overall Score 10 15 20 Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Egret Cruiser
The table shows that the choice changes from Egret to Cruiser if the combination of assessments is changed from 20 & 70 to 30 & 75. This table could be refined to examine the exact threshold values.
The formula in cell B9 includes an IF function to verify that each weight is between 0 and 1, inclusive, and that the sum of the weights equals one. If not, the formula returns empty text. This formula must be array-entered; after typing the function, hold down Control and Shift while you press Enter.
116
Figure 18 shows a two-way table for sensitivity analysis of the weights. Cell R5 corresponds to the approximate base case assessments in the weight ratio and swing weight methods. Figure 18 Sensitivity Analysis of Direct Weight Assessment
L M N O P Q R 1 Two-Factor Sensitivity Analysis 2 3 Cost Weight 4 0.1 0.2 0.3 0.4 0.5 5 Lifetime 0.1 Alta Cruiser Cruiser Cruiser Egret 6 Weight 0.2 Alta Alta Cruiser Cruiser Cruiser 7 0.3 Alta Alta Alta Cruiser Delta 8 0.4 Alta Alta Alta Bulldog Bulldog 9 0.5 Alta Alta Alta Bulldog Bulldog 10 0.6 Alta Alta Bulldog Bulldog 11 0.7 Alta Bulldog Bulldog 12 0.8 Alta Bulldog 13 0.9 Bulldog S T U V
0.8 Fleet
0.9
Figure 19 is a more detailed view. The choice formula in cell B9 is modified by placing the INDEX function inside the LEFT function so that only the first letter of the alternative's name is returned.
117
The results in Figure 19 show that all alternatives in this data set are candidates depending on the tradeoffs specified by the decision maker. In general, moving left to right, if more weight is given to cost, a less expensive alternative is chosen.
Summary
This paper considered three methods for assessing tradeoffs in the additive utility function. For each method sensitivity analysis is useful for gaining insight into which tradeoff assumptions are critical. Kirkwood [2] includes Excel VBA methods for sensitivity analysis of individual utility functions in addition to weights.
118
Graphical Solution
Constraints Feasible region Corner points (extreme points) Objective function value at each corner point Total enumeration vs. simplex algorithm (search) Optimal solution
Sensitivity Analysis
Post-optimality analysis and interpretation of computer print-outs Shadow price (a marginal value) (Excel Solver Sensitivity Report, Constraints section, Shadow Price) The shadow price for a particular constraint is the amount of change in the value of the objective function corresponding to a unit change in the right-hand-side value of the constraint.
120
Range on a right-hand-side (RHS) value (Excel Solver Sensitivity Report, Constraints section, Allowable Increase/Decrease) Range over which the shadow price applies. The optimal values of the decision variables would change depending on the exact RHS value, but the current mix of decision variables remains optimal over the specified range of RHS values. Range on an objective function coefficient (Excel Solver Sensitivity Report, Changing Cells section, Allowable Increase/Decrease) Range over which an objective function coefficient could change with the current optimal solution remaining optimal (same mix and values of decision variables). The value of the objective function would change depending on the exact value of the objective function coefficient. Simplex algorithm terminology Slack, surplus, and artificial variables Basic variables (variables "in the solution," typically with non-zero values) Non-basic variables (value equal to zero) Complementary slackness
121
Number to Build-> Part Name Chassis Picture Tube Speaker Cone Power Supply Electronics Per Unit By Product Total
Number to Build-> Part Name Chassis Picture Tube Speaker Cone Power Supply Electronics
TV set Stereo RHS 250 100 Used Available Slack 1 1 =SUMPRODUCT($C$7:$D$7,C8:D8) 450 =F8-E8 1 0 =SUMPRODUCT($C$7:$D$7,C9:D9) 250 =F9-E9 2 2 =SUMPRODUCT($C$7:$D$7,C10:D10) 800 =F10-E10 1 1 =SUMPRODUCT($C$7:$D$7,C11:D11) 450 =F11-E11 2 1 =SUMPRODUCT($C$7:$D$7,C12:D12) 600 =F12-E12 Profit Per Unit $75 $50 By Product =C14*C7 =D14*D7 Total =SUMPRODUCT(C7:D7,C14:D14)
122
100
123
Adjustable Cells Cell Name Original Value $C$7 Number to Build-> TV set 250 $D$7 Number to Build-> Stereo 100
Constraints Cell Name $E$8 Chassis Used $E$9 Picture Tube Used $E$10 Speaker Cone Used $E$11 Power Supply Used $E$12 Electronics Used
Status Slack Not Binding 50 Not Binding 50 Binding 0 Not Binding 50 Binding 0
124
Adjustable Cell Name $C$7 Number to Build-> TV set $D$7 Number to Build-> Stereo
Lower Limit 0 0
The profit contribution that Outdoors receives from manufacture and sale of one unit of each product is $3 for a chair, $3 for a bench, and $5 for a table. The company is trying to plan its production mix for the current selling season. They feel that they can sell any number they produce, but unfortunately production is further limited by available material because of a prolonged strike. The company currently has on hand 2,000 pounds of tubing. The three products require the following amounts of this tubing: 2 pounds per chair, 3 pounds per bench, and 4.5 pounds per table. In order to determine the optimal product mix, the production manager has formulated the linear programming problem as shown below.
125
Chair $3
Product Bench Table $3 $5 Relation <= <= <= Limit 1,000 1,200 2,000
The inventory manager suggests that the company produce 200 units of each product. Is the plan to produce 200 units of each product a feasible plan, i.e., does it satisfy all contraints? If not, which constraints are not satisfied? If the company produces 200 chairs, 200 benches, and 200 tables, how much tubing, if any, will be left over?
B.
Each of the following questions refer to the solution of the original linear programming problem. C. A local manufacturing firm has excess capacity in its welding department and has offered to sell 100 hours of welding time to Outdoors for $3 per hour. This arrangement would cost $300 and would increase welding capacity from 1,200 hours to 1,300 hours. Should Outdoors purchase the additional welding capacity? Why or why not? The marketing manager thinks that the original estimate of $3 profit contribution per chair should be changed to $2.50 per chair. Should the production manager solve the linear programming problem again using the $2.50 value, or should Outdoors go ahead with the plan to produce 700 chairs, zero benches, and 133 tables? Why or why not? A local metal products distributor has offered to sell Outdoors some additional metal tubing for 60 cents per pound. Should Outdoors buy additional tubing at this price? If so, how much would their contribution increase if they bought 500 pounds and used it in an optimal fashion? The R&D department has been redesigning the bench to make it more profitable. The new design will require 1.1 hours of tube bending time, 2 hours of welding time, and 2.0 pounds of metal tubing. If they can sell one unit of this bench with a unit contribution of $3, what effect will it have on overall contribution? Marketing has suggested a new patio awning that would require 1.8 hours of tube bending time, 0.5 hours of welding time, and 1.3 pounds of metal tubing.
D.
E.
F.
G.
126
What contribution must this new product have to make it attractive to produce this season? H. Outdoors, Inc., has a chance to sell some of its capacity in tube bending at a price of $1.50 per hour. If it sells 200 hours at that price, how will this affect contribution? If Outdoors, Inc., feels that it must produce benches to round out its production line, what effect will production of benches have on overall contribution?
I.
Spreadsheet Model
Figure 6.8 Model
A B 1 Outdoors, Inc. 2 Number to Build-> 3 4 Resource Tube Bending Welding 5 Tubing 6 Per Unit 7 Profits By Product 8 Total 9 C Chair 100 1.2 0.8 2 $3 $300 $1,100 D Bench 100 1.7 0 3 $3 $300 E Table 100 1.2 2.3 4.5 $5 $500 F G H
127
Slack 0 333.33 0
Solver Reports
Figure 6.11 Answer Report
Target Cell (Max) Cell Name $C$9 Total Chair Original Value Final Value $1,100 $2,767
Adjustable Cells Cell Name Original Value Final Value $C$3 Number to Build-> Chair 100 700 $D$3 Number to Build-> Bench 100 0 $E$3 Number to Build-> Table 100 133.33
Constraints Cell Name $F$4 Tube Bending Used $F$5 Welding Used $F$6 Tubing Used
Cell Value Formula Status 1000 $F$4<=$G$4 Binding 866.67 $F$5<=$G$5 Not Binding 2000 $F$6<=$G$6 Binding
Slack 0 333.33 0
128
Uncertain Quantities
Are any values in the range between 1000 and 5000 more likely than others? No Represent the uncertainty using a uniform density function.
130
Technical point: For a continuous UQ, P(X=x) = 0. For a continuous UQ, probability is non-zero only for a range of values. For convenience in computation and assessment, we may use a continuous UQ to approximate a discrete UQ, and vice versa. In Figure 1, the range of values is 5000 1000 = 4000, which is the width of the total area under the uniform (rectangular) density function. The area of a rectangle is Width * Height = Area, and the area under the uniform density function in Figure 1 must equal 1. So, Height = Area / Base. Here the Base is 5000 1000 = 4000 units. Therefore, Height = 1/4000 = 0.00025. Figure 7.1 Uniform Density Function
0.00025
131
1.00 0.75 0.50 0.25 0.00 0 1000 2000 3000 Unit Sales, x 4000 5000 6000
Both probability mass functions (for discrete UQs) and probability density functions (for continuous UQs) have corresponding cumulative probability functions. It is important to understand the relationship between a density function and its cumulative probability function. Cumulative probability can be expressed in four ways: P(X<=x) P(X<x) P(X>=x) P(X>x) probability that UQ X is less than or equal to x probability that UQ X is strictly less than x probability that UQ X is greater than or equal to x probability that UQ X is strictly greater than x inclusive left -tail exclusive left -tail inclusive right -tail exclusive right -tail
For continuous UQs the cumulative probability is the same for inclusive and exclusive. P(X<=x) is the most common type.
132
Figure 2 is the cumulative probability function corresponding to the uniform density function shown in Figure 1. What is the probability that sales will be between 3,500 and 4,000 units? P(3500<=X<=4000) = 0.125 P(3500<=X<=4000) = P(X<=4000) P(X<=3500) = 0.750 0.625 = 0.125 Mathematical observation: The uniform density function is a constant; the corresponding cumulative function (the integral of the constant function) is linear.
Are any values in the range between 1000 and 5000 more likely than others? Yes, values close to 5000 are much more likely than values close to 1000. Represent the uncertainty using a ramp density function. The area of a triangle is Base * Height / 2, and the area under the ramp density function in Figure 3 must equal 1. So, Height = 2 / Base. Here, the Base is 5000 1000 = 4000 units. Therefore, Height = 2 / 4000 = 0.0005.
133
0.0005
1.00 0.75 0.50 0.25 0.00 0 1000 2000 3000 Unit Sales, x 4000 5000 6000
134
An important observation is that flatter portions of a cumulative probability function correspond to ranges with low probability. Steeper portions of a cumulative probability function correspond to ranges with high probability. What is the probability that sales will be between 3,500 and 4,000 units? P(3500<=X<=4000) = 0.171875 P(3500<=X<=4000) = P(X<=4000) P(X<=3500) = 0.562500 0.390625 = 0.171875 The ramp density may not be appropriate for describing uncertainty in many situations, but it is an important building block for the extremely useful triangular density function. Mathematical observation: The ramp density function is linear; the corresponding cumulative function (the integral of the linear function) is quadratic.
Are any values in the range between 1000 and 5000 more likely than others? Yes, values close to 4000 are more likely. Represent the uncertainty using a triangular density function. The area of a triangle is Base * Height / 2, and the area under the triangular density function in Figure 5 must equal 1. So, Height = 2 / Base. Here, the Base is 5000 1000 = 4000 units. Thus, Height = 2 / 4000 = 0.0005.
135
0.0005
1.00 0.75 0.50 0.25 0.00 0 1000 2000 3000 Unit Sales, x 4000 5000 6000
136
Again, an important observation is that flatter portions of a cumulative probability function correspond to ranges with low probability (the range close to 1000 and the range close to 5000 in Figure 6). Steeper portions of a cumulative probability function correspond to ranges with high probability (the range close to 4000). What is the probability that sales will be between 3,500 and 4,000 units? P(3500<=X<=4000) = 0.229167 P(3500<=X<=4000) = P(X<=4000) P(X<=3500) = 0.750000 0.520833 = 0.229167 The triangular density function is extremely useful for describing uncertainty in many situations. It requires only three inputs: minimum, mode (most likely value), and maximum. Mathematical observation: The triangular density function has two linear segments, i.e., piecewise linear; the corresponding cumulative function (the integral of each linear function) is two quadratic segments, i.e., piecewise quadratic.
8
D E F G
138
140
accumulated cash will include net cash flow (income minus expense) in each of the three years, interest from CDs received at the end of the second and third years, and cash from the sale of the property at the end of the third year. In your initial analysis you have decided to ignore depreciation and other issues related to income taxes. Instead of purchasing the apartment building, you could invest the entire $2,000,000 in certificates of deposits yielding 5 percent per year.
141
$775 $1,000 15% 2.0% 9.00 $25,000 7% 5% 87.50% $2,610,848 One $775 $203,438 $25,000 $25,000 $50,000 $153,438 Two $829 $217,678 $28,750 $25,500 $54,250 $163,428 $153,438 $7,672 Three $887 $232,916 $33,063 $26,010 $59,073 $173,843 $324,538 $16,227 $2,096,240 $2,610,848 $2,000,000 $2,100,000 $2,205,000 $100,000 $105,000 $110,250 $2,315,250
Unit monthly rent Annual rental income Annual maintenance cost Annual property tax Total annual expenses Operating cash flow CD investment Year-end CD interest Sale receipt Final Cash Value CD investment Year-end CD interest Final Cash Value
142
775 1000 0.15 0.02 9 25000 0.07 0.05 =(F7+F6*B4)/100 =D34 One Two Three =B4 =B20*(1+$B$12) =C20*(1+$B$12) =B20*25*$B$15*12 =C20*25*$B$15*12 =D20*25*$B$15*12 =B6*25 =B11 =SUM(B23:B24) =B21-B25 =(1+$B$7)*B23 =(1+$B$8)*B24 =SUM(C23:C24) =C21-C25 =B27 =B13*C29 =(1+$B$7)*C23 =(1+$B$8)*C24 =SUM(D23:D24) =D21-D25 =C27+C29+C30 =B13*D29 =D21*B9 =SUM(D27:D32) 2000000 =B13*B36 =B36+B37 =B13*C36 =C36+C37 =B13*D36 =D36+D37
Unit monthly rent Annual rental income Annual maintenance cost Annual property tax Total annual expenses Operating cash flow CD investment Year-end CD interest Sale receipt Final Cash Value CD investment Year-end CD interest Final Cash Value
143
Base Case model Use Solver to find optimum rent to maximize final cash value Use Sensit.xla Plot of final cash value depending on rent; relatively insensitive Use Sensit.xla Spider Sensitivity Cases Ranges based on decision makers or experts judgment Sensit.xla Tornado chart: identify critical variables Monte Carlo simulation RiskSim.xla Triangular distributions for critical variables What is probability that final cash will be less than $2,315,250?
144
1 $50,000.00 $100,000.00 0.15 $53.00 3300 $174,900 $23.33 $3,300 $80,289 $94,611 $12,043 $82,568 $20,000 $28,781 $0 $82,568 ======== $82,568 0.15 $67.31 4158 $279,875 $24.26 $6,944 $107,830 $172,045 $16,175 $155,870 $20,000 $62,500 $59,081 $96,789 ======== $96,789 0.15 $79.50 3564 $283,338 $25.23 $10,528 $100,461 $182,877 $15,069 $167,808 $20,000 $67,992 $67,992 $99,816 ======== $99,816 0.15 $63.60 3399 $216,176 $26.24 $8,904 $98,104 $118,072 $14,716 $103,357 $20,000 $38,344 $38,344 $65,013 ======== $65,013 0.15 $60.95 3300 $201,135 $27.29 $8,288 $98,354 $102,781 $14,753 $88,028 $40,493 $40,493 $47,535 ======== $47,535 0.15 $55.65 3300 $183,645 $28.38 $8,288 $101,957 $81,688 $15,294 $66,395 $30,542 $30,542 $35,853 ======== $35,853 0.15 $54.59 3432 $187,353 $29.52 $7,952 $109,264 $78,089 $16,390 $61,699 $28,382 $28,382 $33,317 ======== $33,317 0.15 $51.94 3696 $191,970 $30.70 $7,896 $121,366 $70,604 $18,205 $52,400 $24,104 $24,104 $28,296 ======== $28,296
FINANCE The @RISK Demonstration M odel : Product Launch Risk Analysis 2001-2010 2001 ======== Price No Entry Price With Entry Volume No Entry Volume With Entry Competitor Entry: Design Costs Capital Investment Operating Expense Factor Sales Price Sales Volume Sales Revenue Unit Production Cost Overhead Cost of Goods Sold Gross Margin Operating Expense Net Before Tax Depreciation Tax Taxes Owed Net After Tax Net Cash Flow NPV 10% 2002 ======== 2003 ======== $70.00 $53.00 3500 3300 2004 ======== $88.20 $67.31 4340 4158 2005 ======== $119.00 $79.50 6580 3564 2006 ======== $112.70 $63.60 5565 3399 2007 ======== $99.40 $60.95 5180 3300 2008 ======== $94.50 $55.65 5180 3300 2009 ======== $91.70 $54.59 4970 3432 2010 ======== $90.30 $51.94 4935 3696
1 $50,000.00 $100,000.00 0.15 $53.00 3300 $174,900 $23.33 $3,300 $80,289 $94,611 $12,043 $82,568 $20,000 $28,781 $0 $82,568 ======== $82,568 0.15 $67.31 4158 $279,875 $24.26 $6,944 $107,830 $172,045 $16,175 $155,870 $20,000 $62,500 $59,081 $96,789 ======== $96,789 0.15 $79.50 3564 $283,338 $25.23 $10,528 $100,461 $182,877 $15,069 $167,808 $20,000 $67,992 $67,992 $99,816 ======== $99,816 0.15 $63.60 3399 $216,176 $26.24 $8,904 $98,104 $118,072 $14,716 $103,357 $20,000 $38,344 $38,344 $65,013 ======== $65,013 0.15 $60.95 3300 $201,135 $27.29 $8,288 $98,354 $102,781 $14,753 $88,028 $40,493 $40,493 $47,535 ======== $47,535 0.15 $55.65 3300 $183,645 $28.38 $8,288 $101,957 $81,688 $15,294 $66,395 $30,542 $30,542 $35,853 ======== $35,853 0.15 $54.59 3432 $187,353 $29.52 $7,952 $109,264 $78,089 $16,390 $61,699 $28,382 $28,382 $33,317 ======== $33,317 0.15 $51.94 3696 $191,970 $30.70 $7,896 $121,366 $70,604 $18,205 $52,400 $24,104 $24,104 $28,296 ======== $28,296
145
FINANCE The @RISK Demonstratio Product Launch Risk Analysis 2001-20 2001 ======== Price No Entry Price With Entry Volume No Entry Volume With Entry Competitor Entry: Design Costs Capital Investment Operating Expense Factor Sales Price Sales Volume Sales Revenue Unit Production Cost Overhead Cost of Goods Sold 2002 ======== =C2 =C3 =C4 =C5 =C6 =C7 =C8 =C9 =IF($C$24=0,E20,E21) =IF($C$24=0,E22,E23) =(E30*E31) =C10 =C11 =(E31*E33)+E34 =$E$28 =IF($C$24=0,F20,F21) =IF($C$24=0,F22,F23) =(F30*F31) =1.04*E33 6944 =(F31*F33)+F34 2003 ======== =1.26*E20 =1.27*E21 =1.24*E22 =1.26*E23 2004 ========
146
Competitor Entry
Price w/ Entry$40.00
$68.00
32.00
15.50
Volume w/ Entry
2,800
3,800
Capital Investment
$140,000
$60,000
23.0%
6.5%
Design Costs
$63,000
$37,000
Overhead
$4,000 $2,800
$50.00 $90.00
NPV 10%
147
$50.00
$90.00
Competitor Entry
32.00
15.50
Volume No Entry
3,100
3,900
23.0%
6.5%
Capital Investment
$140,000
$60,000
Design Costs
$63,000
$37,000
Overhead
$4,000 $2,800
Price w/ Entry
$40.00 $68.00
Volume w/ Entry
2,800 3,800
$100,000 $200,000 $300,000 $400,000 $500,000 $600,000 $700,000 $800,000 $900,000 $1,000,00 $1,100,00 0 0 NPV 10%
148
Var Cost Normal Machine Failure Poisson Equipment Unit Price Failure Cost Fixed Cost Discount Rate Year Demand Var Cost Failures Cash Flow NPV
$0 $8 $8,000 $12,000 10% Initial Zero 16,000 $4.00 4 $20,000 One 19,000 $4.00 4 $32,000 Two 21,000 $4.00 4 $40,000
$0 $74,681
Formula in B25: =-B15 Formula in C25: =C22*($B16-C23)-C24*$B17-$B18 Copy to D25:E25 Formula in B27: =B25+NPV(B19,C25:E25)
149
Var Cost Normal Machine Failure Poisson Equipment Unit Price Failure Cost Fixed Cost Discount Rate Year Demand Var Cost Failures Cash Flow NPV
$60,000 $8 $6,000 $12,000 10% Initial Zero 19,000 $3.50 3 $55,500 One 23,000 $3.50 3 $73,500 Two 26,000 $3.50 3 $87,000
-$60,000 $116,563
=-B15 =B25+NPV(B19,C25:E25)
150
Mean St. Dev. Mean St. Error Minimum First Quartile Median Third Quartile Maximum Skewness
RiskSim Cumulative Chart, 09-Apr-01, 07:07 PM 1.0 0.9 Cumulative Probability 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 -$100,000 -$50,000 $0 $50,000 $100,000 $150,000 $200,000 $250,000
NPV
151
Mean St. Dev. Mean St. Error Minimum First Quartile Median Third Quartile Maximum Skewness
RiskSim Cumulative Chart, 09-Apr-01, 07:08 PM 1.0 0.9 Cumulative Probability 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 -$100,00 -$50,000 0 $0 $50,000 $100,00 $150,00 $200,00 $250,00 $300,00 $350,00 0 0 0 0 0 0 NPV
152
Follow these instructions to show two or more risk profiles on the same chart. Use RiskSim to obtain the sorted values, cumulative probabilities, and XY charts for strategy A and strategy B. To add the data for strategy B to the existing plot for strategy A, select the sorted values and cumulative probabilities for strategy B (without including the text labels in row 1), and choose Edit | Copy. Click just inside the outer border of the strategy A chart to select it. From the main menu, choose Edit | Paste Special. In the Paste Special dialog box, select "Add cells as New series," select "Values (Y) in Columns," check the box for "Categories (X Values) in First Column," and click OK. Use the same method to add data for other strategies to the strategy A chart. To change the lines and markers of a data series, click a data point on the chart to select the data series, and choose Format | Selected Data Series | Patterns. If the X values are quite different for the various strategies, it may be necessary to adjust the minimum and maximum values on the Scale tab of the Format Axis dialog box.
153
Process 1
0.8 0.7
Process 2
Cumulative Probability
-$50,000
$0
$50,000
$100,000
$150,000
$200,000
$250,000
$300,000
$350,000
NPV
154
10
156
Performance measures Equilibrium Average waiting time Average number of customers in line System utilization, rho = mean arrival rate / mean service rate Stable system: rho < 1 Figure 10.2 Influence Chart for Simulation Model
Total Cost
Cost of Delays
Number Delayed
Number Delayed
Number Delayed
Number To Unload
Actually Unloaded
Number To Unload
Actually Unloaded
Number To Unload
Actually Unloaded
Unloading Capacity
157
158
Simulation
45 40 Frequency of 100 50-Day Trials 35 30 25 20 15 10 5 0 5000 20000 35000 50000 65000 80000 95000 Annual Cost of Delays
159
160
11
object of analysis: person, thing, business entity, etc. characteristic of interest: weight, hair color, diameter, sales, etc. measurement of the characteristic: pounds, blond/brunette/red/etc., inches, dollars, etc.
Categorical Measure
also called qualitative measure assign a category level to each object of analysis Nominal Measure: simple classification, "assign a name" Ordinal Measure: ranked categories, "assign an ordered classification"
Numerical Measure
also called quantitative measure assign a numerical value to each object of analysis Interval Measure:, rankings and numerical differences are meaningful Ratio Measure: natural zero and numerical ratios are meaningful
162
163
Distribution Shapes
Figure 11.1 Positively Skewed Distribution (Skewed to the Right)
Frequency
Value
In a distribution with positive skew, the mean is greater than the median. Figure 11.2 Negatively Skewed Distribution (Skewed to the Left)
Frequency
Value
In a distribution with negative skew, the mean is less than the median.
164
Frequency
Value
In a symmetric distribution, the mean and median are equal. Figure 11.4 Bimodal Distribution
Frequency
Value
In a bimodal distribution, there is often a distinguishing characteristic for the two groups of data that have been combined into a single distribution.
12
6 7
166
If a goal is to find a model with small standard error of estimate (approx. standard deviation of residuals), use the t-stat screening method. Disregard the tstat for the intercept. If there are X variables with a t-stat between -1 and +1, remove the single X variable whose t-stat is closest to zero, and rerun the regression. Remove only one X variable at a time. Before using the final model, examine each plot of residuals vs X to verify that the random scatter is the same for all values of X. If there is more scatter for higher values of X, consider using a log transformation of X in the model (instead of using X itself). If the scatter is not uniform with respect to X, the standard error of estimate may not be a useful measure of uncertainty because it overstates the uncertainty for some values of X and understates the uncertainty for other values of X.
11
13
Value
Time
168
Positive Nonlinear
Positive Linear
Value
Negative Linear
No Trend
Time
Figure 13.3 Typical Quarterly Seasonal Time Series with Linear Trend
Value 1
9 10 11 12 13 14 15 16 17 18 19 20 Quarter
169
Value
1 2 3
4 5
6 7
9 1 1 1 1 1 1 1 1 1 1 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 0 1 2 3 4 5 6 7 8 9
Quarter
Strong seasonal pattern, no trend during first 12 quarters, positive trend during middle 12 quarters, no trend during last 12 quarters
170
14
172
8 9
10
11
12
14
173
time series forecast usually extrapolates beyond the original range of data, so the standard error of estimate is a minimum indication of the uncertainty surrounding a forecast.
Residual 1
8 Time
10
11
12
13
14
15
174
Residual 1
8 Time
10
11
12
13
14
15
Residual 1
8 Time
10
11
12
13
14
15
15
4. 5. 6.
Enter a list of input values in a column (N3:N13). Enter a formula for determining output values at the top of an empty column on the right of the input values (=A10 in cell O2). Select the data table range (N2:O13).
176
7.
Figure 15.2
M 1 2 3 4 5 6 7 8 9 10 11 12 13 14 N O +$100 0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00 P =A10
8.
In the Data Table dialog box, select the Column Input Cell edit box. Type the model input cell (H1), or point to the model input cell (in which case the edit box displays $H$1). Click OK.
Figure 15.3
9.
The Data Table command substitutes each input value into the model input cell, recalculates the worksheet, and displays the corresponding model output value in the table. Optional: Change the formula in cell O2 to =CHOOSE(B9,Introduce,Dont).
10.
177
Figure 15.4
M 1 2 3 4 5 6 7 8 9 10 11 12 13 14 N O P(High Sales) Exp. Value 0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00 0 0 0 0 0 50 100 150 200 250 300 P
0.70 Magnetic success Prepare proposal Try magnetic method -$50,000 +$20,000 -$80,000 +$84,000 0.30 Magnetic failure $0 -$120,000 1 +$20,000 0.50 Not awarded contract -$50,000 $0 -$50,000 $0 $0 +$120,000 +$120,000
178
Optional: Activate the Base Case worksheet. From the Edit menu, choose Move Or Copy Sheet. In the Move Or Copy dialog box, check the box for Create A Copy, and click OK. Double-click the new worksheet tab and enter Strategy Region Table.
179
From the Data menu, choose Table. In the Table dialog box, type P16 in the Row Input Cell edit box, type P6 in the Column Input Cell edit box, and click OK. With cells V2:AG13 still selected, click the Align Right button. Figure 15.7
U 1 2 3 P(Elec OK) 4 5 6 7 8 9 10 11 12 13 V Elec 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 W X P(Mag OK) 0.0 0.1 Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech Mech Mech Mech Mech Mech Y 0.2 Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech Z 0.3 Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech AA 0.4 Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech AB 0.5 Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech AC 0.6 Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech AD 0.7 Elec Elec Elec Elec Elec Elec Mag Mag Mag Mag Mag AE 0.8 Elec Elec Elec Elec Elec Mag Mag Mag Mag Mag Mag AF 0.9 Elec Elec Elec Elec Mag Mag Mag Mag Mag Mag Mag AG 1.0 Elec Elec Elec Mag Mag Mag Mag Mag Mag Mag Mag
Embellishments
Select cells U1:AG13, and click the Copy button. Select cell AI1, right-click, and from the shortcut menu choose Paste Special. In the Paste Special dialog box, click the Values option button, and click OK. Right-click again, choose Paste Special, click the Formats option button, and click OK. Select columns AJ:AU. Choose Format | Cells | Width, type 5, and click OK. Select cell AJ2, right-click, and from the shortcut menu choose Clear Contents. Select cells AK2:AU2, move the cursor near the border of the selection until it becomes an arrow, click and drag the selection down to cells AK14:AU14. Similarly, select cell AK1 and move its contents down to cell AP15. Also, move the contents of cell AI3 to cell AI8. Select cell AN1, and enter Strategy Region Table.
180
Figure 15.8
AI 1 2 3 4 5 6 7 8 P(Elec OK) 9 10 11 12 13 14 15 AJ AK AL AM AN AO AP AQ Strategy Region Table Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.3 Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.4 Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech Mech Mech Mech Mech Mech 0.5 0.6 P(Mag OK) AR AS AT AU
1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0
Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.0
Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.1
Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.2
Elec Elec Elec Elec Elec Elec Mag Mag Mag Mag Mag 0.7
Elec Elec Elec Elec Elec Mag Mag Mag Mag Mag Mag 0.8
Elec Elec Elec Elec Mag Mag Mag Mag Mag Mag Mag 0.9
Elec Elec Elec Mag Mag Mag Mag Mag Mag Mag Mag 1.0
Apply borders to appropriate ranges and cells to show the strategy regions. Apply shading to cell AR8 to show the base case strategy. Figure 15.9
AI 1 2 3 4 5 6 7 8 P(Elec OK) 9 10 11 12 13 14 15 AJ AK AL AM AN AO AP AQ Strategy Region Table Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.3 Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.4 Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech Mech Mech Mech Mech Mech 0.5 0.6 P(Mag OK) AR AS AT AU
1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0
Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.0
Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.1
Elec Elec Elec Elec Elec Elec Mech Mech Mech Mech Mech 0.2
Elec Elec Elec Elec Elec Elec Mag Mag Mag Mag Mag 0.7
Elec Elec Elec Elec Elec Mag Mag Mag Mag Mag Mag 0.8
Elec Elec Elec Elec Mag Mag Mag Mag Mag Mag Mag 0.9
Elec Elec Elec Mag Mag Mag Mag Mag Mag Mag Mag 1.0
181
Keep same relative likelihood (base case) for the other probabilities. Figure 15.10
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 B C D E F G H 0.2 High Sales +$2,500 I J K L M N P(Low Sales) 1.00 0.90 0.80 0.70 0.60 0.50 0.40 0.30 0.20 0.10 0.00 O OptStrat Don't Don't Don't Don't Intro Intro Intro Intro Intro Intro Intro
+$1,500 +$1,500
0.5 Medium Sales +$500 +$1,500 0.3 Low Sales +$500 Base ->
-$500
Don't $0 $0 $0
Figure 15.11
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 B C D E F G H =(0.2/(0.2+0.5))*(1-H11) High Sales I J K L M N P(Low Sales) 1.00 0.90 0.80 0.70 0.60 0.50 0.40 0.30 0.20 0.10 0.00 O OptStrat =CHOOSE(B13,"Intro","Don't")
Intro
Don't
182
Income
0.15 Snowfall 400 cm 73.83 Madison Publishing 55.08 0.15 Snowfall 100 cm 40.50 25 25 56 75 100 56
183
2.5 Madison Madison Madison Madison Madison Madison Pizza Pizza Pizza
3.0 Madison Madison Madison Madison Madison Pizza Pizza Pizza Pizza
3.5 Madison Madison Madison Madison Pizza Pizza Pizza Pizza Pizza
4.0 Madison Madison Madison Madison Pizza Pizza Pizza Pizza Pizza
4.5 Madison Madison Madison Pizza Pizza Pizza Pizza Pizza Pizza
5.0 Madison Madison Madison Pizza Pizza Pizza Pizza Pizza Pizza
Mag/Income Weight Ratio 0.25 0.50 0.75 1.00 MPR MPR MPR MPR MPR MPR MPR Madison MPR MPR MPR Madison MPR MPR MPR Madison MPR MPR MPR Madison MPR MPR MPR Madison MPR MPR MPR Madison MPR MPR MPR Madison MPR MPR MPR Madison
1.50 Madison Madison Madison Madison Madison Madison Madison Madison Madison
2.00 Madison Madison Madison Madison Madison Madison Madison Madison Madison
2.50 Madison Madison Madison Madison Madison Madison Madison Madison Madison
3.00 Madison Madison Madison Madison Madison Madison Madison Madison Pizza
3.50 Madison Madison Madison Madison Madison Madison Madison Pizza Pizza
Formulas Y3 Y17
Data Tables Y3:AH11 and Y17:AH26 V3 Row Input Cell V2 Column Input Cell
184
16
186
Don't Introduce
Don't Introduce
Don't Introduce
Don't Introduce
187
0.7
Magnetic success Prepare proposal Try magnetic method +$20,000 +$84,000 +$120,000 +$120,000
0.3
Magnetic failure $0 $0
No Additional Information 1 +$20,000 +$20,000 1 0.5 Not awarded contract -$50,000 -$50,000
Use mechanical method +$80,000 +$80,000 0.5 Electronic success +$150,000 0.5 Awarded contract 3 +$120,000 Try electronic method +$90,000 +$150,000 0.5 Electronic failure +$30,000 +$30,000
1.0
2 +$30,500 Prepare proposal Try magnetic method +$35,000 +$120,000 +$120,000 Magnetic success +$120,000
0.0
Magnetic failure $0
0.7
"Magnetic Success" 1 +$35,000 0.5 Not awarded contract
$0
-$50,000 -$50,000
Use mechanical method +$80,000 +$80,000 0.5 Electronic success +$150,000 +$30,500 0.5 Awarded contract 2 +$90,000 Try electronic method +$90,000 +$150,000 0.5 Electronic failure +$30,000 +$30,000
Perfect Prediction
0.0
Magnetic success Prepare proposal Try magnetic method +$20,000 $0 +$120,000 +$120,000
1.0
Magnetic failure $0
0.3
"Magnetic Failure" 1 +$20,000 0.5 Not awarded contract
$0
-$50,000 -$50,000
188
189
-83000
Use mechanical -120000 -120000 -120000 0 Electronic success -50000 0.5 "Electronic failure" 3 0 -116000 Try electronic -50000 -170000 0 -50000
190
-89000
Use mechanical -120000 -120000 -120000 0.5 Electronic success -50000 0.3 "Magnetic failure" 2 0 -110000 Try electronic -50000 -110000 0 -50000
191
1 Magnetic success -80000 Try magnetic 0.5 "Electronic success" 0 -50000 -80000 -80000 0 -80000
Use mechanical -120000 -120000 -120000 1 Electronic success -50000 0.3 "Magnetic failure" 2 0 -50000 Try electronic -50000 -50000 0 -50000
-71000
Use mechanical -120000 -120000 -120000 0 Electronic success -50000 0.7 "Magnetic success" 3 0 -80000 Try electronic -50000 -170000 0 -50000
1 Magnetic success -80000 Try magnetic 0.5 "Electronic failure" 0 -92000 -80000 -80000 0 -80000
Use mechanical -120000 -120000 -120000 0 Electronic success -50000 0.3 "Magnetic failure" 1 0 -120000 Try electronic -50000 -170000 0 -50000
192
17
How much should Technometrics be willing to pay for a test that could evaluate the condition of the component before making the decision to ship as is or rework first?
194
Imperfect Information
An engineer at Technometrics has developed a simple test device to evaluate the component before shipping. For each component, the test device registers positive, inconclusive, or negative. The test is not perfect, but it is consistent for a particular component; that is, the test yields the same result for a given component regardless of how many times it is tested. To calibrate the test device, it was run on a batch of known good components and on a batch of know defective components. The results in the table below, based on relative frequencies, show the probability of a test device result, conditional on the true condition of the component. Figure 17.2 Likelihoods
Component Condition Good Defective 0.70 0.10 0.20 0.30 0.10 0.60
For example, of the known defective components tested, sixty percent had a negative test result. An analyst at Technometrics suggested using Bayesian revision of probabilities to combine the assessments about the reliability of the test device (shown above) with the original assessment of the components' condition (25 percent defectives). Technometrics uses expected monetary value for making decisions under uncertainty. What is the maximum (per component) the company should be willing to pay for using the test device?
195
$40.00 Ship as is $25.00 0.2500 Defective -$20.00 1 $25.00 EVUU Rework first $10.00 $10.00 0.9545 Good $40.00 Ship as is $37.27 0.5500 Positive 1 $37.27 Rework first $10.00 $10.00 0.6667 Good $40.00 Ship as is $20.00 0.2250 Inconclusive 1 $27.25 EVSP $20.00 Rework first $10.00 $10.00 0.3333 Good $40.00 Ship as is $0.00 0.2250 Negative 2 $10.00 Rework first $10.00 $10.00 0.6667 Defective -$20.00 -$20.00 $40.00 0.3333 Defective -$20.00 -$20.00 $40.00 0.0455 Defective -$20.00 -$20.00 $40.00 -$20.00 $40.00
196
Revision of Probability
Figure 17.4 Display
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 U Prior Likelihood Positive Inconclusive Negative Joint Positive Inconclusive Negative Posterior Positive Inconclusive Negative V 0.75 Good 0.7 0.2 0.1 Good 0.525 0.150 0.075 Good 0.9545 0.6667 0.3333 W X Y 0.25 = P(Main) Bad 0.1 = P(Info | Main) 0.3 0.6 Bad Preposterior 0.025 0.550 = P(Info) 0.075 0.225 0.150 0.225 Bad 0.0455 = P(Main | Info) 0.3333 0.6667
= P(Info)
= P(Main | Info)
18
198
by finding a value on the horizontal axis, scanning up to the plotted curve, and looking left to the vertical axis to determine the utility. A typical risk utility function might have the general shape shown below if you draw a smooth curve approximately through the points. Figure 18.1 Typical Risk Utility Function
1.0 0.9 0.8 Utility U(x) or Expected Utility 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 -$50,000
-$25,000
$0
$25,000
$50,000
$75,000
$100,000
$125,000 $150,000
Since more value generally means more utility, the utility function is monotonically nondecreasing, and its inverse is well-defined. On the plot of the utility function, you locate a utility on the vertical axis, scan right to the plotted curve, and look down to read the corresponding value. The concept of a payoff distribution, risk profile, gamble, or lottery is important for discussing utility functions. A payoff distribution is a set of payoffs, e.g., x1, x2, and x3, with corresponding probabilities, P(X=x1), P(X=x2), and P(X=x3). For example, a payoff distribution may be represented in decision tree form as shown below.
199
The fundamental property of a utility function is that the utility of the certainty equivalent CE of a payoff distribution is equal to the expected utility of the payoffs, i.e, U(CE) = P(X=x1)*U(x1) + P(X=x2)*U(x2) + P(X=x3)*U(x3). It follows that if you compute the expected utility (EU) of a lottery, EU = P(X=x1)*U(x1) + P(X=x2)*U(x2) + P(X=x3)*U(x3), the certainty equivalent of the payoff distribution can be determined using the inverse of the utility function. That is, you locate the expected utility on the vertical axis, scan right to the plotted curve, and look down to read the corresponding certainty equivalent. If a utility function has been determined, you can use this fundamental property to determine the certainty equivalent of any payoff distribution. Calculations for the Magnetic strategy in the DriveTek problem are shown below. First, using a plot of the utility function, locate each payoff x on the horizontal axis and determine the corresponding utility U(x) on the vertical axis. Second, compute the expected utility EU of the lottery by multiplying each utility by its probability and summing the products. Third, locate the expected utility on the vertical axis and determine the corresponding certainty equivalent CE on the horizontal axis. Figure 18.3 Calculations Using Risk Utility Function P(X=x) x U(x) P(X=x)*U(x) 0.50 -$50,000 0.00 0.0000 0.15 $0 0.45 0.0675 0.35 $120,000 0.95 0.3325 0.4000 EU -$8,000 CE
200
201
Computed values are displayed with four decimal places, but Excel's 15-digit precision is used in all calculations. For a decision maker with a risk tolerance parameter of $100,000, the payoff distribution for the Magnetic strategy has a certainty equivalent of -$7,676. That is, if the decision maker is facing the payoff distribution shown in A9:B12 in Figure 4, he or she would be willing to pay $7,676 to be relieved of the obligation. Formulas are shown in Figure 5. To construct the worksheet, enter the text in column A and the monetary values in column B. To define names, select A2:B4, and choose Insert | Name | Create. Similarly, select A6:B7, and choose Insert | Name | Create. Then enter the formulas in B6:B7. Enter formulas in C10 and D10, and copy down. Finally, enter the EU formula in D13 and the CE formula in D15. The defined names are absolute references by default.
202
Figure 6 shows results for the same payoff distribution using a simplified form of the exponential risk utility function with A = 1 and B = 1. This function could be represented as U(x) = 1EXP(x/RT) with inverse CE = RT*LN(1EU). The utility and expected utility calculations are different, but the certainty equivalent is the same. Figure 18.6 Simplified Exponential Risk Utility Results
203
Don't $0
For example, in a personal decision, you may be willing to play the game shown in Figure 7 with equally-likely payoffs of $100 and $50, but you might not play with payoffs of $100,000 and $50,000. As the better payoff increases from $100 to $100,000 (and the corresponding worse payoff increases from $50 to $50,000), you reach a value where you are indifferent between playing the game and receiving $0 for certain. At that point, the value of the better payoff is an approximation of RT for an exponential risk utility function describing your risk attitude. In a business decision for a small company, the company may be willing to play the game with payoffs of $200,000 and $100,000 but not with payoffs of $20,000,000 and -$10,000,000. Somewhere between a better payoff of $200,000 and $20,000,000, the company would be indifferent between playing the game and not playing, thereby determining the approximate RT for their business decision.
204
According to the fundamental property of a risk utility function, the utility of the certainty equivalent equals the expected utility of the lottery, so the three values are related as follows. U(CertEquiv) = 0.5*U(BetterPayoff) + 0.5*U(WorsePayoff) If you use the general form for an exponential utility function with parameters A, B, and RT, and if you simplify terms, it follows that RT must satisfy the following equation. Exp(CertEquiv/RT) = 0.5*Exp(BetterPayoff/RT) + 0.5*Exp(WorsePayoff/RT) Given the values for CE, Better, and Worse, you could use trial-and-error to find the value of RT that exactly satisfies the equation. In Excel you can use Goal Seek or Solver by creating a worksheet like Figure 9. Enter the text in column A. Enter the assessment lottery values in B2:B4. Enter a tentative RT value in B6. Select A2:B4, and use Insert | Name | Create; repeat for A6:B6 and A8:B9. Note that the parentheses symbol is not allowed in a defined name, so Excel changes U(CE) to U_CE and EU(Lottery) to EU_Lottery.
205
Figure 10 shows tentative values for the search. From the Tools menu, choose Goal Seek. In the Goal Seek dialog box, enter B11, 0, and B6. If you point to cells, the reference appears in the edit box as an absolute reference, as shown in Figure 11. Click OK.
206
The Goal Seek Status dialog box shows that a solution has been found. Click OK. The worksheet appears as shown in Figure 12. Figure 18.12 Results of Goal Seek Search
The difference between U(CE) and EU(Lottery) is not exactly zero. If you start at $250,000, the Goal Seek converges to a difference of 6.2E05 or 0.000062, which is closer to zero, resulting in a RT of $243,041. If extra precision is needed, use Solver. With Solver's default settings, the difference is 2.39E08 with RT equal to $243,261. If you change the precision from 0.000001 to 0.00000001 or an even smaller value in Solver's Options, the difference will be even closer to zero.
207
208
209
210
Process 1 Process 2 ExpUtility CertEquiv ExpValue 0.085527 0.107258 $89,407 $113,458 $90,526 $116,159
NPV values from RiskSim Summary Cell I2 has defined name RT Formulas C2 =1-EXP(-B2/RT) Copy down to C1001 G2 =1-EXP(-F2/RT) Copy down to G1001 J6 =AVERAGE(C2:C1001) K6 =AVERAGE(G2:G1001) J8 =-RT*LN(1-J6) K8 =-RT*LN(1-K6) J10 =AVERAGE(B2:B1001) K10 =AVERAGE(F2:F1001) J16 =K8-J8
211
Figure 18.17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 M N O RiskTolerance CE Process 1 CE Process 2 $5,000 $10,000 $15,000 $20,000 $25,000 $30,000 $35,000 $40,000 $45,000 $50,000 $55,000 $60,000 $65,000 $70,000 $75,000 $80,000 $85,000 $90,000 $95,000 $100,000 Formulas N2 O2 Data Table I2 -$25,597 $3,504 $23,904 $37,468 $46,811 $53,528 $58,541 $62,404 $65,459 $67,930 $69,966 $71,672 $73,119 $74,363 $75,443 $76,389 $77,224 $77,966 $78,631 $79,229 -$37,262 -$10,097 $10,897 $26,409 $38,010 $46,998 $54,184 $60,067 $64,972 $69,122 $72,675 $75,749 $78,431 $80,791 $82,882 $84,746 $86,417 $87,924 $89,288 $90,529 P Q R S T U V W X Y Z
AJS
$40,000
$20,000
$0
-$20,000
-$40,000
=J8 =K8
$0
$10,000
$20,000
$30,000
$40,000
$50,000
$60,000
$70,000
$80,000
$90,000
$100,000
-25000
25000
50000
75000
100000
125000
150000
212
213
Don't $0
$0 $0 $0 $0 $0 $0 $0
214
19
216
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
Row 3
Explanation Seasonality factor: sales are higher in quarters 2 and 4, and lower in quarters 1 and 3.
=35*B3*(B11+3000)^ 0.5 Forecast for units sold each quarter: row 3 contains the seasonality factor; row 11 contains the cost of advertising.
=B5*$B$18
Sales revenue: forecast for units sold (row 5) tim es price (cell B18).
=B5*$B$19
Cost of sales: forecast for units sold (row 5) tim es product cost (cell B19).
=B6-B7
Gross m argin: sales revenues (row 6) m inus cost of sales (row 7).
10 11 12
Sales personnel expenses. Advertising budget (about 6.3% of sales). Corporate overhead expenses: sales revenues (row 6) tim es 15%.
217
A B C D E F G H I 13 =SUM(B10:B12) Total costs: sales personnel expenses (row 10) plus 48 advertising (row 11) plus overhead (row 12). 49 50 15 =B8-B13 Product profit: gross m argin (row 8) m inus total costs 51 (row 13). 52 53 16 =B15/ B6 Profit m argin: profit (row 15) divided by sales revenue 54 (row 6). 55 56 18 Fixed values Product price. 57 58 19 Fixed values Product cost. 59 60 61 This is a typical m arketing m odel that shows sales rising from a base figure (perhaps due to the sales 62 personnel) along with increases in advertising, but with dim inishing returns. For exam ple, the first 63 $5,000 of advertising in Q1 yields about 1,092 increm ental units sold, but the next $5,000 yields only 64 about 775 units m ore. 65 66 You can use Solver to find out whether the advertising budget is too low, and whether advertising 67 should be allocated differently over tim e to take advantage of the changing seasonality factor. 68 69 Solving for a Value to Maximize Another Value 70 One way you can use Solver is to determ ine the m axim um value of a cell by changing another cell. The 71 two cells m ust be related through the form ulas on the worksheet. If they are not, changing the value in 72 one cell will not change the value in the other cell. 73 74 For exam ple, in the sam ple worksheet, you want to know how m uch you need to spend on advertising 75 to generate the m axim um profit for the first quarter. You are interested in m axim izing profit by changing 76 advertising expenditures. 77 On the Tools m enu, click Solver. In the Set target cell box, type b15 or 78 select cell B15 (first-quarter profits) on the worksheet. Select the Max option. 79 In the By changing cells box, type b11 or select cell B11 (first-quarter advertising) 80 on the worksheet. Click Solve. 81 82 83 You will see m essages in the status bar as the problem is set up and Solver starts working. After a 84 m om ent, you'll see a m essage that Solver has found a solution. Solver finds that Q1 advertising of 85 $17,093 yields the m axim um profit $15,093. 86 After you exam ine the results, select Restore original values and click OK to 87 discard the results and return cell B11 to its form er value. 88 89 90 Resetting the Solver Options 91 92 If you want to return the options in the Solver Parameters dialog box to their original settings so that 93 you can start a new problem , you can click Reset All. 94
218
A B C D E F G H I 95 Solving for a Value by Changing Several Values 96 97 You can also use Solver to solve for several values at once to m axim ize or m inim ize another value. For 98 exam ple, you can solve for the advertising budget for each quarter that will result in the best profits for 99 the entire year. Because the seasonality factor in row 3 enters into the calculation of unit sales in row 5 100 as a m ultiplier, it seem s logical that you should spend m ore of your advertising budget in Q4 when the 101 sales response is highest, and less in Q3 when the sales response is lowest. Use Solver to determ ine 102 the best quarterly allocation. 103 On the Tools m enu, click Solver. In the Set target cell box, type f15 or select 104 cell F15 (total profits for the year) on the worksheet. Make sure the Max option is 105 selected. In the By changing cells box, type b11:e11 or select cells B11:E11 106 (the advertising budget for each of the four quarters) on the worksheet. Click Solve. 107 108 After you exam ine the results, click Restore original values and click OK to 109 discard the results and return all cells to their form er values. 110 111 112 You've just asked Solver to solve a m oderately com plex nonlinear optim ization problem ; that is, to find 113 values for the four unknowns in cells B11 through E11 that will m axim ize profits. (This is a nonlinear 114 problem because of the exponentiation that occurs in the form ulas in row 5). The results of this 115 unconstrained optim ization show that you can increase profits for the year to $79,706 if you spend 116 $89,706 in advertising for the full year. 117 118 However, m ost realistic m odeling problem s have lim iting factors that you will want to apply to certain 119 values. These constraints m ay be applied to the target cell, the changing cells, or any other value that 120 is related to the form ulas in these cells. 121 122 Adding a Constraint 123 124 So far, the budget recovers the advertising cost and generates additional profit, but you're reaching a 125 point of dim inishing returns. Because you can never be sure that your m odel of sales response to 126 advertising will be valid next year (especially at greatly increased spending levels), it doesn't seem 127 prudent to allow unrestricted spending on advertising. 128 129 Suppose you want to m aintain your original advertising budget of $40,000. Add the constraint to the 130 problem that lim its the sum of advertising during the four quarters to $40,000. 131 On the Tools m enu, click Solver, and then click Add. The Add Constraint 132 dialog box appears. In the Cell reference box, type f11 or select cell F11 133 (advertising total) on the worksheet. Cell F11 m ust be less than or equal to $40,000. 134 The relationship in the Constraint box is <= (less than or equal to) by default, so 135 you don't have to change it. In the box next to the relationship, type 40000. Click 136 137 OK, and then click Solve. 138 After you exam ine the results, click Restore original values and then click OK 139 to discard the results and return the cells to their form er values. 140 141
219
A B C D E F G H I 142 The solution found by Solver allocates am ounts ranging from $5,117 in Q3 to $15,263 in Q4. Total 143 Profit has increased from $69,662 in the original budget to $71,447, without any increase in the 144 advertising budget. 145 146 Changing a Constraint 147 148 When you use Microsoft Excel Solver, you can experim ent with slightly different param eters to decide 149 the best solution to a problem . For exam ple, you can change a constraint to see whether the results 150 are better or worse than before. In the sam ple worksheet, try changing the constraint on advertising 151 dollars to $50,000 to see what that does to total profits. 152 On the Tools m enu, click Solver. The constraint, $ F$ 11<=40000, should 153 already be selected in the Subject to the constraints box. Click Change. In 154 the Constraint box, change 40000 to 50000. Click OK, and then click Solve. 155 Click Keep solver solution and then click OK to keep the results that are 156 displayed on the worksheet. 157 158 159 Solver finds an optim al solution that yields a total profit of $74,817. That's an im provem ent of $3,370 160 over the last figure of $71,447. In m ost firm s, it's not too difficult to justify an increm ental investm ent of 161 $10,000 that yields an additional $3,370 in profit, or a 33.7% return on investm ent. This solution also 162 results in profits of $4,889 less than the unconstrained result, but you spend $39,706 less to get there. 163 164 Saving a Problem Model 165 166 When you click Save on the File m enu, the last selections you m ade in the Solver Parameters 167 dialog box are attached to the worksheet and retained when you save the workbook. However, you 168 can define m ore than one problem for a worksheet by saving them individually using Save Model in 169 the Solver Options dialog box. Each problem m odel consists of cells and constraints that you 170 entered in the Solver Parameters dialog box. 171 172 When you click Save Model, the Save Model dialog box appears with a default selection, based 173 on the active cell, as the area for saving the m odel. The suggested range includes a cell for each 174 constraint plus three additional cells. Make sure that this cell range is an em pty range on the 175 worksheet. 176 On the Tools m enu, click Solver, and then click Options. Click Save Model. 177 In the Select model area box, type h15:h18 or select cells H15:H18 on the 178 worksheet. Click OK. 179 180 181 Note You can also enter a reference to a single cell in the Select model area box. Solver will use 182 this reference as the upper-left corner of the range into which it will copy the problem specifications. 183 184 185 To load these problem specifications later, click Load Model on the Solver Options dialog box, 186 type h15:h18 in the Model area box or select cells H15:H18 on the sam ple worksheet, and then 187 click OK. Solver displays a m essage asking if you want to reset the current Solver option settings with 188 the settings for the m odel you are loading. Click OK to proceed.
220
Profit Margin 16
Prod. Profit 15
Gross Margin 8
Cost of Sales 7
Sales Revenue 6
Corporate Overhead 12
Total Costs 13
Units Sold 5
Product Cost 19
Seasonality 3
Advertising 11
Product Price 18
Salesforce 10
20
222
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Problem Specifications Target Cell Changing cells Constraints D18 D9:F9 C11:C15<=B11:B15 Goal is to m axim ize profit. Units of each product to build. Num ber of parts used m ust be less than or equal to the num ber of parts in inventory. D9:F9>=0 Num ber to build value m ust be greater than or equal to 0. The form ulas for profit per product in cells D17:F17 include the factor ^ H15 to show that profit per unit dim inishes with volum e. H15 contains 0.9, which m akes the problem nonlinear. If you change H15 to 1.0 to indicate that profit per unit rem ains constant with volum e, and then click Solve again, the optim al solution will change. This change also m akes the problem linear.
21
224
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
Problem Specifications Target cell Changing cells B20 C8:G10 Goal is to m inim ize total shipping cost. Am ount to ship from each plant to each warehouse. Constraints B8:B10<=B16:B18 Total shipped m ust be less than or equal to supply at plant. C12:G12>=C14:G14 Totals shipped to warehouses m ust be greater than or equal to dem and at warehouses. C8:G10>=0 Num ber to ship m ust be greater than or equal to 0. You can solve this problem faster by selecting the Assume linear model check box in the Solver Options dialog box before clicking Solve. A problem of this type has an optim um solution at which am ounts to ship are integers, if all of the supply and dem and constraints are integers.
Minimize the costs of shipping goods from production plants to warehouses near metropolitan demand centers, while not exceeding the supply available from each plant and meeting the demand from each metropolitan area. Number to ship from plant to warehouse Warehouse Shipped Chicago Dallas New York from plant Plant San Fran Denver S. Carolina 1 1 1 1 1 5 Tennessee 1 1 1 1 1 5 Arizona 1 1 1 1 1 5 Shipped to warehouse 3 3 3 3 3 Warehouse demand 180 80 200 160 220 Shipping cost from plant to warehouse Warehouse Chicago Dallas San Fran Denver $10 $8 $6 $6 $5 $4 $3 $4 $5 $83
$5 $3 $5
New York $4 $6 $9
225
Minimize the costs of shipping goods from production plants to warehouses near metropolitan demand centers, while not exceeding the supply available from each plant and meeting the demand from each metropolitan area. Number to ship from plant to warehouse Warehouse Shipped Plant San Fran Denver Chicago Dallas New York from plant S. Carolina 1 1 1 1 1 =SUM(C10:G10) Tennessee 1 1 1 1 1 =SUM(C11:G11) Arizona 1 1 1 1 1 =SUM(C12:G12) Shipped to warehouse =SUM(C10:C12) =SUM(D10:D12) =SUM(E10:E12) =SUM(F10:F12) =SUM(G10:G12) Warehouse demand 180 80 200 160 220 Shipping cost from plant to warehouse Plant S. Carolina Tennessee Arizona Total shipping cost San Fran $10 $6 $3 Denver $8 $5 $4 Warehouse Chicago $6 $4 $5 Dallas $5 $3 $5 New York $4 $6 $9
=SUMPRODUCT(C10:G12,C19:G21)
226
227
228
22
J
230
A 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
Problem Specifications Target cell Changing cells H8 B14:G14 B15, E15, B16 Constraints B14:G14>=0 B15:B16>=0 E15>=0 B18:H18>=100000 Ending cash m ust be greater than or equal to $100,000. The optim al solution determ ined by Solver earns a total interest incom e of $16,531 by investing as m uch as possible in six-m onth and three-m onth CDs, and then turns to one-m onth CDs. This solution satisfies all of the constraints. Suppose, however, that you want to guarantee that you have enough cash in m onth 5 for an equipm ent paym ent. Add a constraint that the average m aturity of the investm ents held in m onth 1 should not be m ore than four m onths. The form ula in cell B20 com putes a total of the am ounts invested in m onth 1 (B14, B15, and B16), weighted by the m aturities (1, 3, and 6 m onths), and then it subtracts from this am ount the total investm ent, weighted by 4. If this quantity is zero or less, the average m aturity will not exceed four m onths. To add this constraint, restore the original values and then click Solver on the Tools m enu. Click Add. Type b20 in the Cell Reference box, type 0 in the Constraint box, and then click OK. To solve the problem , click Solve. To satisfy the four-m onth m aturity constraint, Solver shifts funds from six-m onth CDs to three-m onth CDs. The shifted funds now m ature in m onth 4 and, according to the present plan, are reinvested in new three-m onth CDs. If you need the funds, however, you can keep the cash instead of reinvesting. The $56,896 turning over in m onth 4 is m ore than sufficient for the equipm ent paym ent in m onth 5. You've traded about $460 in interest incom e to gain this flexibility. Investm ent in each type of CD m ust be greater than or equal to 0. Goal is to m axim ize interest earned. Dollars invested in each type of CD.
231
232
233
234
A 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
Problem Specifications Target cell Changing cells Constraints E18 E10:E14 E10:E14>=0 E16=1 G18<=0.071 Beta for each stock Variance for each stock B10:B13 C10:C13 Goal is to m axim ize portfolio return. Weight of each stock. Weights m ust be greater than or equal to 0. Weights m ust equal 1. Variance m ust be less than or equal to 0.071.
Cells D21:D29 contain the problem specifications to m inim ize risk for a required rate of return of 16.4 percent. To load these problem specifications into Solver, click Solver on the Tools m enu, click Options, click Load Model, select cells D21:D29 on the worksheet, and then click OK until the Solver Parameters dialog box is displayed. Click Solve. As you can see, Solver finds portfolio allocations in both cases that surpass the rule of 20 percent across the board. You can earn a higher rate of return (17.1 percent) for the sam e risk, or you can reduce your risk without giving up any return. These two allocations both represent efficient portfolios. Cells A21:A29 contain the original problem m odel. To reload this problem , click Solver on the Tools m enu, click Options, click Load Model, select cells A21:A29 on the worksheet, and then click OK. Solver displays a m essage asking if you want to reset the current Solver option settings with the settings for the m odel you are loading. Click OK to proceed.
235
C -1.00 1.28
E -1.00
CD3
1.32
-1.00 1.06
$500 $1,000,000 $1,000,000 $1,000,000 $100 $100 $100 $100 Cash in $1,000 $0 $0 Feasible Cash out $600 $21 $34 $493 Final balance
Cash flows from investments -$100 -$100 -$100 $0 $115 $0 $0 $0 $128 $140 $0 $0
$0 $0 -$100 $115
$0 -$100 $0 $132
-$100 $106 $0 $0
$0 -$100 $106 $0
$0 $0 -$100 $106
Legend data cells changing cells computed cells input assumptions, uncontrollable, constraints decision variables, controllable intermediate and output variables, target Defined Names Amount_Invested = $B$11:$I$11 Cash_out = $K$14:$K$17 Final_balance = $K$17 Max_to_invest = $B$9:$I$9
C -1.00 1.28
CD3
-1.00 =1+$B$2
$500 $1,000,000 $1,000,000 $1,000,000 $100 $100 $100 $100 =IF(AND(Amount_Invested< Cash in Cash out $1,000 =SUM(B14:J14) $0 =SUM(B15:J15) $0 =SUM(B16:J16) =SUM(B17:J17) Final balanc
Cash flows from investments =B4*B$11 =C4*C$11 =D4*D$11 =B5*B$11 =C5*C$11 =D5*D$11 =B6*B$11 =C6*C$11 =D6*D$11 =B7*B$11 =C7*C$11 =D7*D$11
Array-entered (Control+Shift+Enter) formula in K11: =IF(AND(Amount_Invested<=Max_to_invest,Cash_out>=0),"Feasible","Not Feasible") Enter =B4*B$11 in cell B14 and copy to cells B14:I17 Enter =SUM(B14:J14) in cell K14 and copy to K14:K17
236