Risk6 EN PDF
Risk6 EN PDF
Risk6 EN PDF
@RISK
Risk Analysis and Simulation
Add-In for Microsoft Excel
Version 6
July, 2012
Palisade Corporation
798 Cascadilla St.
Ithaca, NY USA 14850
(607) 277-8000
(607) 277-8001 (fax)
http://www.palisade.com (website)
sales@palisade.com (e-mail)
Copyright Notice
Copyright 2012, Palisade Corporation.
Trademark Acknowledgments
Microsoft, Excel and Windows are registered trademarks of Microsoft Corporation.
IBM is a registered trademark of International Business Machines, Inc.
Palisade, TopRank, BestFit and RISKview are registered trademarks of Palisade
Corporation.
RISK is a trademark of Parker Brothers, Division of Tonka Corporation and is used under
license.
Welcome
@RISK for Microsoft Excel
Welcome to @RISK, the revolutionary software system for the
analysis of business and technical situations impacted by risk! The
techniques of Risk Analysis have long been recognized as powerful
tools to help decision-makers successfully manage situations subject
to uncertainty. Their use has been limited because they have been
expensive, cumbersome to use, and have substantial computational
requirements. However, the growing use of computers in business
and science has offered the promise that these techniques can be
commonly available to all decision-makers.
That promise has been finally realized with @RISK (pronounced at
risk) a system which brings these techniques to the industry
standard spreadsheet package, Microsoft Excel. With @RISK and
Excel any risky situation can be modeled, from business to science
and engineering. You are the best judge of what your analysis needs
require, and @RISK, combined with the modeling capabilities of
Excel, allows you to design a model which best satisfies those needs.
Anytime you face a decision or analysis under uncertainty, you can
use @RISK to improve your picture of what the future could hold.
Modeling Features
As an add-in to Microsoft Excel, @RISK links directly to Excel to
add Risk Analysis capabilities. The @RISK system provides all the
necessary tools for setting up, executing and viewing the results of
Risk Analyses. And @RISK works in a style you are familiar with
Excel style menus and functions.
@RISK
Functions
@RISK
Simulation
Analysis
Graphics
Advanced
Simulation
Capabilities
Table of Contents
High Resolution
Graphic
Displays
Product
Execution
Speed
Table of Contents
Introduction .........................................................................................3
Installation Instructions .....................................................................6
Software Activation ............................................................................8
Quick Start...........................................................................................9
An Overview of Risk Analysis
13
Introduction .......................................................................................15
What Is Risk? ....................................................................................17
What Is Risk Analysis? ....................................................................21
Developing an @RISK Model...........................................................23
Analyzing a Model with Simulation.................................................25
Making a Decision: Interpreting the Results.................................27
What Risk Analysis Can (Cannot) Do .............................................31
Getting to Know @RISK
33
81
Model Commands
91
Define Distributions..........................................................................91
Add Output ......................................................................................107
Table of Contents
vii
183
205
271
311
397
Introduction .....................................................................................397
Time Series Commands .................................................................399
Project
425
485
Introduction .....................................................................................485
Distributions in the @RISK Library...............................................487
Results in the @RISK Library........................................................493
Technical Notes ..............................................................................499
Utilities Commands
503
@RISK Functions
527
Introduction .....................................................................................527
Table of Available Functions .........................................................539
Reference: Distribution Functions................................................553
Reference: Distribution Property Functions................................691
Reference: Output Functions ........................................................709
Reference: Statistics Functions....................................................711
Reference: Fitting Functions .........................................................725
Table of Contents
ix
767
769
795
835
Welcome.......................................................................................... 835
x
857
What is Sampling?..........................................................................857
Appendix E: Using @RISK With Other DecisionTools
863
883
889
Readings by Category....................................................................889
Table of Contents
xi
xii
Getting Started
Introduction .........................................................................................3
About This Version .................................................................................3
Working with your Operating Environment ......................................3
If You Need Help .....................................................................................3
@RISK System Requirements................................................................5
Installation Instructions .....................................................................6
General Installation Instructions ..........................................................6
The DecisionTools Suite.........................................................................6
Setting Up the @RISK Icons or Shortcuts............................................7
Macro Security Warning Message on Startup ....................................7
Software Activation ............................................................................8
Quick Start...........................................................................................9
On-line Videos .........................................................................................9
Starting On Your Own ............................................................................9
Quick Start with Your Own Spreadsheets ........................................10
Using @RISK 6 Spreadsheets in @RISK 3.5 or earlier.....................11
Using @RISK 6 Spreadsheets in @RISK 4.0 ......................................11
Using @RISK 6 Spreadsheets in @RISK 4.5 ......................................11
Using @RISK 6 Spreadsheets in @RISK 5 .........................................12
@RISK 5.0 Help System Palisade Corporation, 1999
Getting Started
Introduction
About This Version
This version of @RISK can be used with Microsoft Excel 2003 or higher.
You are familiar with your computer and using the mouse.
You are familiar with terms such as icons, click, double-click, menu,
window, command and object.
Getting Started
Have you checked this User's Guide and reviewed the on-line multimedia
tutorial?
Can you duplicate the problem consistently? Can you duplicate the
problem on a different computer or with a different model?
Have you looked at our site on the World Wide Web? It can be found at
http://www.palisade.com. Our Web site also contains the latest FAQ (a
searchable database of tech support questions and answers) and @RISK
patches in our Technical Support section. We recommend visiting our
Web site regularly for all the latest information on @RISK and other
Palisade software.
Contacting
Palisade
Email us at support@palisade.com
Email us at support@palisade-europe.com
Email us at support@palisade.com.au
Introduction
Regardless of how you contact us, please include the product name, exact
version and serial number. The exact version can be found by selecting the
Help About command on the @RISK menu in Excel.
Student
Versions
Getting Started
Installation Instructions
General Installation Instructions
The Setup program copies the @RISK system files into a directory you
specify on your hard disk. To run the Setup program in Windows XP or
higher:
1) Double-click the RISK Setup.exe from your download or installation CD
and follow the Setup instructions on the screen
If you encounter problems while installing @RISK, verify that there is
adequate space on the drive to which youre trying to install. After youve
freed up adequate space, try rerunning the installation.
Removing
@RISK from
Your Computer
If you wish to remove @RISK from your computer, use the Control Panels
Add/Remove Programs utility and select the entry for @RISK.
Installation Instructions
Getting Started
Software Activation
Activation is a one time license verification process that is required in order
for your Palisade software to run as a fully licensed product. An activation
ID is on your printed/emailed invoice and may resemble a dash separated
sequence like "DNA-6438907-651282-CDM". If you enter your Activation ID
during installation, then your software is activated at the end of the
installation process and no further user action is required. If you wish to
activate your software after installation, select the Help menu License
Manager command.
The License Manager can be used to activate, deactivate and move software
licenses. It is also used to manage licenses for network installations. Follow
the prompts and dialogs in the License Manager to perform the desired
licensing operation.
Software Activation
Quick Start
On-line Videos
In the available on-line videos, @RISK experts guide you through sample
models in movie format. These tutorials are multi-media presentations on
the main features of @RISK.
Videos can be selected and run using the @RISK Videos command.
Getting Started
10
Click the Start Simulation icon the one with the red distribution
curve on the @RISK Toolbar. A simulation of your spreadsheet will be
executed and results displayed.
Quick Start
Getting Started
11
12
Quick Start
13
14
Introduction
@RISK brings advanced modeling and Risk Analysis to Microsoft Excel.
You might wonder if what you do qualifies as modeling and/or would be
suitable for Risk Analysis. If you use data to solve problems, make
forecasts, develop strategies, or make decisions, then you definitely should
consider doing Risk Analysis.
Modeling is a catch-all phrase that usually means any type of activity where
you are trying to create a representation of a real life situation so you can
analyze it. Your representation, or model, can be used to examine the
situation, and hopefully help you understand what the future might bring.
If you've ever played what-if games with your project, by changing the
values of various entries, you are well on your way to understanding the
importance of uncertainty in a modeling situation.
Okay, so you do analyses and make models what is involved in making
these analyses and models, explicitly incorporating risk? The following
discussion will try to answer this question, but don't worry, you don't have
to be an expert in statistics or decision theory to analyze situations under
risk, and you certainly don't have to be an expert to use @RISK. We can't
teach you everything in a few pages, but we'll get you started. Once you
begin using @RISK you'll automatically begin picking up the type of
expertise that can't be learned from a book.
Another purpose of this chapter is to give you an overview of how @RISK
works with your spreadsheet to perform analyses. You don't have to know
how @RISK works to use it successfully, but you might find some
explanations useful and interesting. This chapter discusses:
Running a simulation.
15
16
Introduction
What Is Risk?
Everyone knows that risk affects the gambler about to roll the dice, the
wildcatter about to drill an oil well, or the tightrope walker taking that first
big step. But these simple illustrations aside, the concept of risk comes
about due to our recognition of future uncertainty our inability to know
what the future will bring in response to a given action today. Risk implies
that a given action has more than one possible outcome.
In this simple sense, every action is risky, from crossing the street to
building a dam. The term is usually reserved, however, for situations where
the range of possible outcomes to a given action is in some way significant.
Common actions like crossing the street usually aren't risky, while building
a dam can involve significant risk. Somewhere in between, actions pass
from being nonrisky to risky. This distinction, although vague, is important
if you judge that a situation is risky, risk becomes one criterion for
deciding what course of action you should pursue. At that point, some
form of Risk Analysis becomes viable.
Characteristics of Risk
Risk derives from our inability to see into the future, and indicates a degree
of uncertainty that is significant enough to make us notice it. This
somewhat vague definition takes more shape by mentioning several
important characteristics of risk.
Firstly, risk can be either objective or subjective. Flipping a coin is an
objective risk because the odds are well known. Even though the outcome
is uncertain, an objective risk can be described precisely based on theory,
experiment, or common sense. Everyone agrees with the description of an
objective risk. Describing the odds for rain next Thursday is not so clear cut,
and represents a subjective risk. Given the same information, theory,
computers, etc., weatherman A may think the odds of rain are 30% while
weatherman B may think the odds are 65%. Neither is wrong. Describing a
subjective risk is open-ended in the sense that you could always refine your
assessment with new information, further study, or by giving weight to the
opinion of others. Most risks are subjective, and this has important
implications for anyone analyzing risk or making decisions based on a Risk
Analysis.
17
18
19
There may not be complete information available about the situation, the
situation may not be repeatable compared to a coin flip, or it just may be too
complex to come up with an unequivocal answer. Such risk quantification
is subjective, which means that someone might disagree with your
evaluation.
Your subjective assessments of risk are likely to change when you get more
information on the situation. If you have subjectively derived a risk
assessment, you must always ask yourself whether additional information is
available that would help you make a better assessment. If it is available,
how hard and how expensive would it be to obtain? How much would it
cause you to change the assessment you already have made? How much
would these changes affect the final results of any model you are analyzing?
20
What Is Risk?
2.
3.
4.
@RISK helps with the first three steps, by providing a powerful and flexible
tool that works with Excel to facilitate model building and Risk Analysis.
The results that @RISK generates can then be used by the decision-maker to
help choose a course of action.
Fortunately, the techniques @RISK employs in a Risk Analysis are very
intuitive. As a result, you won't have to accept our methodology on faith,
and you won't have to shrug your shoulders and resort to calling @RISK a
black box when your colleagues and superiors query you as to the nature
of your Risk Analysis. The following discussion will give you a firm
understanding of just what @RISK needs from you in the way of a model,
and how an @RISK Risk Analysis proceeds.
21
22
Variables
Variables are the basic elements in your Excel worksheets that you have
identified as being important ingredients to your analysis. If you are
modeling a financial situation, your variables might be things like Sales,
Costs, Revenues or Profits, whereas if you are modeling a geologic situation
your variables might be things like Depth to Deposit, Thickness of Coal
Seam or Porosity. Each situation has its own variables, identified by you. In
a typical worksheet, a variable labels a worksheet row or column, for
example:
Certain or
Uncertain
You may know the values your variables will take in the time frame of your
model they are certain, or what statisticians call deterministic.
Conversely, you may not know the values they will take they are
uncertain, or stochastic. If your variables are uncertain you will need to
describe the nature of their uncertainty. This is done with probability
distributions, which give both the range of values that the variable could
take (minimum to maximum), and the likelihood of occurrence of each
value within the range. In @RISK, uncertain variables and cell values are
entered as probability distribution functions, for example:
RiskNormal(100,10)
RiskUniform(20,30)
RiskExpon(A1+A2)
RiskTriang(A3/2.01,A4,A5)
These distribution functions can be placed in your worksheet cells and
formulas just like any other Excel function.
23
Independent or
Dependent
Output Variables
Any model needs both input values and output results, and a Risk Analysis
model is no different. An @RISK Risk Analysis generates results on cells in
your Excel worksheet. Results are probability distributions of the possible
values which could occur. These results are usually the same worksheet
cells that give you the results of a regular Excel analysis profit, the
bottom line or other such worksheet entries.
24
Simulation
@RISK uses simulation, sometimes called Monte Carlo simulation, to do a
Risk Analysis. Simulation in this sense refers to a method whereby the
distribution of possible outcomes is generated by letting a computer
recalculate your worksheet over and over again, each time using different
randomly selected sets of values for the probability distributions in your cell
values and formulas. In effect, the computer is trying all valid combinations
of the values of input variables to simulate all possible outcomes. This is
just as if you ran hundreds or thousands of what-if analyses on your
worksheet, all in one sitting.
What is meant by saying that simulation tries all valid combinations of the
values of input variables? Suppose you have a model with only two input
variables. If there is no uncertainty in these variables, you can identify a
single possible value for each variable. These two single values can be
combined by your worksheet formulas to calculate the results of interest
also a certain or deterministic value. For example, if the certain input
variables are:
Revenues = 100
Costs = 90
then the result:
Profits = 10
would be calculated by Excel from:
Profits = 100 90
There is only one combination of the input variable values, because there is
only one value possible for each variable.
Now consider a situation where there is uncertainty in both input variables.
For example,
Revenues = 100 or 120
Costs = 90 or 80
gives two values for each input variable. In a simulation, @RISK would
consider all possible combinations of these variable values to calculate
possible values for the result, Profits.
An Overview of Risk Analysis
25
Selecting sets of values for the probability distribution functions contained in the
cells and formulas of your worksheet
27
Individual Preference
The results provided by an @RISK analysis must be interpreted by you as an
individual. The same results given to several individuals may be
interpreted differently, and lead to different courses of action. This is not a
weakness in the technique, but a direct result of the fact that individuals
have varying preferences with regard to possible choices, time, and risk.
You might feel that the shape of the output distribution shows that the
chances of an undesirable outcome far outweighs the chances of a desirable
outcome. A colleague who is less risk averse might come to the opposite
conclusion.
28
-10
10
90
100
110
90
100
110
100
110
90
29
Probability distribution F represents greater risk than E because the range is larger
and the probability of occurrence is more spread out than for E.
90
100
110
100
110
90
Skewness
A simulation output distribution can also show skewness, that is how much
the distribution of possible results deviates from being symmetrical.
Suppose your distribution had a large positive 'tail'. If you saw only a
single number for the expected result, you might not realize the possibility
of a highly positive outcome that could occur in the tail. Skewness such as
this can be very important to decision makers. By presenting all the
information, @RISK opens up a decision by showing you all possible
outcomes.
30
31
32
33
34
35
@RISK Menu
@RISK Toolbars
An @RISK toolbar is added to Excel 2003 and also an @RISK ribbon bar to
Excel 2007 and higher. The icons and commands on these bars allow you to
quickly access most @RISK options.
@RISK
Distribution
Functions
36
37
Simulation Outputs
Once distribution functions have been entered into your spreadsheet, you
need to identify those cells (or ranges of cells) that you are interested in
seeing simulation results for. Typically, these output cells contain the
results of your spreadsheet model (such as profit) but they can be any
cells, anywhere in your spreadsheet. To select outputs, simply highlight the
cell or range of cells you want as outputs, in your worksheet, and then click
the Add Output icon the one with the red down arrow.
38
Model Window
The @RISK Model window provides a complete table of all input
probability distributions and simulation outputs described in your model.
From this window, which pops up over Excel, you can:
39
40
Running a Simulation
A simulation is run by clicking the Start Simulation icon on the @RISK
toolbar or ribbon.
41
Simulation Results
@RISK simulation results include distributions of possible results for your
outputs. In addition, @RISK generates sensitivity and scenario analysis
reports which identify the input distributions most critical to your results.
These results are best presented graphically. Available graphs include
frequency distributions of possible output variable values, cumulative
probability curves, tornado graphs which show the sensitivities of an output
to different inputs, and summary graphs which summarize risk changes
across a range of output cells.
42
Reports on
an @RISK
Simulation
in Excel
The easiest way to get a report on your @RISK simulation in Excel (or Word)
is to simply copy and paste a graph and the included statistics.
In addition, any report window can be exported to an Excel sheet where you
can access its values with formulas.
43
Sensitivity
Analysis
44
Scenario
Analysis
45
46
Running a Simulation
Simulation Results
47
Distributions
in the Define
Distribution
Window
48
All distribution functions can be defined and edited using the pop-up
Define Distribution window. The Define Distribution window can, among
other things, also be used to enter multiple distribution functions in a cells
formula, entering names that will be used to identify an input distribution
and truncate a distribution.
Entering
Argument
Values
49
Properties of
@RISK
Distribution
Functions
Define
Distribution
Window and
Resulting
Functions in
Excel
50
Correlations can be added by selecting the cells in Excel that contain the
input distributions you want to correlate, and then click the Define
Correlations icon. You can also add inputs to a displayed matrix by
clicking Add Inputs and selecting cells in Excel.
Once a matrix is displayed, you can enter correlation coefficients between
inputs in matrix cell, copy values in from a matrix in Excel, or use scatter
plots to assess and enter correlations.
51
A scatter plot matrix is displayed by clicking the Scatter Plots icon at the
bottom left of the Define Correlations window. The scatter plots in matrix
cells show how values between any two input distributions are correlated.
Moving the Correlation Coefficient slider displayed with the scatter matrix
dynamically changes the correlation coefficient and scatter plot for any pair
of inputs.
By dragging a scatter plot cell off of the matrix you can expand the
thumbnail scatter plot into a full graph window. This window will also
update dynamically when the Correlation Coefficient slider is changed.
52
Fitting Options
A variety of options are available for controlling the fitting process. Specific
distributions can be selected to fit. In addition, input data can be in the form
of sample, density or cumulative data. You can also filter your data prior to
fitting.
53
Fit Reports
Comparison, P-P and Q-Q plots are available to help you examine the
results of your fits. Delimiters on graphs allow you to quickly calculate
probabilities associated with values in fitted distributions.
Placing a Fit
Result in Excel
Clicking Write to Cell places a fit result in your model as a new distribution
function. Selecting Update and Refit at the Start of Each Simulation causes
@RISK, at the start of each simulation, to automatically refit your data when
it has changed, and place the new resulting distribution function in your
model.
54
Fit Manager
The Fit Manager allows you to navigate between fitted data sets in your
workbook and delete previously run fits.
55
56
Customizing
Displayed
Statistics
Placing Inputs
in Categories
57
Simulation Settings
A variety of settings may be used to control the type of simulation @RISK
performs. A simulation in @RISK supports nearly unlimited iterations and
multiple simulations. Multiple simulations allow you to run one
simulation after another on the same model. In each simulation you can
change values in your spreadsheet so you can compare simulation results
under different assumptions.
58
@RISK Settings
Toolbar
@RISK Settings can be access directly theroug the @RISK ribbon or @RISK
Settings toolbar. This allows quick access to many simulation settings.
Icons on this toolbar include:
Show Graph and Demo Mode control what is shown on the screen
during and after a simulation.
59
Running a Simulation
A simulation in @RISK involves repetitive recalculations of your worksheet.
Each recalculation is called an iteration. With each iteration:
Values calculated for output cells are collected from the worksheet
and stored.
Progress
Window
60
Graph Updating
During a
Simulation
Convergence
Monitoring
61
62
Browse Mode
The Browse mode is started by clicking the Browse Results icon on the
@RISK toolbar. Browse mode is automatically turned on at the end of a run
if you select to popup a graph during a simulation.
In Browse mode, @RISK pops up graphs of simulation results as you click
on cells in you spreadsheet, as follows:
As you click on different cells in your workbook, their results graphs pop
up. Press <Tab> to move the Graph window among output cells with
simulation results in open workbooks
To exit the Browse mode, simply close the popup graph or click the Browse
Results icon on the toolbar.
63
64
Targets
Target values can be calculated on simulation results. A target shows the
probability of achieving a specific outcome or the value associated with any
probability level. Using targets you can answer questions such as What is
the chance of a result greater than one million? or What is the chance of a
negative outcome?. Targets can be entered in the Detailed Statistics
window, the @RISK Results Summary window, and set directly using
delimiters on graphs of simulation results.
By entering a desired target such as 1% for an output in the @RISK
Results Summary Window and copying it across all outputs, you can
quickly see the same target calculated for all simulation results.
65
Graphing Results
Simulation results are easily expressed with graphs. The Results Summary
Window shows thumbnail graphs of the simulation results for all your
outputs and inputs. Dragging a thumbnail graph off of the Results
Summary Window allows you to expand a graph in a larger window.
A graph of the results for an output shows the range of possible outcomes
and their relative likelihood of occurrence. This type of graph may be
displayed in standard histogram or frequency distribution form.
Distributions of possible outcomes may also be displayed in cumulative
form.
Simulation
Results in
Histogram and
Cumulative
Format
66
Overlaying
Graphs for
Comparison
67
Delimiters
68
Formatting
Graphs
Summary Trend
Graphs
Selecting the rows in the @RISK Results Summary Window for the
outputs, or inputs, you wish to include in the summary graph, then
clicking the Summary Graph icon at the bottom of the window (or
right-clicking in the table), and selecting Summary Trend or
Summary Box Plot.
69
graph for this range shows how your risk changed across the 10 year period.
The narrower the band, the less the uncertainty about your Profit estimates.
Conversely, the wider the band the greater the possible variance in Profit
and the greater the risk.
The center line of the Summary Trend graph represents the trend in mean
value across the range. The two outer bands above the mean are one
standard deviation above the mean and the 95th percentile. The two outer
bands below the mean are one standard deviation below the mean and the
5th percentile. The definition of these bands can be changed using the Trend
tab in the Graph Options dialog box.
70
Summary
Box Plot
A Summary Box Plot displays a box plot for each distribution selected for
inclusion in the summary graph. A box plot (or box-whisker graph) shows
a box for a defined inner range of a distribution; with whisker lines showing
the outer limits of the distribution. An inner line in the box marks the
location of the mean, median or mode of the distribution.
71
Scatter Plots
A scatter plot is an x-y graph showing the input value sampled vs. the
output value calculated in each iteration of the simulation. This graph is
useful for examining in detail the relationship between an input and an
output from a simulation. A confidence ellipse identifies the region where,
at a given confidence level, the x-y values will fall. Scatter plots may also be
standardized so that values from multiple inputs may be more easily
compared on a single scatter plot.
Scatter plot windows can be created by:
72
73
Sensitivity
Analysis with
Scatter Plot
Matrix
A scatter plot is an x-y graph showing the input value sampled vs. the
output value calculated for each iteration of the simulation. In the Scatter
Plot Matrix, ranked sensitivity analysis results are displayed with scatter
plots. To show the scatter plot matrix, click the Scatter Plot icon in the lower
left of the Sensitivity window.
Using Drag and Drop, a thumbnail scatter plot in the Scatter Plot Matrix can
be dragged and expanded into a full graph window. In addition, overlays of
scatter plots may be created by dragging additional scatter thumbnail
graphs from the matrix onto an existing scatter plot
74
Tornado Graph
75
How is a
Scenario
Analysis
Performed?
76
Scatter Plot
Matrix in
Scenarios
Window
A scatter plot in the Scenarios window is an x-y scatter plot with an overlay.
This graph shows:
1) the input value sampled vs. the output value calculated in each iteration
of the simulation,
2) overlaid with a scatter plot of the input value sampled vs. the output
value calculated when the output value meets the entered scenario.
In the Scatter Plot Matrix, ranked scenario analysis results are displayed
with scatter plots. To show the Scatter Plot Matrix, click the Scatter Plot icon
in the lower left of the Scenarios window.
Scenarios
Tornado Graph
77
Reporting in Excel
When you generate simulation reports and graphs in Excel, you have access
to all Excels formatting. In addition, @RISK Reports generated in Excel can
use pre-built @RISK template sheets that contain custom formatting, titles,
and logos.
78
You can use template sheets to create your own custom simulation report.
Simulation statistics and graphs are placed in a template using a set of
@RISK functions added to Excel. When a statistics function or graphing
function is located in a template sheet, the desired statistics and graphs are
then generated at the end of a simulation in a copy of the template sheet to
create your report. The original template sheet with the @RISK functions
remains intact for use in generating reports from your next simulation.
Template sheets are standard Excel spreadsheets. They are identified to
@RISK by having a name that starts with RiskTemplate_. These files can also
contain any standard Excel formulas so custom calculations can be
performed using simulation results.
79
80
@RISK Icons
@RISK icons are used to quickly and easily perform tasks necessary to set
up and run risk analyses. @RISK icons appear on the spreadsheet toolbar
(i.e., as a custom toolbar in Excel or on a custom ribbon bar in Excel 2007 or
higher), on open graph windows and on a mini-toolbar that is displayed
by holding down the left-mouse button in Excel. This section briefly
describes each icon, outlining the functions they perform and the menu
command equivalents associated with them. Note: The @RISK add-in in
Excel 2003 and earlier has two available toolbars the main toolbar and a
settings toolbar that contains tools for specifying simulation settings.
If you are using @RISK Professional or Industrial you will have additional
icons for @RISK tools, such as RISKOptimizer or Project.
@RISK Icons
81
82
Performs an optimization
Location: Tools group, RISKOptimizer
Work with Time Series functions
Location: Tools group, Time Series
@RISK Icons
83
84
Icon
@RISK Icons
85
@RISK Icons
87
Icon
88
Icon
@RISK Icons
89
@RISK MiniToolbar
The @RISK MiniToolbar is a popup toolbar that can be used to quickly
create @RISK graphs and enter probability distributions. The MiniToolbar
is displayed by pressing the left mouse button while making a selection in
Excel.
90
Model Commands
Define Distributions
Define Distributions Command
Defines or edits probability distributions entered in the current
cell formula
The Define Distributions command displays the Define Distribution pop-up
window. Using this window, probability distributions can be assigned to
values contained in the formula of the selected cell. This window also
allows you to edit distributions already present in a cells formula.
The @RISK Define Distribution window graphically displays probability
distributions which can be substituted for values in the formula in the
current cell. By changing the displayed distribution you can see how
various distributions would describe the range of possible values for an
uncertain input in your model. The displayed statistics also shows how a
distribution defines an uncertain input.
The graphical display of an uncertain input is useful in showing your
definition of risk to others. It clearly displays the range of possible values
for an input, and the relative probability of any value in the range occurring.
Working with distribution graphs you can easily incorporate other
individual assessments of uncertainty into your risk analysis models.
Model Commands
91
Define
Distribution
Window
92
Define Distributions
Contents of
the Define
Distribution
Window
The different elements of the Define Distribution window are as follows:
Name. Displays the default name that @RISK has identified for the
cell. By clicking the Reference Entry icon (the icon after the name),
you can select an alternate cell in Excel that contains the name to
use. Alternatively, simply type a name.
Cell Formula. Displays the current cell formula including any
@RISK distribution functions. This formula may be edited here just
as in Excel. The text shown in red and underlined is the distribution
that is graphed.
Select Distribution. Adds the currently selected distribution in the
Distribution Palette. For the shortcut to Select Distribution
double-click on the distribution you wish to use from the displayed
Distribution Palette.
Make Favorite. Adds the currently selected distribution in the
Distribution Palette to the Favorites tab in the Palette.
Splitter Bar. To make the Cell Formula box larger or smaller, move
the splitter bar, up and down, between the Cell Formula box and
the graph.. To make the Distribution Argument panel larger, move
the splitter bar, left and right, between the panel and the graph .
Delimiters and Statistics are used to display underlying statistics on
displayed distribution graphs:
Delimiters. Delimiters allow setting of target probabilities and xaxis scaling using the mouse. Cumulative probabilities can be set
directly on a distribution graph using the displayed probability
delimiters. Dragging probability delimiters changes left and right x
and p values, shown in the probability bar, above the graph.
Dragging the delimiters, at either end of the x-axis, rescales the xaxis.
Statistics. The statistics displayed for the graphed distributions,
including any overlays, can be selected in the Legends tab of the
Graph Options dialog. To display this dialog, click the Graph
Options dialog icon in the bottom left of the window.
Distribution
Palette
Model Commands
Changing the
Distribution
Using the
Palette
94
Define Distributions
The small version of the Palette contains additional icons at the bottom that
allow you to delete all overlays, make favorites to be shown on the Favorites
tab or select a distribution you wish to use from a cell in Excel.
Adding
Overlays Using
the Palette
Model Commands
95
Distribution
Argument Panel
96
Define Distributions
- Selecting Truncation Limits will put an entry for Trunc. Min and
Trunc. Max in the Distribution Argument panel, allowing the
distribution to be truncated at the values specified.
- Selecting Shift Factor will put an entry for Shift in the
Distribution Argument panel. A Shift Factor shifts the domain of
the distribution in which it is used by the entered shift amount
- Selecting Alternate Parameters allows the entry of alternate
parameters for the distribution.
- Selecting Static Value allows the entry of the Static Value for the
distribution.
- Selecting Date Formatting instructs @RISK to display dates in the
Distribution Argument panel and to display graphs and statistics
using dates. This selection will result in a RiskIsDate property
function being placed in your distribution.
Note: In the Application Settings dialog, you can specify that Truncation
Limits, Shift Factor and Static Value always be displayed in the
Distribution Argument panel.
Model Commands
97
Alternate
Parameters
98
Define Distributions
Defaults for
Alternate
Parameter
Distributions
Model Commands
In the Application Settings dialog you can select the default parameters you
wish to use for Alternate Parameter Distributions, or those distribution
types that end in ALT (such as RiskNormalAlt). Your default parameters
will be used each time you select an Alternate Parameter distribution from
the Distribution Palette.
99
Distribution
Argument
Panel Icons
100
Define Distributions
Changing
Graph Type
Model Commands
In the Define Distribution window (along with other graph windows), the
type of the displayed graph may be changed by clicking the Graph Type
icon in the lower left of the window.
101
Input Properties
@RISK distribution functions have both required and optional arguments.
The only required arguments are the numeric values which define the range
and shape of the distribution. All other arguments (such as name,
truncation, correlation and others) are optional and can be entered only
when needed. These optional arguments are entered using property
functions using a pop-up Input Properties window.
Clicking the fx icon at the end of the Cell Formula text box displays the
Input Properties window.
Many properties can use cell references to Excel cells. Simply click the
Reference Entry icon next to the property to add a cell reference.
102
Define Distributions
Input
Properties
Options Tab
Model Commands
Name. The name @RISK will use for the input distribution in
reports and graphs. Initially a default name determined by @RISK
from row and column headings is shown. If this default name is
changed, a RiskName property function will be added to the
entered distribution function to hold the defined name.
Units. The units @RISK will use for the input distribution to label
the x-axis in graphs. If units are entered, a RiskUnits property
function will be added to the entered distribution function to hold
the defined units.
103
104
Date Formatting. Specifies if the data for the input will be treated as
dates in reports and graphs. The setting Automatic specifies that
@RISK will automatically detect the date data using the format of
the cell where the input is located. Selecting Enabled will force
@RISK to always display graphs and statistics for the input using
dates, regardless of the cell format. Likewise, Disabled will force
@RISK to always generate graphs and statistics for the input in
numeric format, regardless of the cell format. If Enabled or
Disabled is selected, a RiskIsDate property function will be entered
to hold the date setting.
Define Distributions
Input
Properties
Sampling Tab
Model Commands
Separate Seed. Sets the seed value for this input which will be used
during simulation. Setting a seed value for a specific input insures
that any model that uses the input distribution will have the
identical stream of sampled values for the input during a
simulation. This is useful when sharing input distributions between
models using the @RISK Library.
Lock Input from Sampling. Keeps the input from being sampled
during a simulation. A locked input returns its static value (if
specified) or alternatively, its expected value, or the value specified
through the options under When a Simulation is Not Running,
Distributions Return of the Simulation Settings dialog.
105
106
Define Distributions
Add Output
Add Output Command
Adds a cell or range of cells as a simulation output or output range
Clicking the Add Output icon adds the currently selected range of
worksheet cells as a simulation output. A distribution of possible outcomes
is generated for every output cell selected. These probability distributions
are created by collecting the values calculated for a cell, each iteration of a
simulation.
A Summary graph may be generated when a selected output range has
more than one cell in it. For example, in one output range, you could select
all the cells in a row in your worksheet. The output distributions from these
cells would be summarized in a Summary graph. You could also see an
individual probability distribution for any cell in the range.
Sensitivity and Scenario analysis results are also generated for each output
cell. For more information on these analyses, see the descriptions of these
analyses in the Results Summary Window section of this chapter.
Model Commands
107
RiskOutput
Functions
Naming an
Output
When an output is added, you are given the opportunity to name it, or use
the default name @RISK has identified. You can enter a reference to an
Excel cell, containing the name, by simply clicking in the desired cell. The
name (if not the @RISK default name) is added as an argument to the
RiskOutput function used to identify the output cell.
At any time a name may be changed by 1) editing the name argument to the
RiskOutput function, 2) re-selecting the output cell and clicking the Add
Output icon again or 3) changing the name shown for the output in the
Model window.
108
Add Output
Adding a
Simulation
Output Range
Model Commands
109
Output Properties
@RISK outputs (defined using the function RiskOutput) have optional
arguments that specify properties, such as name and units, that can be
entered only when needed. These optional arguments are entered using
property functions through a pop-up Output Properties window.
Clicking the fx icon at the end of the Name text box displays the Output
Properties window.
Many properties can use cell references to Excel cells. Simply click the
Reference Entry icon next to the property to add a cell reference.
110
Add Output
Output
Properties
Options Tab
Model Commands
Name. The name @RISK will use for the output in reports and
graphs. Initially a default name determined by @RISK from row
and column headings is shown.
Units. The units @RISK will use for the output to label the x-axis in
graphs. If units are entered, a RiskUnits property function will be
added to the entered distribution function, to hold the defined
units.
Data Type. Specifies the type of data that will be collected for the
output during a simulation Continuous or Discrete. The setting
Automatic specifies that @RISK will automatically detect the type of
data described by the generated data set and generate graphs and
statistics for that type. Selecting Discrete will force @RISK to
always generate graphs and statistics for the output in discrete
format. Likewise, Continuous will force @RISK to always generate
graphs and statistics for the output in discrete format. If Discrete or
Continuous is selected a RiskIsDiscrete property function will be
entered for the output in its RiskOutput function.
111
Date Formatting. Specifies if the data for the output will be treated
as dates in reports and graphs. The setting Automatic specifies that
@RISK will automatically detect the date data using the format of
the cell where the output is located. Selecting Enabled will force
@RISK to always display graphs and statistics for the output using
dates, regardless of the cell format. Likewise, Disabled will force
@RISK to always generate graphs and statistics for the output in
numeric format, regardless of the cell format.
Output
Properties
Convergence
Tab
Add Output
Output
Properties Six
Sigma Tab
The default settings for an output to be used in Six Sigma calculations are
set on the Six Sigma tab. These properties include:
LSL, USL and Target. Sets the LSL (lower specification limit), USL
(upper specification limit) and Target values for the output.
Use Long Term Shift and Shift. Specifies an optional shift for
calculation of long-term capability metrics.
113
114
Add Output
Insert Function
Insert Function Command
Inserts an @RISK function in the active cell
@RISK provides a variety of custom functions that can be used in Excel
formulas for defining probability distributions, returning simulation
statistics to Excel and performing other modeling tasks. The @RISK Insert
Function command allows you to quickly insert an @RISK function into
your spreadsheet model. You can also set up a list of favorite functions that
can be quickly accessed. When the @RISK Insert Function command is
used, the Excel Insert Function Arguments dialog is displayed where
arguments to the functions can be entered.
If you use the @RISK Insert Function command to enter a distribution
function, a graph of the distribution function may also be displayed. As
with the Define Distribution window, you can add overlays to this graph,
add input property functions or even change the type of distribution
function being entered.
Model Commands
115
Available
Categories of
@RISK
Functions
Three categories of @RISK functions can be entered with the Insert Function
command. These include:
To get more information on any of the @RISK functions listed with the
Insert Function command, see the Reference: @RISK Functions section
of this manual.
Manage
Favorites
116
@RISK functions that you select are listed as Favorites so you can
quickly access them on the Insert Function menu or on the Favorites tab
of the Distribution Palette. The Manage Favorites command displays a
list of all available @RISK functions so you can select the functions you
commonly use.
Insert Function
Graphs of
Distribution
Functions via
Insert Function
Model Commands
117
Buttons in the
Insert Function
Graph Window
A set of buttons at the bottom of the Insert Function graph window allow
you to:
Access the Graph Options dialog to change the scaling, titles, colors,
markers and other settings for the graph
Create an Excel chart of the graph
Change the type of displayed graph (cumulative, relative frequency,
etc.)
Add overlays to the graph
Add properties (i.e., distribution property functions such as
RiskTruncate) to the entered distribution function
Change the type of distribution function graphed
118
Insert Function
Adding an
Overlay in the
Insert Function
Graph Window
Changing the
Distribution in
the Insert
Function Graph
Window
Model Commands
To change the distribution used in the formula from the Insert Function
Graph window, click the Distribution Palette button at the bottom of the
window and select or double-click the distribution you want to change to
from the Palette. Once selected, the new distribution and arguments will be
entered in the Excel formula bar and a graph of the new function will be
shown.
119
Entering Input
Properties in the
Insert Function
Graph Window
To add input properties in the Insert Function Graph Window, click the
Input Properties button at the bottom of the Graph Window and select the
properties you wish to include. If desired, you may edit the setting for the
property in the Input Properties window.
Once you click OK and a distribution property function is entered, you can
click on the distribution property function in the Excel formula bar and the
Excel Function Argument window will be displayed for the property
function itself. The arguments may then be edited using the Excel Function
Argument window.
120
Insert Function
Define Correlations
Define Correlations Command
Defines correlations between probability distributions in a
correlation matrix
The Define Correlations command allows the samples of input probability
distributions to be correlated. When the Define Correlations icon is clicked,
a matrix is displayed which includes a row and column for each probability
distribution in the currently selected cells in Excel. Correlation coefficients
between the probability distributions can be entered using this matrix.
Why Correlate
Distributions?
Model Commands
Entering
Correlation
Coefficients
Define Correlations
Adding Inputs
to a Matrix
Deleting a
Matrix
Model Commands
The Delete Matrix button deletes the displayed correlation matrix. All
RiskCorrmat functions will be removed from distribution functions used in
the matrix and the correlation matrix displayed in Excel will be deleted.
123
Naming and
Locating a
Matrix
Options in the Define Correlation window for naming and locating a matrix
in Excel include:
Matrix Name. Specifies the name of the matrix. This name will be
used to 1) name the range where the matrix is located in Excel and
2) identify the matrix in the RiskCorrmat functions that are created
for each input distribution included in the matrix. This name must
be a valid Excel range name.
Location. Specifies the range in Excel that the matrix will occupy.
@RISK Correlations
US Interest Rate in $D$17
124
$/Pound in $D$18
$/Euro in $D$19
-0.7
-0.5
$/Pound in $D$18
-0.7
0.6
$/Euro in $D$19
-0.5
0.6
Define Correlations
Matrix Instances
Model Commands
125
Correlated Time
Series
A Correlated Time Series is created from a range in Excel that contains a set
of similar distributions in each row or column of range. In many cases, each
row or column represents a time period. Often you would like to
correlate each periods distributions using the same correlation matrix but
with a different instance of the matrix for each time period.
When the Create Correlated Time Series icon is clicked, you are prompted
to select the block of cells in Excel that contains the distributions of the time
series. You can select to have each time period represented by the
distributions in a column, or row, in the range.
When a correlated time series is created, @RISK automatically sets up a
correlation matrix instance for each set of similar distributions, in each row
or column, in the selected range.
Note: the Correlated Time Series discussed here is not the same as
correlated time series functions available with @RISKs Time Series tool.
@RISKs Time Series tool uses array functions to model a variety of time
series processes. These can also be correlated, as discussed in the Time
Series chapter of this manual.
126
Define Correlations
Rearranging
Columns
Deleting Rows,
Columns and
Inputs
Model Commands
127
Displaying
Scatter Plots
The Show Scatter Plots icon (in the bottom left of the Define Correlation
window) shows a matrix of scatter plots of possible sampled values for any
two inputs in the matrix, when they are correlated using the entered
correlation coefficients. These scatter plots show, graphically, how the
sampled values of any two inputs will be related during a simulation.
Moving the Correlation Coefficient slider, displayed with the scatter
matrix, dynamically changes the correlation coefficient and scatter plot for
any pair of inputs. If you have expanded or dragged the thumbnail scatter
plot into a full graph window, that window will also update dynamically.
128
Define Correlations
Scatter Plots of
Simulated
Correlations
Model Commands
After a simulation, you can check the actual simulated correlations for the
entered matrix. This is done by clicking on a cell in the matrix when
browsing simulation results in your spreadsheet. The scatter plot matrix
shows the actual correlation coefficient calculated between the samples
drawn for each pair of inputs, along with the coefficient entered in the
matrix before the run. If an entered matrix has multiple instances, only the
scatter plots for the correlations in the first instance are shown after a run.
129
Check Matrix
Consistency
The Check Matrix Consistency command, displayed when you click the
Check Matrix Consistency icon, verifies that the entered matrix in the active
correlation window is valid. @RISK can correct any invalid matrix and
generate the closest valid matrix to the entered invalid one.
An invalid matrix specifies inconsistent simultaneous relationships between
three or more inputs. It is quite easy to make a correlation matrix which is
invalid. A simple example is: correlate input A and B with a coefficient of
+1, B and C with a coefficient of +1, and C and A with a coefficient of -1.
This example is clearly illegal, but invalid matrices are not always this
obvious. In general, a matrix is valid only if it is positive semi-definite. A
positive semi-definite matrix has eigenvalues which are all greater than or
equal to zero, and at least one eigenvalue that is greater than zero.
If @RISK determines you have an invalid matrix when the Check Matrix
Consistency icon is clicked, it will give you the option of letting @RISK
generate the closest valid matrix to the entered invalid one. @RISK follows
these steps to modify a matrix:
1) Finds the smallest eigenvalue (E0)
2) Shifts the eigenvalues so that the smallest eigenvalue equals zero
by adding the product of -E0 and the identity matrix (I) to the
correlation matrix (C): C' = C E0I.
3) Divides the new matrix by 1 E0 so that the diagonal terms equal:
C'' = (1/1-E0)C'
This new matrix is positive semi-definite, and therefore, valid. It is
important to check the new valid matrix to ensure that its correlation
coefficients accurately reflect your knowledge of the correlation between the
inputs included in the matrix. Optionally you can control what coefficients
are adjusted during the correction of a matrix by entering Adjustment
Weights for individual coefficients.
Note: A correlation matrix entered in the Correlation window is
automatically checked for consistency when the OK button is clicked, prior
to entering the matrix in Excel and adding RiskCorrmat functions for each
input in the matrix.
130
Define Correlations
Adjustment
Weights
Model Commands
131
When you place a correlation matrix in Excel (or use the Check Matrix
Consistency command), @RISK will check if the entered correlation matrix
is valid. If it is not, it will correct the matrix using the entered weights.
Note: If you enter an Adjustment Weight of 100, @RISK will make all
possible efforts to keep the coefficent associated with that weight fixed.
However, if no valid matrix can be generated with the fixed coefficent , it
will have to be adjusted in order to create a valid matrix.
Adjustment
Weight Matrix in
Excel
When you place a correlation matrix in Excel, its Adjustment Weights may
also be placed in an Adjustment Weight matrix in Excel. This matrix has
the same number of elements as the correlation matrix it is used with. Cells
in this matrix hold the entered Adjustment Weight values. Any matrix cells
for which no weight was entered (shown as blanks in the matrix) have a
weight of 0 indicating that they may be adjusted as necessary during matrix
correction. An Adjustment Weight matrix in Excel is given an Excel range
name using the name of the correlation matrix it is used with plus the
extension _Weights. For example, a matrix named Matrix1 could have an
associated Adjustment Weight matrix with the name Matrix1_Weights.
Note: You do not have to place an Adjustment Weight matrix in Excel when
exiting the Define Correlations window. You can just place the corrected
correlation matrix in Excel and discard any entered weights if you are
happy with the corrections made and do not wish to access the weights at a
later time.
132
Define Correlations
Viewing a
Corrected
Correlation
Matrix in Excel
You may wish to view in Excel the corrected matrix that @RISK generates
and uses while simulating. If @RISK detects an inconsistent correlation
matrix in your model, it will correct it, using any related Adjustment Weight
matrix. However, it leaves your original inconsistent matrix as you entered
it in Excel. To view the corrected matrix in your spreadsheet:
1) Highlight a range with the same number of rows and columns as the
original correlation matrix
2) Enter the function
=RiskCorrectCorrmat(CorrelationMatrixRange,AdjustmentMatrixRange)
3) Press <Ctrl><Shift><Enter> at the same time to enter your formula as
an array formula. Note: the AdjustmentMatrixRange is optional, and
only used when you are applying adjustment weights.
For example, if the correlation matrix was in the range A1:C3, and the
adjustment weight matrix was in E1:G3, you would enter:
=RiskCorrectCorrmat(A1:C3,E1:G3)
The corrected coefficients for the matrix will be returned to the range.
The RiskCorrectCorrmat function will update the corrected matrix anytime
you change a coefficient in the matrix or a weight in the Adjustment Weight
matrix.
Model Commands
133
How a
Correlation
Matrix is Added
to Your Model
in Excel
Specifying
Correlations
With Functions
134
Define Correlations
Understanding
Rank Order
Correlation
Coefficient
Values
Model Commands
135
136
Define Correlations
Distribution Fitting
Fit Command
Fits probability distributions to data in Excel and displays the
results
The Model command Fit fits probability distributions to the data in a
selected Excel range. This command is only available in @RISK Professional
and Industrial versions.
In some cases an input distribution is selected by fitting probability
distributions to a set of data. You may have a set of sample data for an
input, and you wish to find the probability distribution that best describes
that data. The Fit Distributions to Data dialog has all the commands
necessary for fitting distributions to data. After fitting, the distribution may
be placed in your model, as an @RISK distribution function, for use during
simulations.
A distribution for a simulated result may also be used as the source of the
data to be fit. To fit distributions to a simulated result, click the Fit
Distributions to Data icon in the lower left of the graph window that
displays the simulated distribution whose data you wish to use in the fit.
Model Commands
137
Data Set
138
The Data Set options specify the source of the data to be fitted and its type.
Options include:
Name. Specifies a name for the fitted data set. This will be the
name shown in the Fit Manager, and in any RiskFit functions which
link a distribution function to the results from a fit.
Distribution Fitting
Model Commands
The Type options specify the type of data that is to be fitted. Six different
types of data can be entered:
139
Filter Options
140
Values are Dates. This option specifies that you will be fitting date
data and graphs and statistics will be displayed using dates. If
@RISK detects dates in the referenced data set this option will be
checked by default.
Distribution Fitting
Fitting Method
Model Commands
141
Parameter
Estimation
Options
Each distribution type has different characteristics with respect to the range
and limits of the data it can describe. Using the Lower Limit and Upper
Limit options you can select the types of distributions to include, limit
options that are set, based on your knowledge of the range of values, which
could occur for the item that your input samples describe.
Lower Limit and Upper Limit options include:
142
Fixed Bound of. Specifies a value that will fix the lower and/or
upper limit of the fitted distribution to a specific value. Only
specific distribution types, such as Triangular, have fixed lower and
upper limits. Your entry for Fixed Bound will restrict a fit to certain
types of distributions.
Unsure. Specifies that you are not sure about the possible values
that could occur, and thus the full range of distributions should be
available for fitting.
Distribution Fitting
Predefined
Distributions
Options
Model Commands
The Suppress Questionable Fits option indicates that fits that are
mathematically valid, but that fail various common sense heuristics should
be rejected as possible fits. For example, it is often possible to fit normal-like
data to a BetaGeneral distribution with very large 1 and 2 parameters and
artificially wide minimum and maximum parameters. While this can lead
to a very good fit from a mathematical viewpoint, the fit is objectionable
from a practical standpoint.
143
Fixed
Parameters
144
For certain distributions, @RISK allows you to fix parameters during fitting.
For example, you may fix the mean of any fitted normal distribution to 10,
only allowing the standard deviation to vary during the fitting process. Any
fixed parameters are applied in addition to boundary limits that have been
set using Lower Limit and Upper Limit options.
Distribution Fitting
Model Commands
145
146
Distribution Fitting
Bin
Arrangement
Bin Arrangement options specify the style of the binning that will be
performed or, alternatively, allow the entry of fully custom bins with userentered minimum and maximum values. Options for Bin Arrangement
include:
Equal Intervals. Specifies that bins will be of equal length across the
input data set. Several options are available for entering equal interval
bins across an input data set. Any, or all, of these options may be
selected:
1) Automatic Minimum and Maximum Based on Input Data.
Specifies that the minimum and maximum of your data set will be
used to calculate the minimum and maximum of equal interval
bins. First and last bins, however, may be added based on the
settings for Extend First Bin and Extend Last Bin options. If
Automatic Minimum and Maximum Based on Input Data, is not
selected, you can enter a specific Minimum and Maximum value
where your bins will start and end. This allows you to enter a
specific range where binning will be performed, without regard to
the minimum and maximum values in your data set.
2) Extend First Bin from Minimum to -Infinity. Specifies that the
first bin used will stretch from the specified minimum to -Infinity.
All other bins will be of equal length. In certain circumstances, this
improves fitting for data sets with unknown lower bounds.
3) Extend Last Bin from Maximum to +Infinity. Specifies that the last
bin used will stretch from the specified maximum to +Infinity. All
other bins will be of equal length. In certain circumstances, this
improves fitting for data sets with unknown upper bounds.
Model Commands
147
Custom Bins. There are times when you wish to have complete control
over the bins that are used for Chi-Sq testing. For example, custom bins
could be used when there is a natural grouping of collected sample
data, and you want your Chi-Square bins to reflect that grouping.
Entering custom bins allows you to enter a specific minimum-maximum
range for each bin that is defined.
148
Distribution Fitting
The Fit Ranking list displays all distributions for which valid fit results were
generated. These distributions are ranked, according to the goodness-of-fit
test selected from the Fit Ranking selector at the top of the Fit Ranking
table. Only distribution types selected, using the Distributions to Fit tab in
the Fit Distributions to Data dialog, are tested when fitting.
A goodness-of-fit statistic provides a quantitative measure of how closely
the distribution of the data being fit resembles the fitted distribution. In
general, a lower statistic indicates a better the fit. The goodness-of-fit
statistic can be used for comparing the values to the goodness-of-fit of other
distribution functions. Goodness-of-Fit information is only available when
the Input Data type is Sampled Values.
Checking a distribution listed in the Fit Ranking list displays the fit results
for that distribution, including graphs and statistics on the selected fit.
Model Commands
149
The Fit Ranking selector specifies the goodness-of-fit test to use to rank
distributions. A goodness-of-fit test measures how well the sample data fits
a hypothesized probability density function. Five types of tests are available:
RMS Error, or root mean squared error. If the input data type is a
Density Curve or Cumulative Curve (as set using Fit Distributions
to Data dialog Data tab), only the RMS Error test is used to fit
distributions.
For more information on the available goodness-of-fit tests, see
Appendix A: Distribution Fitting.
150
Distribution Fitting
Displaying Fit
Results for
Multiple
Distributions
Model Commands
To display the fit results, for different distributions in the Fitted distribution
list at the same time, simply check distributions in the Fit Ranking list.
151
A Comparison Graph displays two curves the input distribution, and the
distribution created by the best fit analysis.
Two delimiters are available for a Comparison graph. These delimiters set
the Left X and Left P values, along with the Right X and Right P values.
Values returned by the delimiters are displayed in the probability bar above
the graph.
152
Distribution Fitting
P-P Graph
Q-Q Graph
Model Commands
The P-P (or Probability-Probability) graph plots the p-value of the fitted
distribution vs. the p-value of the fitted result. If the fit is good, the plot
will be nearly linear.
A Q-Q (or Quantile-Quantile graph) plots the plot percentile values of the
fitted distribution vs. percentile values of the input data. If the fit is good,
the plot will be nearly linear.
153
Bootstrap Analysis
A Bootstrap analysis provides distributions and statistics for fitted
parameters and goodness-of-fit statistics.
Fitted
Parameters
154
Distribution Fitting
Goodness of Fit
Statistics
Model Commands
155
156
Distribution Fitting
Model Commands
157
158
Distribution Fitting
For Chi Sq, A-D and K-S tests the Fit Summary window also displays:
Model Commands
Test Value, or the test statistic for the fitted probability distribution
for each of the three tests.
Bin statistics for each bin, for both the input and the fitted
distribution (Chi-Sq test only). These entries return the min and
max of each bin, plus the probability value for the bin, for both the
input and the fitted distribution. Bin sizes can be set using the ChiSq Binning tab in the Fit Distributions to Data dialog.
159
The Batch Fit dialog is similar to the Fit dialog, as it allows you to select the
parameters to use when fitting each data set. An additional setting, Best Fit
Selection, specifies the statistic (AIC, BIC, Chi-Sq, A-D, or K-S) that will be
used to select the best fitting distribution shown in the reports in Excel.
160
Distribution Fitting
Batch Fit
Report Tab
The Report tab of the Batch Fit dialog specifies the type and location of the
reports that will be generated from a batch fit.
Model Commands
161
RiskFitDistribution
Function
162
Distribution Fitting
Fitted data sets, and their settings, are saved when you save your workbook.
By selecting the Fit Manager command, you can navigate between fitted
data sets and delete unneeded ones.
Model Commands
163
Artist Command
Displays the Distribution Artist window where a curve to be used
as a probability distribution can be drawn
The Model command Distribution Artist is used to draw freeform curves
that can be used to create probability distributions. This is useful for
graphically assessing probabilities and then creating probability
distributions from the graph. Distributions may be drawn as Probability
Density (General) curves, histograms, cumulative curves or discrete
distributions.
After an Artist window has been displayed using the Distribution Artist
command, a curve may be drawn simply by dragging the mouse through
the window.
Distribution Fitting
Distribution
Artist Options
The scaling and type of graph drawn in the Artist window are set using the
Distribution Artist Options dialog. This is displayed by clicking the Draw
New Curve icon (in the lower left of the window) or by right clicking on the
graph and selecting the Draw New Curve command.
Name. This is the default name given to the selected cell by @RISK, or
the name of the distribution used to create the displayed curve as given
in its RiskName property function.
Date Formatting. Specifies that dates will be used for X-axis values.
Minimum and Maximum. Specifies the X-axis scaling for the drawn
graph.
Number of Points or Bars. Sets the number of points or bars that will
be drawn as you drag across the min-max range of the graph. You can
drag the points on the curve or move the bars on a histogram up and
down to change a curves shape.
Model Commands
165
Some items to note about drawing curves using the Distribution Artist:
After drawing a curve, you may want to "drag" one of the points to a
new location. Simply click the left mouse button on the point and,
while holding down the button, drag the point to a new location.
When you lift the button, the curve is redrawn automatically to include
the new data point.
You can move data points along the X or Y-axis (except with a
histogram).
You can drag end points outside the axes by grabbing and dragging an
endpoint.
Move a dashed vertical endline to reposition the entire curve.
By right-clicking on the curve, you can add new points or bars as
necessary.
Icons in the
Artist Window
166
Distribution Fitting
Writing the
Artist Function
to Excel
Model Commands
167
168
Distribution Fitting
Model Window
Show Model Window Command
Displays all input distributions and output cells in the @RISK
Model window
The Show Model Window command displays the @RISK Model
window. This window provides a complete table of all input probability
distributions and simulation outputs described in your model. From this
window, which pops up over Excel, you can:
Model Commands
169
The Model
Window and
Graph Navigator
170
Model Window
The commands for the Model window may be accessed by clicking the
icons, displayed at the bottom of the table, or by right-clicking and selecting
from the pop-up menu. Selected commands will be performed on the
current selected rows in the table.
The Outputs and Inputs table displayed in the @RISK Model window is
set up automatically, when you display the window. When the window is
displayed, your worksheets are scanned or re-scanned for @RISK functions.
How Are
Variable Names
Generated?
Model Commands
171
172
Name, or the name of the input. To change the name of the input,
simply type a new name in the table, or click the Reference entry
icon to select a cell in Excel where the name you wish to use is
located.
Model Window
Columns
Displayed in the
Model Window
If you select to show Percentile values in the table, the actual percentile is
entered in the rows Value at Entered Percentile.
Model Commands
173
Editable p1,x1 and p2,x2 values are columns that can be edited directly in
the table. Using these columns you can enter specific target values and/or
target probabilities directly in the table.
174
Model Window
Categories
Displayed in the
Model Window
Model Commands
175
Arrange Menu
Default Categories can also be created from input names entered using a
RiskName function, as long as a / separator is included, to separate text
to use as row or column headings in the name. For example, the input:
=RiskNormal(100,10,RiskName("R&D Costs / 2010")
would be included in a default category named R&D Costs, if the Default
Categories Row Heading command was checked, and would be included in
a default category named 2010 if the Default Categories Column Heading
command was checked.
176
Model Window
Model Commands
177
Edit Menu
178
Paste, Fill Down. Pastes or fills values into the current selection in
the table.
Model Window
Graph Menu
Model Commands
The Graph menu is accessed by 1), clicking the Graph icon at the bottom of
the model window, or 2) right-clicking in the table. Shown commands will
be performed on the selected rows in the table. This allows you to quickly
make graphs of multiple input distributions in your model. Simply select
the type of graph you wish to display. The command Automatic creates the
graph using the default type (probability density) for input distributions.
179
The Outputs tab in the Model window lists all outputs in your model.
These are cells where RiskOutput functions are located. For each output, the
table shows:
Name, or the name of the output. To change the name of the output,
simply type a new name in the table, or click the Reference Entry
icon to select a cell in Excel, where the name you wish to use, is
located.
The properties of each output may be entered by clicking the fx icon shown
on each row. For more on properties for outputs, see the Add Output
command in this chapter.
180
Model Window
selecting the cell in Excel, where the input distribution (or a cell in
the matrix) is located, and selecting the Define Correlations
command
Model Commands
181
182
Model Window
Simulation Commands
Simulation Settings
Simulation Settings Command
Changes the settings which control the simulations performed by
@RISK
The Simulation Settings command affects the tasks performed during a
simulation. All settings come with default values, which you may change if
you wish. The simulation settings affect the type of sampling @RISK
performs, the updating of the worksheet display during simulation, the
values returned by Excel in a standard recalculation, seeding of the random
number generator used for sampling, the status of convergence monitoring
and macro execution during simulation. All simulation settings are saved
when you save your workbook in Excel.
To save simulation settings, so they will be used as the default settings each
time you start @RISK, use the Utilities commands Application Settings
command.
Simulation Commands
183
The @RISK Simulation Settings toolbar is added to the Excel 2003 and
earlier. The same icons are present on the @RISK ribbon bar in Excel 2007
and higher. These icons allow access to many simulation settings.
184
Show Graph and Demo Mode control what is shown on the screen
during and after a simulation.
Simulation Settings
Simulation Commands
185
186
Simulation Settings
The number of simulations requested should be less than, or equal to, the
number of arguments entered into the SIMTABLE functions. If the number
of simulations is greater than the number of arguments entered into a
SIMTABLE function, the SIMTABLE function will return an error value
during a simulation whose number is greater than the number of
arguments.
Important! Each simulation executed, when the # Simulations is greater
than one, uses the same random number generator seed value. This isolates
the differences between simulations to only the changes in the values
returned by SIMTABLE functions. If you wish to override this setting,
select Multiple Simulations Use Different Seed Values in the Random
Number Generator section of the Sampling tab prior to running multiple
simulations.
Naming
Simulations
If you run multiple simulations, you can enter a name for each simulation to
be run. This name will be used to label results in reports and graphs. Set
the Number of Simulations to a value greater than 1, click the Simulation
Names button and enter the name desired for each simulation.
Simulation Commands
187
When a
Simulation is
Not Running,
Distributions
Return Options
The Random (Monte Carlo) vs. Static Values setting can be quickly changed
using the Random/Static icon on the @RISK Settings toolbar.
188
Simulation Settings
Simulation Commands
189
Settings under Options on the View tab of the Simulation Settings dialog
include:
190
Simulation Settings
The Pause on Error in Outputs dialog shows, on the left, an explorer list
containing each output for which an error was generated. A cell whose
formula caused an error will be showed in the field on the right when you
select an output with an error in the explorer list. @RISK identifies this cell,
by searching through the list of precedent cells for the output with the error,
until values switch from error to a non-error value. The last precedent
cell(s) returning error prior to precedent cells returning non-error values, is
identified as the error causing cell.
You can also review the formulas and values for cells, which are precedents
to the error causing cell, by expanding the error-causing cell in the righthand Explorer list. This allows you to examine values which feed into the
problem formula. For example, a formula might return #VALUE because of
a combination of values which are referenced by the formula. Looking at
precedents to the error causing formula allows you to examine these
referenced values
Simulation Commands
191
For more information on these available Excel reports, see the Excel Reports
command.
192
Simulation Settings
Simulation Commands
193
Generator
Generator selects any of eight different random number generators for use
when simulating. There are eight random number generators (RNGs) in
@RISK6:
RAN3I
MersenneTwister
MRG32k3a
MWC
KISS
LFIB4
SWB
KISS_SWB
Each of the available random number generators is described here:
1) RAN3I. This is the RNG used in @RISK 3 & 4. It is from
Numerical Recipes, and is based on a portable subtractive
random number generator of Knuth.
2) Mersenne Twister. This is the default generator in @RISK. For
more information on its characteristics, see the web page
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html.
3) MRG32k3a. This is a robust generator from Pierre LEcuyer. For
more information on its characteristics, see
http://www.iro.umontreal.ca/~lecuyer/myftp/papers/streams00s
.pdf.
4) KISS. The KISS generator, (Keep It Simple Stupid), is designed to
combine the two multiply-with-carry generators in MWC with the
3-shift register SHR3 and the congruential generator CONG, using
addition and exclusive-or. Period about 2^123.
5) MWC. The MWC generator concatenates two 16-bit multiply-withcarry generators, x(n)=36969x(n-1)+carry, y(n)=18000y(n-1)+carry
mod 2^16, has period about 2^60 and seems to pass all tests of
randomness. A favorite stand-alone generator---faster than KISS,
which contains it.
6) LFIB4. LFIB4 is defined as a lagged Fibonacci generator: x(n)=x(nr) op x(n-s), with the x's in a finite set over which there is a binary
operation op, such as +,- on integers mod 2^32, * on odd such
integers, exclusive-or(xor) on binary vectors.
194
Simulation Settings
Simulation Commands
195
Seed
Initial Seed. The initial seed, for the random number generator, for the
simulation as a whole, can be set to either:
A Fixed value you enter have @RISK use the same seed each
simulation. When you enter a fixed non-zero seed value for the
random number generator, the exact same sequence of random
numbers will be repeated, simulation to simulation. Random
numbers are used in drawing samples from distribution functions.
The same random number will always return the same sampled
value, from a given distribution function. The seed value must be an
integer in the range 1 to 2147483647.
Setting a fixed seed value is useful when you wish to control the simulation
sampling environment. For example, you may want to simulate the same
model twice, only changing the argument values for one distribution
function. By setting a fixed seed, the same values will be sampled, each
iteration, from all distribution functions, except the one you changed. Thus,
the differences in the results between the two runs will be directly caused by
changing the argument values of the single distribution function.
Simulation Settings
Other Sampling
Options
Simulation Commands
197
198
Simulation Settings
Macros can be run at any, or all, of the possible times during a simulation.
This feature allows calculations which can only be performed through the
use of a macro to be made during a simulation. Examples of such macroperformed calculations are optimizations, iterative looping calculations
and calculations which require new data from external sources. In addition,
a macro may include @RISK distribution functions which are sampled
during the execution of the macro. The entered Macro Name should be
fully qualified, i.e., should contain the full address (including filename) of
the macro to be run.
There are no restrictions on the operations performed by the macro each
iteration. The user should, however, avoid macro commands which will do
things such as, close the worksheet being simulated, quit Excel, or other
similar functions.
@RISK includes an object oriented programming interface (API) that allows
custom applications to be built using @RISK. This programming interface is
described in the help file @RISK for Excel Developer Kit help, accessed for
the @RISK Help menu.
Simulation Commands
199
The Convergence tab settings specify how @RISK will monitor convergence
during a simulation. Convergence monitoring shows how statistics on
output distributions change as additional iterations are run during the
simulation.
As numerous iterations are executed, the output distributions generated
become more stable. Distributions become stable because the statistics
which describe them change less, as additional iterations are performed.
The number of iterations required, to generate stable output distributions,
varies depending on the model being simulated and the distribution
functions in the model.
By monitoring convergence you can ensure that you have run a sufficient,
but not excessive, number of iterations. This is especially important with
complex models that take a long time to recalculate.
Convergence monitoring does add to simulation runtime. If the fastest
simulation is desired for a preset number of iterations, turn convergence
monitoring off to maximize speed.
200
Simulation Settings
Simulation Commands
201
202
Simulation Settings
Start Simulation
Start Simulation Command
Starts a simulation
Clicking the Start Simulation icon starts a simulation using the current
settings.
A Progress window is displayed during simulations. The icons in this
window allow you to Run, Pause or Stop a simulation, as well as turn
Update Graphs/Reports Real-time and Show Excel Recalculations on and
off.
The Update Display option may be toggled on and off by pressing <Num
Lock> during the simulation.
Simulation Commands
203
Performance
Monitor
Clicking the arrow button at the bottom right of the Progress window
displays the Performance Monitor. This monitor shows additional
information on the status of each CPU used during a run.
204
All open @RISK windows will update during a simulation if the Simulation
Setting Update Windows During Simulation Every XXX Seconds is
selected. Especially useful is updating the @RISK Results Summary
window. The small thumbnail graphs, in this window, will update to show
a dashboard summary of simulation progress.
Start Simulation
Results Commands
Excel Reports
Excel Reports Command
Selects the reports on simulation results to generate in Excel
For more information on these and other defaults, see the Application
Settings command in this chapter.
Results Commands
205
Template
Sheets
You can use template sheets to create your own custom simulation report.
Simulation statistics and graphs are placed in a template using @RISK
statistics functions (such as RiskMean) or the graphing function
RiskResultsGraph. When a statistics function or graphing function is
located in a template sheet, the desired statistics and graphs are then
generated at the end of a simulation in a copy of the template sheet when
you choose the Template Sheets option in the Excel Reports dialog. The
original template sheet with the @RISK functions remains intact for use in
generating reports from your next simulation.
Template sheets are standard Excel sheets. They are identified to @RISK by
having a name that starts with RiskTemplate_. These files can also contain
any standard Excel formulas so custom calculations can be performed using
simulation results.
The example file Template.XLS shown above contains a template sheet. You
can review this sheet to see how to set up your own custom reports and
template sheets.
206
Excel Reports
Browse Results
Browse Results Command
Turns on the Browse Results mode where a graph of simulation
results is displayed when a cell is selected in Excel
The Browse Results mode allows you to see a graph of simulation results in
Excel, simply by clicking on the cell of interest in your worksheet.
Alternatively, press <Tab> to move the graph among output cells, with
simulation results, in open workbooks.
In Browse mode, @RISK pops up graphs of simulation results as you click,
or tab to cells in you spreadsheet, as follows:
To exit the Browse Results mode, simply close the popup graph, or click the
Browse Results icon on the toolbar.
Results Commands
207
208
Browse Results
Summary
Results Summary Window Command
Displays all simulation results including statistics and small
thumbnail graphs
The @RISK Results Summary Window summarizes the results of your
model and displays thumbnail graphs and summary statistics for your
simulated output cell and input distributions. As with the Model window,
you can:
Results Commands
209
The Results
Summary
Window and
Graph Navigator
210
Summary
Commands in
the Results
Summary
Window
Results Commands
Many graphs can be made in @RISK by simply dragging thumbnails off the
Results Summary Window. In addition, overlays can be added to a graph
by dragging one graph (or thumbnail) onto another.
211
Generating
Multiple Graphs
212
Summary
Columns
Displayed in
the Results
Summary
Window
If you select to show Percentile values in the table, the actual percentile is
entered in the rows Value at Entered Percentile.
Note: Column selections are retained as you change them. Separate column
selections can be made for the @RISK Model and @RISK Results
Summary window.
When Convergence Monitoring is turned on via Simulation Settings, the
Status column is automatically added as the first column in the Results
Summary window. It displays the convergence level for each output.
Results Commands
213
Editable p1,x1 and p2,x2 values, are columns that can be edited directly in
the table. Using these columns you can enter specific target values and/or
target probabilities directly in the table. Use the Edit menu Fill Down
command to quickly copy p or x values across multiple outputs or inputs.
Graph Menu
214
The Graph menu is accessed by 1) clicking the Graph icon, at the bottom of
the Results Summary Window or 2) right-clicking in the table. Selected
commands will be performed on the selected rows in the table. This allows
you to quickly make graphs of multiple simulation results from your model.
The command Automatic creates graphs using the default type (relative
frequency), for distributions of simulation results.
Summary
Copy and
Report Menu
Results Commands
Copy Grid. Copies the entire grid (text only; no thumbnail graphs)
to the clipboard.
Paste, Fill Down. Pastes or fills values into the current selection in
the table.
215
216
Summary
Define Filters
Define Filters Command
Filters values from simulation statistics calculations and graphs
Filters may be entered for each selected output cell, or sampled input
probability distribution. Filters allow you to remove unwanted values from
the statistics calculations and graphs generated by @RISK. Filters are
entered by clicking the Filter icon on the toolbar or, alternatively, by
clicking the Filter icon shown on the graph of a simulation result or in the
Data Window.
Results Commands
217
Apply Filters are applied as soon as you click the Apply button
in the Filter dialog box.
Clear Filters To remove all current filters, click the Clear Filters
button to remove the filters from the currently selected rows in the
table and then click Apply. To simply disable a filter, but leave the
entered filter range, set the Filter Type to Off.
218
Define Filters
Filtering from a
Graph Window
When you click the Filter icon shown on the graph of a simulation result, a
quick filter dialog is displayed that allows you to set a filter for just the
result displayed in the graph.
When filtering from a graph window, simply set the Type of filter and the
type of values to be entered, the minimum-maximum range and click
Apply. The graph is redisplayed (with new statistics) and the number of
values used (not filtered) is shown at the bottom of the graph. As with any
filter, values below the entered minimum or above the entered maximum
are removed from the statistics, sensitivity and scenario calculations for the
result and not included in generated graphs for the simulation result.
If you want to see the full Filter dialog listing all active Filters, click the
Show All button.
Results Commands
219
220
Define Filters
Report Windows
Detailed Statistics Command
Displays the Detailed Statistics window
Clicking the Detailed Statistics icon displays detailed statistics on simulation
results, for output cells and inputs.
The Detailed Statistics window displays statistics that were calculated for all
output cells and sampled input distributions. In addition, percentile values
(in increments of 5 perc%) are shown, along with filter information, and up
to 10 target values and probabilities.
The Detailed Statistics window may be pivoted so that it displays statistics
in columns and outputs and inputs, in rows. To pivot the table, click the
Pivot Table of Statistics icon at the bottom of the window.
Results Commands
221
Entering Target
Values in the
Detailed
Statistics
Window
The target entry area is viewed by scrolling the Detailed Statistics window
to the target rows, where values and probabilities can be entered. If a value
is entered, @RISK calculates the probability of a value occurring that is less
than, or equal to, the entered value. If the @RISK Defaults menu Display
Cumulative Descending Percentiles option is selected, the reported target
probability will be in terms of a probability of exceeding the entered target
value.
If a probability is entered, @RISK calculates the value in the distribution
whose associated cumulative probability equals the entered probability.
Default target percentiles shown in the Detailed Statistics window may be
set using the Utilities menu Application Settings command.
222
Report Windows
Results Commands
The Detailed Statistics window, like other @RISK reports windows, can be
exported to an Excel worksheet. Click the Copy and Report icon at the
bottom of the window and select Report in Excel to export the window.
223
Data Command
Displays the Data window
Clicking the Data icon displays data values, calculated for output cells and
sampled input distributions. A simulation generates a new set of data for
each iteration. During each iteration a value is sampled for each input
distribution, and a value is calculated for each output cell. The Data window
displays the simulation data in a worksheet where it can be further
analyzed, or exported, (using the Edit icon commands) to another
application for additional analysis.
Data is displayed, by iteration, for each output cell and sampled input
distribution. By moving across a row of the Data window you can see the
exact combination of input samples, which led to the shown output values
in any given iteration.
Sorting the
Data Window
224
Data from a simulation may be sorted to show key values you are interested
in. For example, you could sort to show those iterations where an error
occurred. You can also sort to show, decreasing or increasing, values for
any result. Optionally, you can hide filtered values or errors. Sorting can be
combined with the Iteration Step option to set Excel to the values for any
iteration you are interested in.
Report Windows
The Data Sort dialog controls how the Data Window will be sorted.
Results Commands
225
Iteration Step
Note: If your workbook in Excel has been changed since the simulation was
run, the Iteration values that were calculated in the simulation may no
longer match those calculated during the Iteration Step. When this
happens, the error is reported in the Title Bar of the Data window.
226
Report Windows
Sensitivities Command
Displays the Sensitivity Analysis window
Clicking the Sensitivity Analysis icon displays sensitivity analysis results
for output cells. These results show the sensitivity of each output variable to
its input variables.
Results Commands
227
There are isolated instances where you should disable Smart Sensitivity
Analysis on the Sampling tab of the Simulation Settings dialog box to
improve performance and sensitivity analysis results:
1) The Smart Sensitivity Analysis setup time for scanning precedents
at the start of the simulation adds significantly to runtime of a very
large model and you are not concerned that you may see sensitivity
analysis results (or tornado graph bars) for inputs unrelated to
outputs.
2) You use a macro or DLL that performs calculations using @RISK
input values in cells that have no relationship via workbook
formulas with the output. This macro or DLL then returns a result
to a cell that is used in calculating the outputs value. In this case
there is no relationship in workbook formulas between the output
and the @RISK distributions and Smart Sensitivity Analysis should
be disabled. To avoid situations like this, we recommend that you
create macro functions (UDFs) that explicitly reference all used
input cells in their argument lists.
In earlier versions of @RISK, Smart Sensitivity Analysis was not used. This
is the equivalent to the Settings menu Simulation Settings command
Smart Sensitivity Analysis Disabled option.
Change in
Output Statistic
Analysis
In the change in output statistic analysis, samples for an input are grouped
in a set of equal sized bins or scenarios, ranging from the inputs lowest
value to its highest. A value for a statistic of the output (such as its mean) is
calculated for the output values in the iterations associated with each bin.
Inputs are ranked by the amount of +/- swing they caused for the output
statistic.
This analysis is similar to that used for a Scenario Analysis, except that
instead of using scenarios for an output, scenarios for each input are used.
Each input scenario is an equal sized bin, such as iterations when the
input is between its 90th and 100th percentile. A value for a statistic of the
output (such as its mean) is calculated for the output values in the iterations
associated with each bin. In a tornado chart, the highest statistic value for
any bin is plotted on one end of the bar for an input and the lowest statistic
value for any bin is plotted on the other end.
In the Sensitivity Window, inputs are ranked by the range between their
highest statistic value for any bin and lowest statistic value.
228
Report Windows
You can control the statistic that will be calculated for the output in this
analysis and the number of equal sized bins each input will be divided into.
This is done using the Change in Output Statistic settings dialog.
The statistic used for an output can be its mean or a percentile value. The
number of iterations in each scenario or bin is determined by the total
number of iterations divided by the number of bins. Thus, if you ran 1000
iterations and had 10 bins, the statistic for the output for each bin would be
calculated using 100 values. If you run few iterations, you will have a
limited number of values in each bin and your results will not be stable.
Regression and
Correlation
What is
Multivariate
Stepwise
Regression?
Results Commands
229
indicates that there is no significant relationship between the input and the
output, while a regression value of 1 or -1 indicates a 1 or -1 standard
deviation change in the output for a 1 standard deviation change in the
input.
The R-squared value, listed at the top of the column, is simply a
measurement of the percentage of variation that is explained by the linear
relationship. If this number is less than ~ 60% then the linear regression
does not sufficiently explain the relationship between the inputs and
outputs, and another method of analysis should be used.
Even if your sensitivity analysis produces a relationship with a large value
of R-squared, examine the results to verify that they are reasonable. Do any
of the coefficients have an unexpected magnitude or sign?
What Are
Mapped Values?
What is
Correlation?
Mapped values are simply a transformation of the beta coefficient for the
Regression (Coefficient) into actual values. The beta coefficient indicates the
number of standard deviations the output will change, given a one standard
deviation change in the input (assuming all other variables are held
constant).
Correlation is a quantitative measurement of the strength of a relationship
between two variables. The most common type of correlation is linear
correlation, which measures the linear relationship between two variables.
The rank order correlation value returned by @RISK can vary between -1
and 1. A value of 0 indicates there is no correlation between variables; they
are independent. A value of 1 indicates a complete positive correlation
between the two variables; when the input value samples high, the output
value will sample high. A value of -1 indicates a complete inverse
correlation between the two variables; when the input value samples
high, the output value will sample low. Other correlation values
indicate a partial correlation; the output is affected by changes in the
selected input, but may be affected by other variables as well.
What is Rank
Order
Correlation?
Rank order correlation calculates the relationship between two data sets by
comparing the rank of each value in a data set. To calculate rank, the data is
ordered from lowest to highest and assigned numbers (the ranks) that
correspond to their position in the order.
This method is preferable to linear correlation when we do not necessarily
know the probability distribution functions from which the data were
drawn. For example, if data set A was normally distributed and data set B
was lognormally distributed, rank order correlation would produce a better
representation of the relationship between the two data sets.
230
Report Windows
Comparison of
Methods
So, which measurement of sensitivity should you use? In most cases, the
regression analysis is the preferred measure. The statement correlation
does not imply causality holds, as an input that is correlated with an
output may have little impact on the output, even if it is correlated with it.
However, in cases where the R-squared value, reported by the Stepwise
Regression is low, you can conclude that the relationship between the input
and output variables is not linear. In this case, you should use the RankOrder Correlation analysis to determine the sensitivity in your model.
If the R-squared value reported by the Stepwise Regression is high, it is
easy to conclude that the relationship is linear. But, as mentioned above,
you should always verify that the regression variables are reasonable. For
example, @RISK might report a significant positive relationship between
two variables in the regression analysis, and a significant negative
correlation in the rank-order analysis. This effect is called multicollinearity.
Multicollinearity occurs when independent variables in a model are
correlated to each other as well as to the output. Unfortunately, reducing
the impact of multicollinearity is a complicated problem to deal with, but
you may want to consider removing the variable that causes the
multicollinearity from your sensitivity analysis.
Displaying a
Scatter Plot
Matrix
Using Drag and Drop, a thumbnail scatter plot in the Scatter Plot Matrix can
be dragged, and expanded, into a full graph window. In addition, overlays
of scatter plots may be created by dragging additional scatter thumbnail
graphs from the matrix onto an existing scatter plot
Results Commands
231
Scenarios Command
Displays the Scenario Analysis window
Clicking the Scenarios icon displays scenario analysis results for output
cells. Up to three scenarios may be entered for each output variable.
Scenarios are shown in the top row of the scenario analysis window or in
the Scenarios section of the Detailed Statistics window. Targets are
preceded by a > or < operator and can be specified in terms of percentiles or
actual values.
What is
Scenario
Analysis?
232
Report Windows
From the above explanation, you know that the scenario report will list all
input variables that are significant toward reaching a defined goal for an
output variable. But what exactly does that mean?
For example, @RISK may tell you that the Retail Price input is significant
when studying the highest quartile of Total Sales. So, you know that when
Total Sales are high, the median Retail Price is significantly different than
the median Retail Price for the whole simulation.
@RISK calculates three statistics for each significant input distribution in a
scenario:
You might find that the subset median for Retail Price is lower than the
median for the whole simulation (thus the percentile is less than 50%). This
indicates that a lower Retail Price can help you reach the goal of high Total
Sales.
Results Commands
233
The default scenarios may be changed by clicking the Edit Scenarios icon
(either in a graph window or in the Scenarios window) or by double
clicking on a scenario such a >90% - that is displayed in the first row of the
Scenarios Window.
Three scenarios can be entered for each simulation output. Each scenario
may have one or two bounds. If you enter two bounds you will be
specifying a scenario that has a min-max range for the output, such as >90%
and <99%. Each bound may be specified as a percentile or an actual value,
such as >1000000.
234
Report Windows
If you dont want to use a second bound, just leave it blank. This specifies
that the second bound is either the minimum output value (< operator is
used, such as <5%) or maximum output value (> operator is used, such as
>90%).
Note: Default scenarios settings can be entered using the Application
Setttings command.
Scatter Plot
Matrix in
Scenarios
Window
A scatter plot in the Scenarios window is an x-y scatter plot with an overlay.
This graph shows:
1) the input value sampled vs. the output value calculated in each iteration
of the simulation,
2) overlaid with a scatter plot of the input value sampled vs. the output
value calculated when the output value meets the entered scenario.
In the Scatter Plot Matrix, ranked scenario analysis results are displayed
with scatter plots. To show the Scatter Plot Matrix, click the Scatter Plot icon
in the lower left of the Scenarios window.
Note: You may only overlay the same input and output, under different
scenarios, in a scatter graph which displays scenario analysis results.
Results Commands
235
Scenarios
Tornado Graph
236
Report Windows
@RISK Graphs
Simulation inputs and results are easily expressed with graphs. Graphs are
shown in many places in @RISK. For example, the Results Summary
Window shows thumbnail graphs of the simulation results for all your
outputs and inputs. Dragging a thumbnail graph off of the Results
Summary Window allows you to graph the simulation results, for the
selected output or input, in a full window. Graphs are also displayed when
you click on a worksheet output or input cell in the Browse Results mode.
Overview
Floating and
Callout
Windows
Using the icons on the graph you can detach a callout window and turn it
into a floating window, or reattach a floating window to the cell it
represents.
The type of graph displayed may be changed, using the icons at the bottom
of the Graph window. In addition, by clicking the right mouse button on a
graph window, a pop-up menu is displayed with commands that allow the
changing of a graphs format, scaling, colors, titles, and other characteristics.
Statistics and
Reports
The legend and Statistics Grid displayed on the right of a graph can be
changed as desired. By default you see detailed statistics for the result that
is graphed. Changing the selector at the top to Legend (with Statistics)
shows a smaller statistics legend directly on the graph instead of the grid.
Each graph and its statistics may be copied to the clipboard, and pasted into
your spreadsheet. As graphs are transferred, as Windows metafiles, they
may be resized and annotated once pasted into a spreadsheet.
Using the Chart in Excel command, graphs can be drawn in Excel's native
graph format. These graphs can be changed, or customized, just as with any
Excel graph.
Results Commands
237
Icons on Graphs
Formatting
Graphs
238
All @RISK graph windows have a set of icons in the lower left which allows
you to control the type, format, and placement of the displayed graphs. You
can also use the Zoom icon to quickly zoom in on a region displayed in a
graph.
@RISK Graphs
The Graph Options dialog may change depending on the type of graph
being customized. Graph options specific to a certain graph type are
discussed in the reference section pertaining to the graph type.
Results Commands
239
Graphs from
Multiple
Simulations
When multiple simulations are run, a graph can be made for result
distributions in each simulation. Often it is desirable to compare the graphs
created for the same result in different simulations. This comparison shows
how risk changes for the distributions by simulation.
To create a graph that compares the results for a cell in multiple simulations:
1) Run multiple simulations, by setting the Number of Simulations in
the Simulation Settings dialog box to a value greater than one. Use
the RiskSimtable function to change worksheet values by
simulation.
2) Click the Select Simulation # to Display icon at the bottom of the
displayed Browse window
3) Select All Simulations to overlay graphs for all simulations for the
selected cell on the graph
To create a graph that compares the results for a different cell in multiple
simulations:
4) Click the Overlay Graph icon at the bottom of a displayed Browse
window when multiple simulations have been run
5) Select the cells in Excel whose results you want to add to the graph.
6) Select the simulation # for the cells you wish to overlay from the
dialog.
The Select Simulation dialog is also available in report windows when you
wish to filter the report to show only those results from a specific
simulation.
240
@RISK Graphs
Results Commands
241
Delimiters
242
@RISK Graphs
Overlaying
Graphs for
Comparison
Results Commands
243
Overlaying
Histogram and
Cumulative
Curves on a
Single Graph
244
@RISK Graphs
Graph Options
Distribution Tab
Results Commands
246
@RISK Graphs
Graph Options
Delimiters Tab
Results Commands
247
Graph Options
Markers Tab
For histogram and cumulative graphs, the Graph Options Markers Tab
specifies how markers will be displayed with the graph. Markers annotate
key values on a graph.
When markers are displayed, they are included in graphs when you copy
them into a report.
248
@RISK Graphs
Results Commands
249
Tornado Graphs
Tornado graphs from a sensitivity analysis display a ranking of the input
distributions which impact an output. Inputs that have the largest impact
on the distribution of the output will have the longest bars in the graph.
Tornado graphs for an output may be displayed by selecting a row, or rows,
in the @RISK Results Summary window, clicking Tornado Graph icon at
the bottom of the window and selecting one of the three Tornado graph
options. Alternatively, a distribution graph for a simulated output can be
changed to a tornado graph by clicking the Tornado Graph icon, in the
bottom left of the graph, and selecting a tornado graph.
Types of
Tornado Graphs
250
@RISK Graphs
There may be times that a tornado bar is shown that you want to remove
from the graph. To do this, simply right-click on the bar you want to
remove and select Hide Bar. To return the graph to its default bars, simply
right-click on the graph and select Restore Hidden Bars.
Note: If your tornado graph has many bars, there may not be enough room
to display labels for each bar. In that case, simply drag a corner of the
graph to increase its size, which will allow more bar labels to be shown.
Results Commands
251
Spider Graph
The spider graph shows how the output statistic value changes as the
sampled input value changes. The steeper the line, the greater the impact of
the input on the output. This shows more information than a tornado
graph, as the tornado only shows the overall swing in output statistic value,
while the spider gives you information on the rate of change in output value
as the input changes.
252
@RISK Graphs
Scenarios
Tornado Graph
Results Commands
253
Scatter Plots
@RISK provides scatter plots to show the relationship between a simulated
output and the samples from an input distribution. Scatter graphs can be
created by:
As with other @RISK graphs, scatter plots will update in real-time when a
simulation runs.
A scatter plot is an x-y graph showing the input value sampled vs. the
output value calculated in each iteration of the simulation. A confidence
ellipse identifies the region where, at a given confidence level, the x-y values
will fall. Scatter graphs may also be standardized so that values from
multiple inputs may be more easily compared on a single scatter plot.
@RISK Graphs
Scatter Plot
Overlays
Scatter graphs, like many other @RISK graphs, may be overlaid. This shows
how the values for two (or more) inputs are related to the value of an
output.
In the above scatter plot, the input has a large affect on the output Net
Income/ 2010 but no impact on the output Net Income/ 2011.
Note: Overlays may be added to a scatter plot by clicking the Add icon
(with a plus sign) shown at the bottom of the graph window.
Results Commands
255
Graph Options
Scatter Tab
For scatter plots, the Graph Options Scatter Tab specifies whether values
displayed in a scatter plot will be standardized, and the settings for
confidence ellipses.
256
Scatter Plot
Delimiters
Scatter plots have both X and Y axis delimiters that can be used to show the
% of the total graph points that fall in each of the delimited quadrants of the
graph. If you have overlays in your scatter plot, the % value for each
displayed plot are color coded.
As with distribution graphs, the number of plots in an overlay graph for
which percentages are reported can be set in on the Delimiters tab of the
Graph Options dialog.
If you zoom in on a region of the scatter plot, the % value shown in each
quadrant represents the % of the total graph points that are in the visible
quadrant (where total graph points = the total # of points in the original
non-zoomed graph) .
Note: Grabbing the crossing point of the X and Y axis delimiters allows you
to adjust both delimiters at the same time.
Results Commands
257
Summary Graphs
@RISK has two types of graphs that summarize trends across a group of
simulated outputs (or inputs). These are the Summary Trend graph and
Box Plot. Each of these graphs can be made by:
Selecting the rows in the @RISK Results Summary Window for the
outputs, or inputs, you wish to include in the summary graph, then
clicking the Summary Graph icon at the bottom of the window (or
right-clicking in the table), and selecting Summary Trend or
Summary Box Plot.
For an output range, you can also click on the Range Name header
and select Summary Graph.
Note: Elements may be added to a summary graph by clicking the Add icon
(with a plus sign) shown at the bottom of the graph window.
258
@RISK Graphs
Summary Trend
Results Commands
259
Graph Options
Trend Tab
The Graph Options Trend Tab specifies the values displayed in each
band of the Summary Trend graph, and the colors for those bands.
260
Statistics. Selects the values displayed for the Center Line, the
Inner Band and the Outer Band of the Summary Trend graph.
Settings include:
-
Inner Band, Outer Band selects the range each band will
describe. The inner band must always be narrower than the
outer band that is, you must pick a set of statistics that
include a larger range of the distribution for the outer band vs.
the inner band.
Formatting. Selects the color, and shading, used for each of the
three bands in the Summary Trend graph.
@RISK Graphs
Summary BoxPlot
Results Commands
A Summary Box-Plot displays a box plot for each distribution selected for
inclusion in the summary graph. A box plot (or box-whisker graph) shows
a box for a defined inner range of a distribution, with whisker lines showing
the outer limits of the distribution. An inner line in the box marks the
location of the mean, median, or mode of the distribution.
261
Graph Options
Box-Whisker
Tab
The Graph Options Box-Whisker Tab specifies the values used for the
Center Line, Box, and Whiskers, in each box of the Summary Box Plot graph
and the colors for the boxes.
262
Statistics. Selects the values displayed for the Center Line, the Box
and the Whiskers of the Box-Plot. Settings include:
-
Box selects the range each box will describe. The range for
the box must always be narrower than the whiskers that is,
you must pick a set of statistics that include a larger range of the
distribution for the whiskers vs. the box.
Formatting. Selects the color and shading used for the box.
@RISK Graphs
Summary
Graphs from
Multiple
Simulations
When multiple simulations are run, a summary graph can be made for sets
of result distributions in each simulation. Often it is desirable to compare
the summary graphs, created for the same distributions, in different
simulations. This comparison shows how the trend in expected value and
risk changes for the distributions by simulation.
To create a summary graph that compares the results for a range of cells in
multiple simulations:
1) Run multiple simulations, by setting the Number of Simulations
in the Simulation Settings dialog box to a value greater than one.
Use the RiskSimtable function to change worksheet values by
simulation.
2) Click the Summary Graph icon at the bottom of the displayed
Browse window for the first cell to be added to the Summary
Graph.
3) Select the cells in Excel whose results you want to add to the
graph.
4) Select All Simulations from the dialog.
Results Commands
263
Summary Graph
of a Single
Result Across
Multiple
Simulations
To create a summary graph that compares the results for a single cell across
multiple simulations, follow the previous steps but in Step 3 only select a
single cell in Excel to include in the summary graph. The displayed graph
shows the five parameters from the cells distribution (the mean, two upper
and two lower band values) in each simulation. This summarizes how the
distribution for the cell changed by simulation.
264
@RISK Graphs
Formatting Graphs
@RISK graphics use a graphing engine designed specifically for processing
simulation data. Graphs can be customized and enhanced as needed; titles,
legends, colors, scaling and other settings can all be controlled through the
selections in the Graph Options dialog. The Graph Options dialog is
displayed by right clicking on a graph, and selecting the Graph Options
command, or by clicking the Graph Options icon in the bottom left of the
graph window.
The available options on tabs in the Graph Options dialog are described
here. Note not all options are available for all graph types, and available
options may change by graph type.
Graph Options
Title Tab
Results Commands
The options on the Graph Options Title Tab specify the titles that will be
displayed on the graph. An entry for main graph title and description are
available. If you do not enter a title, @RISK will automatically assign one
for you based on the name(s) of the output or input cells being graphed.
265
Graph Options
X- and Y-Axis
Tabs
The options on the Graph Options X and Y Axis Tabs specify the scaling
and axis titles that will be used in the graph. A Scale Factor (such as
thousands or millions) can be applied to entered axis minimum and
maximum values and number of axis ticks may be changed. Axis scaling
may also be changed directly on the graph by dragging the limits of an axis
to a new minimum or maximum position. The Graph Options X Axis
Tab for a distribution graph is shown here.
Note: Depending on the type of graph in use, the options displayed on the X
and Y axis tabs may be different; as different scaling options are available
for different types of graphs (summary, distribution, scatter, etc.).
266
@RISK Graphs
Graph Options
Curves Tab
Results Commands
The options on the Graph Options Curves Tab specify the color, style
and value interpolation for each curve in the graph. The definition of a
curve changes depending on the type of graph. For example, in a
histogram or cumulative graph, a curve is associated with the primary
graph and each overlay. In a scatter graph, a curve is associated with each
X-Y data set shown on the graph. Clicking on a curve in the Curves: list
displays the available options for that curve.
267
Graph Options
Legend Tab
The options on the Graph Options Legend Tab specify the manner in
which statistics that will be displayed with the graph.
Statistics or data may be displayed for each curve in a graph. The available
statistics change depending on the type of graph displayed. These statistics
can be shown in a grid next to the graph (with a column for each curve) or
in a table in the graph legend.
Legend statistics are copied with the graph when it is pasted into a report.
They also update as a simulation runs. To change the statistics displayed
with a graph legend:
1) Uncheck Automatic to allow customization of the displayed
statistics
2) Check the Statistics desired
3) Click Redefine to change the percentile values that will be reported,
if desired
To remove the statistics from a graph:
268
Graph Options
Other Tab
The options on the Graph Options Other Tab specify other available
settings for a displayed graph. These include the Basic Color Scheme used
and the formatting of numbers and dates displayed in the graph.
Numbers displayed on a graph can be formatted to show the level of
precision desired using the Number Formats options shown on the Other
tab. The available numbers for formatting changes depending on the type
of graph displayed.
Dates displayed on a graph can be formatted to show the level of precision
desired using the Date Formats options shown on the Other tab. The
available dates for formatting changes depending on the type of graph
displayed.
For distribution graphs, Statistics (Unitless) refers to reported statistics
such as Skewness and Kurtosis that are not in the units of the values for the
graph. Statistics (with Units) refers to reported statistics such as Mean and
Standard Deviation that use the units of the graph.
Results Commands
269
Formatting By
Clicking on the
Graph
Titles simply click on the title in the graph and type in the new
entry
X-Axis Scaling select the end line of the axis and move it to
rescale the graph
270
@RISK Graphs
Advanced Analyses
Advanced Analyses
271
272
Goal Seek
Goal Seek Command
Sets up and runs an @RISK Goal Seek
Goal Seek allows you to find a specific simulated statistic for a cell (for
example, the mean or standard deviation) by adjusting the value of another
cell. The setup of an @RISK Goal Seek is very similar to the standard Excels
Goal Seek. Unlike Excels Goal Seek, however, @RISK's Goal Seek utilizes
multiple simulations to find the adjustable cell value that achieves your
results.
When you know the desired statistic value for an output, but not the input
value needed to obtain that value, you can use the Goal Seek feature. An
input can be any cell in your Excel workbook. An output is any cell that is
an @RISK simulation output (i.e., a cell containing a RiskOutput() function).
The input should be a precedent of the output cell being targeted. When
goal seeking, @RISK varies the value in the input cell and runs a full
simulation. This process is repeated until the desired simulation statistic for
the output equals the result you want.
Goal Seek is invoked by selecting the Goal Seek command from the
Advanced Analyses icon on the @RISK toolbar.
Advanced Analyses
273
274
Cell Identifies the cell reference for the output whose simulation
statistic you are trying to set to the entered value. This cell must be
an @RISK output cell. If the cell does not contain a RiskOutput()
function, you will be prompted to add a RiskOutput(). Clicking the
selection button next to the Cell entry displays a list of current
outputs which you can select from:
Goal Seek
Value Specifies the value you want the Statistic for the value in
Cell to converge on. This value is called a goal.
The By Changing option identifies the single cell that you want Goal Seek
to change, so that the Goal options Statistic for Cell approximates the
Value. The Cell must be dependent on the By Changing cell if it is not,
Goal Seek will not be able to find a solution.
Advanced Analyses
275
276
Minimum Allows you to set the minimum value to use for the
By Changing Cell. Goal Seek attempts to bracket a solution by
assuming that there is one between the changing cell Minimum and
changing cell Maximum.
Maximum Allows you to set the maximum value to use for the
By Changing Cell. Goal Seek attempts to bracket a solution by
assuming that there is one between the changing cell Minimum and
changing cell Maximum.
Goal Seek
Advanced Analyses
277
It is possible that Goal Seek will converge on a goal, but will not be able to
converge within the requested accuracy. In this case Goal Seek will prompt
you with its best solution.
How Are Input
Values Selected
in an @RISK
Goal Seek?
278
Note: Goal Seek is not designed to work with multiple simulation models.
For RiskSimtable functions, the first value in the table will be used for all
simulations.
Advanced Analyses
279
280
Goal Seek
Stress Analysis
Stress Analysis Command
Sets up and runs a Stress Analysis
Stress Analysis allows you to analyze the effects of stressing @RISK
distributions. Stressing a distribution restricts samples drawn from the
distribution, to values between a specified pair of percentiles. Alternatively,
stressing can be done by specifying a new stress distribution that will be
sampled, instead of the original distribution in your model. With Stress
Analysis you can select a number of @RISK distributions, and run
simulations while stressing those distributions jointly in one simulation, or
separately in multiple simulations. By stressing the selected distributions,
you can analyze scenarios without changing your model.
After completing a simulation, Stress Analysis provides you with a
collection of reports and graphs that you can use to analyze the effects of
stressing certain distributions on a selected model output.
Stress Analysis is invoked by clicking the Stress Analysis command, from
the Advanced Analyses on the @RISK toolbar.
Advanced Analyses
281
282
Stress Analysis
The Inputs section allows you to Add, Edit, and Delete the @RISK
Distributions that you wish to stress. The specified distributions are
maintained in a list that contains the cell range, the @RISK Name, the
Current distribution, and an Analysis Name that you can edit.
Advanced Analyses
Add and Edit Display the Input Definition dialog. This allows
you to specify an @RISK distribution, or range of @RISK
Distributions to be stressed. You can then select from Low, High, or
Custom sampling ranges, or specify an alternate stress distribution
or formula.
283
284
Stress Analysis
The Variation Method options allow you to enter a range, within the
selected probability distribution(s) to sample from, or enter an alternate
distribution, or formula, to substitute for the selected probability
distribution(s) during the analysis.
Advanced Analyses
285
The Multiple Inputs section allows you to stress all of your specified @RISK
distributions during one simulation, or to run a separate simulation for each
@RISK distribution.
286
Stress Analysis
The Reports section allows you to choose which reports and graphs you
want to be generated at the end of the stress simulations. The options
include a Summary report, Box-Whisker Plots, Comparison Graphs,
Histograms, Cumulative Distribution Functions and Quick Reports. For
more information on the reports generated by a Stress Analysis, see Reports
in this section.
The Place Reports in section allows you to place your results in the active
workbook, or a new workbook.
Advanced Analyses
287
288
Summary report
Box-Whisker Plots
Comparison Graphs
Histograms
Quick Reports
Stress Analysis
Summary
Report
Advanced Analyses
The Summary reports describes the stressed inputs, and the corresponding
statistics of the monitored output: Mean, Minimum, Maximum, Mode,
Standard Deviation, Variance, Kurtosis, Skewness, 5th Percentile and 95th
Percentile.
289
Box-Whisker
Plot
The left and right of the box are indicators of the first and third quartiles.
The vertical line, inside the box represents the median, and the X indicates
the location of the mean. The box width represents the interquartile range
(IQR). The IQR is equal to the 75th percentile data point minus the 25th
percentile data point. The horizontal lines, extending from either side of the
box, indicate the first data point that is less than 1.5 times the IQR below the
low edge of the box, and the last data point that is less than 1.5 times the
IQR above the high edge of the box. Mild outliers, shown as hollow squares,
are data points between 1.5 times IQR and 3.0 times IQR outside the box.
Extreme outliers, shown as solid squares, are points beyond 3.0 times IQR
outside the box.
290
Stress Analysis
Quick Report
Advanced Analyses
291
Comparison
Graph
292
Stress Analysis
Histogram
Cumulative
Summary
Advanced Analyses
293
294
Stress Analysis
Advanced Analyses
295
The Inputs options allow you to Add, Edit, and Delete the worksheet cells
and @RISK distributions that you wish to include in the analysis. The
specified cells, and distributions, are maintained in a list that contains the
cell range, the @RISK Name, the Current distribution, and an Analysis
Name that you can edit.
296
Add and Edit Displays the Input Definition dialog. This allows
you to specify either a single @RISK distribution or worksheet cell,
or a range of @RISK distributions or worksheet cells to be analyzed.
Advanced Analyses
Type. Type specifies the type of input you are entering (either a
distribution or a worksheet cell). Inputs to an Advanced Sensitivity
Analysis can be either @RISK distributions that have been entered
into your worksheet formulas or worksheet cells.
297
If you are selecting worksheet cells as inputs, the name of a single input can
be typed directly in the Name entry. When you have selected a range of
inputs, the Name entry shows the names of each cell, separated by commas.
298
These names can be edited by typing in the box (keeping the commaseparated format) or by clicking the ... button, which opens the Sensitivity
Analysis Cell Names dialog.
Cell names are defined in the Input Definition dialog only for the purposes
of Advanced Sensitivity Analysis. These names are used in @RISK Results
Summary Window, and in the reports generated by Advanced Sensitivity
Analysis These cell names do not, however, become part of your Excel
model.
Advanced Analyses
299
Variation
The Variation options describe the type of variation you will use to select
the values that will be tested for your input(s). During an analysis, inputs
are stepped across a range of possible values and a full simulation is run
at each step value. Variation defines the nature of this range either %
Change from Base, Change from Base Value, Values Across Range,
Percentiles of Distribution, Table of Values, or Table from Excel Range.
These different Variation approaches provide a great deal of flexibility in
describing the values to be tested for an input. Depending on the Variation
method you select, the entry information, for defining the actual range and
step values, (as shown below in the Input Definition dialog) will change.
Each Variation method, and its associated range and value entries, is
described here.
300
% Change from Base Value. With this Variation method, the first
and the last value in the sequence to step through are obtained by
incrementing, or decrementing, the input's Base Value by the
percentage values specified in Min Change (%) and Max Change
(%) entries. The intermediate values are at equal intervals, with the
number of values to test set by # of Steps.
Change from Base Value. With this Variation method, the first and
the last value in the sequence to step through, are obtained by
adding to the Base Value the values specified in Min Change and
Max Change entries. The intermediate values are at equal intervals,
with the number of values to test set by # of Steps.
Advanced Analyses
301
Add Analysis
Names
Table from Excel Range. With this Variation method, the sequence
of values to step through is found in the range of worksheet cells
specified in Excel Range entry. This range can contain any number
of values; however, it is important to remember that a full
simulation will be run for each value in the referenced range.
The Sensitivity Analysis Names dialog allows you to enter a name for the
simulation to be run at each stepped input value. The default name @RISK
has created is initially shown, and you can change this as desired.
302
Advanced Analyses
303
The Place Reports section allows you to place your results in the active
workbook, or a new workbook.
Include
Simtable
Functions as
Inputs to
Analyze
304
When a smaller, faster analysis, is desired, the Cancel button gives the user
an opportunity to change the # of Iterations per simulation in the
Simulation Settings dialog, the number of Inputs to Analyze, or the number
of values in the sequence associated with each input (that is, # of Steps or
table items).
When an Advanced Sensitivity Analysis is run, the following actions occur
for each input in the analysis:
1) A single step value for the input is substituted for the existing cell
value, or @RISK distribution, in the worksheet.
2) A full simulation of the model is run.
3) The simulation results, for the tracked output Cell to Monitor, are
collected and stored.
4) This process is repeated, until a simulation has been run, for each
possible step value for the input.
The results of the Sensitivity Analysis are also available in the @RISKResults Summary Window. You can analyze them further using tools
available in this window.
Advanced Analyses
305
Reports
Summary
Box-Whisker Plot
Input Graphs
Quick Reports
Percentile Graph
Tornado Graph
Each of these reports is generated in Excel, either in the workbook with your
model, or in a new workbook. These reports are detailed in this section.
Summary
306
The Summary report describes the values assigned to the analyzed inputs,
and the corresponding statistics of the monitored output: Mean, Minimum,
Maximum, Mode, Median, Standard Deviation, Variance, Kurtosis,
Skewness, 5th Percentile and 95th Percentile.
Advanced Analyses
The Input Graphs report identifies how the tracked simulation statistic
changed when simulations were run at each of the selected step values for
an input. These graphs include:
Line Graph Plots the value of the tracked simulation statistic for
the output against the value used for the input in each simulation.
There is one point on the line graph for each simulation run when
the Advanced Sensitivity Analysis was stepping across the
particular input.
307
Quick Report
308
Percent Change
Graph
The Percent Change Graph plots the Cell To Monitor statistic against each
of the selected inputs as a Percent Change from Base. The input value, on
the X-axis, is calculated by comparing each input value tested with the
entered base value for the input.
Percentile
Graphs
The Percentile Graph plots the Cell To Monitor statistic against percentiles
of each of the @RISK distributions that were selected for analysis with step
type Percentiles of Distribution. Note: Only inputs that were @RISK
distributions will be displayed on this graph.
Advanced Analyses
309
Tornado
310
The Tornado Graph shows a bar for each of the inputs defined for analysis,
showing the minimum and maximum values that the specified Cell To
Monitor statistic acquires, as the values of the input vary.
RISKOptimizer
Introduction
RISKOptimizer combines simulation and optimization to allow the
optimization of models that contain uncertain factors. RISKOptimizer,
through the application of powerful optimization techniques and Monte
Carlo simulation, can find optimal solutions to problems which are
"unsolvable" for standard linear and non-linear optimizers. RISKOptimizer
combines the simulation technology of @RISK, and the optimization engines
of Evolver, Palisades genetic algorithm based solver, and OptQuest, a
widely used optimizer. Users familiar with either Evolver or Excels built in
Solver should be able to use RISKOptimizer with little difficulty.
Why RISKOptimizer?
RISKOptimizer opens up a whole new spectrum of problems to
optimization. With RISKOptimizer, optimal solutions can be found when
problems contain variables outside your control whose values are not
known. Current optimizers such as Solver (a linear and non-linear
optimizer included with Excel) and Evolver (software from Palisade
Corporation based on genetic and OptQuest optimization methods) cannot
find optimal solutions when ranges of possible values are entered for
uncertain factors in a model.
Traditional
Optimization
Problems
311
Optimization of
Uncertain
Models
When a model has uncertain elements, however, both Solver and Evolver
cannot generate optimal solutions. In the past, many optimization models
just ignored uncertainty, making models unrealistic but optimizable. If an
attempt was made to find optimal values by using simulation, a "bruteforce" approach was employed to search possible adjustable cell values on
an iterative basis. This involved running an initial simulation, changing one
or more values, rerunning the simulation, and repeating this process until
what looked like an optimal solution was found. This is a lengthy process,
and it is usually not clear how to change the values from one simulation to
the next.
With RISKOptimizer the uncertainty present in a model may be included
and reliable optimal solutions which take that uncertainty into account can
be generated. RISKOptimizer uses simulation to deal with the uncertainty
present in the model and uses advanced optimization techniques to
generate possible values for the adjustable cells. The result of this
simulation optimization is the combination of values for the adjustable
cells which minimizes or maximizes a statistic for the simulation results for
the target cell. You may, for example, wish to find the combination of
adjustable cell values which maximizes the mean of the target cells
probability distribution, or minimizes the standard deviation.
Modeling
Uncertainty
312
Introduction
Optimization
Using
Simulation
RISKOptimizer
313
Simulation
Results
Applications of
Simulation
Optimization
Using
RISKOptimizer
314
All @RISKs graphs and reports are available for viewing the results of a
best simulation in RISKOptimizer. This includes simulation statistics
functions which can be used to return simulation results directly to your
spreadsheet. The function RiskMean(cell reference), for example, returns the
mean of the simulated distribution for the entered cell directly to a
worksheet cell or formula.
The availability of optimization for uncertain models allows the solution of
many previously "unoptimizable" problems. As a rule, any model that has
uncertain elements can be optimized through the combination of simulation
and optimization, including:
Introduction
What Is RISKOptimizer?
RISKOptimizer provides users with an easy way to find optimal solutions to
models that include uncertainty. Simply put, RISKOptimizer finds the best
inputs that produce a desired simulation output. You can use
RISKOptimizer to find the right mix, order, or grouping of variables that
produces the highest expected value for profits, the lowest risk (i.e., the
minimum variance) for profits, or the largest expected value for goods from
the least amount of materials. With RISKOptimizer you first set up a model
of your problem in Excel, then call up RISKOptimizer to solve it.
You must first model your problem in Excel, then describe it to the RISKOptimizer add-in.
Excel provides all of the formulas, functions, graphs, and macro capabilities
that most users need to create realistic models of their problems.
RISKOptimizer provides the interface to describe the uncertainty in your
model and what you are looking for, and provides the engines that will find
it. Together, they can find optimal solutions to virtually any problem that
can be modeled.
RISKOptimizer
315
Genetic
Algorithms
Probability
Distributions
and Simulation
316
Introduction
What Is Optimization?
Optimization is the process of trying to find the best solution to a problem
that may have many possible solutions. Most problems involve many
variables that interact based on given formulas and constraints. For
example, a company may have three manufacturing plants, each
manufacturing different quantities of different goods. Given the cost for
each plant to produce each good, the costs for each plant to ship to each
store, and the limitations of each plant, what is the optimal way to
adequately meet the demand of local retail stores while minimizing the
transportation costs? This is the sort of question that optimization tools are
designed to answer.
317
assume a quantity for demand from each store. This would allow the model
to be optimized; however, the assumed demand levels would make your
model an inaccurate depiction of what will actually occur. With
RISKOptimizer, you don't have to assume a level for demand. You describe
the possible values for demand using a probability distribution and then use
RISKOptimizer's built-in simulation capabilities to include all possible
values for demand in your optimization results.
When RISKOptimizer is used, the best solution generated by the optimizer
is not a single maximum or minimum value for the objective or "target cell"
in the model you are trying to optimize, but a maximum or minimum
simulation statistic for the objective. Each simulation run by RISKOptimizer
generates a distribution of possible results for your objective. This
distribution has a variety of statistics, such as a mean, standard deviation,
minimum, etc. In the above example, you might want to find the
combination of inputs that maximizes the mean of the distribution for profit
or minimizes its standard deviation.
318
Introduction
RISKOptimizer
319
320
RISKOptimizer allows you to use the entire range of Excel formulas and
probability distributions to build more realistic models of any system.
When you use RISKOptimizer, you do not have to compromise the
accuracy of your model because the algorithm you are using can not handle
real world complexities. Traditional baby solvers (statistical and linear
programming tools) force users to make assumptions about the way the
variables in their problem interact, thereby forcing users to build oversimplified, unrealistic models of their problem. They force them to assume
values for uncertain variables because the optimizer cannot handle ranges
of possible values for uncertain model components. By the time users have
simplified a system enough that these solvers can be used, the resulting
solution is often too abstract to be practical. Any problems involving large
amounts of variables, non-linear functions, lookup tables, if-then
statements, database queries, or stochastic (random) elements cannot be
solved by these methods, no matter how simply you try to design your
model.
Introduction
More Flexible
There are many solving algorithms which do a good job at solving small,
simple linear and non-linear types of problems, including hill-climbing,
baby-solvers, and other mathematical methods. Even when offered as
spreadsheet add-ins, these general-purpose optimization tools can only
perform numerical optimization. For larger or more complex problems, you
may be able to write specific, customized algorithms to get good results, but
this may require a lot of research and development. Even then, the resulting
program would require modification each time your model changed.
Not only can RISKOptimizer handle numerical problems, it is the only
commercial program in the world that can solve most combinatorial
problems. These are problems where the variables must be shuffled around
(permuted) or combined with each other. For example, choosing the batting
order for a baseball team is a combinatorial problem; it is a question of
swapping players positions in the lineup. RISKOptimizer can find the
optimal ordering of tasks to be performed as part of a project, evaluating
only solutions that meet specified precedence constraints (that is constraints
that require certain tasks to be performed before others). Complex
scheduling problems are also combinatorial. The same RISKOptimizer can
solve all these types of problems and many more that nothing else can solve.
RISKOptimizers unique optimization and simulation technology allows it to
optimize virtually any type of model; any size and any complexity.
Easier to Use
RISKOptimizer
321
322
This process in 5) repeats over and over again, as the optimizer moves
towards identifying an optimal solution - that is, the set of values for the
adjustable cells that minimizes or maximizes the target cell value.
Simulation
Optimization
Process
RISKOptimizer
feedback to the optimizer for guiding its selection of a new set of values for
the adjustable cells.
The new process for simulation optimization using RISKOptimizer is
described below, with differences from traditional spreadsheet optimization
shown in bold:
1) Probability distribution functions are used to describe the range of
possible values for the uncertain elements in the model.
2) An output or target cell is identified and the simulation statistic
(mean, standard deviation, etc.) for the cell that you wish to minimize
or maximize is selected.
3) A set of input or adjustable cells whose values you control are
identified and ranges of possible values for those cells are described.
4) A set of constraints that need to be met, often specified using
expressions such as COSTS<100 or A11>=0 are entered. Additional
constraints based on simulation statistics (i.e., 95th Percentile of
A11>1000) can also be entered.
5) An optimization is run, in which the spreadsheet is simulated
successive times, with each simulation using different possible values
for the adjustable cells. During this process:
a) Each simulation generates a new distribution of possible values
for the target cell. The statistic you wish to minimize or
maximize is calculated from this distribution.
b) The optimizer uses this new statistic for the target cell to select the
next set of values for the adjustable cells it will try.
c)
This process in 5) repeats over and over again, as the optimizer moves
towards identifying an optimal solution - that is, the set of values for the
adjustable cells that minimizes or maximizes the statistic for the simulation
results for the target cell. Figure 2-1 outlines both the traditional
optimization and simulation optimization processes.
324
Figure 2-1
RISKOptimizer
325
326
Identify the
Target Cell and
Statistic
Entering
Adjustable Cells
RISKOptimizer
327
Entering
Constraints
328
You can also specify how long each trial solution's simulation will run. You
may select to have each simulation run a specified number of iterations or,
alternatively, let RISKOptimizer determine when to stop each simulation.
When you select to have RISKOptimizer decide stop each simulation it will
stop simulating when distributions generated for both 1) the target cell of
the optimization and 2) cells referenced in simulation constraints are stable
and the statistics of interest converge.
Running the
Optimization
RISKOptimizer
329
330
RISKOptimizer: Step-by-Step
Introduction
Here we will take you through an entire RISKOptimizer optimization one
step at a time. We will start by opening a pre-made spreadsheet model, and
then we will define the problem to RISKOptimizer using probability
distributions and the RISKOptimizer dialogs. Finally we will oversee
RISKOptimizers progress as it is searching for solutions, and explore some
of the many options in the RISKOptimizer Watcher.
NOTE: The screens shown below are from Excel 2010. If you are using other
versions of Excel, your windows may appear slightly different from the
pictures.
The problem-solving process begins with a model that accurately represents
your problem. Your model needs to include probability distributions that
describe the range of possible values for any uncertain elements. Your
model must also be able to evaluate the target cell and constraints for given
values of adjustable cells. As RISKOptimizer searches for solutions, the
simulation results provide feedback, telling RISKOptimizer how good or
bad each guess is, thereby allowing RISKOptimizer to generate increasingly
better guesses. When you create a model of your problem, you must pay
close attention to how the target cell value is calculated, because
RISKOptimizer will be doing everything it can to maximize (or minimize)
the simulation results for this cell.
RISKOptimizer
331
Starting RISKOptimizer
Opening an
Example Model
This example sheet contains a yield management model which identifies the
optimal limits on the number of full and discount fare seats to sell on a
given flight. This is a classic overbooking problem: more tickets than the
number of available seats may be sold, if that maximizes expected profit
(taking into account the possible cost of bumping passengers from flights).
Theres just one catch to this standard optimization problem -- some
estimates in the model are uncertain or stochastic. This includes the
demand for tickets and the number of passengers in each fare category that
will actually show up to board the flight. Traditionally, single point
estimates are used for these items, allowing a normal optimization to be
performed. But what if your estimates arent right? You might end up
taking too few reservations, sending seats out empty, or overbooking too
much. You could sell too many discount seats lowering your profit. You
might also set aside too many full fare seats, resulting in half-filled planes.
RISKOptimizer will solve this optimization problem while allowing you to
account for the uncertainty inherent to your model!
332
RISKOptimizer: Step-by-Step
With the Airlines example, first you will describe the uncertainty present in
your model using probability distributions. You will then use @RISK
dialogs (mainly those specific to optimization functionality) to set up your
optimization problem. Then, RISKOptimizer will run to identify the
optimal limits on the number of full and discount fare reservations to
maximize profit while keeping risk at acceptable levels.
In the Airlines model there are four uncertain factors, each described by
probability distributions. The first of these is:
RISKOptimizer
333
Number Willing To Divert (in cell F6), described by the formula and
probability distribution =IF(F5=0,0,RiskBinomial(F5,C6))). This
formula and function specifies the number of people willing to buy a
full fare ticket if no discount tickets are available.
RISKOptimizer: Step-by-Step
RISKOptimizer
335
Most of the time you'll want to restrict the possible values for an adjustable
cell range to a specific minimum-maximum range. In RISKOptimizer this is
known as a "range" constraint. You can quickly enter this min-max range
when you select the set of cells to be adjusted. For the Airline Revenue
Management example, the minimum possible value for the Limit on
Discount Reservations Accepted accepted in this range is 25 and the
maximum is 150. To enter this range constraint:
1) Enter 25 in the Minimum cell and 150 in the Maximum cell.
2) In the Values cell, select Integer from the displayed dialog
336
RISKOptimizer: Step-by-Step
This specifies the last adjustable cell, C20, representing the total reservations
that will be allotted to full fare seats.
If there were additional variables in this problem, we would continue to add
sets of adjustable cells. In RISKOptimizer, you may create an unlimited
number of groups of adjustable cells. To add more cells, click the Add
button once again.
RISKOptimizer
337
Later, you may want to check the adjustable cells or change some of their
settings. To do this, simply edit the min-max range in the table. You may
also select a set of cells and delete it by clicking the Delete button.
Selecting a
Solving Method
When defining adjustable cells, you can specify a solving method to be used.
Different types of adjustable cells are handled by different solving methods.
Solving methods are set for a Group of adjustable cells and are changed by
clicking the Group button and displaying the Adjustable Cell Group
Settings dialog box. Often you'll use the default recipe solving method
where each cells value can be changed independently of the others. Since
this is selected as the default method, you don't have to change it.
The recipe and order solving methods are the most popular and they
can be used together to solve complex combinatorial problems. Specifically,
the recipe solving method treats each variable as an ingredient in a recipe,
trying to find the best mix by changing each variables value
independently. In contrast, the order solving method swaps values
between variables, shuffling the original values to find the best order.
338
RISKOptimizer: Step-by-Step
Constraints
RISKOptimizer allows you to enter constraints which are conditions that
must be met for a solution to be valid. In this example model there is an
additional constraint that must be met for a possible set of values for Limit
on Discount Tickets and Limit on Full Fare Tickets to be valid. These are in
addition to the range constraints we already entered for the adjustable cells.
This is:
RISKOptimizer
339
Adding a
Constraint
Hard. These are conditions that must be met for a solution to be valid
(i.e., a hard iteration constraint could be C10<=A4; in this case, if a
solution generates a value for C10 that is greater than the value of cell
A4, the solution will be thrown out)
To add a constraint:
1) Click the Add button in the Constraints section of the main
RISKOptimizer dialog.
This displays the Constraint Settings dialog box, where you enter the
constraints for your model.
340
RISKOptimizer: Step-by-Step
Simple and
Formula
Constraints
Two formats Simple and Formula can be used for entering constraints.
The Simple format allows constraints to be entered using <,<=, >, >= or =
relations. A typical Simple constraint would be 0<Value of A1<10, where
A1 is entered in the Cell Range box, 0 is entered in the Min box and 10 is
entered in the Max box. The operator desired is selected from the drop
down list boxes. With a Simple format constraint, you can enter just a Min
value, just a Max or both.
A Formula constraint, on the other hand, allows you to enter any valid Excel
formula as a constraint. For example, the following formula can be entered
=IF(A1>100, B1>0, B1<0). In this constraint whether we require B1 to be
positive or negative depends on the value of cell A1. Alternatively, the
formula can be entered in a cell; if that cell is C1, then in the Formula field of
the Constraint Settings dialog =C1 can be entered.
In general, entering constraints in the Simple format helps RISKOptimizer
finds the optimal solution faster. The formula just discussed could be
entered in cell D1 as =IF(A1>100, B1, -B1). Then a simple format
constraint can be added, requiring that D1>0.
RISKOptimizer
341
To enter the constraints for the Airlines model you'll specify two new
constraints. First, enter the Simple Range of Values format hard constraint for
Profit > 0:
1) Enter "Make at Least $15,000" in the description box.
2) In the Range to Constrain box, enter F20.
3) Select the > operator to the right of the Range to Constrain.
4) Enter 15,000 in the Maximum box
5) To the left of Range to Constrain, clear the operator by selecting a
blank from the drop down list
6) Select Percentile (X for a given P) in Statistic to Constrain
7) Enter 0.05 for the percentile to use
8) Click OK to enter this constraint.
342
RISKOptimizer: Step-by-Step
In the Optimization Settings dialog you can select any combination of these
optimization stopping conditions, or none at all. If you select more than one
stopping condition, RISKOptimizer will stop when any one of the selected
conditions are met. If you do not select any stopping conditions,
RISKOptimizer will run until all the possible solutions have been tried, or
until you stop it manually by pressing the stop button in the
RISKOptimizer toolbar.
RISKOptimizer
343
Trials
Time
Progress
Formula is True
RISKOptimizer will
stop after the
specified amount of
time has elapsed.
This number can be a
fraction (4.25).
This stopping
condition is the most
popular because it
keeps track of the
improvement and
allows
RISKOptimizer to run
until the rate of
improvement has
decreased. For
example,
RISKOptimizer could
stop if 100
simulations have
passed and we still
havent had any
change in the best
scenario found so far.
RISKOptimizer will
stop if the entered
Excel formula
evaluates to TRUE in
a simulation.
RISKOptimizer runs a full simulation of your model for each trial solution it
generates, stopping the simulation based on @RISK simulation settings.
Engine
The Engine tab allows you to select if the Genetic Algorithm or OptQuest
engine should be used in the optimization, or if you want RISKOptimizer to
automatically detect the best engine to use. For this model, youll leave the
default Automatic setting.
344
RISKOptimizer: Step-by-Step
During the run, the Progress window displays: 1) the best solution found so
far, 2) the original value for the selected simulation statistic for the target
cell when the RISKOptimizer optimization began, 3) the number of
simulations of your model that have been executed and number of those
simulations which were valid; i.e., all constraints were met and 4) the time
that has elapsed in the optimization.
RISKOptimizer
345
@RISK also displays the distribution for the Profit for each new best solution
found. Examining this graph youll notice that the 5th percentile of Profit is
greater than 15000 for the best solution.
Any time during the run you can click the Turn Excel Updating Options
On and Off; with this option on, the screen will update every iteration.
The
RISKOptimizer
Watcher
In this report the results of the simulation run for each trial solution is
shown. The column for Result shows by simulation the value of the target
cell's statistic that you are trying to maximize or minimize - in this case, the
mean of Profit in F20. Columns for Output Mean, Output StdDev, Output
Min and Output Max describe the probability distribution for the target cell
Profit that was calculated by each simulation. The columns for C19 and C20
identify the values used for your adjustable cells. The column for Make at
Least $15,000 shows whether your constraint was met in each simulation.
346
RISKOptimizer: Step-by-Step
Stopping the
Optimization
After five minutes, RISKOptimizer will stop the optimization. You can also
stop the optimization by:
1) Clicking the Stop icon in the RISKOptimizer Watcher or Progress
windows.
When the RISKOptimizer process stops, RISKOptimizer displays the
Stopping Options tab which offers the following choices:
These same options will automatically appear when any of the stopping
conditions that were set in the RISKOptimizer Optimization Settings dialog
are met.
RISKOptimizer
347
Summary
Report
348
RISKOptimizer: Step-by-Step
Placing the
Results in Your
Model
To place the new, optimized mix of limits for Limit on Discount Tickets and
Limit on Full Fare Tickets in your worksheet:
1) Click on the Stop button.
2) Make sure the "Update Adjustable Cell Values Shown in Workbook to"
option is set to Best
You will be returned to the Airline Revenue Management - Walkthrough
Tutorial.xls spreadsheet, with all of the new variable values that created the
best solution. Remember, the best solution is a mean of simulation results
for Profit and this is not the same as the value shown for a simple
recalculation of Profit that uses the best variable values. The best mean is
shown in @RISK - Output graph; if the graph is not shown, click the cell and
then click Browse Results to view it.
RISKOptimizer
349
350
RISKOptimizer: Step-by-Step
RISKOptimizer Commands
Model Definition Command
Defines the goal, adjustable cells and constraints for a model
Selecting the RISKOptimizer Model Definition command displays the
Model Dialog.
RISKOptimizer
351
Cell. The cell or target cell contains the output of your model. A
distribution of possible values for this target cell will be generated (via
simulation) for each "trial solution" that RISKOptimizer generates (i.e.,
each combination of possible adjustable cell values). The target cell
should contain a formula which depends (either directly or through a
series of calculations) on the adjustable cells. This formula can be made
with standard Excel formulas such as SUM() or user-defined VBA
macro functions. By using VBA macro functions you can have
RISKOptimizer evaluate models that are very complex.
As RISKOptimizer searches for a solution it uses the statistic for the
simulation results of the target cell to evaluate how good each possible
scenario is, and to determine which variable values should continue to
be adjusted. When you build your model, your target cell must reflect
the goodness of any given scenario, so as RISKOptimizer calculates
the possibilities, it can accurately measure its progress.
352
RISKOptimizer Commands
Statistic. The statistic entry is where you specify the statistic of the
simulation results for your target cell that you wish to minimize,
maximize, or set to a specific value. The actual statistic you wish to
minimize, maximize, or set to a specific value is selected from the
dropdown list.
To select the statistic for the target cell which you wish to minimize,
maximize, or set to a specific value, simply select the desired statistic from
the displayed dropdown list. If you wish to select a Percentile or Target for
the target cell's distribution, simply:
1) Select Percentile (X for given P) or Target (P for given X).
2) For Percentile (X for given P), enter the desired "P" value between 0
and 100 in the % field. The value that will be minimized or maximized
will be the value associated with the entered percentile; i.e., Percentile
(99%) will cause RISKOptimizer to identify the combination of
adjustable cell values that minimizes or maximizes the 99th percentile of
the distribution of simulation results for the target cell.
3) For Target (P for given X), enter the desired "X" value. The value that
will be minimized or maximized will be the cumulative probability
associated with the entered value; i.e., Target (1000) will cause
RISKOptimizer to identify the combination of adjustable cell values that
minimizes or maximizes the cumulative probability of the value 1000
(as calculated using the distribution of simulation results for the target
cell).
RISKOptimizer
353
354
RISKOptimizer Commands
Because the adjustable cells contain the variables of the problem, you must
define at least one group of adjustable cells to use RISKOptimizer. Most
problems will be described with only one group of adjustable cells, but
more complex problems may require different blocks of variables to be
solved with different solving methods simultaneously. This unique
architecture allows for highly complex problems to be easily built up from
many groups of adjustable cells.
The following options are available for entering Adjustable Cell Ranges:
Add. You can add new adjustable cells by clicking on the Add button
next to the Adjustable Cells list box. Select the cell or cell range to be
added, and a new row will appear in the Adjustable Cell Ranges table.
In the table, you can enter a Minimum and Maximum value for the
cells in the range, along with the type of Values to test Integer values
across the range, Discrete values with a defined step size, or Any values.
Minimum and Maximum. After you have specified the location of the
adjustable cells, the Minimum and Maximum entries set the range of
acceptable values for each adjustable cell. By default, each adjustable
cell takes on a real-number (double-precision floating point) value
between -infinity and +infinity.
Range settings are constraints that are strictly enforced. RISKOptimizer
will not allow any variable to take on a value outside the set ranges.
You are encouraged to set more specific ranges for your variables
whenever possible to improve RISKOptimizers performance. For
example, you may know that the number cannot be a negative, or that
RISKOptimizer
355
Any implies that all the real numbers between 1 and 4 are
included.
Discrete with Step Size 0.5 implies that 1, 1.5, 2, 2.5, 3, 3.5
and 4 are included.
The default is to include all real numbers in the specified range. The
Values option is only available when using the recipe and budget
solving methods.
356
RISKOptimizer Commands
Solving Method. Selects the Solving Method to be used for each of the
adjustable cell ranges in the group.
RISKOptimizer
357
The recipe solving method, for example, treats each variable selected as
an ingredient in a recipe; each variables value can be changed
independently of the others. In contrast, the order solving method swaps
values between the adjustable cells, reordering the values that were
originally there.
There are six solving methods that come with RISKOptimizer. Three of the
solving methods (recipe, order, and grouping) use entirely different
algorithms. The other three are descendants of the first three, adding
additional constraints.
The following section describes the function of each solving method. To get
a better understanding of how each solving method is used, you are also
encouraged to explore the example files included with the software.
Recipe Solving
Method
The recipe solving method is the most simple and most popular type of
solving method. Use recipe whenever the set of variables that are to be
adjusted can be varied independently of one another. Think of each
variable as the amount of an ingredient in a cake; when you use the recipe
solving method, you are telling RISKOptimizer to generate numbers for
those variables in an effort to find the best mix. The only constraint you
place on recipe variables is to set the range (the highest and lowest value)
that those values must fall between. Set these values in the Min and Max
fields in the Adjustable Cells dialog (e.g. 1 to 100), and also indicate
whether or not RISKOptimizer should be trying integers (1, 2, 7) or real
numbers (1.4230024, 63.72442).
Below are examples of a set of variable values as they might be in a sheet
before RISKOptimizer is called, and what two new scenarios might look like
after using the recipe solving method.
358
23.472
15.344
37.452
145
101
190
32.44
7.073
65,664
14,021
93,572
RISKOptimizer Commands
Order Solving
Method
The order solving method is the second most popular type, after recipe.
An order is a permutation of a list of items, where you are trying to find the
best way to arrange a set of given values. Unlike recipe and budget
solving methods, which ask RISKOptimizer to generate values for the
chosen variables, this solving method asks RISKOptimizer to use the
existing values in your model.
An order could represent the order in which to perform a set of tasks. For
example, you might wish to find the order in which to accomplish five
tasks, numbered 1,2,3,4, and 5. The order solving method would
scramble those values, so one scenario might be 3,5,2,4,1. Because
RISKOptimizer is just trying variable values from your initial sheet, there is
no Min - Max range entered for adjustable cells when the Order solving
method is used.
Below are examples of a set of variable values as they might be in a sheet
before RISKOptimizer is called, and what two new scenarios might look like
after using the order solving method.
Grouping
Solving Method
Original Set of
Variable Values
23.472
145
65,664
145
23.472
65,664
145
65,664
23.472
Using the Group IDs field allows one to specify a cell range containing all
the group IDs.
RISKOptimizer
359
If the option All Groups Must Be Used is selected, RISKOptimizer will not
attempt any solutions in which there is a group without any items in it.
For example, suppose a range of 50 cells contains only the values 2, 3.5, and
17. When you select the 50 cells and adjust the values using the grouping
solving method, RISKOptimizer will assign each of the fifty cells to one of
the three groups, 2, 3.5 or 17. All of the groups are represented by at least
one of the adjustable cells; just like tossing each of the 50 variables in one of
several bins, and making sure there is at least one variable in each bin.
Another example would be assigning 1s, and 0s, and -1s to a trading system
to indicate buy, sell and hold positions. Like the order solving method,
RISKOptimizer is arranging existing values, so there is no min-max range or
integers option to define.
NOTE: When using the grouping solving method, do not leave any cells
blank, unless you would like 0.0 to be considered one of the groups.
You may realize that the grouping solving method could be
approximated by using the recipe solving method with the integers
option on and the ranges set from 1 to 3 (or whatever number of groups
there are). The difference lies in the way a recipe and a grouping perform
their search. A grouping is much more concerned with the values of all the
variables, because it can swap a set of variables from one group with a set of
variables from another group.
Below are examples of a set of variable values as they might be in a sheet
before RISKOptimizer is called, and what two new scenarios might look like
after using the grouping solving method.
360
Original Set of
Variable Values
Another Set of
Possible Grouping
Values
RISKOptimizer Commands
Budget Solving
Method
Another Set of
Possible Budget Values
200
93.1
223.5
3.5
30
10
100
-67
10
.4
67
Many values are being tried, but the sum of all values remains 223.5.
Instead of using the budget solving method, one could use the recipe
solving method and add a constraint specifying a fixed total value of the
adjustable cells. This approach will work well if the OptQuest engine is
used. However, with the Genetic Algorithm the budget method will be
more efficient.
RISKOptimizer
361
Project Solving
Method
362
RISKOptimizer Commands
Schedule
Solving Method
Original Set of
Variable Values
Another Set of
Possible Project
Values
In the Optimization Parameters section, you will notice that you can also have
a constraint cell range attached to it. This range can be of any length, but
must be exactly three columns wide. Eight kinds of constraints are
recognized:
1) (with) The tasks in the 1st & 3rd columns must occur in the same time block.
2) (not with) The tasks in the 1st & 3rd columns must not occur in the same time
block.
3) (before) The task in the 1st column must occur before the task in the 3rd
column.
4) (at) The task in the 1st column must occur in the time block in the 3rd column.
RISKOptimizer
363
5) (not after) The task in 1st column must occur at the same time or before the
task in the 3rd column.
6) (not before) The task in 1st column must occur at the same time or after the
task in the 3rd column.
7) (not at) The task in the 1st column must not occur in the time block in the 3rd
column.
8) (after) The task in the 1st column must occur after the task in the 3rd column.
Either a numeric code (1 through 8) or the description (after, not at, etc.) can
be entered for a constraint. (Note: All language versions of the
RiskOptimizer will recognize the English description entered for a
constraint as well as the its translated form). All of the constraints specified
in your problem will be met. To create constraints, find an empty space on
your worksheet and create a table where the left and right columns
represent tasks, and the middle column represents the type of constraints.
A number from 1 to 8 represents the kind of constraint listed above. The
cells in the constraint range must have the constraint data in them before
you start optimizing.
364
This Task
Constraint
This Task
12
RISKOptimizer Commands
Another Set of
Possible Schedule
Values
NOTE: When you select the schedule solving method, integers starting from
1 are always used (1,2,3...), regardless of the original values in the
adjustable cells.
Number of Time
Blocks and
Constraint Cells
For more information on these options, see the Schedule Solving method in
the Solving Methods section of this chapter.
Preceding
Tasks
For more information on these options, see the Project Solving method in the
Solving Methods section of this chapter.
RISKOptimizer
365
Constraints
RISKOptimizer allows you to enter constraints, or conditions that must be
met for a solution to be valid. Constraints you have entered are shown in
the Constraints table in the Model Definition dialog box.
Add - Adding
Constraints
366
Clicking the Add button next to the Constraints table displays the
Constraint Settings dialog box where constraints are entered. Using this
dialog box the type of constraint desired, along with its description, type,
definition and evaluation time can be entered.
RISKOptimizer Commands
Constraint Type
Constraint
Precision
Evaluation Time
RISKOptimizer
367
368
RISKOptimizer Commands
Simple and
Formula
Constraints
Two formats Simple and Formula can be used for entering constraints.
RISKOptimizer
369
370
RISKOptimizer
371
372
RISKOptimizer Commands
Optimization
Runtime
Options
Trials - This option, when set, stops RISKOptimizer when the given
number of simulations have been executed. A simulation is run for each
trial solution generated by RISKOptimizer.
The Trials setting is particularly useful when comparing
RISKOptimizers efficiency when trying different modeling methods.
By changing the way you model a problem, or by choosing a different
solving method, you may increase RISKOptimizers efficiency. Having
a model run a specified number of simulations will indicate how
efficiently RISKOptimizer is converging on a solution, regardless of any
differences in the number of variables chosen, the speed of the
computer hardware being used, or the screen re-drawing time. The
RISKOptimizer optimization summary worksheet is also useful in
comparing results between runs. For more information on
Optimization Summary worksheets, see the RISKOptimizer Watcher
Stopping Options section in this chapter.
RISKOptimizer
373
plateau or flatten out for a while before this condition is met and
RISKOptimizer stops. Progress is really just an automatic way to do
what you could do yourself with the graph -- let it run until the
improvement levels off.
374
RISKOptimizer runs a full simulation of your model for each trial solution it
generates, stopping the simulation based on @RISK simulation settings.
Those settings may specify a fixed number of iterations or may instruct
@RISK to stop automatically based on convergence of the values of
statistics.
RISKOptimizer Commands
Optimization
Mode
Optimize Using
RISKOptimizer
375
Genetic
Algorithm
Settings
Crossover. The crossover rate can be set to between 0.01 and 1.0, and
reflects the likelihood that future scenarios or organisms will contain
a mix of information from the previous generation of parent organisms.
This rate can be changed by experienced users to fine-tune
RISKOptimizers performance on complex problems.
In other words, a rate of 0.5 means that an offspring organism will
contain roughly 50% of its variable values from one parent and the
remaining values from the other parent. A rate of 0.9 means that
roughly 90% of an offspring organisms values will come from the first
parent and 10% will come from the second parent. A Crossover rate of
376
RISKOptimizer Commands
1 means that no crossover will occur, so only clones of the parents will
be evaluated.
The default rate used by RISKOptimizer is 0.5. Once RISKOptimizer
has started solving a problem, you can change the crossover rate by
using the RISKOptimizer Watcher (see the RISKOptimizer Watcher
section in this chapter).
Mutation Rate. The mutation rate can be set to between 0.0 and 1.0,
and reflects the likelihood that future scenarios will contain some
random values. A higher mutation rate simply means that more
mutations or random gene values will be introduced into the
population. Because mutation occurs after crossover, setting the
mutation rate to 1 (100% random values) will effectively prevent the
crossover from having any effect, and RISKOptimizer will generate
totally random scenarios.
If all the data of the optimal solution was somewhere in the population,
then the crossover operator alone would be enough to eventually piece
together the solution. Mutation has proven to be a powerful force in the
biological world for many of the same reasons that it is needed in a
genetic algorithm: it is vital to maintaining a diverse population of
individual organisms, thereby preventing the population from
becoming too rigid, and unable to adapt to a dynamic environment. As
in a genetic algorithm, it is often the genetic mutations in animals which
eventually lead to the development of critical new functions.
For most purposes, the default mutation setting does not need
adjustment, but can, however, be changed by experienced users to finetune RISKOptimizers performance on complex problems. The user
may wish to boost the mutation rate if RISKOptimizers population is
fairly homogenous, and no new solutions have been found in the last
several hundred trials. Typical setting changes are from .06 to .2. Once
RISKOptimizer has started solving a problem, you can change the
mutation rate dynamically by using the RISKOptimizer Watcher (see
the RISKOptimizer Watcher section later in this chapter).
By selecting Auto from the drop down list in the Mutation rate field,
auto-mutation rate adjustment is selected. Auto-mutation rate
adjustment allows RISKOptimizer to increase the mutation rate
automatically when an organism "ages" significantly; that is, it has
remained in place over an extended number of trials. For many models,
especially where the optimal mutation rate is not known, selecting Auto
can give better results faster.
RISKOptimizer
377
Operators
378
RISKOptimizer Commands
RISKOptimizer
379
At the Start of the Optimization - macro runs after the Run icon is
clicked; prior to the first trial solution being generated.
This feature allows calculations which only can be performed through the
use of a macro to be made during an optimization. Examples of such
macro-performed calculations are iterative "looping" calculations and
calculations which require new data from external sources.
The Macro Name defines the macro to be run. Macros that you want to run
each simulation, or each iteration of each simulation, can be specified in the
@RISK Simulation Settings, Macro Tab.
380
RISKOptimizer Commands
Start Command
Starts an optimization
Selecting the Start Optimization command starts an optimization of the
active model and workbook. As soon as RISKOptimizer is running, you
will see the following RISKOptimizer Progress window.
Original or the original value for the statistic for the target cell as
calculated from an initial simulation run using the existing values in
the worksheet for the adjustable cells.
Best or the current best value for the statistic for the target cell that
is being minimized or maximized.
During an optimization the status bar in Excel also displays the current
progress of the analysis.
RISKOptimizer
381
Graph of Best
Solution
382
Pause. If you would like to pause the RISKOptimizer process, just click
the Pause icon, and you temporarily freeze the RISKOptimizer
process. While paused, you may wish to open and explore the
RISKOptimizer Watcher and change parameters, look at the whole
population, view a status report, or copy a graph.
RISKOptimizer Commands
RISKOptimizer
383
384
RISKOptimizer Commands
RISKOptimizer
385
386
RISKOptimizer Commands
RISKOptimizer Watcher
The magnifying glass icon on the RISKOptimizer Progress window toolbar
displays the RISKOptimizer Watcher. RISKOptimizer Watcher is
responsible for regulating and reporting on all RISKOptimizer activity.
From RISKOptimizer Watcher, you can change parameters and analyze the
progress of the optimization. You can also see real-time information about
the problem and information on RISKOptimizers progress in the status bar
across the bottom of RISKOptimizer Watcher.
RISKOptimizer
387
Progress graphs show the simulation count on the X-axis and target cell
value on the Y-axis. Right-clicking on the Progress graph can display the
Graph Options dialog where the graph can be customized.
388
RISKOptimizer Watcher
Graph Options
Dialog
RISKOptimizer
The Graph Options dialog displays settings that control the titles, legends,
scaling and fonts used on the displayed graph.
389
RISKOptimizer Watcher
The Show options select to show a log of All Trials or only those
simulations where there was a Progress Step (i.e. where the optimization
result improved). The log includes:
1) Elapsed Time, or the start time of the simulation
2) Iters, or the number of iterations run
3) Result, or the value of the target cell's statistic that you are trying to
maximize or minimize, including penalties for soft constraints
4) Output Mean, Output StdDev, Output Min and Output Max, or the
statistics for the probability distribution for the target cell that was
calculated
5) Input columns, or the values used for your adjustable cells
6) Constraint columns showing whether your constraints were met
RISKOptimizer
391
392
RISKOptimizer Watcher
RISKOptimizer
393
This dialog will also appear if one of the user specified stopping conditions
has been met (number of requested trials have been evaluated, minutes
requested have elapsed, etc.). The Stopping Options allow you to restore
the adjustable cells to their original values before RISKOptimizer was run.
All of the actions available in the Stopping Options tab can also be
performed using commands on @RISK menu/toolbar. If the Watcher is
dismissed by clicking OK without selecting any of the actions, the user can
still reset adjustable cells to their original values and generate reports using
menu/toolbar commands.
394
RISKOptimizer Watcher
RISKOptimizer
395
396
Log of All Trials. This report logs the results of all trial simulations
performed. The values shown in magenta indicate that a constraint was
not met.
Log of Progress Steps. This report logs the results of all trial
simulations that improved the result for the target cell.
RISKOptimizer Watcher
Time Series
Introduction
In statistics, economics, and mathematical finance, a time series is a
sequence of observations, typically measured at regularly spaced times,
such as every week, every month, or every quarter. Examples of time series
are weekly currency exchange rates, the daily closing value of the NASDAQ
Composite index, and monthly crude oil prices.
The Time Series section of @RISK provides two types of tools: (1) Fit and
Batch Fit tools for fitting various time series processes to historical data, and
then projecting these to the future, and (2) a Define tool for simulating data
from a selected time series process for use in an @RISK model. The time
series results from such a simulation can be viewed with the normal @RISK
results or by using the Time Series Results window.
The Fit and Batch Fit tools are analogous, in a time series context, to the Fit
and Batch Fit tools in @RISKs Distribution Fitting. The Define tool is
analogous, in a time series context, to @RISKs Define Distribution tool.
Whereas Distribution Fitting and Define Distributions are concerned with
individual probability distributions, the Time Series tools are concerned
with time series processes. These Time Series tools add @RISK functions to
your spreadsheet, just as does @RISKs Define Distribution tool. Different
from standard @RISK distribution functions, these added @RISK time series
functions are array functions as they change the cells where your time series
forecast is located as a group each iteration of a simulation.
Time Series
397
398
Introduction
Time Series
Select any cell in the time series column you want to fit. Then select Fit from
the Time Series dropdown list to get the following dialog, with the Data tab
showing.
399
Name, Range
The range of data, including the variable name at the top, is shown. You can
change this range if necessary.
Data requirements for sample data include:
Data
Transformation
All sample values should fall in the range -1E+37 <= x <= +1E+37.
The fitting procedure assumes that the time series is stationary. For
example, this implies that the mean and standard deviation are constant
through time. The charts to the right (of the series, the autocorrelations, or
ACF, and the partial autocorrelations, or PACF), help you check for
stationarity visually. If you click the Auto Detect button, @RISK will
automatically look for transformations of the data to produce stationarity.
These include logarithms, first differences, and seasonal differences.
Alternatively, you can ignore Auto Detect and check transformation options
you would like. If the series is transformed, the transformed series will be fit
by the various time series processes. Note that when you transform the data,
the charts change automatically to reflect the transformed data.
The auto-detect feature uses a set of heuristics to determine good guesses
for the transformations to apply to your data before fitting occurs.
However, you may have knowledge about your data that should override
these guesses. For example, if you have data that are stock prices, you most
likely should have a log transform with single differencing (which naturally
takes into account compounded returns) even if this is not the
transformation set determined by the auto-detect feature.
400
Function, Shift
Detrend
Deseasonalize,
Period
Starting Point
When you fit data to a time series process, the fitted function requires a
starting point. If the fitted time series function is used to forecast future
values, it is usually appropriate to use the last value of the historical data as
a starting value for the forecast. Then you should select Last Value of Dataset
from the Starting Point dropdown list. If you want to start the forecasts
from the first historical value, you should select First Value of Dataset.
Statistic
You can select AIC or BIC from the Statistic dropdown list. These are both
good criteria for measuring the goodness-of-fit to your data.
Time Series
401
Step 2: Specify
Processes to Fit
402
Select the Series to Fit tab of the Time Series Fitting dialog. It shows the
same charts as before, along with a list of time series processes you can try
fitting your data to. These include ARMA (autoregressive, moving average)
processes, GBM (geometric Brownian motion) and its variations, and ARCH
(autoregressive conditional heteroskedasticity) and its variations. Some of
these processes might be disabled, due to context. You can check or uncheck
as many candidate processes as you like.
Click the Fit button to perform the fitting. For each of the time series
processes specified in the previous step, @RISK uses maximum likelihood
estimates (MLE) of the parameters to get the closest match between the time
series process and your data. As with any MLE procedure, @RISK cant
guarantee that any of these processes produced your data. It can only
identify one or more processes that are most in line with your data. Always
evaluate your @RISK results quantitatively and qualitatively, examining
both the comparison graphs and statistics before using a result.
The ranking of the processes (with the lowest values best) and a live chart of
the time series with future projections and confidence bands is then shown.
Time Series
403
Toggle
Synchronization
404
The Toggle Synchronization button (third from the left at the bottom of the
window) switches between synchronizing to the First Value of Dataset and
the Last Value of Dataset. This is the Starting Point option in the Fitting
setup dialog. The toggle is useful because it is sometimes easier to
compare the fit with the original data when it is overlaid, rather that
graphed sequentially.
Write to Cells
To obtain future forecasts, click the Write to Cells button. This leads to a
dialog where you should enter a range with as many cells as you want
forecasts for.
Time Series
405
406
Step 1: Define
Input Data
Name, Range
Select any cell in the time series data set you want to fit. Then select Batch
Fit from the Time Series dropdown list to get the following dialog, with the
Data tab showing.
The range of data, including the variable names at the top, is shown. You
can change this range if necessary and supply a meaningful name to the
data set. Note that if there is a date variable in the data set, it will be
included in the suggested range. You should change the range so that the
date variable is not included. (Alternatively, you can separate the date
variable from the rest of the data with a blank column.)
Data requirements for sample data include:
Time Series
You must have at least six data values for each time series.
All sample values should fall in the range -1E+37 <= x <= +1E+37.
407
Data
Transformation
The fitting procedure assumes that each time series is stationary. For
example, this implies that the mean and standard deviation of each time
series are constant through time. If you click the Auto Detect button, @RISK
will automatically look for transformations of the data to produce
stationarity. These include logarithms, first differences, and seasonal
differences. Alternatively, you can ignore Auto Detect and check
transformation options you would like. If the series is transformed, the
transformed series will be fit by the various time series processes. Note that
when you select a transformation, each series is transformed in the same
way, through first differencing, for example.
The auto-detect feature uses a set of heuristics to determine good guesses
for the transformations to apply to your data before fitting occurs.
However, you may have knowledge about your data that should override
these guesses. For example, if you have data that are stock prices, you most
likely should have a log transform with single differencing (which naturally
takes into account compounded returns) even if this is not the
transformation set determined by the auto-detect feature.
408
Function, Shift
Detrend
Deseasonalize,
Period
Starting Point
When you fit data to a time series process, the fitted function requires a
starting point. If the fitted time series function is used to forecast future
values, it is usually appropriate to use the last value of the historical data as
a starting value for the forecast. Then you should select Last Value of Dataset
from the Starting Point dropdown list. If you want to start the forecasts
from the first historical value, you should select First Value of Dataset.
Statistic
You can select AIC or BIC from the Statistic dropdown list. These are both
good criteria for measuring the goodness-of-fit to your data.
Time Series
409
Step 2: Specify
Processes to Fit
410
Select the Series to Fit tab of the Time Series Fitting dialog. It shows the
same charts as before, along with a list of time series processes you can try
fitting your data to. These include ARMA (autoregressive, moving average)
processes, GBM (geometric Brownian motion) and its variations, and ARCH
(autoregressive conditional heteroskedasticity) and its variations. Some of
these processes might be disabled, due to context. You can check or uncheck
as many candidate processes as you like.
Step 3: Check
Report Settings
Time Series
Click the Report tab to bring up the following dialog. Here you choose one
of the four report placements shown. Also, if you check the Include
Correlations option, correlations across the series will be estimated and
included in the future forecast formulas.
411
412
Click the Fit button to perform the fitting. For each of the time series
processes specified in the previous step, @RISK uses maximum likelihood
estimates (MLE) of the parameters to get the closest match between the time
series process and your data. As with any MLE procedure, @RISK cant
guarantee that any of these processes produced your data. It can only
identify one or more processes that are most in line with your data. Always
evaluate your @RISK results quantitatively and qualitatively, examining
both the comparison graphs and statistics before using a result.
A summary of the results appears on a Time Series Fit Summary sheet. This
includes an array formula for the best-fitting process to each series and, if
requested, a correlations table. Note that different processes can produce the
best fits to different time series. For example, ARCH1 might provide the
best fit to the first series, and MA1 might provide the best fit to the second
series. The array formulas below each chart are live, and they include the
RiskCorrmat functions for the correlations if you requested correlations.
These array formulas (as a group) can be copied to any other place in the
workbook if you like. Note that if you fit transformed data, the future
forecasts will automatically be untransformed for you.
Individual
Report Sheets
Time Series
The results also include a sheet for each time series. This sheet includes the
estimated parameters for each process, as well as the rankings of the
processes on the AIC and BIC goodness-of-fit criteria.
413
Define Command
Defines a Time Series process to use in a simulation model
If you want random values for a time series in an @RISK simulation model,
you can use the Time Series Define tool. Unlike the fitting tools, this requires
no historical data. You simply choose one of the available time series
processes and its parameters to include it in an @RISK simulation model.
Using the Define Tool requires three steps:
1) Choose a Time Series Process
2) Specify the Parameters of the Process
3) Select the Range for the Simulated Data
Step 1: Choose
a Time Series
Process
414
Select Define from the Time Series dropdown list to see a gallery of time
series processes, choose the process you want, and click Select Series.
Step 2: Select
the Parameters
of the Process
Enter the parameters for the selected process. For more information about
these parameters, you can hover the mouse over any of the labels on the left.
Alternatively, you can consult the Time Series Functions section of @RISK
Help.
Data
Transformations
Time Series
415
Data Sync
416
Step 2: Select
the Range for
the Simulated
Data
Select the range for the simulated data in the Time Series Range box.
When you click OK in the Define Time Series dialog, an array formula is
entered in the range you selected. The random data behave just like random
data from any other @RISK distribution function, except that all cells now
change as a group, due to the array formula. (And as usual, all values
appear as the mean of the process unless you toggle the @RISK
Random/Static Standard Recalc dice button on the ribbon or toolbar to
Random, or run an @RISK simulation.)
Time Series
417
Results Command
Views the results for a simulated Time Series function
When you use the Define tool to embed a Time Series function in an @RISK
simulation, you can view the simulation results in the standard @RISK
results windows, or you can view them in the Time Series Results window.
Standard
@RISK Results
When you use the standard @RISK results windows, individual elements of
the time series can be analyzed using tables or graphs. For example, you can
click Browse Results with any time series cell selected.
As another example, you can click Summary to see results for each time
series cell.
418
Time Series
Results
Time Series
The Time Series Results window provides an overview of the entire time
series process. To see it, select Results from the Time Series dropdown list
(after running the simulation). By clicking the backward and forward
buttons at the bottom, you can see only selected iterations. Also, you can
click the button between the backward and forward buttons to see an
animated chart of the iterations.
419
Overlaying Time
Series Results
420
By clicking the Overlay button (third from left) you can overlay results from
other simulated time series. The Rescale Overlay to Current Iteration
button rescales an added overlay, normalizing its Y-scale so it can be
compared on the same graph with the original time series.
Graph Options
for Time Series
Graphs
Time Series
The Graph Options dialog for Time Series graphs can be displayed by rightclicking on the graph. The options available are the same as those for
standard @RISK Summary Graphs. You can change the statistic displayed
on the center-line and the range of the percentile bands around it. You can
also adjust the colors and patterns used for the bands.
421
422
Time Series
423
424
Project
Risk Analysis for Microsoft Project
Using @RISKs Project tool you can import a project into Microsoft Excel,
introduce uncertainty to the project and view the results using the graphs,
reports and interface of @RISK for Excel.
@RISK allows you to use the full power of @RISK and Excel, including all
distribution functions and correlation capabilities, for projects from
Microsoft Project. Simply define the uncertain elements in a project and
select the outputs. @RISK does the rest!
Modeling Features
@RISK for Excel allows you to simulate projects through a unique link
between Microsoft Excel and Microsoft Project. @RISK imports a project
.MPP file into Excel where it can be enhanced with Excel formulas and
@RISK distributions. An Excel workbook becomes a new view of your
project, and even includes a Gantt chart similar to what you see in Microsoft
Project.
Once in Excel, changes to project schedules can be made and relevant dates
and costs in the schedule will be updated. This is done by linking the
values shown for the project in Excel with relevant tasks and fields in
Microsoft Project. Behind the scenes, @RISK passes changed Excel values to
Microsoft Project for recalculation and then returns newly calculated values
back to Excel. All scheduling calculations are performed in Microsoft
Project but the results of those calculations are shown in Excel.
Project
425
System Requirements
To use the Project simulation capabilities of @RISK for Excel, a copy of
Microsoft Project Version 2003 or higher needs to be installed on your
system. This is in addition to the standard requirements for using @RISK
for Excel. The 64-bit version of Microsoft Project is not supported by the
Project simulation capabilities of @RISK for Excel.
Simulation Speed
Recalculation speed has changed between versions of Microsoft Project and
this impacts the runtimes of @RISK simulations. This is because each
iteration of a simulation @RISK must fully recalculate Microsoft Project.
Recalculations are the fastest in Microsoft Project 2003 and slowest in
Microsoft Project 2007. Microsoft Project 2010 is an improvement over 2007,
but still is substantially slower than Microsoft Project 2003. If you have
large projects in which simulation runtime is an issue, use the fastest
possible hardware configuration, and if possible, run the simulation using
Microsoft Project 2003.
Project
427
428
Get to Know
@RISK for Excel
Outside of the Project menu, using @RISK for Excel with project
schedules is virtually the same as using @RISK for Excel on standard
Excel spreadsheets. If you know @RISK for Excel, youll know most
of what you need to know for conducting a risk analysis of a project.
If youre new to @RISK for Excel, get to know it first. Take a look at
the tutorials and manual for @RISK for Excel. What you learn will
make it easy to model the risk in your projects.
If you dont have a project open you can use @RISK for Excel as it is
normally used on Excel spreadsheets. Only when you import a
project, or open a workbook with a saved project, do the commands
on the Project menu become available.
A set of example spreadsheets in Project Examples folder of your
@RISK directory illustrate different aspects of using @RISK with
projects. Each of these has a linked .MPP file that is automatically
Project
429
opened in Microsoft Project when you use the example. Take a look
at these to learn more about using @RISK with Project.
Microsoft
Projects Role
with @RISK for
Excel
When you use @RISK for Excel with a project, a copy of Microsoft
Project is also running at the same time. The project you are working
on in Excel is also open in Microsoft Project. This is because @RISK
uses Microsoft Project to perform scheduling recalculations.
In the Excel view of your project, changes to project schedules can be
made and relevant dates and costs in the schedule shown in Excel will
be updated when you sync Excel with your project. @RISK links
the values shown for the project in Excel with relevant tasks and
fields in Microsoft Project. Behind the scenes, @RISK passes changed
Excel values to Microsoft Project for recalculation and then returns
newly calculated values back to Excel. All scheduling calculations are
performed in Microsoft Project but the results of those calculations are
shown in Excel.
You can view and change your project in Microsoft Project while
using @RISK. If you make changes that affect what is displayed in
Excel, @RISK will syncup those changes when you select the Sync
Now command on @RISKs Project menu.
430
When importing an .MPP file into Excel, @RISK first opens the
selected project in Microsoft Project and then reads task, resource and
field values from the project. It then builds one or more new Excel
worksheets, creating a view of your project in Excel. Separate
worksheets are created for project tasks and resources.
Project
431
Importing
Projects Used
with Earlier
Versions of
@RISK for
Project
Saving the
Project
Workbook
432
Project
433
You could also type the distribution function directly in the formula
for the cell of a task or resource field.
In either case, the cell formula for the task or resource field will
include an @RISK distribution function, such as the formula shown
here.
=RiskPert(53.1,59,80,RiskStatic(ProjectFieldVal))
Similarly, a field whose value you wish to track as an output from an
@RISK simulation (like the Finish Date or Total Cost of the project)
can be selected using the @RISK Add Output command.
434
Project
435
Risk Categories
Risk Categories
Probabilistic Branching
Probabilistic Calendars
ProjectFieldVal
RiskProject functions
Risk Categories allow you to easily change assumptions and resimulate; for example, simulating with a 10% to +10% possible swing
in duration estimates, then comparing those results with a 20% to
+20% possible change.
436
Project
To ease data entry you may wish to create a table in Excel for entering
the possible values for a field for tasks or resources. For example, you
could have three columns where you type in the minimum, most
likely and maximum possible values for the duration of each task.
The Parameter Entry Table dialog will create these columns for you
and automatically generate the @RISK distribution functions which
reference the values entered in these columns.
437
Probabilistic
Branching
438
Probabilistic
Calendars
ProjectFieldVal
Project
439
RiskProject
functions
440
RiskProjectAddDelay(PrecedingTask,DelayLength,DelayCost).
This function adds a new task to a project after PrecedingTask
completes. This task has the specified length and cost. You
could use this if you wish to add an additional task to the
project being simulated in iterations when a risk event occurs.
RiskProjectResourceUse(Task,Resource,UsageValue). This
function changes the units of a material resource (or work for
a work resource) that is assigned to a task each iteration.
Costs calculated in Project will reflect the changed usage each
iteration of a simulation.
Running a Simulation
@RISK simulations of projects run just as do simulations of standard
Excel spreadsheets. The number of iterations and simulations to be
run can be set on the ribbon or toolbar. Clicking the Start Simulation
button on the ribbon (or @RISK toolbar in Excel 2003) starts the
simulation.
Project
441
Sensitivity
Analysis
By default, @RISK uses a Smart Sensitivity Analysis, by prescreening inputs based on their precedence in the project schedule to
outputs. Inputs located in tasks that have no link (via your models
precedence/ successor relationships) to the task of an output are
removed from the sensitivity analysis, thus avoiding spurious results.
In the Sensitivity Analysis window these unrelated inputs are shown
with the entry n/a.
There are a couple of limitations to the use of Smart Sensitivity
Analysis. If you use probabilistic branching Smart Sensitivity
Analysis is disabled. With probabilistic branching it is necessary to
disable Smart Sensitivity Analysis as successor/ predecessor
relationships change during the run so @RISK cant accurately
determine precedent tasks before simulation. Smart Sensitivity
Analysis is also disabled if you have formula references across tasks
within a project for example, when an argument for a distribution in
one task references the finish date of another task.
442
Probabilistic
Gantt Chart
In addition, the report gives the Critical Index for each task, or the
percentage of time during the simulation that the task fell on the
critical path of the project. The critical index gives managers the
ability to rate the importance of tasks.
Project
443
444
Timescaled Data
Report
Project
445
Once you have identified the data to collect, a simulation can be run.
For each iteration, the value of the selected field(s) in each time period
of the project is collected. When the simulation is done, the following
report describes the probabilities for the values of the collected
timescaled data:
Graphs are generated that describe the trends for statistics on the
collected timescaled data:
446
Project Commands
Import .MPP File Command
Reads a project schedule in a Microsoft Project .MPP file and
displays the project in Excel
The Project menu command Import .MPP File opens a project .MPP
file and imports it into Excel.
When importing an .MPP file into Excel, @RISK first opens the
selected project in Microsoft Project and then reads task, resource and
field values from the project. It then builds one or more new Excel
worksheets, creating a view of your project in Excel. Separate
worksheets are created for project tasks and resources.
The fields imported reflect those present in the active Gantt Chart and
Resource table in Microsoft Project. This can be changed in the
Import Settings dialog available prior to import. You can show
additional fields in Excel by following the instructions displayed
when the Project Link menu Insert Field command is selected.
Project
447
Viewing Import
Settings
After you select an .MPP file to import, you have the option of
reviewing and changing the settings to be used during the import.
448
You may save the Excel workbook with an imported project at any
time. When the saved project workbook is reopened, @RISK will
automatically open the associated project in Microsoft Project, set up
the links between Excel and Microsoft Project and update Excel with
any changes that may have been made to the project in the interim.
Thus, you only have to import a project to Excel once.
Project Commands
Convert .MPP
files from
@RISK for
Project Version
4
Project
Projects used with @RISK for Project Version 4 and earlier are
supported with @RISK for Excels Project capabilities. When a project
used with earlier versions of @RISK for Project is imported into
@RISK for Excel, the @RISK elements in that project are converted to
their equivalent form in @RISK for Excel. Distributions from the
@RISK: Functions column in the project are changed to distribution
functions in Excel. Global variables, correlations, probabilistic
branching and other @RISK specific features are similarly converted.
449
Project Commands
Project
Vary Values Using. The Vary Values Using options specify the
minimum and maximum possible values for the range to be
applied, the type of units that the range is measured in and the
manner in which possible values are distributed across the minmax range.
-
Current
Distribution
Does Not Match
the Definition of
the Category
OK Button
452
Apply to. The Apply to options allows the selection of the field
and the tasks or resources to which the entered risk estimates will
be applied to the selected field. Selected tasks or resources are
added to the selected category.
-
Project Commands
Project
454
Build Entry Table for. Selects the tasks or resources to which the
entered distribution and columns of possible values will be
applied. If you select a task field, you will be selecting tasks, and
if you select a resource field, you will be selecting resources. All
Tasks (or Resources) enters a new distribution for the selected
field for every task or resource in your project.
Project Commands
Using a
Parameter Entry
Table
Project
455
Project Commands
selected are added to a single group or row in the table. If tasks are
added All Branches at Once, each selected task is placed in its own
group or row in the table. Multiple tasks may be entered as a group
of tasks to branch to. This is done when you wish to branch to a
group of tasks, each of which will become a successor.
Distribution
Functions for
Probabilistic
Branches
The task has, as its only predecessors, tasks which have been
zeroed. That is, it is a successor task to a task belonging to an
unused branch.
Project
457
458
How
Probabilistic
Calendars Are
Applied
Project
Start Date the first date in a range of dates for which nonworking probabilities will be entered.
End Date the last date in a range of dates for which nonworking probabilities will be entered.
1 Sample for selects to apply a sampled working/nonworking value to either each day in the entered range or the
entire range as a whole. For example, if you have a 5 day
range and select 1 sample for each day in the entered range, 5
total samples will be drawn and the working/non-working of
each day in the range will be set individually. If you select 1
sample for entire range, 1 sample will be drawn and the
working/non-working of all days in the range will be set
together based on that sample.
Outside Range, Repeat Until sets the end date for repeating
the entered range as specified in the Outside Range, Repeat
setting.
459
Disable Risk for this Calendar Turns off the use of nonworking probabilities for the selected calendar but leaves the
entered probabilities intact. This allows the testing of the
impacts of entered non-working probabilities on simulation
results.
Clicking the Apply to All Calendars button takes the date ranges
entered in the current calendar and copies them to all calendars
defined for the selected project.
Clicking the Delete Range button deletes the date range in the
selected row. However, although a range is deleted from the dialog it
is not deleted from your project until the OK button is pressed to
dismiss the Probabilistic Calendars dialog.
Calendar
Calculations in
Excel
460
Project Commands
Layout. Layout options control the dates and units used for the
Gantt chart. Start Date sets the starting date for the left of the
chart. Timescale Units control the units (days, weeks, months,
years, etc.) used in the chart. Date Format sets the format for the
dates displayed in the top header for the chart.
Project
461
462
Project Commands
Small solid red bar shows the range between the earliest
possible start date and latest possible finish date for each task.
Larger lightly shaded red bar shows for each task the range
between the specified start date Perc% value (P10 by default)
and finish date Perc% value (P90 by default).
Red diamond markers show for each task the mid Start and
mid Finish dates.
Project
463
General Tab
Probabilistic
Gantt Chart
Perc%. Selects to display, for each task, the start date associated
with the entered percentile value (for example, the 10 Perc% date
is the date for which there is only a 10% chance of an earlier start
date occurring).
Mid. Selects to display, for each task, the mean or median start
date (as calculated from the distribution of possible start dates).
Perc%. Selects to display, for each task, the finish date associated
with the entered percentile value (for example, the 90 Perc% date
is the date for which there is only a 10% chance of a later finish
date occurring).
Mid. Selects to display, for each task, the mean or median finish
date (as calculated from the distribution of possible finish dates).
Display Critical Index. Selects to label, above the bar for each
task in the Probabilistic Gantt chart, the simulated critical index,
or the % of time that a task falls on the critical path.
The Report Location option allows you to select whether to place the
Probabilistic Gantt Chart in a worksheet in Excel or in a new table in
Microsoft Project.
464
Project Commands
Tracked Output
Tab Probabilistic
Gantt Chart
The Name entry selects the simulation output for which sensitivities
will be calculated. All user-selected outputs (identified with
RiskOutput functions) are listed.
The Sensitivity Results for Tracked Output options specify type of
sensitivity analysis results to be displayed:
Project
465
466
Project Commands
Project
Once you have selected the data to collect, a simulation can be run.
For each iteration, the value of the selected field(s) is collected for
each time period of the project. When the simulation is done, the
following report describes the probabilities for the values of the
collected timescaled data:
467
Graphs are generated that describe the trends for statistics on the
collected timescaled data:
Timescaled Data
Report Dialog
The Timescaled Data Report Dialog shows the options for data to be
included in a timescaled data report.
Project Commands
collecting for Total Cost in each month a project, the 20 Perc% value is
the value for which only 20% of the time a value less than the shown
value will occur.
Project
469
With the Box-Whisker graph, individual box plots are created for
each time period in the project. A box shows the range between the
selected Low Perc% and High Perc% values. The whisker runs
between the minimum and maximum values for each time period.
470
Project Commands
All standard @RISK for Excel analyses may be used on the generated
simulation outputs. Sensitivity analysis can be used to show the
critical factors affecting the values in a time period such as the key
drivers behind Year 1 Costs. Scatter plots can be made that compare
the values in a time period with other model inputs and outputs.
Note: Once the Include Row for Real-Time Timescaled Data option
is selected, it is necessary to re-run the simulation to get complete
@RISK distributions on timescaled data. This is because simulations
will run slightly slower when complete @RISK distributions are
generated and @RISK does not do this by default. However, once
RiskOutput functions are added, each subsequent simulation will
generate complete @RISK distributions for timescaled data.
Project
471
472
Project Commands
Project
473
You can select to check for any of the issues described in the previous
section. You may also fine tune the checking of lags using the
Positive Lags with Length > and Negative Lags with Length >
options to only identifying lags over a specified length in days. You
also can skip the checking of tasks with small durations using the
Filter Out Tasks with Duration < = option.
The Hide Issues Marked as OK option keeps issues that have been
checked as OK (using the checkbox in the first column of the Schedule
Audit report) from appearing in a report.
The Navigate button displays the Microsoft Project window and
navigates among the tasks with the issues displayed in the Schedule
Audit report. This makes it easier to make adjustments to the
problem tasks in Microsoft Project in order to correct the identified
issues.
474
Project Commands
Project
476
Project
477
478
Project Commands
Project
479
New fields from Project may be inserted into the displayed Tasks or
Resources worksheet in Excel. Optionally, fields shown in Excel may
be hidden from view.
480
Project Commands
Using this report, you can review any changes @RISK will make.
Check the option for the formula you wish to use to update Excel.
Project
481
482
Project Commands
RiskProject Functions
@RISK for Excel includes new functions that begin with
RiskProject that can be included in formulas in Excel. These
functions make changes to a project schedule during a simulation.
They are especially useful when formulas calculated in Excel, such as
those in a Risk Register, need to be linked to the logic of a schedule in
Microsoft Project. As with standard Excel functions, arguments to
RiskProject functions can include cell references and formulas.
RiskProject functions are active only during a simulation and not
during single Excel recalculations when the sampling type is set to
Monte Carlo.
Project
483
RiskProjectAddDelay(PrecedingTask,DelayLength,DelayCost).
This function adds a new task to a project after PrecedingTask
completes. This task has the specified length and cost. You
could use this if you wish to add an additional task to the
project being simulated in iterations when a risk event occurs.
RiskProjectResourceUse(Task,Resource,UsageValue). This
function changes the units of a material resource (or work for
a work resource) that is assigned to a task each iteration.
Costs calculated in Project will reflect the changed usage each
iteration of a simulation.
484
Library
Introduction
@RISK Professional and Industrial versions include the @RISK
Library. The @RISK Library is a separate database application for
sharing @RISKs input probability distributions and comparing
results from different simulations. It uses SQL Server to store @RISK
data.
Different users in an organization can access a shared @RISK Library
in order to access:
485
486
Introduction
Library
Cell References
in Library
Distributions
Seeding Library
Distributions
Often you will want to add a RiskSeed property function for seeding
its random number stream. This insures that each model in which the
distribution is used will get the same sequence of sampled values for
the library distribution. This insures that a valid comparison of
results from different models which use the library distribution can be
made.
488
Graphing a
Distribution
Library
489
Columns
Displayed in the
Distributions
Tab
Using a Library
Distribution in
Your Model
490
How Are
Distributions
Updated?
Library
=RiskNormal(50000,10000,RiskName(Product Development/
2008),RiskLibrary(5,8RENDCKN))
instructs @RISK to update the definition of this function from the
library identified by 8RENDCKN at the start of the simulation.
This identifier links to a unique library on your system. If the library
is not available, @RISK will use the current definition in your model
(in this case, RiskNormal(50000,10000)).
492
You may also sample from an output stored in the @RISK Library in a
new simulation in Excel. The @RISK Library can place a
RiskResample function in Excel that references the data that was
collected for the output and stored in the @RISK Library. This is
useful for combining the results of many separate models in a new
single simulation or portfolio optimization.
Library
493
How is a
Simulation
Result Placed in
the @RISK
Library?
494
Graphing a
Result in the
Library
Library
495
Resampling
Simulation
Results Stored
in the Library in
a New
Simulation
You may sample from an output stored in the @RISK Library in a new
simulation in Excel. There are times when you may wish to use
output distributions from many different simulations as inputs in a
new simulation in Excel. For example, you may wish to create a
portfolio optimization model that uses the output distributions from a
set of different models to select an optimal mix of projects or
investments. Each possible project or investment in the portfolio has
an individual simulation associated with it that was stored in the
@RISK Library. The portfolio optimization model then references
these individual output distributions. It samples from them each
iteration it performs while calculating the results for the portfolio as a
whole.
The output distribution from each project or investment becomes an
input that can be sampled via the RiskResample function. You can
place an output in the library into a workbook in Excel using the Add
to Model as Resampled Input command. When you do this, the data
that was collected and stored for the output becomes the data set that
is sampled from during the portfolio simulation. This data is stored
in the workbook with portfolio simulation.
How Output
Data is
Resampled in a
Combined
Simulation
496
Library
497
instructs @RISK to update the data for the output from the library
identified by TB8GKF8C at the start of the simulation. This
identifier links to a unique library on your system. If the library is not
available, @RISK will use the data for the output that was stored in
the workbook the last time the data was updated and the workbook
was saved.
5) Select Graph as Continuous Distribution if you want the
resampled data to be graphed continuously (as you would see
when looking at the output distribution and statistics in the
stored simulation) vs. a discrete distribution. This is done with a
RiskIsDiscrete(FALSE) property function entry in the
RiskResample function. The RiskResample distribution is a
discrete distribution as only values in the referenced data set can
be sampled. However, graphing continuously shows graphs in a
form that is easier to present to others. Note: Selecting Graph as
Continuous Distribution has no effect on the values resampled
or simulation results.
6) Select the cell in Excel where you wish to place the resampled
output.
498
Technical Notes
The @RISK Library uses Microsoft SQL Server to store saved
simulations and workbooks. Accessing an @RISK Library file is the
same as accessing any SQL database. Multiple @RISK Library
databases may be open at a single time. By clicking the Library icon
at the bottom of the @RISK Library window, connections to existing
@RISK Library databases can be set up and new databases can be
created.
Connecting to
an Existing
Library
Library
499
Creating a New
Library
More on SQL
Server Express
The @RISK Library uses SQL Server Express as the platform for
storage and retrieval of RiskLibrary functions and simulation results.
It is Microsofts free database product that is based on SQL Server
2005 technology.
SQL Server Express uses the same database engine as the other
versions of SQL Server 2005, but has several limitations including a 1
CPU, 1 GB RAM, and a 4 GB database size limit.
Although SQL Server Express can be used as a server product, @RISK
also uses it as a local client data store where the @RISK Library data
access functionality does not depend on the network.
SQL Server Express can install and run on multiprocessor machines,
but only a single CPU is used at any time. The 4 GB database size
limit applies to all data files, however there are no limits to the
number of databases that can be attached to the server and @RISK
Library users can create or connect to several databases.
500
Technical Notes
Library
502
Technical Notes
Utilities Commands
Color Cells Command
Turns coloring of @RISK function cells on and off
You can color cells in your workbook where @RISK inputs, outputs,
statistics functions and optimization variables are located. This
allows you to quickly and easily identify the components of your
@RISK model in open workbooks. You can select a color for cell font,
border or background.
Utilities Commands
503
504
Technical Notes
Utilities Commands
505
506
Technical Notes
Export and
Import
Application
Settings
Utilities Commands
507
Windows Command
Displays the @RISK Windows List
The @RISK Windows List displays a list of all open @RISK windows,
and allows activating, arranging and closing of those windows.
508
Technical Notes
Utilities Commands
509
The Save Options button ( second from the left) selects the location to
save results.
510
Utilities Commands
Dont Save. With this option selected, @RISK will not save
simulation results. However, you can always re-run your
simulation to view your results again, as your model
including distribution functions and simulation settings is
always saved when you save your workbook.
511
Selecting all options allow you to remove all @RISK information from
open workbooks.
512
Technical Notes
Utilities Commands
513
@RISK After
Function Swap
When functions are swapped out, the @RISK toolbar is disabled, and
if you enter an @RISK function it will not be recognized.
The Swap options dialog allows you to specify how @RISK will
operate when functions are swapped in and out. If your workbook is
changed, when @RISK functions are swapped out, @RISK can report
to you how it will re-insert @RISK functions into your changed
model. In most cases, @RISK will be able to automatically handle
changes to a workbook when functions are swapped out.
514
Technical Notes
Swap Options
Clicking the Swap Option icon (next to the Help icon in the Swap
@RISK Functions dialog) displays the Swap Options dialog.
Swap Options are available for:
Swap Out
Options
When swapping out, the primary value used for replacing an @RISK
function is its static value. Typically this is the value in a formula in
your model that was replaced by an @RISK function. It is stored in an
@RISK distribution in the RiskStatic property function.
Utilities Commands
515
516
Technical Notes
Swap In Options
Swap In Options control how @RISK will report changes that it will
make to your spreadsheet, prior to inserting distribution functions
back into formulas. Spreadsheet formulas and values can be changed
when @RISK functions are swapped out. When swapping in, @RISK
will identify where it should re-insert @RISK functions and, if desired,
show all the changes it is going to make to your formulas. You can
check these changes to make sure @RISK functions are returned as
you wish. In most cases, Swap In is automatic, as @RISK captures all
changes to static values that were made when functions were
swapped out. It also, automatically, handles moved formulas and
inserted rows and columns. However, if formulas where @RISK
functions were previously located were deleted when functions were
swapped out, @RISK will notify you of the problem formulas prior to
swapping functions back in.
All. With this option all changes to be made to the model are
reported, even if a formula and swapped out value were not
changed when @RISK functions were swapped out.
Utilities Commands
517
518
Technical Notes
Previewing
Changes Prior
to Swapping
@RISK
Functions In
@RISK creates a report which you can use to preview the changes that
will be made to a workbook when swapping functions in. The report
includes the Original (Before Swap), the Original (After Swap), the
Current, and the Recommended formulas to be swapped back in.
Utilities Commands
519
520
Technical Notes
The Conversion
Summary
Utilities Commands
521
Comparison of
the Original and
Converted
Models
The only options here are the Number of Simulations and the
Number of Iterations which control how many simulations, each
with the specified number of iterations, to run in the comparison.
When the OK button is clicked, Crystal Ball will be launched and
made to run that many simulations and iterations of the original
model and statistics will be collected for each forecast (output). Then
the same process will occur again, this time using @RISK and the
converted model. Finally, the two sets of statistics are compared and
tabulated in a spreadsheet.
522
Technical Notes
The bottom-most section of this table shows, for each output and for
each simulation, five statistics (the mean, standard deviation,
skewness, 10th percentile, and 95th percentile.) Above these are listed
the average statistics for each output.
If you run at least 10 simulations of 100 iterations each, the
comparison utility will perform a two-tailed t-test (with no
assumption of equivalent standard deviations) to determine if the
@RISK and Crystal Ball statistics can be considered to be equivalent.
If the average statistics are different with a 97.5% significance level, a
warning is generated and that statistic is marked in yellow. If the
average statistics are different with a 99.5% significance level, a
failure is generated, and that statistic is marked in red. Given the
nature the t-test under statistical fluctuation, the test can fail even
when the @RISK output and Crystal Ball forecast are, in fact,
equivalent. For a "warning" this will occur 2.5% of the time. For a
failure this will occur 0.5% of the time.
In addition, an overall heuristic for the output is generated by looking
at the results of the t-tests for all five statistics. We assign a score to
the forecast, giving each warning a value of 1, and each failure a
value of 2. The possible outcomes for the heuristic are:
Utilities Commands
523
524
While most Crystal Ball elements can be converted easily, there are a
few things that cannot be converted. Each of these scenarios is
marked with an error or warning message in the conversion
summary.
Utilities Commands
525
526
Technical Notes
@RISK Functions
Introduction
@RISK includes custom functions that can be included in Excel cells
and formulas. These functions are used for:
1) Defining probability distributions (@RISK distribution
functions and distribution property functions).
2) Defining simulation outputs (RiskOutput function)
3) Returning simulation results to your spreadsheet (@RISK
statistics and graphing functions)
This reference chapter describes each of these types of @RISK
functions, and gives details about both the required and optional
arguments for each function.
Distribution Functions
Probability distribution functions are used for adding uncertainty
in the form of probability distributions to the cells and equations in
your Excel worksheet. For example, you could enter
RiskUniform(10,20) to a cell in your worksheet. This specifies that the
values for the cell will be generated by a uniform distribution with a
minimum of 10 and a maximum of 20. This range of values replaces
the single fixed value required by Excel.
Distribution functions are used by @RISK, during a simulation, for
sampling sets of possible values. Each iteration of a simulation uses a
new set of values sampled from each distribution function in your
worksheet. These values are then used in recalculating your
worksheet and generating a new set of possible results.
As with Excel functions, distribution functions contain two elements,
a function name and argument values which are enclosed in
parentheses. A typical distribution function is:
RiskNormal(100,10)
@RISK Functions
527
528
Look for those cells where the actual values which occur could vary
from those shown in the worksheet. At first, identify those important
variables whose cell values may have the largest variation in value.
As your Risk Analysis gets more refined, you can further expand your
use of distribution functions throughout the worksheet.
Introduction
@RISK Functions
529
Fitting Data to
Distributions
Distribution
Property
Functions
Truncation in
Earlier Versions
of @RISK
Alternate
Parameters
530
Types of
Alternate
Parameters
@RISK Functions
531
Location
or loc
Parameters
Sampling
Distributions
with Alternate
Parameters
Cumulative
Descending
Percentiles
532
Introduction
Entering
Arguments
in @RISK
Functions
Dates in @RISK
Functions
533
=RiskTriang(DATE(2009,10,4)+TIME(2,27,13),DATE(2009,12,29)+TIME
(2,25,4),DATE(2010,10,10)+TIME(11,46,30),RiskIsDate(TRUE))
uses the Excel DATE and TIME functions to convert the entered dates
and times to values. The advantage of this approach is that the
entered dates and times will convert properly if the workbook is
moved to a system with different dd/mm/yy formatting.
Not all arguments for all functions can be logically specified with
dates. For example, functions such as RiskNormal(mean,stdDev)
support a mean entered as a date but not a standard deviation. The
Distribution Argument panel in the Define Distribution window
shows the type of data (dates or numeric) that can be entered for each
distribution type when date formatting is enabled.
Optional
Arguments
534
Introduction
Important Note
on Excel Arrays
@RISK Array
Functions
In Excel, you may not list cell references or names in arrays as you
would list constants. For example, you could not use {A1,B1,C1} to
represent the array containing the values in cells A1, B1, and C1.
Instead, you must use the cell range reference A1:C1 or enter the
values of those cells directly in the arrays as constants for example,
{10,20,30}.
The @RISK time series functions are array functions as they change
the cells where your time series forecast is located as a group each
iteration of a simulation. A single time series function is used for the
entire range of a time series forecast. As with other Excel array
functions, formulas for a cell in the range may not be edited
individually.
To edit a time series function directly in your spreadsheet, you need
to select the entire range of the forecast where the array function is
located, edit the formula, and press <Ctrl><Shift<Enter> to enter the
formula. Most of the time this will not be necessary as the @RISK
Time Series Fit, Batch Fit and Define tools enter the array functions
automatically for you in the range you select.
More
Information
@RISK Functions
535
536
Introduction
Statistics in
Report
Templates
Graphing Function
A special @RISK function RiskResultsGraph will automatically place a
graph of simulation results, wherever it is used, in a spreadsheet. For
example, =RiskResultsGraph(A10) would place a graph of the
simulated distribution for A10 directly in your spreadsheet at the
function's location at the end of a simulation. Additional optional
arguments to RiskResultsGraph allow you to select the type of graph
you want to create, its format, scaling and other options.
Supplemental Functions
Additional functions such as RiskCurrentIter, RiskCurrentSim, and
RiskStopSimulation are provided for use in the development of
macro-based applications using @RISK. These functions return the
current iteration and current simulation, respectively, of an executing
simulation, or stop a simulation.
@RISK Functions
537
538
Introduction
Distribution Function
Returns
RiskBernoulli(p)
RiskBeta(alpha1,alpha2)
RiskBetaGeneral( alpha1,
alpha2,minimum, maximum)
RiskBetaGeneralAlt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value,
arg4type,arg4value)
RiskBetaSubj(minimum, most
likely, mean, maximum)
RiskBinomial(n,p)
RiskChiSq(v)
RiskCompound(dist#1 or value
or cellref,dist#2,deductible,limit)
RiskCumul(minimum,maximum,
{X1,X2,...,Xn},{p1,p2,...,pn})
RiskCumulD(minimum,maximum
, {X1,X2,...,Xn},{p1,p2,...,pn})
RiskDiscrete({X1,X2,...,Xn},
{p1,p2,...,pn})
RiskDoubleTriang(min,m.likely,
max,p)
RiskDuniform({X1,X2,...Xn})
@RISK Functions
539
RiskErf(h)
RiskErlang(m,beta)
RiskExpon(beta)
RiskExponAlt(arg1type,
arg1value, arg2type,arg2value)
RiskExtvalue(alpha,beta)
RiskExtvalueAlt(arg1type,
arg1value, arg2type,arg2value)
RiskExtValueMin(alpha, beta)
RiskExtvalueMinAlt(arg1type,
arg1value, arg2type,arg2value)
RiskF(v1,v2)
540
RiskGamma(alpha,beta)
RiskGammaAlt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value)
RiskGeneral(minimum,maximum,
{X1,X2,...,Xn},{p1,p2,...,pn})
RiskGeometric(p)
RiskHistogrm(minimum,maximum,{p1,p2,...,pn})
RiskHypergeo(n,D,M)
RiskIntUniform(minimum,maxim
um)
RiskInvGauss(mu,lambda)
RiskInvGaussAlt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value)
RiskJohnsonSB(alpha1,alpha2,
a,b)
RiskJohnsonSU(alpha1,alpha2,
gamma, beta)
RiskJohnsonMoments(mean,
standardDeviation,skewness,
kurtosis)
RiskLaplace(,)
RiskLaplaceAlt(arg1type,
arg1value, arg2type,arg2value)
RiskLevy(a,c)
RiskLevyAlt(arg1type,
arg1value, arg2type,arg2value)
RiskLogistic(alpha,beta)
RiskLogisticAlt(arg1type,
arg1value, arg2type,arg2value)
RiskLoglogistic(gamma,beta,
alpha)
RiskLoglogisticAlt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value)
RiskLognorm(mean,standard
deviation)
RiskLognormAlt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value)
@RISK Functions
541
542
RiskLognorm2(mean,standard
deviation)
RiskMakeInput(formula)
RiskNegbin(s,p)
RiskNormal(mean,standard
deviation)
RiskNormalAlt(arg1type,
arg1value, arg2type,arg2value)
RiskPareto(theta, alpha)
pareto distribution
RiskParetoAlt(arg1type,
arg1value, arg2type,arg2value)
RiskPareto2(b,q)
pareto distribution
RiskPareto2Alt(arg1type,
arg1value, arg2type,arg2value)
RiskPearson5(alpha,beta)
RiskPearson5Alt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value)
RiskPearson6(beta,alpha1,
alpha2)
RiskPert(minimum,most likely,
maximum)
RiskPertAlt(arg1type, arg1value,
arg2type,arg2value,
arg3type,arg3value)
RiskPoisson(lambda)
poisson distribution
RiskRayleigh(beta)
RiskRayleighAlt(arg1type,
arg1value, arg2type,arg2value)
RiskResample(sampMethod,{X1,
X2,...Xn})
RiskSimtable({X1,X2,...Xn})
RiskSplice(dist#1 or
cellref,dist#2 or cellref,splice
point)
RiskStudent(nu)
RiskTriang(minimum,most likely,
maximum)
RiskTriangAlt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value)
RiskTrigen(bottom,most
likely,top, bottom perc.,top perc.)
RiskUniform(minimum,
maximum)
RiskUniformAlt(arg1type,
arg1value, arg2type,arg2value)
RiskVary(base, minimum,
maximum, range type, #steps,
distribution)
RiskWeibull(alpha,beta)
RiskWeibullAlt(arg1type,
arg1value, arg2type,arg2value,
arg3type,arg3value)
@RISK Functions
543
544
Distribution Property
Function
Specifies
RiskCategory(categoryName)
RiskCollect()
RiskConvergence(tolerance,
toleranceType,confidenceLevel,
useMean,useStdDev,
usePercentile,percentile)
RiskDepC(ID,coefficient)
RiskFit(ProjID,FitID,selected fit
result)
RiskIndepC(ID)
RiskIsDate(TRUE)
RiskIsDiscrete(TRUE)
RiskLibrary(position,ID)
RiskLock()
RiskName(input name)
RiskSeed(random number
generator type, seed value)
RiskShift(shift)
RiskSixSigma(LSL,USL,target,
Long Term Shift, Number of
Standard Deviations
RiskStatic(static value)
RiskTruncate(minimum,
maximum)
RiskTruncateP(perc% minimum,
perc% maximum)
RiskUnits(units)
Output Function
Specifies
RiskOutput(name,output range
name, position in range)
Fitting Function
Specifies
RiskFitDistribution(data
range,data type, distribution
list,selector,lower bound, upper
bound)
RiskFitDescription((fit
source,distribution style)
RiskFitStatistic(fit
source,statistic)
RiskFitParameter (fit
source,parameter#)
@RISK Functions
545
Project Function
RiskProjectAddDelay(PrecedingT
ask,DelayLength,DelayCost)
RiskProjectAddCost(CostToAdd,
TimeToAdd)
RiskProjectRemoveTask(TaskTo
Remove)
RiskProjectResourceUse(Task,R
esource,UsageValue)
546
Specifies
Specifies
RiskAPARCH(mu,Omega,Delta,
Gamma,A,B,R0,Sigma0,StartValue,
WhatToReturn)
RiskAR1(mu,Sigma,A,R0,
StartValue,WhatToReturn)
RiskAR2(mu,Sigma,A1,A2,R0,
RNeg1,StartValue,WhatToReturn)
RiskARCH(mu,Omega,A,R0,
StartValue,WhatToReturn)
RiskARMA(mu,Sigma,A1,B1,R0,
StartValue,WhatToReturn)
RiskGBM(mu,Sigma,Times,
StartValue,WhatToReturn)
RiskGBMJD(mu,Sigma,Lambda,Ju
mpMu,JumpSigma,Times,
StartValue,WhatToReturn)
RiskBMMR(mu,Sigma,Alpha,R0,Ti
mes, StartValue,WhatToReturn)
RiskBMMRJD(mu,Sigma,Alpha,R0
,Lambda,JumpMu,JumpSigma,
Times, StartValue,WhatToReturn)
RiskGBMSeasonal(mu,Sigma,
SeasonalAdj,AdjType,AdjIndex,
StartValue,WhatToReturn)
RiskMA1(mu,Sigma, B1,
StartValue,WhatToReturn)
Statistics Function
Returns
RiskConvergenceLevel(cellref
or output name, Sim#)
RiskCorrel(cellref1 or
output/input1 name, cellref2 or
output/input2
name,correlationType,Sim#)
RiskKurtosis(cellref or
output/input name, Sim#)
RiskMax(cellref or output/input
name, Sim#)
RiskMean(cellref or output/input
name, Sim#)
RiskMin(cellref or output/input
name, Sim#)
RiskMode(cellref or output/input
name, Sim#)
RiskPercentile(cellref or
output/input name, perc%, Sim#)
RiskPtoX(cellref or output/input
name, perc%, Sim#)
RiskPercentileD(cellref or
output/input name, perc%, Sim#)
RiskQtoX(cellref or output/input
name, perc%, Sim#)
RiskRange(cellref or output/input
name, Sim#)
RiskSensitivity(cellref or output
name,Sim#,rank,analysisType,
returnValueType)
RiskSkewness(cellref or
output/input name, Sim#)
@RISK Functions
547
548
RiskStdDev(cellref or
output/input name, Sim#)
RiskTarget(cellref or output/input
name, target value, Sim#)
RiskXtoP(cellref or output/input
name, target value, Sim#)
RiskTargetD(cellref or
output/input name, target value,
Sim#)
RiskXtoQ(cellref or output/input
name, target value, Sim#)
RiskVariance(cellref or
output/input name, Sim#)
RiskTheoKurtosis(cellref or
distribution function)
RiskTheoMax(cellref or
distribution function)
RiskTheoMean(cellref or
distribution function)
RiskTheoMin(cellref or
distribution function)
RiskTheoMode(cellref or
distribution function)
RiskTheoPtoX(cellref or
distribution function, perc%)
RiskTheoQtoX(cellref or
distribution function, perc%)
RiskTheoRange(cellref or
distribution function)
RiskTheoSkewness(cellref or
distribution function)
RiskTheoStdDev(cellref or
distribution function)
RiskTheoXtoP(cellref or
distribution function, target value)
RiskTheoXtoQ(cellref or
distribution function, target value)
RiskTheoVariance(cellref or
distribution function)
Returns
RiskCpkLower(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
RiskLowerXBound(cellref or
output name, Sim#,
RiskSixSigma(LSL, USL, Target,
Long Term Shift, Number of
Standard Deviations))
RiskPNCLower(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
@RISK Functions
549
550
RiskPNCUpper(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
RiskPPMLower(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
RiskPPMUpper(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
RiskSigmaLevel(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
RiskUpperXBound(cellref or
output name, Sim#,
RiskSixSigma(LSL, USL, Target,
Long Term Shift, Number of
Standard Deviations))
RiskZlower(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
Calculates the minimum of Z-Lower and ZUpper for cellref or output name in Sim#
optionally using the USL and LSL in the
included RiskSixSigma property function
RiskZUpper(cellref or output
name, Sim#,
RiskSixSigma(LSL,USL,
Target,LongTerm Shift,Number of
Standard Deviations))
Supplemental Functions
Returns
RiskCorrectCorrmat(correlation
MatrixRange,adjustmentWeights
MatrixRange)
RiskCurrentIter()
RiskCurrentSim()
RiskSimulationInfo(info to
return)
RiskStopRun(cellRef or formula)
Graphing Function
Returns
RiskResultsGraph(cellRef or
output/input name,
locationCellRange,graphType,xlF
ormat,leftDelimiter,
rightDelimiter,xMin,xMax,xScale,ti
tle,sim#)
@RISK Functions
551
552
RiskBernoulli
Description
Examples
Guidelines
Domain
x {0,1}
Density and
Cumulative
Distribution
Functions
f ( x) = 1 p
for x = 0
f ( x) = p
for x =1
f ( x) = 0
otherwise
F ( x) = 0
for x < 0
F ( x) = 1 p
for 0 x < 1
F ( x) = 1
for x 1
continuous parameter
Mean
Variance
p(1 p)
Skewness
0<p<1
discrete
1 2p
[ p(1 p)]3 / 2
Kurtosis
Mode
@RISK Functions
p 3 + (1 p ) 3
p (1 p )
0
1
Bimodal (0,1)
if p < .5
if p > .5
if p = .5
553
554
1.2
1.2
0.6
0.6
1.0
0.4
0.4
1.0
0.2
0.2
0.8
0.0
0.0
0.8
-0.2
-0.2
Examples
RiskBeta
Description
Examples
Guidelines
1 > 0
2 > 0
Domain
0x1
Density and
Cumulative
Distribution
Functions
f (x) =
continuous
x 1 1 (1 x ) 2 1
( 1 , 2 )
F( x ) =
B x (1 , 2 )
I x (1 , 2 )
B(1 , 2 )
Variance
1
1 + 2
1 2
( 1 + 2 )2 ( 1 + 2 + 1)
Skewness
2
Kurtosis
Mode
@RISK Functions
2 1
1 + 2 + 1
1 + 2 + 2
1 2
(
1 + 2 + 1)(2( 1 + 2 )2 + 1 2 ( 1 + 2 6))
3
1 2 ( 1 + 2 + 2)( 1 + 2 + 3)
1 1
1 + 2 2
1>1, 2>1
Examples
CDF - Beta(2,3)
1.0
0.8
0.6
0.4
1.0
1.2
1.0
1.2
0.8
0.6
0.4
0.2
-0.2
0.0
0.0
0.2
PDF - Beta(2,3)
2.0
1.8
1.6
1.4
1.2
1.0
0.8
0.6
0.4
556
0.8
0.6
0.4
0.2
-0.2
0.0
0.0
0.2
RiskBetaGeneral
Description
Examples
Guidelines
min
max
Domain
min x max
Density and
Cumulative
Distribution
Functions
f (x) =
(x min )1 1 (max x ) 2 1
(1 , 2 )(max min )1 + 2 1
F( x ) =
B z (1 , 2 )
I z (1 , 2 )
B(1 , 2 )
continuous
z
with
x min
max min
Variance
min +
1
(max min )
1 + 2
1 2
(1 + 2 ) (1 + 2 + 1)
2
@RISK Functions
(max min ) 2
557
Skewness
2
Kurtosis
3
Mode
2 1
1 + 2 + 1
1 + 2 + 2
1 2
(1 + 2 + 1)(2(1 + 2 )2 + 1 2 (1 + 2 6))
1 2 (1 + 2 + 2)(1 + 2 + 3)
min +
1 1
(max min )
1 + 2 2
1>1, 2>1
min
max
Examples
PDF - BetaGeneral(2,3,0,5)
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
558
-1
0.00
CDF - BetaGeneral(2,3,0,5)
1.0
0.8
0.6
0.4
0.2
@RISK Functions
-1
0.0
559
RiskBetaGeneralAlt, RiskBetaGeneralAltD
560
Description
Examples
RiskBetaGeneralAlt("min",0,10%,1,50%,20,"max",50) specifies
a beta distribution with a minimum value of 0 and a maximum
value of 50, a 10th percentile of 1 and a 50th percentile of 20.
Guidelines
Both alpha1 and alpha2 must be greater than zero and max > min.
With RiskBetaGeneralAltD, any entered percentile values are
cumulative descending percentiles, where the percentile specifies
the chance of a value greater or equal to the entered value.
RiskBetaSubj
Description
Examples
Definitions
mid
min + max
2
1 2
Parameters
Domain
@RISK Functions
max mean
mean min
min
m.likely
continuous parameter
min < m.likely < max
mean
continuous parameter
min < mean < max
max
min x max
continuous
561
Density and
Cumulative
Distribution
Functions
f (x) =
(x min )1 1 (max x ) 2 1
(1 , 2 )(max min )1 + 2 1
F( x ) =
B z (1 , 2 )
I z (1 , 2 )
B(1 , 2 )
z
with
x min
max min
mean
Variance
Skewness
Kurtosis
Mode
562
2 (mid mean )
mean + mid 2 m.likely
(
1 + 2 + 1)(2(1 + 2 )2 + 1 2 (1 + 2 6))
3
1 2 (1 + 2 + 2)(1 + 2 + 3)
m.likely
Examples
CDF - BetaSubj(0,1,2,5)
1.0
0.8
0.6
0.4
0.2
-1
0.0
PDF - BetaSubj(0,1,2,5)
0.30
0.25
0.20
0.15
0.10
0.05
@RISK Functions
-1
0.00
563
RiskBinomial
Description
Examples
Guidelines
The number of trials n must be a positive integer greater than zero and less
than or equal to 32,767.
Probability p must be greater than or equal to zero and less than or equal to 1.
Parameters
n>0*
0<p<1*
0xn
Mass and
Cumulative
Distribution
Functions
n
f ( x ) = p x (1 p )n x
x
discrete integers
F( x ) =
i pi (1 p) n i
i=0
564
Mean
np
Variance
np(1 p )
Skewness
Kurtosis
Mode
(1 2p )
np(1 p )
3
6
1
+
n np(1 p )
(bimodal)
p(n + 1) 1
(unimodal)
Examples
and
p(n + 1)
if
p(n + 1)
is integral
p(n + 1) otherwise
PMF - Binomial(8,.4)
0.30
0.25
0.20
0.15
0.10
@RISK Functions
-1
0.00
0.05
565
CDF - Binomial(8,.4)
1.0
0.8
0.6
0.4
0.2
566
-1
0.0
RiskChiSq
Description
Examples
Guidelines
Parameters
Domain
0 x < +
Density and
Cumulative
Distribution
Functions
>0
f (x) =
2
F( x ) =
continuous
2
( 2 )
e x 2 x ( 2 )1
x 2 ( 2)
( 2 )
Variance
Skewness
Kurtosis
12
3+
Mode
-2
if 2
if = 1
@RISK Functions
567
Examples
PDF - ChiSq(5)
0.18
0.16
0.14
0.12
0.10
0.08
0.06
0.04
12
14
16
12
14
16
10
-2
0.00
0.02
CDF - ChiSq(5)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
568
10
-2
0.0
0.1
RiskCompound
Description
Examples
RiskCompound(RiskPoisson(5),RiskLognorm(10000,10000)) sums a
number of samples drawn from RiskLognorm(10000,10000) where the
number of samples to be summed is given by the value sampled from
RiskPoisson(5).
Guidelines
dist#1, but not dist#2, may be correlated. RiskCompound itself may not be
correlated.
deductible and limit are optional arguments.
If (dist#2 sample-deductible) exceeds limit, the sample for dist#2 is set equal
to limit.
dist#1, dist#2, and RiskCompound itself may include property functions;
except RiskCorrmat as noted above.
Input distribution functions dist#1 or dist#2, along with any distribution
functions in cells referenced in the RiskCompound function, are not
displayed in sensitivity analysis results for outputs affected by the
RiskCompound function. The RiskCompound function itself, however,
includes sensitivity analysis results. Those results include the effects of
dist#1, dist#2, and any distribution functions in cells referenced in a
RiskCompound function.
dist#1 argument is an integer value. If the distribution function or formula
entered for dist#1 returns a non-integer value, it is truncated. This is the
same behavior as Excel functions with arguments that are integer values
(such as INDEX). If you wish, use an Excel ROUND function to round dist#1
as desired.
dist#2 argument can contain only be a single @RISK distribution function, a
constant value or a cell reference. It cannot be an expression or formula. If
you wish to use a formula to calculate a severity value, enter that formula in
a separate cell and make a reference to that cell (as discussed below).
dist#2 may be a reference to a cellRef that contains a distribution function or
a formula. If a formula is entered, this formula will be recalculated each time
a severity value is needed. For example, the severity formula for cell A10
and compound function in A11 could be entered as follows:
A10: =RiskLognorm(10000,1000)/(1.1^RiskWeibull(2,1))
A11:= RiskCompound(RiskPoisson(5),A10)
@RISK Functions
569
In this case, the sample for the severity distribution would be generated by
evaluating the formula in A10. Each iteration this formula would be
evaluated the number of times specified by the sample drawn from the
frequency distribution. Note: the formula entered needs to be <256
characters; if more complex calculations are needed, a user defined function
(UDF) may be entered as the formula to be evaluated. In addition, all
@RISK distributions to be sampled in the severity calculation need to be
entered in the cells formula (for example, in the formula for cell A10 above)
and not referenced in other cells.
It is important to note that a single distribution of simulation results is not
available for the severity distribution or severity calculation after a run. No
entry is made for the severity distribution in the Results Summary window
and a Browse window graph cannot be displayed for the severity distribution.
This is because the severity distribution can be sampled any number of
times during a single iteration, vs. one time for all other input distributions.
570
RiskCumul
Description
RiskCumul(minimum,maximum,{X1,X2,..,Xn},{p1,p2,..,pn}) specifies a
cumulative distribution with n points. The range of the cumulative curve is set
by the minimum and maximum arguments. Each point on the cumulative
curve has a value X and a probability p. Points on the cumulative curve are
specified with increasing value and increasing probability. Any number of
points may be specified for the curve.
Examples
Guidelines
@RISK Functions
571
Parameters
min
continuous parameter
min < max
max
continuous parameter
Domain
min x max
Density and
Cumulative
Distribution
Functions
p
pi
f ( x ) = i +1
x i +1 x i
continuous
x xi
F( x ) = p i + (p i +1 p i )
x i +1 x i
for xi x xi+1
572
Mean
No Closed Form
Variance
No Closed Form
Skewness
No Closed Form
Kurtosis
No Closed Form
Mode
No Closed Form
Examples
CDF - Cumul(0,5,{1,2,3,4},{.2,.3,.7,.8})
1.0
0.8
0.6
0.4
0.2
-1
0.0
PDF - Cumul(0,5,{1,2,3,4},{.2,.3,.7,.8})
0.45
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
@RISK Functions
-1
0.00
573
RiskCumulD
Description
RiskCumulD(minimum,maximum,{X1,X2,..,Xn},{p1,p2,..,pn}) specifies a
cumulative distribution with n points. The range of the cumulative curve is set
by the minimum and maximum arguments. Each point on the cumulative
curve has a value X and a probability p. Points on the cumulative curve are
specified with increasing value and decreasing probability. Probabilities
entered are cumulative descending probabilities, or the probability of a value
greater than the entered X value. Any number of points may be specified for
the curve.
Examples
Guidelines
Parameters
min
continuous parameter
min < max
max
continuous parameter
574
Domain
min x max
Density and
Cumulative
Distribution
Functions
p p i +1
f (x) = i
x i +1 x i
continuous
x xi
F( x ) = 1 p i + (p i p i +1 )
x i +1 x i
for xi x xi+1
No Closed Form
Variance
No Closed Form
Skewness
No Closed Form
Kurtosis
No Closed Form
Mode
No Closed Form
Examples
CDF - CumulD(0,5,{1,2,3,4},{.8,.7,.3,.2})
1.0
0.8
0.6
0.4
0.2
@RISK Functions
-1
0.0
575
PDF - CumulD(0,5,{1,2,3,4},{.8,.7,.3,.2})
0.45
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
576
-1
0.00
RiskDiscrete
Description
Examples
Guidelines
Weight values p must be greater than, or equal to, zero and the sum of all
weights must be greater than zero.
Parameters
Domain
@RISK Functions
x {x}
discrete
577
Mass and
Cumulative
Distribution
Functions
f (x) = p i
for
x = xi
f (x) = 0
for
x {x}
F( x ) = 0
for x < x1
F( x ) =
pi
i =1
F( x ) = 1
for x xN
x i pi
i =1
Variance
( x i ) 2 p i V
i =1
Skewness
1
V
32
Kurtosis
1
2
( x i ) 3 p i
i =1
( x i ) 4 p i
V i =1
Mode
578
Examples
CDF - Discrete({1,2,3,4},{2,1,2,1})
1.0
0.8
0.6
0.4
4.5
4.0
3.5
3.0
2.5
2.0
1.5
0.5
0.0
1.0
0.2
PMF - Discrete({1,2,3,4},{2,1,2,1})
0.35
0.30
0.25
0.20
0.15
0.10
@RISK Functions
4.5
4.0
3.5
3.0
2.5
2.0
1.5
0.5
0.00
1.0
0.05
579
RiskDoubleTriang
Description
Examples
Guidelines
None.
Parameters
min
m.likely
max
p
min x max
continuous
f (x) =
2p(x min )
(m.likely min) 2
min x m.likely
f ( x) =
2(1 p )(max x )
(max m.likely ) 2
m.likely x max
p(x min )
F( x ) =
(m.likely min) 2
2
580
min x m.likely
(1 p)(max x ) 2
F( x ) = 1
(max m.likely) 2
Mean
Variance
Complicated
Skewness
Complicated
Kurtosis
Complicated
Mode
m.likely x max
m.likely
Examples
PDF - DoubleTriang(0,.5,1,.4)
2.5
2.0
1.5
1.0
0.5
@RISK Functions
1.2
1.0
0.8
0.6
0.4
0.2
0.0
-0.2
0.0
581
CDF - DoubleTriang(0,.5,1,.4)
1.0
0.8
0.6
0.4
0.2
582
1.2
1.0
0.8
0.6
0.4
0.2
0.0
-0.2
0.0
RiskDUniform
Description
Examples
Guidelines
None.
Parameters
Domain
Mass and
Cumulative
Distribution
Functions
x {x}
f (x) =
discrete
1
N
f (x) = 0
F( x ) = 0
F( x ) =
i
N
F( x ) = 1
for
x {x}
for
x {x}
for x < x1
for x xN
1
N
@RISK Functions
xi
i =1
583
Variance
1
N
( x i ) 2 V
i =1
Skewness
1
NV
32
Kurtosis
( x i ) 3
i =1
1
2
( x i ) 4
NV i =1
Mode
Examples
CDF - DUniform({1,5,8,11,12})
1.0
0.8
0.6
0.4
584
14
12
10
0.0
0.2
PMF - DUniform({1,5,8,11,12})
0.25
0.20
0.15
0.10
@RISK Functions
14
12
10
0.00
0.05
585
RiskErf
Description
Examples
Guidelines
Parameters
Domain
Density and
Cumulative
Distribution
Functions
h
- < x < +
f (x) =
h>0
continuous
h (hx )2
e
F( x ) 2hx =
1 + erf (hx )
2
where is called the Laplace-Gauss Integral and erf is the Error Function.
Mean
Variance
1
2h 2
586
Skewness
Kurtosis
Mode
Examples
CDF - Erf(1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
1.0
1.5
2.0
1.0
1.5
2.0
0.5
0.0
-0.5
-1.0
-2.0
0.0
-1.5
0.1
PDF - Erf(1)
0.6
0.5
0.4
0.3
0.2
@RISK Functions
0.5
0.0
-0.5
-1.0
-2.0
0.0
-1.5
0.1
587
RiskErlang
Description
Examples
Guidelines
Parameters
Domain
Density and
Cumulative
Distribution
Functions
0 x < +
x
1
f (x ) =
(m 1)!
>0
continuous
m 1
e x
x (m )
F( x ) =
= 1 ex
(m )
m 1
i=0
(x )i
i!
Variance
Skewness
m
m 2
2
m
Kurtosis
Mode
588
3+
6
m
(m 1)
Reference: Distribution Functions
Examples
CDF - Erlang(2,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
5
-1
0.0
PDF - Erlang(2,1)
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
@RISK Functions
-1
0.00
589
RiskExpon
Description
Examples
Guidelines
Parameters
Domain
0 x < +
Density and
Cumulative
Distribution
Functions
f (x) =
>0
continuous
F( x ) = 1 e x
590
Mean
Variance
Skewness
Kurtosis
Mode
Examples
CDF - Expon(1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
3.5
4.0
4.5
5.0
3.5
4.0
4.5
5.0
3.0
2.5
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
PDF - Expon(1)
1.2
1.0
0.8
0.6
0.4
@RISK Functions
3.0
2.5
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.2
591
RiskExponAlt, RiskExponAltD
Description
Examples
Guidelines
RiskExtValue
Description
Examples
Guidelines
Parameters
alpha
beta
Domain
Density and
Cumulative
Distribution
Functions
- < x < +
f (x) =
continuous
1
1
b e z + exp( z )
F( x ) =
e
beta > 0
exp( z )
where
(x a )
b
592
a + b(1) a + .577b
Reference: Distribution Functions
2b2
6
Skewness
12 6
3
Kurtosis
5.4
Mode
(3) 1.139547
Examples
PDF - ExtValue(0,1)
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
@RISK Functions
-1
-2
0.00
593
CDF - ExtValue(0,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
5
-1
-2
0.0
RiskExtValueAlt, RiskExtValueAltD
594
Description
Examples
Guidelines
RiskExtValueMin
Description
Examples
Guidelines
Parameters
alpha
beta
Domain
Density and
Cumulative
Distribution
Functions
- < x < +
f ( x) =
beta > 0
continuous
1 z exp( z )
e
b
F( x ) = 1 exp(e z )
where
(x a )
b
a b(1) a .577b
Skewness
2b2
6
12 6
3
Kurtosis
5.4
Mode
@RISK Functions
( 3) 1.139547
595
596
-1
-1
-2
-2
-3
-3
-4
-4
-5
-5
Examples
RiskExtValueMinAlt, RiskExtValueMinAltD
Description
Examples
Guidelines
@RISK Functions
597
RiskF
Description
Examples
Guidelines
none
Parameters
Domain
Density and
Cumulative
Distribution
Functions
x0
continuous
f (x) =
1 / 2
1 2
2
B( 1 , 2 ) 1 + 1
2 2 2
F( x ) = I
2
1+
1x + 2
1 + 2
2
1 2
,
2 2
Variance
2
2 2
2 22 (1 + 2 2)
1 ( 2 2) ( 2 4)
2
598
for
2 > 2
for
2 > 4
Skewness
Kurtosis
Mode
(21 + 2 2)
( 2 6)
8( 2 4 )
1 (1 + 2 2)
for
2 > 6
( 2 )2 ( 2 4 ) + 1 ( 1 + 2 2)(5 2 22)
3 + 12 2
1 ( 2 6 )( 2 8)( 1 + 2 2 )
2 (1 2)
1 ( 2 + 2)
0
Examples
for
1 > 2
for
1 2
for
2 > 8
PDF - F(4,3)
0.7
0.6
0.5
0.4
0.3
0.2
0.1
@RISK Functions
-1
0.0
599
CDF - F(4,3)
1.0
0.8
0.6
0.4
0.2
600
-1
0.0
RiskGamma
Description
Examples
Guidelines
Parameters
>0
>0
Domain
Density and
Cumulative
Distribution
Functions
0 < x < +
1 x
f (x) =
( )
F( x ) =
continuous
e x
x ( )
( )
Variance
Skewness
2
2
Kurtosis
Mode
@RISK Functions
3+
( 1)
if 1
if < 1
601
Examples
CDF - Gamma(4,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
10
12
10
12
-2
0.0
0.1
PDF - Gamma(4,1)
0.25
0.20
0.15
0.10
602
-2
0.00
0.05
RiskGammaAlt, RiskGammaAltD
Description
Examples
Guidelines
@RISK Functions
603
RiskGeneral
Description
RiskGeneral(minimum,maximum,{X1,X2,...,Xn},{p1,p2,...,pn}) generates a
generalized probability distribution based on a density curve created using
the specified (X,p) pairs. Each pair has a value X and a probability weight p
which specifies the relative height of the probability curve at that X value.
The weights p are normalized by @RISK in determining the actual
probabilities used in sampling.
Examples
Guidelines
Probability weights p must be greater than, or equal to, zero. The sum of all
weights must be greater than zero.
X values must be entered in increasing order and must fall within the
minimum-maximum range of the distribution.
minimum must be less than maximum.
Parameters
min
continuous parameter
min < max
max
continuous parameter
Domain
604
min x max
continuous
Density and
Cumulative
Distribution
Functions
x xi
f (x) = p i +
(p i +1 p i )
x i +1 x i
for xi x xi+1
(p p i )(x x i )
F( x ) = F( x i ) + (x x i ) p i + i +1
2(x i +1 x i )
for xi x xi+1
With the assumptions:
The arrays are ordered from left to right
The {p} array has been normalized to give the general distribution unit area.
The i index runs from 0 to N+1, with two extra elements :
x0 min, p0 0 and xN+1 max, pN+1 0.
Mean
No Closed Form
Variance
No Closed Form
Skewness
No Closed Form
Kurtosis
No Closed Form
Mode
No Closed Form
@RISK Functions
605
Examples
CDF - General(0,5,{1,2,3,4},{2,1,2,1})
1.0
0.8
0.6
0.4
0.2
-1
0.0
PDF - General(0,5,{1,2,3,4},{2,1,2,1})
0.35
0.30
0.25
0.20
0.15
0.10
0.05
606
-1
0.00
RiskGeomet
Description
Examples
Guidelines
Probability p must be greater than zero and less than, or equal to, one.
Parameters
Domain
0 x < +
discrete integers
Mass and
Cumulative
Distribution
Functions
f ( x ) = p(1 p )x
Mean
1
1
p
Variance
0< p 1
F( x ) = 1 (1 p) x +1
1 p
p2
Skewness
(2 p )
1 p
Not Defined
@RISK Functions
for p < 1
for p = 1
607
Kurtosis
9+
p2
1 p
for p < 1
Not Defined
Mode
for p = 1
Examples
CDF - Geomet(.5)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
608
-1
0.0
PMF - Geomet(.5)
0.6
0.5
0.4
0.3
0.2
0.1
@RISK Functions
-1
0.0
609
RiskHistogrm
Description
Examples
Guidelines
Weight values p must be greater than, or equal to, zero, and the sum of all
weights must be greater than zero.
Parameters
min
continuous parameter
min < max *
max
continuous parameter
610
min x max
continuous
Density and
Cumulative
Distribution
Functions
f (x) = pi
x xi
F( x ) = F( x i ) + p i
x i +1 x i
for xi x xi+1
max min
x i min + i
where the {p} array has been normalized to give the histogram unit area.
Mean
No Closed Form
Variance
No Closed Form
Skewness
No Closed Form
Kurtosis
No Closed Form
Mode
@RISK Functions
611
Examples
CDF - Histogrm(0,5,{6,5,3,4,5})
1.0
0.8
0.6
0.4
0.2
-1
0.0
PDF - Histogrm(0,5,{6,5,3,4,5})
0.30
0.25
0.20
0.15
0.10
0.05
612
-1
0.00
RiskHypergeo
Description
Examples
Guidelines
Parameters
integer
0nM
integer
0DM
M
Domain
Mass and
Cumulative
Distribution
Functions
Mean
integer
M0
max(0,n+D-M) x min(n,D)
D M D
x n x
f (x) =
M
n
nD
M
0
@RISK Functions
discrete integers
x
F( x ) =
i =1
D M D
x n x
M
n
for M > 0
for M = 0
613
Variance
nD (M D )(M n )
(M 1)
M2
0
Skewness
for M>1
for M = 1
(M 2D )(M 2n )
M2
M 1
nD(M D )(M n )
for M>2, M>D>0, M>n>0
Not Defined
Kurtosis
otherwise
M (M + 1) 6n (M n ) 3n (M n )(M + 6 )
M 2 (M 1)
+
6
n (M 2)(M 3)(M n )
D(M D )
M2
Mode
(bimodal)
xm and xm-1
if xm is integral
(unimodal)
otherwise
where
614
otherwise
xm
(n + 1)(D + 1)
M+2
Examples
CDF - HyperGeo(6,5,10)
1.0
0.8
0.6
0.4
0.2
0.0
PMF - HyperGeo(6,5,10)
0.50
0.45
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
@RISK Functions
0.00
615
RiskIntUniform
Description
Examples
Guidelines
Parameters
min
max
Domain
min x max
Mass and
Cumulative
Distribution
Functions
Mean
Variance
1
max min + 1
x min + 1
F( x ) =
max min + 1
f (x) =
min+ max
2
( + 2 )
12
where (max-min)
Skewness
0
Kurtosis
Mode
616
2
9 n 7 / 3
2
5 n 1
where n(max-min+1)
Examples
CDF - IntUniform(0,8)
1.0
0.8
0.6
0.4
0.2
-1
0.0
PMF - IntUniform(0,8)
0.12
0.10
0.08
0.06
0.04
0.02
@RISK Functions
-1
0.00
617
RiskInvgauss
Description
Examples
Guidelines
Parameters
continuous parameter
>0
continuous parameter
>0
Domain
Density and
Cumulative
Distribution
Functions
x>0
f (x) =
continuous
2 x 3
(x ) 2
2 2 x
e
x
+ 1
F( x ) = 1 + e 2
x
x
Variance
Skewness
618
Kurtosis
Mode
3 + 15
9 2 3
1+
2
2
Examples
PDF - InvGauss(1,2)
1.2
1.0
0.8
0.6
0.4
3.0
3.5
4.0
3.0
3.5
4.0
2.5
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.2
CDF - InvGauss(1,2)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
@RISK Functions
2.5
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
619
RiskInvgaussAlt, RiskInvgaussAltD
620
Description
Examples
Guidelines
RiskJohnsonMoments
Description
RiskJohnsonMoments(mean,standardDeviation,skewness,kurtosis)
chooses one of four distributions functions (all members of the so-called
Johnson system) that matches the specified mean, standard deviation,
skewness, and kurtosis. This resulting distribution is either a JohnsonSU,
JohnsonSB, lognormal, or normal distribution.
Examples
Guidelines
Parameters
s
k
>0
k>1
k s2 1
Domain
- < x < +
Density and
Cumulative
Distribution
Functions
Mean
Variance
Skewness
Kurtosis
Mode
No Closed Form
@RISK Functions
continuous
621
Examples
622
RiskJohnsonSB
Description
Examples
Guidelines
Parameters
Domain
Density and
Cumulative
Distribution
Functions
f (x) =
alpha2 > 0
b>a
continuous
2 (b a )
2 ( x a )(b x )
1
x a
1 + 2 ln
b x
e 2
x a
F( x ) = 1 + 2 ln
b x
Variance
Skewness
Kurtosis
Mode
No Closed Form.
@RISK Functions
623
Examples
624
RiskJohnsonSU
Description
Examples
Guidelines
Parameters
Domain
- < x < +
Definitions
1 2
exp
2
Density and
Cumulative
Distribution
Functions
f (x) =
alpha2 > 0
>0
continuous
e
2
2 (1 + z )
1
2
2
1
1 + 2 sinh 1 (z )
2
F( x ) = 1 + 2 sinh 1 (z )
Where
(x )
@RISK Functions
sinh (r )
2
( 1)( cosh (2r ) + 1)
2
625
Skewness
1
( 1)2 [( + 2)sinh (3r ) + 3 sinh (r )]
4
3
1
2
2 ( 1)( cosh (2r )+1)
Kurtosis
[ (
1
( 1)2 2 4 + 23 + 3 2 3 cosh (4r ) + 4 2 ( + 2) cosh (2r ) + 3(2 + 1)
8
1
Mode
No Closed Form.
Examples
626
@RISK Functions
627
RiskLaplace
Description
Examples
Guidelines
Parameters
>0*
- < x < +
f (x ) =
continuous
1
2
1
F( x ) e
2
1
F( x ) 1 e
2
Mean
Variance
628
x<
Skewness
Kurtosis
Mode
Examples
PDF - Laplace(0,1)
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
-1
-2
-3
0.0
CDF - Laplace(0,1)
1.0
0.8
0.6
0.4
0.2
-1
-2
-3
0.0
RiskLaplaceAlt, RiskLaplaceAltD
Description
Examples
Guidelines
@RISK Functions
629
RiskLevy
Description
RiskLevy (a,c) specifies a levy distribution with the entered location a and
continuous scale parameter c.
Examples
Guidelines
Parameters
Domain
Density and
Cumulative
Distribution
Functions
a x < +
f (x) =
c>0
continuous
2 ( x )
c e
2 ( x ) 3 / 2
F( x ) = 1 erf
2
(
x
630
Skewness
Kurtosis
Mode
c
3
Examples
PDF - Levy(0,1)
0.50
0.45
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
-1
0.00
PDF - Levy(0,1)
1.0
0.8
0.6
0.4
0.2
@RISK Functions
-1
0.0
631
RiskLevyAlt, RiskLevyAltD
Description
Examples
Guidelines
632
RiskLogistic
Description
Examples
Guidelines
Parameters
Domain
Density and
Cumulative
Distribution
Functions
- < x < +
>0
continuous
1 x
sec h 2
2
f (x) =
4
1 x
1 + tanh
2
F( x ) =
2
where sech is the Hyperbolic Secant Function and tanh is the Hyperbolic
Tangent Function.
Mean
Variance
2 2
3
Skewness
Kurtosis
4.2
Mode
@RISK Functions
633
Examples
PDF - Logistic(0,1)
0.30
0.25
0.20
0.15
0.10
0.05
-1
-2
-3
-4
-5
0.00
CDF - Logistic(0,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
634
-1
-2
-3
-4
-5
0.0
RiskLogisticAlt, RiskLogisticAltD
Description
Examples
Guidelines
@RISK Functions
635
RiskLogLogistic
Description
Examples
Guidelines
Parameters
>0
>0
Definitions
Domain
x < +
Density and
Cumulative
Distribution
Functions
f (x) =
F( x ) =
Mean
Variance
636
continuous
t 1
1+ t
)2
1
1
1+
t
t
with
csc() +
2 2 csc(2) csc 2 ()
for > 1
for > 2
Skewness
2 csc(2) csc 2 ()
Kurtosis
for > 3
2 csc(2) csc 2 ()
2
for > 4
Mode
1
+
+ 1
Examples
for > 1
for 1
PDF - LogLogistic(0,1,5)
1.4
1.2
1.0
0.8
0.6
0.4
@RISK Functions
3.0
2.5
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.2
637
CDF - LogLogistic(0,1,5)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
3.0
2.5
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
RiskLogLogisticAlt, RiskLogLogisticAltD
638
Description
Examples
Guidelines
RiskLognorm
Description
Examples
Guidelines
Parameters
continuous parameter
>0
continuous parameter
>0
Domain
@RISK Functions
0 x < +
continuous
639
Density and
Cumulative
Distribution
Functions
f (x) =
1
x 2
1 ln x
e 2
ln x
F( x ) =
with
ln
2 + 2
and
2
ln 1 +
2
3
+ 3
Kurtosis
+ 2 + 3 3
Mode
with
1 +
( 2 + 2 )3 2
640
Examples
PDF - Lognorm(1,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
5
-1
0.0
CDF - Lognorm(1,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
@RISK Functions
-1
0.0
641
RiskLognormAlt, RiskLognormAltD
642
Description
Examples
Guidelines
RiskLognorm2
Description
Examples
Guidelines
Parameters
continuous parameter
continuous parameter
0 x < +
continuous
Domain
Density and
Cumulative
Distribution
Functions
f (x) =
1
x 2
1 ln x
e 2
>0
ln x
F( x ) =
where (z) is the cumulative distribution function of a Normal(0,1), also called
the Laplace-Gauss Integral
Mean
e
Variance
Skewness
@RISK Functions
2
2
e 2 ( 1)
with
( + 2)
with
643
Kurtosis
Mode
4 + 23 + 3 2 3
with
Examples
CDF - Lognorm2(0,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
10
12
10
12
-2
0.0
0.1
PDF - Lognorm2(0,1)
0.7
0.6
0.5
0.4
0.3
0.2
644
-2
0.0
0.1
RiskMakeInput
Description
Examples
Guidelines
@RISK Functions
645
RiskNegbin
Description
Examples
Guidelines
Parameters
Domain
Mass and
Cumulative
Distribution
Functions
0<p1
0 x < +
discrete integers
s + x 1 s
p (1 p )x
f ( x ) =
x
x
F( x ) = p
s + i 1
(1 p) i
i
i =0
Variance
s (1 p )
p
s (1 p )
p2
646
Skewness
2p
s (1 p )
Kurtosis
Mode
6
p2
3+ +
s s(1 p )
(bimodal)
z and z + 1
integer z > 0
(unimodal)
z<0
(unimodal)
otherwise
z
where
Examples
s (1 p ) 1
p
PDF - NegBin(3,.6)
0.30
0.25
0.20
0.15
0.10
0.05
@RISK Functions
-1
0.00
647
CDF - NegBin(3,.6)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
648
-1
0.0
RiskNormal
Description
Examples
Guidelines
Parameters
>0*
@RISK Functions
- < x < +
continuous
649
Density and
Cumulative
Distribution
Functions
f (x) =
1
2
1 x
e 2
x 1 x
F( x )
+ 1
= erf
2 2
where is called the Laplace-Gauss Integral and erf is the Error Function.
Mean
Variance
Skewness
Kurtosis
Mode
Examples
PDF - Normal(0,1)
0.45
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
650
-1
-2
-3
0.00
CDF - Normal(0,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
@RISK Functions
-1
-2
-3
0.0
651
RiskNormalAlt, RiskNormalAltD
652
Description
Examples
Guidelines
RiskPareto
Description
Examples
Guidelines
Parameters
>0
alpha
alpha > 0
Domain
Density and
Cumulative
Distribution
Functions
alpha x < +
f (x) =
continuous
a
x +1
a
F( x ) = 1
x
where a = alpha
Mean
a
1
Variance
for > 1
a 2
( 1)2 ( 2)
Skewness
2
Kurtosis
@RISK Functions
for > 2
+1 2
3
3( 2) 3 2 + + 2
( 3)( 4)
for > 3
)
for > 4
653
Mode
alpha
Examples
PDF - Pareto(2,1)
2.0
1.8
1.6
1.4
1.2
1.0
0.8
0.6
0.4
10
11
10
11
0.0
0.2
CDF - Pareto(2,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
654
0.0
0.1
RiskParetoAlt, RiskParetoAltD
Description
Examples
Guidelines
@RISK Functions
655
RiskPareto2
Description
Examples
Guidelines
Parameters
b>0
q>0
Domain
Density and
Cumulative
Distribution
Functions
0 x < +
f (x) =
continuous
qb q
(x + b )q +1
F( x ) = 1
Mean
Variance
Skewness
Kurtosis
656
bq
(x + b )q
b
q 1
for q > 1
b 2q
(q 1)2 (q 2)
for q > 2
q + 1 q 2
2
q
q 3
for q > 3
3(q 2) 3q 2 + q + 2
q(q 3)(q 4)
)
for q > 4
Mode
Examples
PDF - Pareto2(3,3)
1.2
1.0
0.8
0.6
0.4
10
12
10
12
-2
0.0
0.2
CDF - Pareto2(3,3)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
@RISK Functions
-2
0.0
0.1
657
RiskPareto2Alt, RiskPareto2AltD
658
Description
Examples
Guidelines
RiskPearson5
Description
Examples
Guidelines
Parameters
>0
>0
Domain
0 x < +
Density and
Cumulative
Distribution
Functions
f (x) =
continuous
1
e x
( ) (x ) +1
Variance
for > 1
( 1)2 ( 2)
Skewness
Kurtosis
Mode
@RISK Functions
4 2
3
3( + 5)( 2)
( 3)( 4)
for > 2
for > 3
for > 4
+1
659
Examples
PDF - Pearson5(3,1)
2.5
2.0
1.5
1.0
2.0
2.5
2.0
2.5
1.5
1.0
0.5
-0.5
0.0
0.0
0.5
CDF - Pearson5(3,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
660
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
RiskPearson5Alt, RiskPearson5AltD
Description
Examples
Guidelines
@RISK Functions
661
RiskPearson6
Description
Examples
Guidelines
Parameters
1 > 0
2 > 0
>0
Domain
0 x < +
Density and
Cumulative
Distribution
Functions
f (x) =
continuous
(x )11
1
B(1 , 2 ) x 1 + 2
1 +
1
2 1
Variance
1 (1 + 2 1)
( 2 1)2 ( 2 2)
662
for 2 > 1
for 2 > 2
Skewness
Kurtosis
Mode
2 1 + 2 1
2 2
1 (1 + 2 1) 2 3
for 2 > 3
3 ( 2 2) 2 ( 2 1)
+ ( 2 + 5)
( 2 3)( 2 4) 1 (1 + 2 1)
for 2 > 4
(1 1)
2 +1
for 1 > 1
otherwise
Examples
PDF - Pearson6(3,3,1)
0.7
0.6
0.5
0.4
0.3
0.2
0.1
@RISK Functions
-1
0.0
663
CDF - Pearson6(3,3,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
9
-1
0.0
RiskPert
664
Description
Examples
Guidelines
Definitions
Parameters
Domain
@RISK Functions
min
m.likely
continuous parameter
min < m.likely < max
max
min x max
continuous
665
Density and
Cumulative
Distribution
Functions
f (x) =
(x min )1 1 (max x ) 2 1
(1 , 2 )(max min )1 + 2 1
F( x ) =
B z (1 , 2 )
x min
I z (1 , 2 )
z
B(1 , 2 )
max min
with
Variance
( min )(max )
7
Skewness
min + max 2
4
Kurtosis
3
Mode
( min )(max )
(1 + 2 + 1)(2(1 + 2 )2 + 1 2 (1 + 2 6))
1 2 (1 + 2 + 2)(1 + 2 + 3)
m.likely
Examples
PDF - Pert(0,1,3)
0.7
0.6
0.5
0.4
0.3
0.2
0.1
666
3.5
3.0
2.5
2.0
1.5
1.0
0.5
0.0
-0.5
0.0
CDF - Pert(0,1,3)
1.0
0.8
0.6
0.4
0.2
3.5
3.0
2.5
2.0
1.5
1.0
0.5
0.0
-0.5
0.0
RiskPertAlt, RiskPertAltD
Description
Examples
Guidelines
@RISK Functions
667
RiskPoisson
Description
Examples
Guidelines
Parameters
continuous
>0*
0 x < +
f (x) =
discrete integers
x e
x!
F( x ) = e
n =0
Mean
Variance
Skewness
n
n!
Kurtosis
668
3+
Mode
(bimodal)
and -1 (bimodal)
(unimodal)
Examples
if is an integer
CDF - Poisson(3)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
7
-1
0.0
PMF - Poisson(3)
0.25
0.20
0.15
0.10
0.05
@RISK Functions
-1
0.00
669
RiskRayleigh
Description
Examples
Guidelines
Parameters
beta
Domain
0 x < +
continuous
Density and
Cumulative
Distribution
Functions
1 x
x 2 b
f (x) =
e
2
beta > 0
1 x
F( x ) = 1 e 2 b
Where b = beta
Mean
b
Variance
Skewness
b2 2
2
2( 3)
(4 )3 2
Kurtosis
32 3 2
(4 )2
Mode
670
0.6311
3.2451
Examples
PDF - Rayleigh(1)
0.7
0.6
0.5
0.4
0.3
0.2
2.5
3.0
3.5
2.5
3.0
3.5
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
CDF - Rayleigh(1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
@RISK Functions
2.0
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
671
RiskRayleighAlt, RiskRayleighAltD
672
Description
Examples
Guidelines
RiskResample
Description
Examples
Guidelines
@RISK Functions
673
RiskSimtable
674
Description
Examples
Guidelines
RiskSplice
Description
Examples
Guidelines
dist#1 and dist#2 may not be correlated. The RiskSplice itself may be
correlated.
dist#1, dist#2, and RiskSplice itself may include property functions, except
RiskCorrmat as noted above.
dist#1 and dist#2 may be a reference to a cell that contains a distribution
function.
The two pieces of the distribution will be re-weighted since the total area
under the (spliced) curve still has to equal 1. Thus the probability density of
any given x value in the resulting spliced distribution will probably be
different from what it was in the original distribution.
@RISK Functions
675
RiskStudent
Description
Examples
Guidelines
Parameters
Domain
Density and
Cumulative
Distribution
Functions
integer > 0
- < x < +
f (x) =
F( x ) =
continuous
+ 1
+1
1
2
2
+ x
2
1
1
1 + I s ,
2
2 2
s
with
x2
+ x2
for > 1*
*even though the mean is not defined for = 1, the distribution is still
symmetrical about 0.
Variance
for > 2
Skewness
for > 3*
*even though the skewness is not defined for 3, the distribution is still
symmetric about 0.
676
Kurtosis
2
3
Mode
for > 4
Examples
CDF - Student(3)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
3
-1
-2
-3
-4
-5
0.0
PDF - Student(3)
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
@RISK Functions
-1
-2
-3
-4
-5
0.00
677
RiskTriang
Description
Examples
Guidelines
Parameters
min
m.likely
max
678
min x max
continuous
Density and
Cumulative
Distribution
Functions
f (x ) =
f (x ) =
2(x min )
(m.likely min)(max min)
2(max x )
(max m.likely)(max min)
min x m.likely
m.likely x max
(
x min )2
F( x ) =
(m.likely min )(max min )
min x m.likely
(
max x )2
F( x ) = 1
(max m.likely)(max min )
m.likely x max
Mean
Variance
Skewness
Kurtosis
2.4
Mode
m.likely
@RISK Functions
2 2 f f2 9
32
5
f2 +3
where
2( m.likely min)
1
max min
679
Examples
PDF - Triang(0,3,5)
0.45
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
-1
0.00
CDF - Triang(0,3,5)
1.0
0.8
0.6
0.4
0.2
680
-1
0.0
RiskTriangAlt, RiskTriangAltD
Description
Examples
Guidelines
RiskTrigen
Description
Examples
Guidelines
bottom value must be less than, or equal to, most likely value.
most likely value must be less than, or equal to, top value.
bottom perc. must be less than top perc.
@RISK Functions
681
RiskUniform
Description
Examples
Guidelines
Parameters
min
max
continuous boundary parameter
*min = max is supported for modeling convenience, but gives a degenerate
distribution.
Domain
Density and
Cumulative
Distribution
Functions
min x max
f (x) =
continuous
1
max min
x min
max min
max+ min
2
F( x ) =
Mean
Variance
(max min )2
12
Skewness
682
0
Reference: Distribution Functions
Kurtosis
1.8
Mode
Examples
PDF - Uniform(0,1)
1.2
1.0
0.8
0.6
0.4
1.0
1.2
1.0
1.2
0.8
0.6
0.4
0.2
-0.2
0.0
0.0
0.2
CDF - Uniform(0,1)
1.0
0.8
0.6
0.4
@RISK Functions
0.8
0.6
0.4
0.2
-0.2
0.0
0.0
0.2
683
RiskUniformAlt, RiskUniformAltD
684
Description
Examples
Guidelines
RiskVary
@RISK Functions
Description
Examples
Guidelines
685
RiskWeibull
Description
Examples
Guidelines
Both shape parameter alpha and scale parameter beta must be greater than
zero.
Parameters
>0
>0
Domain
0 x < +
Density and
Cumulative
Distribution
Functions
f (x) =
continuous
x 1 (x )
e
F( x ) = 1 e (x )
Mean
1 +
where is the Gamma Function.
Variance
686
2
1
2 1 + 2 1 +
Reference: Distribution Functions
3
2
1
1
1 + 31 + 1 + + 2 3 1 +
2
1
2
1 + 1 +
32
4
3
1
2
1
1
1 + 41 + 1 + + 61 + 2 1 + 3 4 1 +
2
1
2
1 + 1 +
@RISK Functions
for >1
for 1
687
Examples
PDF - Weibull(2,1)
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
2.0
2.5
2.0
2.5
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
CDF - Weibull(2,1)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
688
1.5
1.0
0.5
-0.5
0.0
0.0
0.1
RiskWeibullAlt, RiskWeibullAltD
@RISK Functions
Description
Examples
Guidelines
689
690
RiskCategory
@RISK Functions
Description
Examples
Guidelines
691
RiskCollect
Description
692
Examples
Guidelines
RiskConvergence
@RISK Functions
Description
RiskConvergence(tolerance,toleranceType,confidenceLevel,useM
ean,useStdDev,usePercentile,percentile) specifies convergence
monitoring information for a specific output. tolerance is the +/tolerance amount desired, toleranceType specifies the type of
tolerance value entered (1 for +/- actuals, 2 for +/- percentage or
relative), confidenceLevel specifies the confidence level for your
estimate, useMean, useStdDev, usePercentile is set to TRUE to
select the monitoring statistic desired, and percentile enters the
percentile to monitor when usePercentile is set to TRUE.
RiskConvergence returns FALSE if the output has not converged,
and TRUE when it has.
Examples
RiskOutput(,,,RiskConvergence(3%,2,95%,TRUE)) specifies a
+/- 3% tolerance with a 95% confidence level, where the monitored
statistic is the mean
Guidelines
693
RiskCorrmat
Description
694
Guidelines
@RISK Functions
695
696
RiskDepC
Description
@RISK Functions
697
698
Examples
Guidelines
RiskFit
Description
RiskFit(fit name,selected fit result) links a data set, and its fit
results, to the input distribution the RiskFit function is used in. The
fit name in quotes is the name of the fit given when the data was fit
using the Fit Distributions to Data command. The selected fit
result in quotes is a string used to identify the type of fit result to
select. The RiskFit function is used to link an input to the fit results
for a data set, so that when the data is changed the input
distribution selected from the fit can be updated.
The selected fit result can be any of the following entries:
AIC, indicating the best fitting distribution from the AIC test should
be used
BIC, indicating the best fitting distribution from the BIC test should
be used
ChiSq, indicating the best fitting distribution from the Chi-Sq. test
should be used
AD, indicating the best fitting distribution from the AndersonDarling test should be used
KS, indicating the best fitting distribution from the KolmogorovSmirnov test should be used.
RMSErr, indicating the best fitting distribution from the RMS Error
test should be used
A distribution name, such as Normal, indicating that the bestfitting distribution of the entered type should be used.
What Happens When Data Changes When RiskFit is Used
The RiskFit function hot-links a distribution function to a data set
and the fit of that data set. The data used in a fit is in a range in
Excel. When the fitted data changes and a simulation is started,
the following actions take place:
@RISK re-runs the fit using the current settings on the fit tab
where the fit was originally run
The distribution function that includes the RiskFit function that
references the fit is changed to reflect the new fit results. The
changed function replaces the original one in Excel. If, for
example, the distribution function's RiskFit argument specified
Best Chi-sq for selected fit result, the new best-fitting distribution
based on the Chi-Sq test would replace the original one. This new
function would also include the same RiskFit function as the
original one.
@RISK Functions
Examples
Guidelines
None.
699
RiskIndepC
Description
Examples
Guidelines
RiskIsDiscrete
700
Description
Examples
RiskOutput(,,,RiskIsDiscrete(TRUE))+NPV(.1,C1:C10) specifies
that the output distribution of NPV will be a discrete distribution
Guidelines
None.
Reference: Distribution Property Functions
RiskIsDate
Description
Examples
Guidelines
RiskLibrary
@RISK Functions
Description
Examples
RiskNormal(5000,1000,RiskName("Sales Volume /
2010"),RiskLibrary(2,"LV6W59J5"),RiskStatic(0.46)) specifies
that the entered distribution is taken from the @RISK Library with
the position 2 and the ID LV6W59J5. The current definition of this
library distribution is
RiskNormal(10,10, RiskName("Sales Volume / 2010"))
however, this will change when the distribution in the library
changes.
Guidelines
701
RiskLock
Description
Examples
Guidelines
Description
Examples
Guidelines
RiskName
702
RiskSeed
Description
Examples
Guidelines
Description
Examples
Guidelines
None.
RiskShift
@RISK Functions
703
RiskSixSigma
Description
Examples
RiskOutput(A10,,,RiskSixSigma(.88,.95,.915,1.5,6)) specifies an
LSL of .88, a USL of .95, target value of .915, long term shift of
1.5, and a number of standard deviations of 6 for the output
located in Cell A10.
Guidelines
Description
Examples
Guidelines
None.
RiskStatic
704
RiskTruncate
@RISK Functions
Description
Examples
Guidelines
705
RiskTruncateP
706
Description
Examples
Guidelines
RiskUnits
@RISK Functions
Description
Examples
Guidelines
707
708
RiskOutput
Description
@RISK Functions
709
710
Examples
Guidelines
Updating
Statistic
Functions
@RISK Functions
711
712
RiskConvergenceLevel
Description
Examples
Guidelines
RiskCorrel
@RISK Functions
Description
Examples
Guidelines
713
RiskData
Description
Examples
Guidelines
None.
RiskKurtosis
Description
Examples
Guidelines
None.
Description
Examples
RiskMax
714
Guidelines
None.
Description
Examples
Guidelines
None.
Description
Examples
Guidelines
None.
Description
Examples
Guidelines
None.
RiskMean
RiskMin
RiskMode
@RISK Functions
715
Examples
Guidelines
RiskRange
716
Description
Examples
Guidelines
None.
RiskSensitivity
Description
Examples
Guidelines
None.
RiskSkewness
@RISK Functions
Description
Examples
Guidelines
None.
717
RiskStdDev
Description
Examples
Guidelines
None.
Examples
Guidelines
RiskVariance
718
Description
Examples
Guidelines
None.
Reference: Statistics Functions
RiskTheoKurtosis
Description
Examples
Guidelines
None.
RiskTheoMax
Description
Examples
Guidelines
None.
RiskTheoMean
@RISK Functions
Description
Examples
Guidelines
None.
719
RiskTheoMin
Description
Examples
Guidelines
None.
RiskTheoMode
720
Description
Examples
Guidelines
None.
Examples
Guidelines
RiskTheoRange
Description
Examples
Guidelines
None.
RiskTheoSkewness
Description
Examples
Guidelines
None.
@RISK Functions
721
RiskTheoStdDev
Description
Examples
Guidelines
None.
Examples
Guidelines
RiskTheoVariance
722
Description
Examples
Guidelines
None.
RiskTheoXtoY
@RISK Functions
Description
Examples
Guidelines
723
724
Examples
RiskFitDistribution(BatchFit!$B$10:$B$210,1,
{"Normal","Weibull"},AIC") fits the data located in the range
BatchFit!$B$10:$B$210 and returns the best fitting Weibull or
Normal distribution. The best fit is selected using goodness of
fit test AIC.
Guidelines
RiskFitDescription
Description
@RISK Functions
Guidelines
RiskFitParameter
Description
Examples
Guidelines
RiskFitStatistic
726
Description
Examples
Guidelines
Examples
=RiskPert(53.1,59,80,RiskStatic(ProjectFieldVal))
If this function is entered in an Excel cell associated the
duration of a task, the value shown in Excel when a simulation
is not running (the static value) will be the value entered in the
matching Duration field in Microsoft Project.
Guidelines
@RISK Functions
727
RiskProjectAddDelay
728
Description
RiskProjectAddDelay(PrecedingTask,DelayLength,DelayCost
) adds a new task to a project after PrecedingTask completes.
This task has the specified length DelayLength and cost
DelayCost. This function is used to add an additional task to
the project being simulated only in iterations when a risk event
occurs.
RiskProjectAddDelay is only active during a simulation, and
adds a new task only to iterations where the arguments
DelayLength and DelayCost are>0.
Examples
Guidelines
RiskProjectAddCost
Description
Examples
Guidelines
CostToAdd >0
At the start of each iteration any costs added in the prior
iteration by RiskProjectAddCost are removed and the project
is reset.
RiskProject functions are active only during a simulation and
not during single Excel recalculations when the sampling type
is Monte Carlo.
RiskProjectRemoveTask
Description
Examples
Guidelines
@RISK Functions
729
RiskProjectResourceUse
730
Description
RiskProjectResourceUse (Task,Resource,UsageValue)
applies UsageValue to a Resource assigned to aTask. This
function is used to change the amount of units of a material
resource (or amount of work of a work resource) that is
assigned to a task each iteration of a simulation. Costs
calculated in Project will reflect the changed usage each
iteration of a simulation.
Examples
RiskProjectResourceUse (Tasks!B10,
Resources!B7,RiskUniform(10,50)) sets the usage for the
Resource in row 7 of the Resources sheet that is assigned to
the Task located in row 10 of the Tasks worksheet. The usage
value is sampled from the distribution RiskUniform(10,50).
Guidelines
731
732
RiskAR1
RiskAR1 ( , , a1 , Y0 ) generates a first-order autoregressive
Description
, volatility parameter
, autoregressive coefficient a1 , and value Y0 at time 0.
Examples
a1 < 1
Guidelines
Technical Details
Define
Nt
t = Nt
Then
(Yt ) = a1 (Yt 1 ) + t
E (Yt ) =
and
@RISK Functions
733
RiskAR2
RiskAR2 ( , , a1 , a2 , Y0 , Y1 ) generates a second-order autoregressive
Description
a1
and
Examples
stationarity.
Technical
Details
Define
Nt
t = Nt
Then
E (Yt ) =
and
734
RiskMA1
RiskMA1 ( , , b1 , 0 ) generates a first-order moving average
Description
, volatility parameter ,
b1 , and initial error term 0 .
moving
Examples
Define
Nt
t = Nt
Then
Yt = + b1 t 1 + t
E (Yt ) =
and
@RISK Functions
735
RiskMA2
RiskMA2 ( , , b1 , b2 , 0 , 1 ) generates a second-order moving
Description
and
, volatility parameter
b2 , and initial error terms
Examples
Define
Nt
t = Nt
Then
Yt = + b1 t 1 + b2 t 2 + t
E (Yt ) =
and
736
RiskARMA11
Description
volatility parameter
average coefficient
b1 , value Y0
autoregressive coefficient
a1 , moving
0 .
Examples
a1 < 1
Guidelines
Technical
Details
Define
Then
(Yt ) = a1 (Yt 1 ) + b1 t 1 + t
E (Yt ) =
and
@RISK Functions
737
RiskGBM
Description
, volatility parameter ,
Y0
at time 0.
Technical
Details
Define
N t =asamplefromaNormal(0,1)distribution
Then for any
t 0 , T > 0 ,
Yt +T = Yt exp ( 2 / 2)T + N t +T T
Yt = Yt 1 exp ( 2 / 2) + N t
The conditional mean and variance of
Yt +T given Yt ,are
E (Yt +T ) = Yt exp( T )
and
Yt
t, then the term inside the square brackets in the equation for
Yt +T ,
( 2 / 2)T
738
and variance
2T
RiskBMMR
Description
Y0
at time 0.
Technical
Details
Define
1 e 2T
2
1 e 2
Yt = + e (Yt 1 ) + N t
2
The conditional mean and variance of Yt +T given Yt ,are
E (Yt +T ) = + e T (Yt )
Var (Yt +T ) = 2
@RISK Functions
as
1 e 2T
2 / 2
2
T and
as
739
RiskGBMJD
Description
and
, volatility
J .
and
J .
Examples
Technical
Details
Define
Nt
Kt
t 0,
2
Yt = (
)t + K t J + N t 2t + J2 K t
2
Again, this is typically a model for the return of a security. The price
740
RiskBMMRJD
Description
Examples
Technical
Details
@RISK Functions
741
RiskARCH1
RiskARCH1 ( , , b1 , Y0 ) generates a first-order autoregressive
Description
at time 0.
ARCH processes are used when there is reason to believe that the
variance of the process varies through time.
RiskARCH1(50, 10, 0.5, 49) generates an ARCH1 process with
mean 50, volatility parameter 10, error coefficient 0.5, and value 49
at time 0.
Examples
a1 > 0
Technical
Details
Define
Nt
Then
Yt = + t N t
t is modeled as
= + b1 (Yt 1 ) 2
where
2
t
2
t
Yt
and variance
742
and
RiskGARCH11
RiskGARCH11 ( , , b1 , a1 , Y0 , 0 ) generates a Generalized ARCH
Description
This is a generalization of the original ARCH model, where the model for
the conditional variance at time t is a weighted combination of three terms:
the volatility parameter , the previous squared deviation from the mean,
and the previous variance. This process has been more successful than the
ARCH1 process for fitting financial data.
RiskGARCH11(50, 10, 0.25, 0.35, 49, 2) generates a GARCH11 process
with mean 50, volatility parameter 10, error coefficient 0.25, autoregressive
coefficient 0.35, value 49 at time 0, and initial standard deviation 2.
Examples
a1 0, b1 0 , at least one of a1
Technical
Details
Define
Nt
or
b1
positive,
>0
Then
Yt = + t N t
t is modeled as
= + b1 (Yt 1 ) 2 + a1 t21
where
2
t
@RISK Functions
743
RiskEGARCH11
RiskEGARCH11 ( , , , , b1 , a1 , Y0 , 0 ) generates an
Description
, volatility
parameter , parameters and , error coefficient b1 ,
autoregressive parameter a1 , value Y0 at time 0, and initial
standard deviation 0 .
This version of GARCH allows negative values (of the logs) in the
variance equation, and there are now no restrictions on the
parameters
a1
and
b1 .
Examples
Define
Nt
Then
Yt = + t N t
where
is modeled as
with
g ( Nt ) = Nt + ( Nt E ( Nt ) )
Note that
744
E ( N t ) = 2 / .
RiskAPARCH11
RiskAPARCH11 ( , , , , b1 , a1 , Y0 , 0 ) generates an
Description
, volatility
parameter , parameter and , error coefficient b1 ,
autoregressive parameter a1 , value Y0 at time 0, and initial
standard deviation 0 .
Asymmetric Power GARCH process with mean
Examples
Technical
Details
a1 0, b1 0 , at least one of a1
1 < < 1
or
b1
positive,
>0,
Define
Nt
Then
Yt = + t N t
where
is modeled as
t = + b1 Yt 1 (Yt 1 ) + a1 t1
@RISK Functions
745
746
Examples
Guidelines
@RISK Functions
747
RiskTSIntegrate
748
Description
Examples
Guidelines
RiskTSSeasonality
Description
Examples
Guidelines
@RISK Functions
749
RiskTSSync
750
Description
Examples
Guidelines
@RISK Functions
751
RiskCp
Description
Examples
Guidelines
Description
Examples
Guidelines
RiskCpm
752
RiskCpk
@RISK Functions
Description
Examples
Guidelines
753
RiskCpkLower
Description
Examples
Guidelines
RiskCpkUpper
754
Description
Examples
Guidelines
RiskDPM
Description
Examples
RiskDPM(A10) returns the defective parts per million for the output
cell A10. A RiskSixSigma property function needs to be entered in
the RiskOutput function in Cell A10.
RiskDPM(A10, ,RiskSixSigma(100,120,110,1.5,6)) returns the
defective parts per million for the output cell A10, using an LSL of
100 and USL of 120.
Guidelines
Description
Examples
Guidelines
RiskK
@RISK Functions
755
RiskLowerXBound
Description
Examples
Guidelines
Description
Examples
Guidelines
RiskPNC
756
RiskPNCLower
Description
Examples
Guidelines
RiskPNCUpper
@RISK Functions
Description
Examples
Guidelines
757
RiskPPMLower
Description
Examples
Guidelines
RiskPPMUpper
758
Description
Examples
Guidelines
RiskSigmalLevel
@RISK Functions
Description
Examples
Guidelines
759
RiskUpperXBound
Description
Examples
Guidelines
Description
Examples
Guidelines
RiskYV
760
RiskZlower
@RISK Functions
Description
Examples
Guidelines
761
RiskZMin
Description
Examples
Guidelines
RiskZUpper
762
Description
Examples
Guidelines
RiskCorrectCorrmat
@RISK Functions
Description
RiskCorrectCorrmat(correlationMatrixRange,adjustmentWeights
MatrixRange) returns the corrected correlation matrix for the matrix
located in correlationMatrixRange using the adjustment weight
matrix located in adjustmentWeightsMatrixRange. An invalid
matrix specifies inconsistent simultaneous relationships between
three or more inputs and must be corrected prior to simulation.
The returned matrix is a valid correlation matrix, that is, all
diagonal entries are 1, the off-diagonal entries are in the range -1
to 1, inclusive, and the matrix is positive-definite (the smallest
eigenvalue is > 0, and the correlations are consistent). If the
adjustmentWeightsMatrixRange was specified, the correlations
have been optimized so they are as close as possible to the
originally-specified correlations, taking into account the weights .
Examples
Guidelines
763
RiskCurrentIter
Description
Examples
None.
Guidelines
None.
RiskCurrentSim
Description
Examples
None.
Guidelines
None.
RiskSimulationInfo
Description
Examples
Guidelines
RiskStopRun
764
Description
Examples
Guidelines
None.
Reference: Supplemental Functions
RiskResultsGraph
@RISK Functions
Description
Examples
Guidelines
cellRef is any valid Excel cell reference with one or more cells.
Either a cellRef or an output/input name argument needs to be
included in a RiskResultsGraph function. When cellRef is entered,
the results to be graphed depend on the following:
If there is a RiskOutput function in cellref, the simulation results
for this output will be graphed.
If there is no RiskOutput function in cellRef, but there is a
distribution function, RiskResultsGraph will graph the collected
samples for this input.
If there is no RiskOutput, and no distribution function in cellRef, a
RiskOutput function is automatically added and this output is
graphed by RiskResultsGraph.
If there are multiple cells in cellRef, an overlay graph is created for
the simulation results for each cell in cellRef. Each overlay has the
same graphType.
locationCellRange is any valid Excel cell range. The created graph
765
767
768
769
770
Overview
Sample Data
Sample (or observation) data is a set of values drawn randomly from
a large population. Distributions are fit to sample data to estimate the
properties of that population.
Continuous
vs. Discrete
Samples
Data
Requirements
All sample values should fall in the range -1E+37 <= x <=
+1E+37, or else should be dates.
771
Density Data
Density data is a set of (x,y) points that describe the probability
density function of a continuous distribution. Distributions are fit to
density data to give the best representation of the curve points using a
theoretical probability distribution.
Normalization of
Density Data
Data
Requirements
772
Cumulative Data
Cumulative data is a set of (x,p) points that describe a continuous
cumulative distribution function. The p-value associated with a given
x-value is the probability of obtaining a value less than or equal to x.
Distributions are fit to cumulative data to give the best representation
of the curve points using a theoretical probability distribution.
Endpoint
Interpolation
Data
Requirements
773
774
775
Domain Limits
For continuous data sets (sample or curve data) you can specify how
you want @RISK to treat the upper and lower limits of the
distributions. For both limits there are four choices: Fixed Bound,
Bounded but Unknown, Open and Unsure.
Fixed Bound
Bounded But
Unknown
Open
776
If you specify a fixed bound, you are telling @RISK that the limit of
the distribution must be the value you specify. For example, if you
have a data set of the times between arrivals of customers in a queue,
you might want to fit distributions which have a fixed lower bound of
zero, since it is impossible to have a negative time between events.
If you specify an unknown bound, you are telling @RISK that the
limit of the distribution has a finite bound (that is, it does not extend
to plus or minus infinity). Unlike a fixed bound, however, you do not
know what the actual value of the limit is. You want @RISK to choose
the value for you as it performs its fit.
If you specify an open bound, you are telling @RISK that the limit of
the distribution must extend to minus infinity (for a lower bound) or
plus infinity (for an upper bound).
Select Distributions to Fit
Unsure
Fixed Parameters
It is possible to set certain distribution parameters to fixed values,
instead of having the fitting algorithm determine them. For example,
imagine you know you want to fit a normal distribution to a set of
data, but you only want the standard deviation of that distribution to
be determined by the software, while its mean has a particular fixed
value.
It is important to note that the fixed bounds (see Domain Limits
above) are, in a sense, also a type of fixed parameter. In that case,
however, the fixed limits apply universally to all distribution types.
777
778
L=
f (X , )
i
i =1
779
f(x) =
e x /
L( ) =
i =1
1 X i /
1
e
= n exp(
X )
i
i =1
l ( ) = ln L( ) = n ln( )
X
i =1
To maximize the log of the likelihood, simply set its derivative with
respect to b to zero:
dl n
1
=
+ 2
d
X
i =1
=
i =1
Xi
n
Therefore, when @RISK tries to fit your data to the best Exponential
function with a fixed lower bound of zero, it first finds the mean of
the input data and uses it as the MLE for .
Modifications to
the MLE Method
For some distributions, the MLE method described above does not
work. For example, a 3-parameter Gamma distribution (a Gamma
distribution whose lower bound is allowed to vary) cannot always be
fitted using MLEs. In these cases @RISK will resort to a hybrid
algorithm, which combines the standard MLE approach with a
moment matching procedure.
In certain distributions, a strict MLE method produces parameters
which are heavily biased for small sample sizes. For example, the
MLE of the shift parameter of an exponential distribution, and the
minimum and maximum parameters of the uniform distribution, are
heavily biased for small sample sizes. Where possible, @RISK will
correct for the bias.
780
RMSErr =
1 n
(f(x i , ) - y i ) 2
n i =1
The value of that minimizes this value is called the least squares fit.
In a sense, this value minimizes the distance between the theoretical
curve and the data. The formula above is easily generalized to more
than one parameter.
This method is used to calculate the best distribution for both density
and cumulative curve data.
Parametric Bootstrap
Some calculations (parameter confidence intervals, p-value, and
critical value calculations) require the use of a parametric bootstrap.
Effectively, this takes each fitted distribution and generates a large
number of new sample data sets from it, each with the same size as
the original data set. It then refits those new data sets and tabulates
information about each of the resampled fits.
See the discussions below for a description of parameter confidence
intervals, p-values, and critical values to understand in what
circumstances you would want this information.
By default, the parametric bootstrap option in turned off in @RISK.
For large data sets this can take a fair amount of time, so if you do not
need the information that the parametric bootstrap provides, we
recommend you leave this feature turned off.
781
782
Graphs
@RISK provides four types of graphs to help you visually assess the
quality of your fits.
Comparison
Graphs
783
P-P Graphs
784
Q-Q Graphs
785
786
Fit Statistics
For each fit, @RISK reports one or more fit statistics: the Akaike
Information Criteria (AIC), the Bayesian Information Criteria (BIC),
the Chi-Squared, Kolmogorov-Smirnov (KS), Anderson-Darling (AD),
and Root-Mean Squared Error (RMSErr). These statistics measure
how well the distribution fits the input data and how confident you
can be that the data was produced by the distribution function. For
each of these statistics, the smaller value represents a better the fit.
The RMSErr statistic is used solely for curve (density or cumulative)
data. The AD and KS tests are used for continuous sample data only.
The AIC, BIC, and Chi-Sq tests can be used for both continuous and
discrete sample data.
Model Selection
and Fit
Validation
Fit statistics are used for two related, but distinct purposes. Model
selection is the process of picking one particular fitted distribution type
over another, while fit validation is the process of determining if a
particular fitted distribution is good fit for the data.
For curve data, the RMSErr statistic serves both these roles.
For sample data, the so-called classical goodness-of-fit statistics, the
Chi-Squared, KS, and AD test, were originally developed as tests for
fit validation, and were not directly meant as a tool for deciding
between alternate distributions. That being said, they are often used
in this way, and in the case where the number of data points is very
large, using these statistics for model selection is often acceptable.
More recently, the so-called Information Criteria tests were
developed, and were specially designed for model selection. They are
better suited for this task because they take into account, among other
things, the number of free parameters of the fitted distribution. To
understand why this is important, consider the hypothetical case
where a normal distribution and a beta-general distribution are both
good fits to a particular set of data. All things otherwise being equal,
the normal distribution is preferable because it has only two
adjustable parameters while the beta-general has four. This is called
the principle of parsimony.
Our recommendation is that you use the AIC or BIC for model
selection, unless you have a specific reason for not doing so. It is
important to note, however, that these statistics do not provide a
measure of the absolute goodness of a particular fit. That is, the
actual values of the AIC and BIC statistic do not have meaning, except
in relative terms, when you compare one proposed distribution type
to another.
787
Information
Criteria (AIC and
BIC)
The AIC and BIC statistics are calculated from the log-likelihood
function by the simple expressions:
AIC = 2k 2 ln L
BIC = k ln n 2 ln L
Where L is the likelihood function, k is the number of parameters
estimated for the fit, and n is the number of sampled points.
The AIC and BIC are clearly very similar. The theoretical
underpinnings of both rely on Bayesian analysis and the two different
forms come from differing assumptions for the Bayesian priors.
The AIC tends to penalize the number of parameters less strongly
than the BIC. There is a lot of discussion in the literature about which
one is more appropriate, and the jury appears to still be out. Our
recommendation is, unless you have reasons to do otherwise, to use
the AIC.
Chi-Squared
Statistic
(N i Ei )2
i =1
Ei
=
2
where
K = the number of bins
Another fit statistic that can be used for continuous sample data is the
Kolmogorov-Smirnov statistic, which is defined as
Dn = sup Fn ( x ) F$ ( x )
where
n = total number of data points
Nx
n
The K-S statistic does not require binning, which makes it less
arbitrary than the chi-squared statistic. A weakness of the K-S
statistic is that it does not detect tail discrepancies very well.
AndersonDarling Statistic
(A-D)
The final fit statistic that can be used with continuous sample data is
the Anderson-Darling Statistic, which is defined as:
+
2
A = n Fn ( x ) F$ ( x ) ( x ) f$ ( x )dx
2
n
where
2 =
1
$
F ( x ) 1 F$ ( x )
Nx
n
789
Like the K-S statistic, the A-D statistic does not require binning. But
unlike the K-S statistic, which focuses in the middle of the
distribution, the A-D statistic highlights differences between the tails
of the fitted distribution and input data.
Root-Mean
Squared Error
(RMSErr)
For density and cumulative curve data, the only fit statistic used is the
Root-Mean Squared Error. This is the same quantity that @RISK
minimized to determine the distribution parameters during its fitting
process. It is a measure of the average squared error between the
input and fitted curve.
Critical Values
790
How likely is it that a new set of N samples drawn from the fitted
distribution would generate a fit statistic greater than or equal to s?
This probability is referred to as the P-value and is sometimes called
the observed significance level of the test. As the P-value decreases
to zero, we are less and less confident that the fitted distribution could
possibly have generated our original data set. Conversely, as the Pvalue approaches one, we have no basis to reject the hypothesis that
the fitted distribution actually generated our data set.
Often we want to turn the same question around and specify a
particular level of significance to use, usually denoted by . This
value is the probability that we will incorrectly reject a distribution
because it generated, due to statistical fluctuations, a value of s that
was very large. Now we want to know, given this significance level,
what the largest value of s is that we would accept as a valid fit. This
value of s is called the critical value of the fit statistic at the level
of significance. Any fit that has a value of s above the critical value is
rejected, while fits with values of s below the critical value are
accepted. Typically, critical values depend on the type of distribution
fit, the particular fit statistic being used, the number of data points,
and the significance level.
Interpret the Results
Calculation
Methods
The Chi-Squared, KS, and AD statistics were developed in the precomputer era. In order to calculate P-values and critical values,
statisticians needed to determine the sampling distribution that these
fit statistics should follow. (In fact, the Chi-Squared test gets its name
from that statistics particular sampling distribution.) However, in
general their analyses were limited to the cases where there were no
adjustable parameters (e.g. a hypothesis test). Various
approximations and assumptions were made to extend these analyses
to the cases where one or more parameters were adjustable, but in
many cases this was unacceptable.
Fortunately, these limitations can be overcome now using the
technique of parametric bootstrapping. As described earlier in this
section, the bootstrap actually draws a large number of new samples
from the fitted distribution and refits them, and thus is able to
generate a sampling distribution for the fit statistics, and thus directly
compute the P-values and critical values.
Be aware, then, that P-value and critical value calculations can only be
performed if you turn on the parametric bootstrapping fitting option.
791
792
793
794
Appendix B: Optimization
Introduction .....................................................................................797
Optimization Methods ....................................................................797
About Hill Climbing Algorithms......................................................799
Local Optimization with Excel Solver..............................................802
Global Optimization - Solver vs. Palisade Add-Ins ......................803
Types of Problems ...............................................................................804
Linear Problems ......................................................................804
Non-linear Problems..............................................................804
Table-based problems ...........................................................807
Combinatorial problems .......................................................808
Appendix B: Optimization
795
796
Introduction
@RISKs RISKOptimizer tool combines optimization and simulation
to allow you to optimize problems that have uncertain elements. This
appendix provides background information on the optimization
methods used by RISKOptimizer.
Optimization Methods
Traditional Excel-based optimization problems analyzed using Solver
or Evolver (optimization add-ins to Excel) are comprised of:
Appendix B: Optimization
797
Inputs
Function
Output
Variables
Model
Goal
In this example
Looking for:
Given this:
X and Y
Equation
798
Optimization Methods
2)
3)
If you have walked to a new point that is higher, stay and repeat
step 2. If your new point is lower, go back to your original point
and try again.
From the diagram above we can clearly see that we want the dot to go
up the high hill to the right. However, we only know that because we
have already seen the entire landscape. As the algorithm runs, it sees
the landscape immediately around it, but not the entire landscape; it
sees the trees but not the forest.
In most real-world problems, the landscape is not so smooth, and
would require years to calculate, so we only calculate the current
scenario and the immediately surrounding scenarios. Imagine that
the dot is a blindfolded man standing amidst smooth, rolling hills. If
Appendix B: Optimization
799
the man employed the hill-climbing algorithm, this man would put
one foot in each direction, and only move when he felt higher ground.
This man would successfully step his way upwards, and eventually
would come to rest on the hilltop where the ground all around him
was lower than the ground he was on. This seems simple enough.
However, we get into a very serious problem if the man starts out in
another place... he climbs up the wrong hill! (see the diagram below).
800
Optimization Methods
For example, lets say a bank hires one security guard from 9:00am to
5:00pm to guard the bank, but the bank must give the officer two (2)
half-hour breaks. We must try to find the optimum break times,
given general rules about performance/fatigue ratios, and
considering the different levels of customer activity throughout the
day. We may start by trying out different combinations of duty
breaks and evaluate them. If we currently use a schedule where the
breaks are timed at 11:00am and 3:00pm, we might calculate the
productivity of the surrounding scenarios:
Direction
Current Solution
West Scenario
East Scenario
North Scenario
South Scenario
Break 1 (x)
11:00am
10:45am
11:15am
11:00am
11:00am
Break 2 (y)
3:00pm
3:00pm
3:00pm
3:15pm
2:45pm
Score (z)
= 46.5
= 44.67
= 40.08
= 49.227
= 43.97
Appendix B: Optimization
801
802
Optimization Methods
Appendix B: Optimization
803
Types of Problems
Several different types of problems are typically optimized.
Linear Problems
In linear problems, all the outputs are simple linear functions of the
inputs, as in y=mx+b. When problems only use simple arithmetic
operations such as addition, subtraction, and Excel functions such as
TREND() and FORCAST() it indicates there are purely linear
relationships between the variables.
Linear problems have been fairly easy to solve since the advent of
computers and the invention by George Dantzig of the Simplex
Method. A simple linear problem can be solved most quickly and
accurately with a linear programming utility The Solver utility
included with Excel becomes a linear programming tool when you set
the Assume Linear Model checkbox (in Excel 2007 and lower) or
select the Simplex LP solving method (in Excel 2010). Solver then
uses a linear programming routine to quickly find the perfect
solution. If your problem can be expressed in purely linear terms,
you should use linear programming. Unfortunately, most real-world
problems cannot be described linearly.
With the addition of the OptQuest optimization engine in version 6 of
Evolver and RISKOptimizer, these add-ins will also solve linear
problems efficiently. The OptQuest engine generates solutions that
meet specified linear constraints; therefore problems with linear
constraints will be solved quickly, even if the user does not identify
the problem as linear.
Non-linear
Problems
804
If the cost to manufacture and ship out 5,000 widgets was $5,000,
would it cost $1 to manufacture and ship 1 widget? Probably not. The
assembly line in the widget factory would still consume energy, the
paperwork would still need to be filled out and processed through the
various departments, the materials would still be bought in bulk, the
trucks would require the same amount of gas to deliver the widgets,
and the truck driver would still get paid a full days salary no matter
how full the load was. Most real-world problems do not involve
variables with simple linear relationships. These problems involve
multiplication, division, exponents, and built-in Excel functions such
as SQRT() and GROWTH(). Whenever the variables share a
disproportional relationship to one another, the problem becomes
non-linear.
Optimization Methods
Appendix B: Optimization
805
806
Optimization Methods
Table-based
problems
Many problems require the use of lookup tables and databases. For
example, in choosing the quantities of different materials to buy, you
might need to look up the prices charged for different quantities.
Tables and databases make problems discontinuous (non-smooth).
That makes it difficult for hill-climbing routines like Solvers GRG
algorithms to find optimal solutions. Excel 2010 added the
Evolutionary Solving Method for non-smooth optimization. Evolver
and RISKOptimizer have offered the Evolutionary/Genetic method
for non-smooth problems since their initial releases. In version 6 the
OptQuest optimization engine was added, representing state-of-theart methods in non-smooth optimization. In addition, Palisade
products do not require user to identify the problem as non-smooth;
optimization methods in Palisade software work well on both smooth
and non-smooth problems (unlike Solver default GRG option).
Appendix B: Optimization
807
Combinatorial
problems
There is a large class of problems that are very different from the
numerical problems examined so far. Problems where the outputs
involve changing the order of existing input variables, or grouping
subsets of the inputs are called combinatorial problems. These
problems are usually very hard to solve, because they often require
exponential time; that is, the amount of time needed to solve a
problem with 4 variables might be 4 x 3 x 2 x 1, and doubling the
number of variables to 8 raises the solving time to 8 x 7 x 6 x 5 x 4 x 3 x
2 x 1, or a factor of 1,680. The number of variables doubles, but the
number of possible solutions that must be checked increases 1,680
times. For example, choosing the starting lineup for a baseball team is
a combinatorial problem. For 9 players, you can choose one out of the
9 as the first batter. You can then choose one out of the remaining 8 as
the second batter, one of the remaining 7 will be the third, and so on.
There are thus 9x8x7x6x5x4x3x2x1 (9 factorial) ways to choose a
lineup of 9 players. This is about 362,880 different orderings. Now if
you double the number of players, there are 18 factorial possible
lineups, or 6,402,373,705,000,000 possible lineups!
RISKOptimizer and Evolvers algorithms, Genetic Algorithm and
OptQuest, are both capable of intelligently searching through the
possible permutations. This is much more practical than searching
through all possibilities, and it is much more efficient than examining
purely random permutations; sub-orders from good scenarios can be
retained and used to create even better scenarios.
808
Optimization Methods
Genetic Algorithms
Introduction
RISKOptimizer uses genetic algorithms as one of its optimization
methods. The genetic algorithms used are adapted from Evolver, an
optimization add-in to Excel from Palisade Corporation. This chapter
provides background information on genetic algorithms to give
insights on how they are used for optimizing simulation models.
History
The first genetic algorithms were developed in the early 1970s by John
Holland at the University of Michigan. Holland was impressed by
the ease in which biological systems could perform tasks which
eluded even the most powerful super-computers; animals can
flawlessly recognize objects, understand and translate sounds, and
generally navigate through a dynamic environment almost
instantaneously.
For decades, scientists have promised to replicate these capabilities in
machines, but we are beginning to recognize just how difficult this
task is. Most scientists agree that any complex biological system that
exhibits these qualities has evolved to get that way.
Evolution
Theory
common weakness that could destroy them all (virus, etc.) or other
problems associated with inbreeding.
Once we break down evolution into these fundamental building
blocks, it becomes easier to apply these techniques to the
computational world, and truly begin to move towards more fluid,
more naturally behaving machines.
Holland began applying these properties of evolution to simple
strings of numbers that represented chromosomes. He first encoded
his problem into binary strings (rows of 1s and 0s) to represent
the chromosomes, and then had the computer generate many of these
bit strings to form a whole population of them. A fitness function
was programmed that could evaluate and rank each bit string, and
those strings which were deemed most fit would exchange data
with others through a crossover routine to create offspring bit
strings. Holland even subjected his digital chromosomes to a
mutation operator, which injected randomness into the resulting
offspring chromosomes to retain diversity in the population. This
fitness function replaced the role of death in the biological world;
determining which strings were good enough to continue breeding
and which would no longer be kept in memory.
810
Genetic Algorithms
811
A Biological Example
Let us look at a simple example of evolution in the biological world
(on a small scale). By evolution here we mean any change in the
distribution or frequency of genes in a population. Of course, the
interesting thing about evolution is that it tends to lead to populations
that are constantly adapting to their environments.
Imagine that we are looking at a population of mice. These mice
exhibit two sizes, small and large, and they exhibit two colors, light or
dark. Our population consists of the following eight mice:
One day, cats move into the neighborhood and start eating mice. It
turns out that darker mice and smaller mice are harder for the cats to
find. Thus, different mice have different odds of avoiding the cats
long enough to reproduce. This affects the nature of the next
generation of mice. Assuming the old mice die soon after
reproducing, the next generation of mice looks like this:
Notice that large mice, light mice, and especially large, light mice, are
having trouble surviving long enough to reproduce. This continues in
the next generation.
Genetic Algorithms
A Digital Example
Imagine a problem with two variables, X and Y, that produce a result
Z. If we calculated and plotted the resulting Z for every possible X
and Y values, we would see a solution landscape emerge. Since we
are trying to find the maximum Z, the peaks of the function are
good solutions, and the valleys are bad ones.
When we use a genetic algorithm to maximize our function, we start
by creating several possible solutions or scenarios at random (the
black dots), rather than just one starting point. We then calculate the
functions output for each scenario and plot each scenario as one dot.
Next we rank all of the scenarios by altitude, from best to worst. We
keep the scenarios from the top half, and throw out the others.
813
Before
After
Scenario 1
3.4, 5.0
2.6, 5.0
Scenario 2
2.6, 3.2
3.4, 3.2
814
Genetic Algorithms
Notice that some of the new scenarios result in lower output (lower
altitude) than any we saw in the original generation. However, one
scenario has moved high up on the tallest hill, indicating progress. If
we let the population evolve for another generation, we may see a
scene like the following:
815
816
Genetic Algorithms
OptQuest
Introduction
The OptQuest Engine incorporates metaheuristics to guide its search
algorithm toward better solutions. This approach remembers which
solutions worked well and recombines them into new, better
solutions. In addition, this technique does not get trapped in local
solutions or get thrown off course by noisy (uncertain) model data.
The OptQuest Engine combines Tabu search, scatter search, integer
programming, and neural networks into a single, composite search
algorithm providing maximum efficiency in identifying new
scenarios.
Linear Constraints
OptQuest generates solutions that almost always meet all the
specified linear constraints, and time is saved by not evaluating
invalid solutions. (Occasionally OptQuest may generate a solution
that does not meet a linear constraint, due to the fact that computers
cannot handle calculations with infinite precision.)
The Product Mix with Uncertainty 1.xls example demonstrates
OptQuest linear constraint handling. All the constraints are linear,
and all the solutions generated by OptQuest will be valid. More
specifically, the SumProduct formula in the constrained cell
expresses a linear function of the adjustable cells. Other constrained
cells are also linearly dependent on the adjustable cells.
Nonlinear Constraints
OptQuest handles non-linear constraints efficiently, including
situations in which the original values of adjustable cells are invalid
(do not meet the specified constraints). The Genetic Algorithm
generally requires the original adjustable cell values to meet the
constraints. If the original solution is invalid, the Constraint Solver
tool finds a valid solution, providing a starting point for an
optimization that uses the Genetic Algorithm. OptQuest does not
require the use of the Constraint Solver. If the original solution is
invalid, OptQuest may start the optimization by generating a
sequence of invalid solutions. However, during this stage it collects
information about how much each solution falls short of meeting the
constraints, with the objective of finding valid solutions.
817
818
OptQuest
RISKOptimizer Extras
Adding Constraints
Realistic problems often have a number of constraints that must be
met while we search for optimal answers. For example, in the tutorial
for the Airline Revenue Management example, the constraint is that
the probability of the profit exceeding $15000 should be greater than
5%.
A scenario which meets all the constraints in a model is said to be a
viable or valid solution. Sometimes it is difficult to find viable
solutions for a model, much less to find the optimal viable solution.
This may be because the problem is very complex, and only has a few
viable solutions, or because the problem is over-specified (there are
too many constraints, or some constraints conflict with others), and
there are no viable solutions.
There are three basic kinds of constraints: range constraints, or minmax ranges placed on adjustable cells, hard constraints, which must
always be met, and soft constraints which we would like to be met as
much as possible, but which we may be willing to compromise for a
big improvement in fitness.
819
Range Constraints
The simplest hard constraints are the ones that are placed on the
variables themselves. By setting a certain range on each variable, we
can limit the overall number of possible solutions RISKOptimizer will
search through, resulting in a more efficient search. Enter Min and
Max values in the Model windows Adjustable Cell Ranges section to
tell RISKOptimizer the range of values that are acceptable for each
variable.
RISKOptimizer will only try values between 0 and 5,000 for the specified cells.
RISKOptimizer Extras
821
Soft Constraints
Forcing a program to find only solutions that meet all constraints can
result in no viable solutions being found. Often, it is more useful to
have an approximately viable solution, where maybe a few solutions
fall short of meeting the constraints.
An alternative to the use of hard constraints that must be met is to
reconfigure the problem with soft constraints; constraints that
RISKOptimizer will tend to meet. These soft constraints are often
more realistic, and allow RISKOptimizer to try many more options.
In the case of a highly constrained problem (where there are not very
many possible solutions that would meet all your requirements),
RISKOptimizers genetic algorithm will be more likely to find the best
solution if it is allowed to get feedback on some solutions that are
close to satisfying the constraints.
When constraints are design goals, such as produce twice as many
forks as knives, it is often not so important to meet them exactly:
especially if getting a perfectly balanced production schedule
required a day-long optimization process. In this case, a good
822
RISKOptimizer Extras
Entering a
Penalty
Function
824
Entering Soft
Constraints In
Your Worksheet
825
More Examples
of Penalty
Functions
826
RISKOptimizer Extras
Create a cell that adds the constraints to your total, and minimize the mean of the
simulation results for this cell.
827
828
RISKOptimizer Extras
Improving Speed
When you use RISKOptimizer to solve a problem, you are using both
the RISKOptimizer library of compiled routines to control the process
and Excels spreadsheet evaluation function to examine different
scenarios. A large percentage of the time used by RISKOptimizer is
actually used by Excel as it recalculates your spreadsheet. There are a
number of things that can be done to speed up RISKOptimizer
optimization and Excels recalculation process.
Set more tightly the ranges that the adjustable cells must fall
between; this will create a smaller area in which RISKOptimizer
must search for solutions, and should therefore speed up the
process. Make sure that your ranges allow enough freedom for
RISKOptimizer to explore all realistic solutions.
829
Crossover
Replacement
Constraints
832
Improving Speed
Troubleshooting / Q&A
This section answers some commonly asked questions regarding
RISKOptimizer and keeps you up to date on common questions,
problems and suggestions. After reading through this section, you
may call Palisade customer support at the numbers listed in the
beginning chapter of this manual.
Q: Why am I having trouble getting a valid answer from
RISKOptimizer?
A: Make sure that the RISKOptimizer dialog is set up correctly.
Most of the problems are associated with the setting of the
variables. Each group of adjustable cells should be exclusive, in
that no single cell or range of cells is being treated with more than
one solving method.
Q: Can RISKOptimizer deal with concepts or categories instead of
just numbers?
A: RISKOptimizer can indirectly deal with any kind of data, since
numbers are just symbols. Use a lookup table in Excel to translate
between integers and strings of text. RISKOptimizer (like all
computer programs) ultimately can only deal with numbers, but
your interface may use those numbers to represent and display
any strings.
Q: Even though Im filling in the dialogs the same way, and letting
RISKOptimizer run the same amount of time, why does
RISKOptimizer sometimes find different solutions?
A: As is the case with natural selection in the biological world, the
RISKOptimizer genetic algorithm will not always follow the same
path when searching for solutions (unless you use a fixed random
number generator seed). Ironically it is this unpredictability
that allows RISKOptimizer to solve more types of problems, and
often find better solutions than traditional techniques.
RISKOptimizers genetic algorithm engine is not just executing a
series of pre-programmed commands, or plugging values
through a mathematical formula, but it is efficiently
experimenting with many random hypothetical scenarios
simultaneously, and then refining the search through many
survival-of-the-fittest operators which also contain random
elements. A similar reason can be given in the case of OptQuest,
the other optimization algorithm in RISKOptimizer. OptQuest
833
Troubleshooting / Q&A
835
836
Welcome
837
The term Six Sigma or 6 is very descriptive. The Greek letter sigma
() signifies standard deviation, an important measure of variation.
The variation of a process refers to how tightly all outcomes are
clustered around the mean. The probability of creating a defect can
be estimated and translated into a Sigma level. The higher the
Sigma level, the better the performance. Six Sigma refers to having
six standard deviations between the average of the process center
and the closest specification limit or service level. That translates to
fewer than 3.4 defects per one million opportunities (DPMO). The
chart below illustrates Six Sigma graphically.
-6
-5
-4
-3
-2
-1
+1
+2
+3
+4
+5
838
+6
The figure here illustrates how @RISK helps to identify, quantify, and
hone in on variation in your processes.
839
840
841
Unlike the DMAIC methodology, the phases or steps of DFSS are not
universally recognized or defined -- almost every company or
training organization will define DFSS differently. One popular
Design for Six Sigma methodology is called DMADV, and retains the
same number of letters, number of phases, and general feel as the
DMAIC acronym. The five phases of DMADV are defined as: Define,
Measure, Analyze, Design and Verify:
1) Define the project goals and customer (internal and external
VOC) requirements
2) Measure and determine customer needs and specifications;
benchmark competitors and industry
3) Analyze the process options to meet the customer needs
4) Design (detailed) the process to meet the customer needs
5) Verify the design performance and ability to meet customer
needs
842
843
844
Identify CTQs
Cost estimation
Process optimization
845
846
847
848
Entering a
RiskSixSigma
Property
Function
849
Output
Properties Six
Sigma Tab
850
851
852
If a cell reference is entered as the first argument, the cell does not
have to be a simulation output identified with a RiskOutput
function. However, if it is not an output, an optional
RiskSixSigma property function needs to be added to the
statistic function itself so @RISK will have the necessary settings
for calculating the desired statistic.
Entering Six
Sigma Statistics
Functions
853
Customizing the
Displayed
Statistics
854
Generating a
Report in Excel
855
These markers can be removed if desired using the Markers tab of the
Graph Options dialog. Additional markers may also be added. The
Graph Options dialog is displayed by right-clicking on the graph or
by clicking the Graph Options icon (the second icon from the left on
the bottom of the graph window).
856
What is Sampling?
Sampling is the process by which values are randomly drawn from
input probability distributions. Probability distributions are
represented in @RISK by probability distribution functions, and
sampling is performed by the @RISK program. Sampling in a
simulation is done, repetitively, with one sample drawn every
iteration from each input probability distribution. With enough
iterations, the sampled values for a probability distribution become
distributed in a manner which approximates the known input
probability distribution. The statistics of the sampled distribution
(mean, standard deviation and higher moments) approximate the true
statistics input for the distribution. The graph of the sampled
distribution will even look like a graph of the true input distribution.
Statisticians and practitioners have developed several techniques for
drawing random samples. The important factor to examine when
evaluating sampling techniques is the number of iterations required
to accurately recreate an input distribution through sampling.
Accurate results for output distributions depend on a complete
sampling of input distributions. If one sampling method requires
more iterations, and longer simulation runtimes than another to
approximate input distributions, it is the less efficient method.
857
Cumulative Distribution
It is often helpful, when reviewing different sampling methods, to
first understand the concept of a cumulative distribution. Any
probability distribution may be expressed in cumulative form. A
cumulative curve is typically scaled from 0 to 1 on the Y-axis, with Yaxis values representing the cumulative probability up to the
corresponding X-axis value.
858
What is Sampling?
859
In the illustration shown here, each of the 5 samples drawn falls in the
middle of the distribution. The values in the outer ranges of the
distribution, are not represented in the samples, and thus their impact
on your results is not included in your simulation output.
Clustering becomes especially pronounced when a distribution
includes low probability outcomes, which could have a major impact
on your results. It is important to include the effects of these low
probability outcomes. To do this, these outcomes must be sampled,
but if their probability is low enough, a small number of Monte Carlo
iterations may not sample sufficient quantities of these outcomes to
accurately represent their probability. This problem has led to the
development of stratified sampling techniques such as the Latin
Hypercube sampling used in @RISK.
860
What is Sampling?
In the illustration above, the cumulative curve has been divided into 5
intervals. During sampling, a sample is drawn from each interval.
Compare this to the 5 clustered samples drawn using the Monte Carlo
method. With Latin Hypercube, the samples more accurately reflect
the distribution of values in the input probability distribution.
The technique being used during Latin Hypercube sampling is
sampling without replacement. The number of stratifications of the
cumulative distribution is equal to the number of iterations
performed. In the example above, there were 5 iterations and thus 5
stratifications were made to the cumulative distribution. A sample is
taken from each stratification. However, once a sample is taken from
a stratification, this stratification is not sampled from again its
value is already represented in the sampled set.
How does sampling within a given stratification occur? In effect,
@RISK chooses a stratification for sampling, then randomly chooses
value from within the selected stratification.
Latin
Hypercube and
Low Probability
Outcomes
861
862
What is Sampling?
While the tools listed above can be purchased and used separately,
they become more powerful when used together. Analyze historical
and fit data for use in an @RISK model, or use TopRank to determine
which variables to define in your @RISK model.
This chapter explains many of the ways the components of the
DecisionTools suite interact, and how they will make your decision
making easier and more effective.
Note: Palisade also offers a version of @RISK for Microsoft Project.
@RISK for Project allows you to run risk analyses on project
schedules created in Microsoft Project, the leading software package
for project management. Contact Palisade for more information on
this exciting implementation of @RISK!
863
Purchasing Information
All of the software mentioned here, including the DecisionTools Suite,
can be purchased directly from Palisade Corporation. To place an
order or receive more information, please contact the technical sales
department at Palisade Corporation using one of the following
methods:
E-mail: sales@palisade.com
E-mail: sales@palisade-europe.com.
Email us at sales@palisade.com.au
864
Next, Assess
Probabilities
Add Distribution
Fitting
Simulate with
@RISK
Decide with
PrecisionTree
865
866
Introduction to TopRank
TopRank is the ultimate What-if tool for spreadsheets, from Palisade
Corporation. TopRank greatly enhances the standard What-if and
data table capabilities found in your spreadsheet. In addition, you
can easily step up to powerful risk analysis with its companion
package, @RISK.
867
TopRank
Applications
Modeling Features
Why TopRank?
Multi-Way
What-if Analysis
868
TopRank
Functions
Automated
What-ifs
869
Running a
What-if Analysis
TopRank
Results
870
Introduction to TopRank
871
The Differences
Inputs
Both @RISK and TopRank are add-ins for analysis of models designed
in spreadsheets. By using special spreadsheet formulas, both
programs explore how uncertainty affects your model, and thus the
decisions you make. And, a common user-interface guarantees a
smooth transition between the two products: one learning curve
instead of two.
There are three main areas where @RISK and TopRank differ:
Inputs
Calculations
Results
Calculations
872
Summary
873
874
Introduction to PrecisionTree
PrecisionTree from Palisade Corporation is a decision analysis add-in
to Microsoft Excel. Now you can do something you've never been
able to do before define a decision tree or influence diagram
directly in your spreadsheet. PrecisionTree allows you to run a
complete decision analysis, without leaving the program where your
data is your spreadsheet!
875
Modeling Features
PrecisionTree
and Microsoft
Excel
PrecisionTree
Nodes
Chance nodes
Decision nodes
End nodes
Logic nodes
Reference nodes
Values in
Models
Decision
Analysis
876
Reducing a Tree
Utility
Assessment
Advanced
Analysis
Capabilities
Utility functions
Logic nodes
877
878
Introduction to PrecisionTree
879
EV = $22,900
Drilling Decision
for Open Test
Results
-$80,000, 43%
Drill
Wet
$40,000, 34%
Open
Soaking
$190,000, 23%
Dont Drill
-$10,000
The results of drilling are divided into three discrete outcomes (Dry,
Wet, and Soaking). But, in reality, the amount of oil found should be
described with a continuous distribution. Suppose the amount of
money made from drilling follows a lognormal distribution with a
mean of $22900 and a standard deviation of $50000, or the @RISK
distribution =RiskLognorm(22900,50000).
880
To use this function in the oil drilling model, change the chance node
to have only one branch, and the value of the branch is defined by the
@RISK function. Heres how the new model should look:
EV = $22,900
Drilling Decision
With a
Probability
Distribution
Drill
Open
Results
RiskNormal(22900,50000) - $70,000
Dont Drill
-$10,000
But, what about the decision to Drill or Not Drill? If the expected
value of the Drill node changes, the optimum decision could change
iteration to iteration. That would imply that we know the outcome of
drilling before the decision is made. To avoid this situation,
PrecisionTree has an option Decisions Follow Current Optimal Path to
force decisions before running an @RISK simulation. Every decision
node in the tree will be changed to a forced decision node, which
causes each decision node to select the decision thats optimal when
the command is used. This avoids changes in a decision, due to
changing a decision trees values and probabilities during a risk
analysis.
There may be times when you want to know the outcome of a chance
event before making a decision. You want to know the value of
perfect information.
Before running a risk analysis, you know the expected value of the
Drill or Dont Drill decision from the value of the Drill Decision node.
If you ran a risk analysis on the model without forcing decisions, the
return value of the Drill Decision node would reflect the expected
value of the decision if you could perfectly predict the future. The
difference between the two values is the highest price you should pay
(perhaps by running more tests) to find out more information before
making the decision.
881
882
Select the value of a start node of a tree (or the beginning of any subtree) to generate a risk profile from an @RISK simulation. Since
@RISK distributions generate a wider range of random variables, the
resulting graph will be smoother, and more complete, than the
traditional discrete risk profile.
Appendix F: Glossary
Glossary of Terms
Averse
Continuous
Distribution
Cumulative
Distribution
Cumulative
Frequency
Distribution
Dependent
Variable
Deterministic
Appendix F: Glossary
883
Discrete
Distribution
Event
Expected Value
See mean
Frequency
Distribution
Higher Moments
Independent
Variable
Iteration
Kurtosis
884
Glossary of Terms
Latin Hypercube
Mean
The mean of a set of values is the sum of all the values in the set,
divided by the total number of values in the set.
Synonym: expected value
Monte Carlo
Most Likely
Value
The most likely value, or mode, is the value that occurs most often in
a set of values. In a histogram and a result distribution, it is the center
value in the class or bar with the highest probability.
Objective Risk
Percentile
Preference
Probability
Appendix F: Glossary
885
Probability
Distribution
Random
Number
Generator
Random Sample
Range
@RISK
Risk
Risk Analysis
Risk Averse
886
Glossary of Terms
Sample
Seed
Simulation
Skewness
Standard
Deviation
Stochastic
Subjective Risk
Summary
Graph
Trial
Appendix F: Glossary
887
Truncation
Truncation is the process by which a user chooses a minimummaximum range for a random variable that differs from the range
indicated by the distribution type of the variable. A truncated
distribution has a smaller range than the untruncated distribution,
because the truncation minimum is greater than the distribution
minimum and/or the truncation maximum is less than the
distribution maximum.
Uncertainty
See risk
Variable
A variable is a basic model component that can take on more than one
value. If the value that actually will occur is not known with
certainty, the variable is considered uncertain. A variable, certain or
uncertain, may be either dependent or independent.
See dependent variable, independent variable
Variance
888
Glossary of Terms
Appendix G: Recommended
Readings
Readings by Category
The @RISK Users Guide has given you a start on understanding the
concepts of Risk Analysis and simulation. If you're interested in
finding out more about the Risk Analysis technique, and the theory
behind it, here are some books and articles which examine various
areas in the Risk Analysis field.
889
Distribution Fitting
If you are interested in finding out more about distribution fitting,
consult any of these books:
* Groebner, David F. and Shannon, Patrick W. Business Statistics: A
Decision-Making Approach, 4th ed.: Macmillan Publishing Company, New
York, NY, 1993.
* Law, Averill M. and Kelton, David. Simulation Modeling and Analysis,
2nd ed.: McGraw-Hill, New York, NY, 1991.
* Walpole, Ronald E. and Myers, Raymond H. Probability and Statistics for
Engineers and Scientists, 5th ed.: Macmillan Publishing Company, New York,
NY, 1993.
Distribution Functions
To learn more about the distribution functions used by @RISK's
BestFit distribution fitting software, refer to the following book:
* Evans, Merran, Nicholas Hastings and Brian Peacock. Statistical
Distributions, 2nd ed: John Wiley & Sons, Inc, New York, NY, 1993.
890
Readings by Category
891
Call
(800-432-7475 or 607-277-8000), fax (607-277-8001), or write to order
or request further information on these and other titles relevant to
risk analysis. The Palisade Technical Sales Department can also be
reached by e-mail at sales@palisade.com or on the Web at
http://www.palisade.com.
892
Readings by Category
Index
@
@RISK Library
Distributions ........................................................................................... 487
Results in Library ................................................................................... 493
Seeding Distributions ............................................................................. 488
SQL Server ............................................................................................. 499
Updating Distributions ........................................................................... 491
@RISK Library .......................................................................................... 485
A
893
Chi-Squared
Statistic ........................................................................................... 150, 788
Circular References .................................................................................... 186
Collect Distribution Samples ...................................................................... 197
combinatorial problems .............................................................................. 808
Compatibility ................................................................................................ 11
Constraint Solver command........................................................................ 383
constraints............................................................................................. 81927
implementation ....................................................................................... 832
Convergence Monitor ................................................................................... 61
Correlation .................................................................................................... 51
Adding .................................................................................................... 134
Adjustment Weights ............................................................................... 131
Checking Matrix Consistency................................................................. 130
Coefficients............................................................................................. 122
Instances, Multiple.......................................................................... 125, 694
Rank Order ..................................................................................... 135, 697
Correlations ................................................................................................ 121
Critical Indices............................................................................................ 476
Critical Values ............................................................................................ 790
crossover rate ...................................................................................... 390, 814
how it is implemented............................................................................. 830
what it does ............................................................................................. 376
Cumulative Descending Percentiles . See Percentiles, Cumulative Descending
D
Readings by Category
Filters
Input Data ....................................................................................... 140, 773
Result...................................................................................................... 217
fitness function ........................................................................................... 352
Fitting ............................................................................................. 5354, 890
Algorithms.............................................................................................. 779
Continuous Distributions ........................................................................ 775
Cumulative Data ..................................................................................... 773
Density Data ........................................................................................... 772
Discrete Distributions ............................................................................. 775
Domain Limits................................................................................ 142, 776
Estimated Parameters ..................................................................... 141, 775
Goodness-of-Fit Tests............................................................................. 787
Input Data ........................................................138, 141, 145, 146, 156, 771
Predefined Distributions ................................................................. 143, 775
Sample Data............................................................................................ 771
Selecting Distributions to Fit .................................................................. 775
G
895
Icons
@RISK ..................................................................................................... 81
Desktop....................................................................................................... 7
Import .MPP File Command....................................................................... 447
Input Data Options Command .................................... 138, 141, 145, 146, 156
Inputs
Adding ...................................................................................................... 47
Collecting Distribution Samples ..................................................... 197, 692
Listing....................................................................................................... 56
Locking................................................................................................... 702
Naming ........................................................................... 102, 110, 171, 702
Properties ........................................................................................ 102, 110
Insert Field Command ................................................................................ 480
Insert Function Command .......................................................................... 115
Insert Row/Column Command ................................................................... 127
Installation Instructions............................................................................... 67
Instance Commands.................................................................................... 125
Instances, Multiple................................................... See Correlation, Instances
Iteration................................................................................................. 41, 185
iteration constraint ..................................................................................... 367
K
Readings by Category
Macros
VBA Control of @RISK .......................................................... 199, 71162
Maximum Likelihood Estimators (MLEs).................................................. 779
Menus
Model Menu (@RISK Add-in)................................................................. 91
Results Menu (@RISK Add-in) ............................................................. 205
Simulate Menu (@RISK Add-in) ........................................................... 183
minutes ....................................................................................................... 373
Model dialog....................................................................................... 335, 351
Model Window ..................................................................................... 56, 169
Modeling
Product Features ............................................................................... 42527
modeling uncertainty ................................................................................ 312
Monte-Carlo Sampling ............................................................... 193, 859, 890
Multiple CPUs ............................................................................................ 187
multiple goal problems ............................................................................... 827
mutation rate............................................................................................... 390
how it is implemented............................................................................. 831
what it does............................................................................................. 377
N
897
Listing....................................................................................................... 56
Naming ........................................................................................... 108, 171
P
Readings by Category
899
Readings by Category
RiskPercentile......................................................................................... 716
RiskPert .................................................................................................. 664
RiskPertAlt ............................................................................................. 667
RiskPoisson ............................................................................................ 668
RiskPtoX................................................................................................. 716
RiskRange............................................................................................... 716
RiskRayleigh .......................................................................................... 670
RiskRayleighAlt ..................................................................................... 672
RiskResample ......................................................................................... 673
RiskResultsGraph ................................................................... 205, 537, 765
RiskSeed ................................................................................................. 703
RiskSensitivity........................................................................................ 717
RiskShift ......................................................................................... 545, 703
RiskSimtable........................................................................................... 674
RiskSimtable........................................................................................... 186
RiskSixSigma ......................................................................................... 704
RiskSkewness ......................................................................................... 717
RiskSplice............................................................................................... 675
RiskStatic................................................................................................ 704
RiskStdDev............................................................................................. 718
RiskStopRun........................................................................................... 764
RiskStudent............................................................................................. 676
RiskTarget .............................................................................................. 718
RiskTheoKurtosis ................................................................................... 719
RiskTheoMax ......................................................................................... 719
RiskTheoMean........................................................................................ 719
RiskTheoMin.......................................................................................... 720
RiskTheoMode ....................................................................................... 720
RiskTheoPercentile................................................................................. 721
RiskTheoRange ...................................................................................... 721
RiskTheoSkewness................................................................................. 721
RiskTheoStdDev..................................................................................... 722
RiskTheoTarget .............................................................................. 722, 723
RiskTheoVariance .................................................................................. 722
RiskTheoXtoP ................................................................................ 722, 723
RiskTriang .............................................................................................. 678
RiskTriangAlt ......................................................................................... 681
RiskTrigen .............................................................................................. 681
RiskTruncate........................................................................................... 705
RiskTruncateP ........................................................................................ 706
RiskUniform ........................................................................................... 682
RiskUniformAlt .............................................................................. 684, 685
RiskUnits ................................................................................................ 707
RiskVariance .......................................................................................... 718
RiskWeibull............................................................................................ 686
RiskWeibullAlt....................................................................................... 689
RiskXtoP................................................................................................. 718
Shifting ........................................................................................... 545, 703
Statistic Functions............................536, 71162, 71162, 71162, 71162
Index
901
Readings by Category
903
Uninstalling @RISK....................................................................................... 6
Update Project Filters Command................................................................ 480
V
Readings by Category
Index
905
906
Readings by Category