Defining a variable as a distribution

Revision as of 01:16, 29 December 2015 by Karenlee (Talk | contribs) (updated see using a library link)


To define a variable as an Analytica probability distribution, first select the variable and open either the variable’s Object window or the Attribute panel of the diagram with Definition selected from the Attribute popup menu.

To define the distribution:

  1. Click the expr menu above the definition field and select Distribution.

Menu.png


  1. The Object Finder opens, showing the Distribution library.


Distribution library.png

  1. Select the distribution you wish to use.
  2. Enter the values for the parameters. You can use an expression or refer to other variables by name in the parameter fields.
  3. Click OK to accept the distribution.


If the parameters of the distribution are single numbers, a button appears with the name of the distribution, indicating that the variable is defined as a distribution. To edit the parameters, click this button.

Button.png


If the parameters of the distribution are complex expressions, the distribution displays as an expression. For example:

Normal((Price/Mpy)*Mpg, Mpg/10)

Entering a distribution as an expression

Alternatively, you can directly enter a distribution as an expression:

  1. Set the cursor in the definition field and type in the distribution name and parameters, for example - Normal(.105, 0.015)
  2. Press Alt-Enter or click the
    Checks.png
    button.

You can also paste a distribution from the Distribution library in the Definition menu (see Using a library).

You can edit a distribution as an expression, whether it was entered as a distribution from the Distribution library or as an expression, by selecting expr from the expr menu.

Expression.png


See Also

Comments


You are not allowed to post comments.