Difference between revisions of "Tutorial: Open a model to browse"

m
 
(89 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Analytica Tutorial]]
+
[[Category:Analytica Tutorial]]
 
[[Category: Rent vs. Buy model]]
 
[[Category: Rent vs. Buy model]]
 
<breadcrumbs>Analytica Tutorial > {{PAGENAME}}</breadcrumbs>
 
<breadcrumbs>Analytica Tutorial > {{PAGENAME}}</breadcrumbs>
 
{{ReleaseBar}}
 
{{ReleaseBar}}
 +
<span style="font-size: large; font-weight: bold;">This simple tutorial shows you how to explore a small Analytica model.</span>
  
This Tutorial page shows you how to open and explore an example Analytica model: The '''Rent vs. Buy model''' compares the total cost of renting a house to the cost of buying one. 
 
  
You can start by viewing this video, or jump straight into starting up the model in Analytica.
+
<span style="font-size: large;">It will help you get a feel for how Analytica works!</span>
  
<br>
 
<center>
 
<iframe width="640" height="360" src="https://www.youtube.com/embed/GQV0dnDN0Q0" frameborder="0" allowfullscreen></iframe>
 
  
'''Video:''' [https://youtu.be/GQV0dnDN0Q0 Tutorial: Open a model to browse] (7 minutes)
+
==Open the Rent vs. Buy model==
</center>
+
Follow these steps:
<br>
 
 
 
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
 
__TOC__
 
</div>
 
  
==Open the Rent vs. Buy model==
+
# You start Analytica like any Windows application: For example, click the '''Start''' button on the Windows taskbar. Click {{Release|5.0|6.3|'''All Programs'''}}{{Release|6.4||'''All Apps'''}} &rarr; '''Analytica {{#svarget:anarelease|4.6}}''' &rarr; '''Analytica {{#svarget:anarelease|4.6}}'''. <br>{{Release||4.6|[[File:Chapter 1.1.png|300px]]}}{{Release|5.0|5.4|[[File:Launch Ana5.0 from Start Menu.png|300px]]}}{{Release|6.0|6.3|[[File:Launch Ana6.0 from Start Menu.png]]}}{{Release|6.4||[[image:Launch Ana6.4 from Start Menu.png]]}}
To begin, follow these steps.
 
# You start Analytica like any Windows application: For example, click the '''Start''' button on the Windows taskbar. Click '''All Programs''' &rarr; '''Analytica {{#svarget:anarelease|4.6}}''' &rarr; '''Analytica {{#svarget:anarelease|4.6}}'''. <br>{{Release||4.6|[[File:Chapter 1.1.png|300px]]}}{{Release|5.0||[[File:Launch Ana5.0 from Start Menu.png|300px]]}}
 
 
# After Analytica starts, {{Release||4.6|
 
# After Analytica starts, {{Release||4.6|
 
select '''File''' &rarr; '''Open''' from the menu.
 
select '''File''' &rarr; '''Open''' from the menu.
 
# <br> [[File:Chapter 1.2a.png]]
 
# <br> [[File:Chapter 1.2a.png]]
 
# Open the Rent vs. Buy model. <br> [[File:Chapter 1.2b.png]] <br> Analytica reads in the Rent vs. Buy model.
 
# Open the Rent vs. Buy model. <br> [[File:Chapter 1.2b.png]] <br> Analytica reads in the Rent vs. Buy model.
}}{{Release|5.0||
+
}}{{Release|5.0|5.4|
 
select the ''Rent vs. Buy Example'' on the [[Intro screen]].<br />
 
select the ''Rent vs. Buy Example'' on the [[Intro screen]].<br />
 
[[File:Open Buy vs Rent Example.png]]
 
[[File:Open Buy vs Rent Example.png]]
}}
+
}}{{Release|6.0|6.3|select the ''Rent vs. Buy Example'' on the [[Intro screen]].<br />
 +
{{CalloutAnnotationBlock|[[File:Open Buy vs Rent Example6.0.png]]|{{CalloutAnnotation|Click the Rent vs Buy<br />
 +
Example model|v=451|pt=34,531|path=b(*,531)}}}}}}
 +
{{Release|6.4||select the ''Rent vs. Buy Example'' on the [[Intro screen]].<br />
 +
{{CalloutAnnotationBlock|[[File:Open Buy vs Rent Example6.4.png|640px]]|{{CalloutAnnotation|Click the Rent vs Buy<br />
 +
example model|v=300|pt=38,380|path=b(*,380)}}}}}}
  
 
==The Diagram window==
 
