Tutorial: Reviewing a model
• • • • 5.3
This Tutorial page shows you how to explore a model by examining the Rent vs. Buy model's:
- Influence diagrams
This assumes you have started Analytica and have opened the Rent vs. Buy model. If this is not the case, see Opening the Rent vs. Buy model. If you are using the model as modified from Chapter 1, change the value of Time horizon back to 10, the value of Monthly rent back to 1200, and the value of Buying price back to 140K. Also change the Rate of inflation back to a normal distribution with a mean of 3.5 and a standard deviation of 1.3.
Tutorial Video: Review/explore a model (8 minutes)
Recognize influence diagrams
In this chapter, you will delve into some of the details of the Rent vs. Buy model. You will not use the top diagram that you used in Chapter 1.
The details of an Analytica model display in an influence diagram window. An influence diagram (shown below) is a graphical representation of a model, showing how different variables in the model interact with each other. A typical influence diagram consists of a number of nodes connected by arrows.
Nodes represent variables and appear as boxes, ovals, hexagons, and other shapes. Different node shapes represent different types of variables. Analytica uses the term variable broadly to include anything that has a value or can be evaluated. Note that many of the variables have the same names as the inputs and output at the top diagram that you used in Chapter 1. The top diagram provides an easy way to see and change these nodes’ values.
Arrows connecting different variables indicate a relation between the variables. The arrow connecting Rate of inflation to Appreciation rate indicates that the value of the Appreciation rate variable depends on the value of the Rate of inflation variable. In the Rent vs. Buy model influence diagram, Cost to Buy depends on the Buying price, Rate of inflation, Appreciation rate, Discount rate, and Time horizon variables.
The following figure illustrates different types of nodes.
Open Object windows
Every object in Analytica has an associated Object window containing detailed information about it. You can display the Object window of any variable by double-clicking its node in the influence diagram.
Information about a variable is provided in a list of attributes. Attributes include the variable’s class (for example, decision, chance, or constant), identifier, units, title, description, definition, inputs, and outputs. See the illustration below.
Move between Object windows
The Object window contains a list of the variable’s inputs and outputs, if there are any.
You can open the Object window for any input or output variable by double-clicking the one you wish to view.
Analytica opens the Object window for Mortgage loan amount.
Note in the figure above that the Title of Mortgage loan amount is different from the variable’s identifier, Mortgage. The title is what the model user normally sees; the identifier is used as a mathematical symbol in the definitions of other variables that depend on this variable.
Inputs lists the identifiers and titles of the variables in the definition. Buying price, the variable you just examined, is one of the inputs. The other input of Mortgage loan amount is Down payment.
Use the Attribute panel
As an alternative to viewing a variable’s attributes in a separate window, you can inspect them in the Attribute panel, which is an auxiliary window pane that you can open below the influence diagram.
The variable Buying price should be highlighted with a title in white, indicating that it is selected; if it is not, select it by clicking it once.
By default, Analytica displays the description of the selected node (e.g., Buying price) in the Attribute panel.
Inspect definitions in the Attribute panel
The Attribute panel allows you to inspect any attribute of a variable.
When a variable is defined as an uncertainty distribution, a button appears in the Definition field.
The definition in this example is a normal distribution; hence, the Normal function is shown.
Analytica models generally contain modules. Each module contains the details of a part of the model, also represented as an influence diagram. In the Rent vs. Buy model, Cost to Buy and Cost to Rent are both modules.
Modules can also contain other modules. In this manner, a large model with hundreds of variables can be organized into a hierarchy of modules, each small enough to be easily understood.
Analytica displays the influence diagram of the Cost to Buy module. This module contains three additional modules: Out-of-pocket costs to own, Future sales proceeds, and Opportunity cost.
The input arrowhead (without a trailing line) shows that the node to the right of the arrow has one or more inputs from outside this module.
The output arrowhead shows that the node to the left of the arrow has one or more outputs outside this module.
The Cost to Rent diagram opens (see the figure below).
Analytica limits the number of open windows at each level of the model hierarchy to minimize clutter on your screen. See Managing windows in the Analytica User Guide for information on how to open more than one module Diagram window at a time.
The combined arrowhead, shown above, indicates that the node has one or more inputs from outside this module, plus the input variable in this module.
You can also navigate the model by tracking a variable’s inputs or outputs.
The Out-of-pocket costs to own module diagram is brought to the front, with the Insurance node selected.
Learn about nodes using Help balloons
Help balloons pop up when you hover over a node for about a second, and display the title, units, and description for a variable. These allow you to browse information very rapidly without having to open the object window. Balloons do not appear when objects do not have the Help or Description attribute filled in.
Inspect values in the Attribute panel
If Value was not previously computed, Analytica computes the variable’s value deterministically, assuming that all of the input probability distributions are fixed at their median values. Mid value is an abbreviation for this deterministically computed value.
You can use the Attribute panel in this manner to examine the mid value of any variable in the model.
It is faster to compute a mid (deterministic) value than an uncertain (probabilistic) value, so it is useful for conducting initial checks of a model before performing any uncertainty analysis.
A Result window displays the probability density function graph for this variable. Analytica displays the uncertainty view that was most recently selected from the Uncertainty View popup menu, or that was saved with the model.
A single mid value appears in table view.
Analytica tells you that this is a nonprobabilistic value.
You now have browsed the Rent vs. Buy model by examining its influence diagrams, variables, attributes, definitions, and results. These are the basic techniques for exploring any Analytica model.
The next chapter shows you how to analyze the Rent vs. Buy model.
You can quit Analytica at this point.
- Play the Rent vs. Buy model in Analytica Cloud Player
- Exploring a model (an explanatory video on YouTube)
- Tutorial videos
- Examining a Model
- Diagram window
- Creating Lucid Influence Diagrams
- Object Window
- Classes of variables and other objects
- Attribute panel
- Entering Attributes using the Attribute panel
- Import a module or library
- User input nodes and user output nodes
- Help balloons
- Result Tables and Graphs
- Result window
- Managing windows