Difference between revisions of "Tutorial: Reviewing a model"
(48 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
{{ReleaseBar}} | {{ReleaseBar}} | ||
− | This | + | <div style="font-size: 1.2em;"> |
− | + | <p><strong>This tutorial shows you how to explore a model by examining the Rent vs. Buy model's:</strong></p> | |
− | + | <ul> | |
− | + | <li><strong>Influence diagrams</strong></li> | |
− | + | <li><strong>Variables</strong></li> | |
− | + | <li><strong>Attributes</strong></li> | |
− | + | <li><strong>Definitions</strong></li> | |
− | + | <li><strong>Results</strong></li> | |
− | + | </ul> | |
− | + | <p><strong>NOTE: 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.</strong></p> | |
− | + | </div> | |
− | < | ||
− | |||
− | |||
− | </ | ||
− | < | + | <div style="text-align: left;"> |
− | + | <div style="column-count: 1; -moz-column-count: 1; -webkit-column-count: 1;"> | |
− | <div style="column-count: | + | __TOC__ |
− | __TOC__ | + | </div> |
</div> | </div> | ||
Line 30: | Line 26: | ||
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 [[Tutorial: Open a model to browse|Chapter 1]]. | 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 [[Tutorial: Open a model to browse|Chapter 1]]. | ||
− | {{CalloutAnnotationBlock|[[image:Chapter 2.1.png]]| | + | {{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 2.1.png]]| |
{{CalloutAnnotation| | {{CalloutAnnotation| | ||
Double-click the ''Model'' node to open it.|v=179|pt=250,215|path=r-|n=1}} | Double-click the ''Model'' node to open it.|v=179|pt=250,215|path=r-|n=1}} | ||
− | }} | + | }}}} |
+ | {{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.3v2.png]]| | ||
+ | {{CalloutAnnotation| | ||
+ | Double-click the ''Model'' node to open it.|v=480|pt=200,515|path=r-|n=1}} | ||
+ | }}}} | ||
The details of an Analytica model display in an [[Diagram window|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'''''. | The details of an Analytica model display in an [[Diagram window|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'''''. | ||
Line 39: | Line 39: | ||
:{{Release||4.6|[[File:Chapter 2.2.png]]}} | :{{Release||4.6|[[File:Chapter 2.2.png]]}} | ||
{{Release|5.0|| | {{Release|5.0|| | ||
− | {{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0.png]]| | + | {{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0.png]]| |
− | {{CalloutAnnotation| | + | {{CalloutAnnotation| |
− | Tools palette⠀|Type=Bare|v=4|pt=4,15|path=r-}} | + | Tools palette⠀|Type=Bare|v=4|pt=4,15|path=r-}} |
+ | }} | ||
+ | {{Release|5.0|6.3|{{CalloutAnnotationBlock|[[image:Chapter_2_2b.png]]| | ||
+ | {{CalloutAnnotation| | ||
+ | Nodes⠀|Type=Bare|v=128|pt=58,138|path=r-}} | ||
+ | {{CalloutAnnotation| | ||
+ | Nodes⠀|Type=Bare|v=128|pt=61,233|path=*}} | ||
+ | {{CalloutAnnotation| | ||
+ | Nodes⠀|Type=Bare|v=128|pt=57,341|path=*}} | ||
+ | {{CalloutAnnotation| | ||
+ | Influence diagram window|Type=Bare|v=265|pt=23,285|path=r-}} | ||
+ | }}}} | ||
+ | {{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter_2_2b_64.png]]| | ||
+ | {{CalloutAnnotation| | ||
+ | Nodes⠀|Type=Bare|v=128|pt=58,138|path=r-}} | ||
+ | {{CalloutAnnotation| | ||
+ | Nodes⠀|Type=Bare|v=128|pt=61,233|path=*}} | ||
+ | {{CalloutAnnotation| | ||
+ | Nodes⠀|Type=Bare|v=128|pt=57,341|path=*}} | ||
+ | {{CalloutAnnotation| | ||
+ | Influence diagram window|Type=Bare|v=265|pt=23,285|path=r-}} | ||
+ | }}}} | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
'''''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 [[Tutorial: Open a model to browse|Chapter 1]]. The top diagram provides an easy way to see and change these nodes’ values. | '''''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 [[Tutorial: Open a model to browse|Chapter 1]]. The top diagram provides an easy way to see and change these nodes’ values. | ||
Line 61: | Line 70: | ||
The following figure illustrates different types of nodes. | The following figure illustrates different types of nodes. | ||
− | :[[File:Chapter 2.3.png]] | + | :{{Release|4.6|6.3|[[File:Chapter 2.3.png]]}} |
+ | {{Release|6.4||[[File:Chapter 2.3_64.png]]}} | ||
==Open Object windows== | ==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 [[Diagram window|influence diagram]]. | 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 [[Diagram window|influence diagram]]. | ||
− | {{CalloutAnnotationBlock|[[image:Chapter 2.4.png]]| | + | {{Release||6.3|{{CalloutAnnotationBlock|[[image:Chapter 2.4.png]]| |
+ | {{CalloutAnnotation| | ||
+ | Double-click the ''Buying price'' node to open the ''Buying price'' '''Object''' window.|v=92|pt=58,138|path=r-|n=1}} | ||
+ | }}}} | ||
+ | {{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 2.4_64.png]]| | ||
{{CalloutAnnotation| | {{CalloutAnnotation| | ||
Double-click the ''Buying price'' node to open the ''Buying price'' '''Object''' window.|v=92|pt=58,138|path=r-|n=1}} | Double-click the ''Buying price'' node to open the ''Buying price'' '''Object''' window.|v=92|pt=58,138|path=r-|n=1}} | ||
− | }} | + | }}}} |
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. | 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. | ||
Line 84: | Line 98: | ||
You can open the [[Object window]] for any input or output variable by double-clicking the one you wish to view. | You can open the [[Object window]] for any input or output variable by double-clicking the one you wish to view. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.6.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Double-click the output variable titled ''Mortgage loan amount.''|v=92|pt=166,436|path=b!|n=1}} | ||
+ | }} | ||
Analytica opens the '''Object''' window for ''Mortgage loan amount''. | Analytica opens the '''Object''' window for ''Mortgage loan amount''. | ||
Line 93: | Line 110: | ||
The [[definition]] of the ''Mortgage loan amount ''is an [[Expressions|expression]], the sum of ''Buying price ''and ''Down payment ''(which is a negative amount). The definition refers to these variables by their identifiers. | The [[definition]] of the ''Mortgage loan amount ''is an [[Expressions|expression]], the sum of ''Buying price ''and ''Down payment ''(which is a negative amount). The definition refers to these variables by their identifiers. | ||
+ | |||
+ | {{Release|5.4||}}<tip>The color of the text in the definition varies, to help you spot mistakes as you read or edit Definitions. See [[Syntax_coloring_and_fonts_and_error_underlining|Syntax coloring]] in the User Guide.</tip> | ||
'''''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''. | '''''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''. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.8 6.0.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Double-click the ''Down payment'' input.|v=140|pt=115,205|path=b!|n=+}} | ||
+ | }} | ||
The [[Object window]] now displays the [[attributes]] of ''Down payment''. | The [[Object window]] now displays the [[attributes]] of ''Down payment''. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.9 6.0.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Click the close button to close the window and return to the diagram.|v=72|pt=660,34|path=r-|n=+}} | ||
+ | }} | ||
==Use the Attribute panel== | ==Use the Attribute panel== | ||
Line 109: | Line 134: | ||
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. | 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. | ||
− | {{CalloutAnnotationBlock|[[image:Chapter 2.4.png]]| | + | {{Release||6.3|{{CalloutAnnotationBlock|[[image:Chapter 2.4.png]]| |
+ | {{CalloutAnnotation| | ||
+ | Click the down arrow icon to open the '''Attribute''' panel.|v=400|pt=14,536|path=*|n=1}} | ||
+ | }}}} | ||
+ | {{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 2.4_64.png]]| | ||
{{CalloutAnnotation| | {{CalloutAnnotation| | ||
Click the down arrow icon to open the '''Attribute''' panel.|v=400|pt=14,536|path=*|n=1}} | Click the down arrow icon to open the '''Attribute''' panel.|v=400|pt=14,536|path=*|n=1}} | ||
− | }} | + | }}}} |
By default, Analytica displays the '''''description '''''of the selected node (e.g., ''Buying price'') in the [[Attribute panel]]. | By default, Analytica displays the '''''description '''''of the selected node (e.g., ''Buying price'') in the [[Attribute panel]]. | ||
− | :[[File:Chapter 2.11.png]] | + | :{{Release||6.3|[[File:Chapter 2.11.png]]}} |
+ | {{Release|6.4||[[File:Chapter 2.11_6.4.png]]}} | ||
==Inspect definitions in the Attribute panel== | ==Inspect definitions in the Attribute panel== | ||
Line 123: | Line 153: | ||
In this section, you will see the [[definition]] of two variables that you viewed in the top-level diagram in [[Tutorial: Open a model to browse|Chapter 1]]. | In this section, you will see the [[definition]] of two variables that you viewed in the top-level diagram in [[Tutorial: Open a model to browse|Chapter 1]]. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.12.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Click '''Description''' to view the Attribute popup menu.|v=70|pt=315,45|path=r-|n=1}} | ||
+ | }} | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.13.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Select '''Definition''' as the new current attribute to display.|v=244|pt=297,281|path=r-|n=+}} | ||
+ | }} | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.14.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | The definition of ''Buying price'' is displayed. It is a single number: 140K (140,000).|v=5|pt=15,38|path=*|n=+}} | ||
+ | }} | ||
− | |||
− | :[[ | + | <!--Not since 4.5 When a variable is defined as an '''''uncertainty distribution''''', a button appears in the '''Definition''' field.--> |
+ | {{CalloutAnnotationBlock|{{Release||5.3|[[image:Chapter 2.15.png]]}}{{Release|5.4||[[image:Chapter 2.15 6.0.png]]}}| | ||
+ | {{CalloutAnnotation| Select the ''Rate of inflation'' node. | ||
+ | |||
+ | |||
+ | The definition in this example is a normal distribution; hence, the '''Normal''' function is shown.|v=15|pt=66,119|path=r-|n=+}} | ||
+ | }} | ||
In [[Tutorial: Open a model to browse|Chapter 1]] you saw that ''Rate of inflation'' is defined as a [[normal]] distribution with a [[mean]] of 3.5 and a [[Sdeviation|standard deviation]] of 1.3. | In [[Tutorial: Open a model to browse|Chapter 1]] you saw that ''Rate of inflation'' is defined as a [[normal]] distribution with a [[mean]] of 3.5 and a [[Sdeviation|standard deviation]] of 1.3. | ||
Line 140: | Line 184: | ||
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. | 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. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.16.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Double-click the ''Cost to Buy'' node to open the module.|v=112|pt=271,235|path=*|n=1}} | ||
+ | }} | ||
Analytica displays the influence diagram of the ''Cost to Buy'' [[Modules and Libraries|module]]. This module contains three additional modules: ''Out-of-pocket costs to own, Future sales proceeds,'' and ''Opportunity cost''. | Analytica displays the influence diagram of the ''Cost to Buy'' [[Modules and Libraries|module]]. This module contains three additional modules: ''Out-of-pocket costs to own, Future sales proceeds,'' and ''Opportunity cost''. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.17.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Output arrowhead⠀|Type=Bare|v=78|pt=630,217|path=r-}} | ||
+ | {{CalloutAnnotation| | ||
+ | Input arrowhead⠀|Type=Bare|v=140|pt=25,234|path=b!}} | ||
+ | }} | ||
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 '''''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. | ||
Line 150: | Line 202: | ||
The '''''output arrowhead''''' shows that the node to the left of the arrow has one or more outputs outside this module. | The '''''output arrowhead''''' shows that the node to the left of the arrow has one or more outputs outside this module. | ||
− | + | {{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0_ActiveDiagram.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Click the '''Diagram''' button to return to the parent diagram, ''Model.'' |v=0|pt=5,35|path=*|n=+}} | ||
+ | }} | ||
+ | |||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.19.png]]| | |
+ | {{CalloutAnnotation| Double-click the ''Cost to Rent'' node to open the module. | ||
+ | |||
+ | |||
+ | The ''Cost to Rent'' diagram opens (see the figure below). |v=0|pt=272,450|path=b!|n=+}} | ||
+ | }} | ||
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. | 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. | ||
− | :[[ | + | {{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0_ActiveDiagram.png]]| |
+ | {{CalloutAnnotation| | ||
+ | Click the '''Diagram''' button to return to the parent diagram, ''Model.'' |v=0|pt=5,35|path=*|n=+}} | ||
+ | }} | ||
+ | |||
+ | {{CalloutAnnotationBlock|[[image:Chapter 2.20.png]]| | ||
+ | {{CalloutAnnotation| | ||
+ | Combined arrowhead⠀|Type=Bare|v=100|pt=472,160|path=r-}} | ||
+ | }} | ||
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. | 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. | ||
Line 162: | Line 231: | ||
You can also navigate the model by tracking a variable’s [[User input nodes and user output nodes|inputs or outputs]]. | You can also navigate the model by tracking a variable’s [[User input nodes and user output nodes|inputs or outputs]]. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.22.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Select the ''Buying price'' node.|v=108|pt=58,138|path=r-|n=+}} | ||
+ | {{CalloutAnnotation| | ||
+ | Select '''Outputs''' from the Attribute popup menu to view a list of variables that depend on the ''Buying price'' variable.|v=180|pt=270,379|path=*|n=+}} | ||
+ | {{CalloutAnnotation| | ||
+ | Double-click ''Insurance.''|v=330|pt=13,430|path=*|n=+}} | ||
+ | }} | ||
The Out-of-pocket costs to own module diagram is brought to the front, with the Insurance node selected. | The Out-of-pocket costs to own module diagram is brought to the front, with the Insurance node selected. | ||
Line 169: | Line 245: | ||
[[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. | [[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. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.24.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Hover the mouse over the node and wait for about 1 second.|v=45|pt=339,115|path=r-|n=+}} | ||
+ | }} | ||
− | :[[ | + | {{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0_ActiveDiagram.png]]| |
+ | {{CalloutAnnotation| | ||
+ | Click the '''Diagram''' button to view the ''Cost to buy'' diagram.|v=0|pt=5,30|path=*|n=+}} | ||
+ | }} | ||
+ | |||
+ | ==Using Pop-up node controls== | ||
+ | |||
+ | Pop-up node controls appear around a node, when you move the mouse cursor over a node and wait half a second, or when you click a node. Click on a pop-up control to open the Object Window, Result window, or Expression view for this Variable, or to open the Diagram for a Module node. See the User guide for a complete explanation [[Pop-up_node_controls]]. | ||
+ | |||
+ | {{CalloutAnnotationBlock|[[image:Chapter 2.24-2.png]]| | ||
+ | {{CalloutAnnotation| | ||
+ | When you Hover the mouse over a node Popup node controls appear - usually before the help balloon (if present).|n=10|v=5|pt=250,137|path=r-}}{{CalloutAnnotation| | ||
+ | When you Hover the mouse over the node Popup node controls appear - usually before the help balloon (if present).|n=10|v=5|pt=275,137|path=r-}}{{CalloutAnnotation| | ||
+ | When you Hover the mouse over the node Popup node controls appear - usually before the help balloon (if present).|n=10|v=5|pt=300,137|path=r-}} | ||
+ | }} | ||
==Inspect values in the Attribute panel== | ==Inspect values in the Attribute panel== | ||
The [[Attribute panel]] allows you to view certain attributes, such as a variable’s '''''value''''', that are not (initially) displayed in an [[Object window]]. | The [[Attribute panel]] allows you to view certain attributes, such as a variable’s '''''value''''', that are not (initially) displayed in an [[Object window]]. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.25.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Select the ''Present value of buying'' node.|v=60|pt=339,103|path=r-|n=1}} | ||
+ | {{CalloutAnnotation| | ||
+ | Click the key icon to open the '''Attribute''' panel.|v=155|pt=18,516|path=r-|n=+}} | ||
+ | {{CalloutAnnotation| | ||
+ | Press the Attribute popup menu and select '''Value'''.|v=275|pt=311,668|path=b!|n=+}} | ||
+ | }} | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.26.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | The deterministic (or mid) value of ''Present value of buying displays'', in this case, -67.2K.|v=10}} | ||
+ | }} | ||
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. | 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. | ||
Line 189: | Line 292: | ||
When you are viewing a model’s [[Diagram window|influence diagram]], you can evaluate any variable and display its value in a [[Result window]]. | When you are viewing a model’s [[Diagram window|influence diagram]], you can evaluate any variable and display its value in a [[Result window]]. | ||
− | :[[ | + | {{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0_ActiveResult.png]]| |
+ | {{CalloutAnnotation| | ||
+ | With ''Present value of buying'' still selected, click the '''Result''' button to evaluate it.|v=30|pt=215,50|path=r-|n=1}} | ||
+ | }} | ||
+ | |||
+ | {{CalloutAnnotationBlock|[[image:Chapter 2.27.png]]|}} | ||
+ | |||
A [[Result window]] displays the [[Probability density and mass graphs|probability density function graph]] for this variable. Analytica displays the [[Uncertainty view of a result|uncertainty view]] that was most recently selected from the [[Uncertainty views|Uncertainty View]] popup menu, or that was saved with the model. | A [[Result window]] displays the [[Probability density and mass graphs|probability density function graph]] for this variable. Analytica displays the [[Uncertainty view of a result|uncertainty view]] that was most recently selected from the [[Uncertainty views|Uncertainty View]] popup menu, or that was saved with the model. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.29-updated.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Click the close button to close the '''Result''' window.|v=150|pt=673,37|path=*|n=+}} | ||
+ | }} | ||
<tip>The ''Rent vs. Buy ''model uses financial flow conventions: funds flowing in (received) have positive values; funds flowing out (expended) have negative values.</tip> | <tip>The ''Rent vs. Buy ''model uses financial flow conventions: funds flowing in (received) have positive values; funds flowing out (expended) have negative values.</tip> | ||
Line 199: | Line 311: | ||
As an alternative to clicking the '''Result''' button [[File:Chapter 2.29.1.png]] and then selecting an uncertainty view, you can use the [[Result menu]] to evaluate a variable and select the [[Uncertainty view of a result|uncertainty view of the result]]. | As an alternative to clicking the '''Result''' button [[File:Chapter 2.29.1.png]] and then selecting an uncertainty view, you can use the [[Result menu]] to evaluate a variable and select the [[Uncertainty view of a result|uncertainty view of the result]]. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.30.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | With ''Present value of buying'' still selected, select the '''Result''' menu. The check mark next to '''Probability Density''' indicates that the '''Probability Density''' was last displayed. Select '''Cumulative Probability'''.|v=5|pt=36,255|path=b!|n=+}} | ||
+ | }} | ||
The [[Result window]] appears displaying the variable’s [[Distribution_Densities_Library#Cumulative_Probability_Functions|cumulative probability distribution]]. | The [[Result window]] appears displaying the variable’s [[Distribution_Densities_Library#Cumulative_Probability_Functions|cumulative probability distribution]]. | ||
− | + | {{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0_ActiveDiagram.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Click the '''Diagram''' button to display the ''Cost to buy'' diagram. |v=40|pt=39,50|path=r-|n=+}} | ||
+ | }} | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.33.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Select ''Moving costs'' and then click the '''Result''' button to evaluate. |v=40|pt=215,47|path=r-|n=+}} | ||
+ | {{CalloutAnnotation| | ||
+ | Select ''Moving costs'' and then click the '''Result''' button to evaluate. |v=40|pt=534,533|path=r-|n=5}} | ||
+ | }} | ||
A single [[mid]] value appears in table view. | A single [[mid]] value appears in table view. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.34.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Uncertainty View Popup Menu⠀|Type=Bare|v=38|pt=14,59|path=r-}} | ||
+ | }} | ||
The [[mid]] value in [[Table view of a result|table view]] is the only result view available for a nonprobabilistic variable with a single value. | The [[mid]] value in [[Table view of a result|table view]] is the only result view available for a nonprobabilistic variable with a single value. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.35.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Select '''Probability Mass''' from the Uncertainty View popup menu.|v=5|pt=34,172|path=b!|n=+}} | ||
+ | }} | ||
Analytica tells you that this is a nonprobabilistic value. | Analytica tells you that this is a nonprobabilistic value. | ||
− | + | {{CalloutAnnotationBlock|[[image:Chapter 2.36.png]]| | |
+ | {{CalloutAnnotation| | ||
+ | Click the '''OK''' button.|v=5|pt=485,196|path=b!|n=+}} | ||
+ | }} | ||
==Summary== | ==Summary== | ||
Line 225: | Line 357: | ||
You can quit Analytica at this point. | You can quit Analytica at this point. | ||
+ | |||
+ | <br> | ||
+ | ==Tutorial Video - With An Old Version of Analytica == | ||
+ | <center> | ||
+ | <iframe width="640" height="360" src="https://www.youtube.com/embed/mpF4xcmKaao" frameborder="0" allowfullscreen></iframe> | ||
+ | |||
+ | '''Tutorial Video:''' [https://youtu.be/mpF4xcmKaao Review/explore a model] (8 minutes) | ||
+ | </center> | ||
+ | |||
+ | <br> | ||
==See Also== | ==See Also== |
Latest revision as of 17:59, 24 April 2024
Release: |
4.6 • 5.0 • 5.1 • 5.2 • 5.3 • 5.4 • 6.0 • 6.1 • 6.2 • 6.3 • 6.4 • 6.5 |
---|
This tutorial shows you how to explore a model by examining the Rent vs. Buy model's:
- Influence diagrams
- Variables
- Attributes
- Definitions
- Results
NOTE: 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.
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
You have opened the Object window of a variable (Buying price) by double-clicking its node in the influence diagram.
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.
The definition of the Mortgage loan amount is an expression, the sum of Buying price and Down payment (which is a negative amount). The definition refers to these variables by their identifiers.
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.
The Object window now displays the attributes of 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 Attribute panel allows you to rapidly examine one attribute at a time of any variable in the model. You select the variable you wish to view and select the attribute to examine from a popup menu.
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.
In this section, you will see the definition of two variables that you viewed in the top-level diagram in Chapter 1.
In Chapter 1 you saw that Rate of inflation is defined as a normal distribution with a mean of 3.5 and a standard deviation of 1.3.
Open modules
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.
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.
Using Pop-up node controls
Pop-up node controls appear around a node, when you move the mouse cursor over a node and wait half a second, or when you click a node. Click on a pop-up control to open the Object Window, Result window, or Expression view for this Variable, or to open the Diagram for a Module node. See the User guide for a complete explanation Pop-up_node_controls.
Inspect values in the Attribute panel
The Attribute panel allows you to view certain attributes, such as a variable’s value, that are not (initially) displayed in an Object window.
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.
Display results
When you are viewing a model’s influence diagram, you can evaluate any variable and display its value in a Result window.
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.
As an alternative to clicking the Result button and then selecting an uncertainty view, you can use the Result menu to evaluate a variable and select the uncertainty view of the result.
The Result window appears displaying the variable’s cumulative probability distribution.
A single mid value appears in table view.
The mid value in table view is the only result view available for a nonprobabilistic variable with a single value.
Analytica tells you that this is a nonprobabilistic value.
Summary
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.
Tutorial Video - With An Old Version of Analytica
Tutorial Video: Review/explore a model (8 minutes)
See Also
- 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
- Attributes
- Attribute panel
- Entering Attributes using the Attribute panel
- Definitions
- Import a module or library
- User input nodes and user output nodes
- Help balloons
- Result Tables and Graphs
- Result window
- Managing windows
Enable comment auto-refresher