==The Diagram window==
When you open a model, Analytica first displays a top-level [[Diagram window]]. The ''Rent vs. Buy'' model diagram shows several input variables that affect the trade-offs between renting and buying, '''Normal''' buttons, a '''Calc''' button, and a node labeled Model.
+
When you open a model, Analytica first displays a top-level [[Diagram window]]. A diagram is a graphical user interface that displays user inputs and outputs, influence diagrams, pictures, and other visual elements and controls, and is designed by the author of the model. The ''Rent vs. Buy'' model diagram shows several input variables that affect the trade-offs between renting and buying, '''Normal''' distribution buttons, a '''Calc''' button, and a node labeled Model.
  
{{CalloutAnnotationBlock|[[image:Chapter 1.3.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.3.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Normal buttons|Type=Bare|v=130|pt=215,129|path=r-}}
+
Normal distrib. button|v=110|pt=215,129|path=r-}}
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
User input buttons |Type=Bare|v=170|pt=518,175|path=r-}}
+
User input |v=170|pt=215,175|path=r-}}
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Model node|Type=Bare|v=200|pt=246,210|path=r-}}
+
Model node|v=230|pt=276,230|path=r-}}
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Calc button to see results|Type=Bare|v=268|pt=412,262|path=r-}}
+
Calc button to see results|v=268|pt=412,262|path=r-}}
}}
+
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.3v2.png]]|
 
+
{{CalloutAnnotation|
 +
User input |v=125|pt=331,130|path=r-}}
 +
{{CalloutAnnotation|
 +
Normal distrib. button|v=290|pt=331,295|path=r-}}
 +
{{CalloutAnnotation|
 +
Calc button to see results|v=430|pt=331,447|path=r-}}
 +
{{CalloutAnnotation|
 +
Model node|v=500|pt=200,515|path=r-}}
 +
}}}}
 
This top-level diagram is an end-user interface to the model itself, which is contained in the Model node. In this chapter, you use only the interface in this top level diagram; in the following chapters you will explore the model in more depth.
 
This top-level diagram is an end-user interface to the model itself, which is contained in the Model node. In this chapter, you use only the interface in this top level diagram; in the following chapters you will explore the model in more depth.
  
Line 53: Line 56:
 
{{Release|5.0||
 
{{Release|5.0||
 
{{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0.png]]|
 
{{CalloutAnnotationBlock|[[image:BrowseToolOnToolbar5.0.png]]|
{{CalloutAnnotation|The browse tool|Type=Bare|v=10|pt=267,33|path=bD20-}}}}
+
{{CalloutAnnotation|The browse tool|v=0|pt=267,33|path=bD10-}}}}
 
}}
 
}}
  
When you first open the ''Rent vs. Buy'' model, the '''browse tool''' is highlighted on the palette. With the browse tool selected, the cursor looks like a hand [[File:Chapter 1.5.png]] when it is over the diagram. The browse tool allows you to calculate the model, change input values, and examine — but not change — the structure of the model. In this chapter, you only use the browse tool.
+
When you first open the ''Rent vs. Buy'' model, the '''browse tool''' is highlighted on the palette. With the browse tool selected, the cursor looks like a hand [[File:Chapter 1.5.png|32px]] when it is over the diagram. The browse tool allows you to calculate the model, change input values, and examine — but not change — the structure of the model. <!-- [DP - need the edit mode for some of this page ] In this chapter, you only use the browse tool.-->
  
 
==Access Help Resources==
 
==Access Help Resources==
  
