07a - Simulation Modeling
07a - Simulation Modeling
1
Why is simulation useful?
2
Risk-Informed Decision Making
Appropriate and inappropriate uses of averages.
Managers manage risk.
Simulation gives us a tool to help us evaluate risk.
Risk: The uncertainty associated with an undesirable
outcome.
• Risk is not the same as just being uncertain about something,
and is not just the possibility of a bad outcome.
• Risk considers the likelihood of an undesirable outcome (e.g., the
probability) as well as the magnitude of that outcome.
3
Simulation Model
A simulation model is a computer model that imitates a
real-life situation.
Like other decision models, it has parameters (uncontroll-
able inputs), decision variables (controllable inputs), and
outputs (objective, consequences, etc.)
Simulation model incorporates uncertainty in one or more
parameters (uncontrollable inputs)
7
Process for Developing and
Using a Simulation Model
8
Selecting an Input Probability Distribution
9
Building the Simulation Model
10
Selecting the Best Value
for the Decision Variable
After the simulation is run, the distribution
for the output variables from each set of
decision variable inputs can be compared
and the “best” selected.
11
Use the Inverse of Probability Function
to Generate Random Numbers
The following inverses of probability functions are often used:
For Normal distribution: NORMINV( )
For Log-normal distribution: LOGINV( )
For Discrete Uniform Distribution: RANDBETWEEN(a,b)
For Continuous Uniform Distribution: a + (b-a)*RAND( )
14
Key Formulas in the Simulation Model
15
Key Formulas in the Simulation Model
Estimated measures:
B12: =AVERAGE(G17:G1016)
B13: =STDEV(G17:G1016)
16
Spreadsheet Simulation
Modeling With @RISK
Lab Exercise
17
Why Use @RISK
for Spreadsheet Modeling and Simulation
Due to simulation add-ins such as @RISK, spreadsheet
simulation modeling has recently become extremely
popular.
There are three primary advantages to using @RISK:
19
Using @RISK At Walton Bookstore
In August, Walton must decide how many of next year’s
nature calendars to order.
Each calendar costs $7.50 and sells for $10.
Data
To enter a distribution
function using the @RISK
menu
Select the input cell (A13.)
Click on the Define
Distribution button to
open a window
displaying the @RISK
distributions.
Select the Triang
distribution.
Click Select Distribution
button.
24
Defining the Input Distribution (Continued)
Click on Assign
Excel References
button.
Click OK when
complete.
26
Defining an Output Cell
27
Simulation Settings
29
Discussion of the Simulation Results
The Simulated Detailed Statistics
button will open a window
displaying summary statistics
including percentiles in 5%
increments for both the input and
output distributions. More
detailed information about our
inputs and outputs in the lower
part of the window. Here any
The leftmost button in the
target value or percentile can be
Results panel is the Browse
entered and @RISK calculates the
Results button. It will generate
corresponding percentile or value.
an interactive histogram for any
@RISK input or output cell in
The Simulation Data button will
your spreadsheet model. display all of the inputs and
outputs in the simulation model.
30
Output Cell Distribution
32
Using RISKSIMTABLE for Decision Making
In order to use RISKSIMTABLE function, we make two
modifications to the previous model:
List the representative order quantities in row 9.
Enter in cell B9 the formula:
RISKSIMTABLE(D9:H9)
Enter 5 for the number of simulations.
@RISK will run 5 simulations of 500 iterations each.
Each simulation uses the same 500 random demands to
evaluate each order quantity.
33
Spreadsheet Model with RISKSIMTABLE
34
@RISK Models
with Several Random Input Variables
@RISK models can handle several random variables at the
same time, each reflecting some uncertainty, and @RISK
has a very useful feature – sensitivity analysis.
Additional uncertainty at Walton bookstore:
The maximum number of calendars Walton’s supplier
can supply follows discrete distribution. The supplier
charges $7.50/calendar.
Demand 100 150 200 250 300
Probability 10% 20% 30% 20% 20%
36
Simulation Model
with Multiple Sources of Uncertainty
Random inputs:
Uncertain supply in cell A24:
RISKDISCRETE(D15:D19,E15:E19)
Uncertain customer demand in cell D24:
ROUND(RISKTRIANG(E4, E5, E6), 0)
Uncertain customer demand for sale-price calendars in
cell G24:
ROUND(RISKNORMAL(E9,E10), 0)
40