At any time, you can press the ''F1'' key on the keyboard or use the '''Help'''  menu to access Analytica’s help resources online. This menu includes links to  this [[Analytica Tutorial|Tutorial], the [[Analytica User Guide|User Guide]] and much more tips and reference material on this [[Analytica Wiki]].   
+
At any time, you can press the ''F1'' key on the keyboard or use the '''Help'''  menu to access Analytica’s help resources online. This menu includes links to  this [[Analytica Tutorial|Tutorial]], the [[Analytica User Guide|User Guide]] and much more tips and reference material on this [[Analytica Docs]].   
  
 
==Compute output values==
 
==Compute output values==
Line 66: Line 69:
 
In the ''Rent vs. Buy'' model, the output value of interest is at the bottom, ''Present value of buying and renting''.
 
In the ''Rent vs. Buy'' model, the output value of interest is at the bottom, ''Present value of buying and renting''.
  
{{CalloutAnnotationBlock|[[image:Chapter 1.3.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.3.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
 
Click the '''Calc''' button to compare the present value of buying and renting.|v=200|pt=413,265|path=bD20-|n=1}}
 
Click the '''Calc''' button to compare the present value of buying and renting.|v=200|pt=413,265|path=bD20-|n=1}}
}}
+
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.3v2.png]]|
 +
{{CalloutAnnotation|
 +
Click the '''Calc''' button to compare the present value of buying and renting.|v=350|pt=331,447|path=bD20-|n=1}}
 +
}}}}
  
 
The output value displays in a [[Result window]]. This '''Result''' window shows a graph of two '''''probability density''''' curves, one for buying and one for renting. In a probability density graph, the units of the vertical scale are chosen so that the total area under each curve is 1 (100%). 25μ corresponds to 25 x 10-6 or 0.000025.
 
The output value displays in a [[Result window]]. This '''Result''' window shows a graph of two '''''probability density''''' curves, one for buying and one for renting. In a probability density graph, the units of the vertical scale are chosen so that the total area under each curve is 1 (100%). 25μ corresponds to 25 x 10-6 or 0.000025.
Line 75: Line 81:
 
<tip>Numerical suffixes like μ and K are used extensively throughout Analytica. A quick reference for these suffixes is given in [[Number formats]] .</tip>
 
<tip>Numerical suffixes like μ and K are used extensively throughout Analytica. A quick reference for these suffixes is given in [[Number formats]] .</tip>
  
:[[File:Chapter 1.7.png]]
+
:{{Release|4.6|6.3|[[File:Chapter 1.7.png]]}}{{Release|6.4||[[File:Chapter 1.7v2.png]]}}
  
 
Since the graph is of probability densities, both buying and renting have probabilistic, or uncertain, inputs. The probability density graph for each appear to be bell-shaped curves ([[normal]] distribution), although they appear a bit “noisy.”
 
Since the graph is of probability densities, both buying and renting have probabilistic, or uncertain, inputs. The probability density graph for each appear to be bell-shaped curves ([[normal]] distribution), although they appear a bit “noisy.”
Line 81: Line 87:
 
The graphs show that the cost of renting, given the model’s inputs, are between about $105,000 and $155,000 (the negative numbers mean cost — cash flowing out), while the cost of buying is between $115,000 and a gain of $75,000.
 
The graphs show that the cost of renting, given the model’s inputs, are between about $105,000 and $155,000 (the negative numbers mean cost — cash flowing out), while the cost of buying is between $115,000 and a gain of $75,000.
  
{{CalloutAnnotationBlock|[[image:Chapter 1.8.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.8.png]]|
 +
{{CalloutAnnotation|
 +
Click the '''Diagram''' window to bring it to the front.|v=40|pt=30,140|path=b!|n=+}}
 +
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.8v2.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the '''Diagram''' window to bring it to the front.|v=20|pt=60,220|path=b!|n=+}}
+
Click the '''Diagram''' window to bring it to the front.|v=40|pt=30,140|path=b!|n=+}}
}}
+
}}}}
  
 
'''''Note''': Your results can vary slightly, since the model is generating random inputs based on a normal distribution for the uncertainty of the rate of inflation and for the appreciation rate.''
 
'''''Note''': Your results can vary slightly, since the model is generating random inputs based on a normal distribution for the uncertainty of the rate of inflation and for the appreciation rate.''
Line 90: Line 99:
 
Click the model [[Diagram window]] to bring it to the front. Notice that the button next to ''Costs of buying and renting'' has changed to '''Result'''. The '''Result''' button indicates that the value has been computed; clicking the '''Result''' button re-displays the computed values.
 
Click the model [[Diagram window]] to bring it to the front. Notice that the button next to ''Costs of buying and renting'' has changed to '''Result'''. The '''Result''' button indicates that the value has been computed; clicking the '''Result''' button re-displays the computed values.
  
{{CalloutAnnotationBlock|[[image:Chapter 1.9.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.9.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
The '''Calc''' button has changed to '''Result'''.|Type=Bare|v=220|pt=413,265|path=bD20-}}
+
The '''Calc''' button has changed to '''Result'''.|v=220|pt=413,265|path=bD15-}}
}}
+
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.9v2.png]]|
 +
{{CalloutAnnotation|
 +
The '''Calc''' button has changed to '''Result'''.|v=400|pt=331,447|path=bD20-}}
 +
}}}}
  
==Change input values and recompute results==
+
==Examine definition types in user input nodes==
  
Now you will change some input values to the model and recompute the rent vs. buy comparison. You will change the values of ''Time horizon'', ''Monthly rent'', and ''Buying price''.
+
When you enter a value into a user input, you need to enter a value that is compatible with it's definition type. See more here...[[The_Expression_popup_menu|Expression popup menu]].
  
{{CalloutAnnotationBlock|[[image:Chapter 1.9.png]]|
+
Click the  '''Time horizon''' node.<br/>
 +
Press ''F4'' to bring up the object window.<br/>
 +
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[File:Chapter1 8a.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the box next to ''Time horizon''. Change the value to '''''7''''' and press ''Alt+Enter''.|v=50|pt=220,64|path=tU20-|n=1}}
+
Click the Variable ''Time horizon'', then press F4.|v=53|pt=44,90|n=1}}
}}
+
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[File:Chapter1 8av2.png]]|
 
+
{{CalloutAnnotation|
<tip>The main Enter key and the numeric keypad Enter key are not interchangeable. They have different functions in Analytica. Alt+Enter is equivalent to the numeric keypad Enter key.</tip>
+
Click the Variable ''Time horizon'', then press F4.|v=89|pt=47,125|n=1}}
 +
}}}}
  
As soon as you change an input, the '''Result''' button changes to a '''Calc''' button, indicating that ''Present value of buying and renting'' needs to be recomputed.
+
Press ''F9'' to enter edit mode (otherwise the expression popup menu is disabled).
  
{{CalloutAnnotationBlock|[[image:Chapter 1.10.png]]|
+
Click on the Expression popup menu (here it has a numeric icon, since this input is restricted to numbers only). <br/>
 +
Note that Number only is selected. If you attempt enter text into the input node you will get a warning.<br/>
 +
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[File:Chapter1 8b.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the box next to ''Monthly rent''. Change the value to '''''1400''''' and press ''Alt+Enter''.|v=170|pt=220,171|path=r-|n=+}}
+
Click on the Expression popup menu - Note that Number only is selected. |v=150|pt=280,263|path=rR10!|n=2}}
}}
+
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[File:Chapter1 8bv2.png]]|
 
 
{{CalloutAnnotationBlock|[[image:Chapter 1.11.png]]|
 
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the box next to ''Buying price''. Change the value to '''''180K''''' (or 180000) and press ''Alt+Enter''.|v=130|pt=510,65|path=tU100-|n=+}}
+
Click on the Expression popup menu - Note that Number only is selected. |v=180|pt=220,293|path=rR10!|n=2}}
}}
+
}}}}
  
Now you are ready to recompute to see the new results.  
+
Press ''F8'' to go back to Browse mode.
  
{{CalloutAnnotationBlock|[[image:Chapter 1.12.png]]|
+
Close the object window - click the object window icon at the top left of the object window and select '''Close''' from the popup menu. <br/>
 +
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[File:Chapter1 8c.png]]|
 +
{{CalloutAnnotation|
 +
Click on the Object window icon. |v=130|pt=212,156|n=3}}
 +
{{CalloutAnnotation|
 +
Select ''Close''. |v=317|pt=231,335|n=4}}
 +
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[File:Chapter1 8cv2.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the '''Calc''' button to compute the comparison of the costs of buying to renting.|v=140|pt=413,265|path=bD20-|n=+}}
+
Click on the Object window icon. |v=145|pt=110,171|n=3}}
}}
 
 
 
The graphs show that the cost of renting, given these changed inputs, is between $90,000 and $120,000, while the cost of buying is between $135,000 and a gain of $70,000.
 
 
 
{{CalloutAnnotationBlock|[[image:Chapter 1.13.png]]|
 
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the '''Diagram''' window to bring it to the front.|v=140|pt=127,386|path=b!|n=+}}
+
Select ''Close''. |v=298|pt=110,315|n=4}}
}}
+
}}}}
  
==Examine and change an uncertain input==
+
==Change input values and recompute results==
When an input is defined as a probability distribution, a button with the name of the distribution appears next to the input’s name. Clicking this button opens the [[Object Finder dialog|Object Finder]] window, in which you can see details and change the distribution’s parameters or type of distribution.
 
  
''Rate of inflation''’s button says '''Normal''', indicating that it is defined as a normal distribution.
+
Now you will change some input values to the model and recompute the rent vs. buy comparison. You will change the values of ''Time horizon'', ''Monthly rent'', and ''Buying price''.
  
{{CalloutAnnotationBlock|[[image:Chapter 1.12.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.9.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the '''Normal''' button next to the ''Rate of inflation''.|v=90|pt=218,134|path=bD20-|n=1}}
+
Click the box next to ''Time horizon''. Change the value to '''''7''''' and press ''Alt+Enter''.|v=50|pt=220,64|path=tU20-|n=1}}
}}
+
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.9v2.png]]|
 +
{{CalloutAnnotation|
 +
Click the box next to ''Time horizon''. Change the value to '''''7''''' and press ''Alt+Enter''.|v=127|pt=331,130|path=tU20-|n=1}}
 +
}}}}
  
The [[Object Finder dialog|Object Finder]] window appears. It shows that ''Rate of inflation'' is defined as a normal distribution with a '''''mean''''' of 3.5 and a '''''standard deviation''''' of 1.3.
+
<tip>The main Enter key and the numeric keypad Enter key are not interchangeable. They have different functions in Analytica. Alt+Enter is equivalent to the numeric keypad Enter key.</tip>
  
You will now modify the probability distribution that defines ''Rate of inflation''. Rather than using the normal distribution, you will use the uniform distribution, and assume that inflation has an equal probability of being anywhere between 3% and 4% per year.
+
As soon as you change an input, the '''Result''' button changes to a '''Calc''' button, indicating that ''Present value of buying and renting'' needs to be recomputed.
  
{{CalloutAnnotationBlock|[[image:Chapter 1.15.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.10.png]]|
 +
{{CalloutAnnotation|
 +
Click the box next to ''Monthly rent''. Change the value to '''''1400''''' and press ''Alt+Enter''.|v=170|pt=220,174|path=r-|n=+}}
 +
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.10v2.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Scroll down the list of distributions and select '''Uniform'''|v=80|pt=0,200|path=b!|n=+}}
+
Click the box next to ''Monthly rent''. Change the value to '''''1400''''' and press ''Alt+Enter''.|v=127|pt=331,160|path=r-|n=+}}
}}
+
}}}}
  
{{CalloutAnnotationBlock|[[image:Chapter 1.16.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.11.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Change the minimum to '''''3'''''.|v=205|pt=222,248|path=r-|n=+}}
+
Click the box next to ''Buying price''. Change the value to '''''180K''''' (or 180000) and press ''Alt+Enter''.|v=130|pt=510,65|path=tU100-|n=+}}
 +
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.11v2.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Change the maximum to '''''4'''''.|v=290|pt=330,268|path=tU10/|n=+}}
+
Click the box next to ''Buying price''. Change the value to '''''180K''''' (or 180000) and press ''Alt+Enter''.|v=150|pt=331,197|path=r-|n=+}}
 +
}}}}
 +
 
 +
Now you are ready to recompute to see the new results.
 +
 
 +
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.12.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click '''OK''' to accept the change.|v=480|pt=537,481|path=r-|n=+}}
+
Click the '''Calc''' button to compute the comparison of the costs of buying to renting.|v=140|pt=413,265|path=bD20-|n=+}}
}}
+
}}}}
 
+
<!--Don't know what this is
{{CalloutAnnotationBlock|[[image:Chapter 1.17.png]]|
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.12v2.png]]|
 
{{CalloutAnnotation|
 
{{CalloutAnnotation|
Click the '''Calc''' button to compute the new comparison of the present value of buying to renting.|v=140|pt=413,265|path=bD20-|n=+}}
+
Click the '''Calc''' button to compute the comparison of the costs of buying to renting.|v=430|pt=331,447|path=r-|n=+}}
}}
+
}}}}-->
  
:[[File:Chapter 1.18.png]]
+
The graphs show that the cost of renting, given these changed inputs, is between $90,000 and $120,000, while the cost of buying is between $135,000 and a gain of $70,000.
  
The graphs show that the uncertainty in the cost of renting has narrowed to between about $105,000 and $109,000, while the uncertainty in the cost of buying has flattened to between about $125,000 and a gain of $10,000.
+
{{Release|4.6|6.3|{{CalloutAnnotationBlock|[[image:Chapter 1.13.png]]|
 +
{{CalloutAnnotation|
 +
Click the '''Diagram''' window to bring it to the front.|v=80|pt=43,232|path=b!|n=+}}
 +
}}}}{{Release|6.4||{{CalloutAnnotationBlock|[[image:Chapter 1.13v2.png]]|
 +
{{CalloutAnnotation|
 +
Click the '''Diagram''' window to bring it to the front.|v=40|pt=30,140|path=b!|n=+}}
 +
}}}}
  
==Display alternative uncertainty views==
+
==Save your model==
 
+
If you want to save changes to your model, you can do so at this point. (For instructions on quitting without saving, see the next section).
Analytica offers a variety of views to display uncertain values, including selected statistics, [[Statistical_Functions_and_Importance_Weighting#ProbBands|probability bands]], the [[Uncertainty_Setup_dialog#Probability_density_option|probability density]] function, the [[Uncertainty_Setup_dialog#Cumulative_probability_option|cumulative probability]] distribution function, measures of central tendency, and the table of random numbers from which the uncertain distribution is estimated.
 
 
 
You will now examine several of these views.
 
 
 
In the upper-left corner of the [[Result window]] is the [[Uncertainty view of a result|Uncertainty View]] popup menu.
 
 
 
:[[File:Chapter 1.19.png]]
 
 
 
The miniature probability distribution [[File:Chapter 1.20.png]] indicates that '''''Probability Density''''' is selected.
 
 
 
:[[File:Chapter 1.21.png]]
 
 
 
The [[Result window]] now shows two cumulative probability curves. Along the vertical axis, these curves give the probability that each cost is less than a given value along the horizontal axis.
 
 
 
:[[File:Chapter 1.22.png]]
 
 
 
There appears to be about a 50% probability that the cost to buy is below $70,000, while the cost to rent has a 50% probability of being below about $110,000.
 
 
 
Sometimes you might want to see an uncertain value expressed as a single number — a measure of central tendency. Analytica computes the [[mid]] value (sometimes called the '''''deterministic value''''') by fixing all input probability distributions at their [[median]] (50% probability) values. The mid value is the only uncertainty view available for nonprobabilistic results.
 
 
 
:[[File:Chapter 1.23.png]]
 
 
 
The [[Result window]] now displays bar graphs for the two mid values.
 
 
 
Under the [[Uncertainty view of a result|Uncertainty View]] popup menu are two buttons, [[File:Chapter 1.23.2.png]] and [[File:Chapter 1.23.3.png]]. The [[File:Chapter 1.23.3.png]] is highlighted, indicating that the '''Result''' window is displaying a [[Graph view of a result|graph view]]. The '''Result''' window can also display numeric values in a spreadsheet-like table view.
 
 
 
:[[File:Chapter 1.24.png]]
 
 
 
Analytica also provides the [[mean]] (or average) value.
 
 
 
:[[File:Chapter 1.25.png]]
 
 
 
:[[File:Chapter 1.25.2.png]]
 
 
 
You can also view a set of [[statistics]], including both the [[median]] and [[mean]], the ranges ([[Functions Min and Max|minimum and maximum]]), and the [[Sdeviation|standard deviation]].
 
 
 
:[[File:Chapter 1.26.png]]
 
 
 
The [[Result window]] now displays the minimum, median<ref>Note that the median value is slightly different from the mid value. The mid value is composed of non- probabilistic results generated by using the median value for each input. The median value is calculated using probabilistic inputs and taking the median of the resulting distribution.</ref>, mean, maximum, and standard deviation for ''Costs of buying and renting''.
 
 
 
:[[File:Chapter 1.27.png]]
 
  
The statistics might not be exact, because they are estimated from a sample of values from the distribution.
+
Since the Analytica folder in Program files is not writable by default to a non admin user, you have to be  running Analytica as an admin to be able to save over the original model file.
 
 
Finally, you see the [[sample]] values.
 
 
 
:[[File:Chapter 1.28.png]]
 
 
 
The table above lists the 100 sample values that Analytica randomly generated from the probability distribution to estimate the [[statistics]].
 
 
 
A [[SampleSize|sample size]] of 100 is adequate for most applications; however, if you need more precise estimates, you can increase the [[SampleSize|sample size]]. See [[Uncertainty Setup dialog]] in the [[Analytica User Guide]].
 
 
 
:[[File:Chapter 1.29.png]]
 
 
 
==Save your model== 
 
If you want to save changes to your model, you can do so at this point. (For instructions on quitting without saving, see the next section.
 
  
:[[File:Chapter 1.30.png]]
+
{{CalloutAnnotationBlock|[[image:Chapter 1.30.png]]|{{CalloutAnnotation|
 +
Click '''Save''' from the File menu.|v=220|pt=30,180}}}}
  
 
If you wish to save your model as a different file, so that you do not change the original model, select '''Save As''' from the [[File menu]].
 
If you wish to save your model as a different file, so that you do not change the original model, select '''Save As''' from the [[File menu]].
Line 235: Line 215:
 
When you have finished using a model, you might want to quit Analytica.
 
When you have finished using a model, you might want to quit Analytica.
  
:[[File:Chapter 1.33.png]]
+
{{CalloutAnnotationBlock|[[image:Chapter 1.33.png]]|{{CalloutAnnotation|
 +
Click '''Exit''' from the File menu.|v=370|pt=20,540}}}}
  
 
== Summary ==
 
== Summary ==
Line 264: Line 245:
 
* [[Uncertainty Setup dialog]]
 
* [[Uncertainty Setup dialog]]
 
* [[Uncertainty view of a result]]
 
* [[Uncertainty view of a result]]
 +
* [https://youtu.be/d7NzEARJzIg User interfaces (UI) basics] video tutorial
 
</div>
 
</div>
  
  
<footer>About Analytica/ {{PAGENAME}} / Tutorial: Reviewing a model</footer>
+
<footer>Analytica Tutorial/ {{PAGENAME}} / Tutorial: Reviewing a model</footer>

Latest revision as of 05:26, 13 February 2025



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 simple tutorial shows you how to explore a small Analytica model.


It will help you get a feel for how Analytica works!


Open the Rent vs. Buy model

Follow these steps:

  1. You start Analytica like any Windows application: For example, click the Start button on the Windows taskbar. Click All AppsAnalytica 6.5Analytica 6.5.
    Launch Ana6.4 from Start Menu.png
  2. After Analytica starts,

select the Rent vs. Buy Example on the Intro screen.


Open Buy vs Rent Example6.4.png


Click the Rent vs Buy
example model

The Diagram window

When you open a model, Analytica first displays a top-level Diagram window. A diagram is a graphical user interface that displays user inputs and outputs, influence diagrams, pictures, and other visual elements and controls, and is designed by the author of the model. The Rent vs. Buy model diagram shows several input variables that affect the trade-offs between renting and buying, Normal distribution buttons, a Calc button, and a node labeled Model.

Chapter 1.3v2.png


User input


Normal distrib. button


Calc button to see results


Model node

This top-level diagram is an end-user interface to the model itself, which is contained in the Model node. In this chapter, you use only the interface in this top level diagram; in the following chapters you will explore the model in more depth.

Across the top of the screen is a horizontal palette of buttons. This is called the tools palette.

BrowseToolOnToolbar5.0.png


The browse tool

When you first open the Rent vs. Buy model, the browse tool is highlighted on the palette. With the browse tool selected, the cursor looks like a hand Chapter 1.5.png when it is over the diagram. The browse tool allows you to calculate the model, change input values, and examine — but not change — the structure of the model.

Access Help Resources

At any time, you can press the F1 key on the keyboard or use the Help menu to access Analytica’s help resources online. This menu includes links to this Tutorial, the User Guide and much more tips and reference material on this Analytica Docs.

Compute output values

In the Rent vs. Buy model, the output value of interest is at the bottom, Present value of buying and renting.

Chapter 1.3v2.png


1.  Click the Calc button to compare the present value of buying and renting.

The output value displays in a Result window. This Result window shows a graph of two probability density curves, one for buying and one for renting. In a probability density graph, the units of the vertical scale are chosen so that the total area under each curve is 1 (100%). 25μ corresponds to 25 x 10-6 or 0.000025.

Tip
Numerical suffixes like μ and K are used extensively throughout Analytica. A quick reference for these suffixes is given in Number formats .
Chapter 1.7v2.png

Since the graph is of probability densities, both buying and renting have probabilistic, or uncertain, inputs. The probability density graph for each appear to be bell-shaped curves (normal distribution), although they appear a bit “noisy.”

The graphs show that the cost of renting, given the model’s inputs, are between about $105,000 and $155,000 (the negative numbers mean cost — cash flowing out), while the cost of buying is between $115,000 and a gain of $75,000.

Chapter 1.8v2.png


2.  Click the Diagram window to bring it to the front.

Note: Your results can vary slightly, since the model is generating random inputs based on a normal distribution for the uncertainty of the rate of inflation and for the appreciation rate.

Click the model Diagram window to bring it to the front. Notice that the button next to Costs of buying and renting has changed to Result. The Result button indicates that the value has been computed; clicking the Result button re-displays the computed values.

Chapter 1.9v2.png


The Calc button has changed to Result.

Examine definition types in user input nodes

When you enter a value into a user input, you need to enter a value that is compatible with it's definition type. See more here...Expression popup menu.

Click the Time horizon node.
Press F4 to bring up the object window.

Chapter1 8av2.png


1.  Click the Variable Time horizon, then press F4.

Press F9 to enter edit mode (otherwise the expression popup menu is disabled).

Click on the Expression popup menu (here it has a numeric icon, since this input is restricted to numbers only).
Note that Number only is selected. If you attempt enter text into the input node you will get a warning.

Chapter1 8bv2.png


2.  Click on the Expression popup menu - Note that Number only is selected.

Press F8 to go back to Browse mode.

Close the object window - click the object window icon at the top left of the object window and select Close from the popup menu.

Chapter1 8cv2.png


3.  Click on the Object window icon.


4.  Select Close.

Change input values and recompute results

Now you will change some input values to the model and recompute the rent vs. buy comparison. You will change the values of Time horizon, Monthly rent, and Buying price.

Chapter 1.9v2.png


1.  Click the box next to Time horizon. Change the value to 7 and press Alt+Enter.
Tip
The main Enter key and the numeric keypad Enter key are not interchangeable. They have different functions in Analytica. Alt+Enter is equivalent to the numeric keypad Enter key.

As soon as you change an input, the Result button changes to a Calc button, indicating that Present value of buying and renting needs to be recomputed.

Chapter 1.10v2.png


2.  Click the box next to Monthly rent. Change the value to 1400 and press Alt+Enter.
Chapter 1.11v2.png


3.  Click the box next to Buying price. Change the value to 180K (or 180000) and press Alt+Enter.

Now you are ready to recompute to see the new results.


The graphs show that the cost of renting, given these changed inputs, is between $90,000 and $120,000, while the cost of buying is between $135,000 and a gain of $70,000.

Chapter 1.13v2.png


4.  Click the Diagram window to bring it to the front.

Save your model

If you want to save changes to your model, you can do so at this point. (For instructions on quitting without saving, see the next section).

Since the Analytica folder in Program files is not writable by default to a non admin user, you have to be running Analytica as an admin to be able to save over the original model file.


Chapter 1.30.png


Click Save from the File menu.

If you wish to save your model as a different file, so that you do not change the original model, select Save As from the File menu.

Quit Analytica

When you have finished using a model, you might want to quit Analytica.


Chapter 1.33.png


Click Exit from the File menu.

Summary

You have now opened an Analytica model, calculated and viewed the results, changes input values and probability distributions, and displayed the uncertain results in several ways. These are the basic techniques for using any quantitative model.

After you create your own models, you might want to give them a top-level input and output diagram like the one used in this chapter. For information about customizing a model for end users, see Creating Interfaces for End Users in the Analytica User Guide.

The next Tutorial page, shows how to navigate the details of the Rent vs. Buy model, exploring its structure and contents.

Notes


See Also


Comments


You are not allowed to post comments.