Difference between revisions of "Custom discrete probabilities"
(Created page with "Category:Analytica User Guide <breadcrumbs>Analytica User Guide > Probability Distributions > {{PAGENAME}}</breadcrumbs> __TOC__ ==See Also== <footer>The domain attri...") |
|||
Line 3: | Line 3: | ||
__TOC__ | __TOC__ | ||
+ | These functions let you specify a discrete probability distribution using a custom set of values, text (label) values, or numbers. | ||
+ | ==Probtable(): Probability Tables== | ||
+ | To describe a probability distribution on a discrete variable whose domain is a list of numbers or list of labels, you use special kind of edit table called a '''''probability table''''' (or '''probtable''') (see [[Arrays and Indexes''). | ||
+ | '''Create a probability table:''' To define a variable using a probability table: | ||
+ | # Determine the variable’s '''''domain''''' — number or labels for its possible values. | ||
+ | # Select the variable and view its definition attribute in the '''Object''' window or '''[[Attribute panel]]''' (page 20) of the '''Diagram''' window. | ||
+ | # Press the '''expr''' menu above the definition field and select '''Probability Table'''. | ||
+ | [[File:Chapter15_8.png]] | ||
+ | #: If the variable already has a definition, it confirms that you wish to replace it. | ||
+ | #: <tip title="Tip"> If the definition of a variable is already a probability table, a '''ProbTable''' button appears in the definition. Click it to open the '''Edit Table''' window (see “[[Defining a variable as an edit table]]”). | ||
+ | </Tip> | ||
+ | # The '''Indexes''' dialog opens to confirm your choices for the indexes of the table. It already includes the selected variable (<code>Self</code>) among the selected indexes. Other options are variables with a domain that is a list of numbers or list of labels. Add or remove any other variables that you want to condition this variable on. | ||
+ | [[File:Chapter15_9.png]] | ||
+ | <tip title="Tip"> | ||
+ | <code>Self</code> is required as an index of a probability table. It refers to the domain (possible values) of this variable. | ||
+ | </Tip> | ||
==See Also== | ==See Also== | ||
<footer>The domain attribute and discrete variables / {{PAGENAME}} / Parametric continuous distributions</footer> | <footer>The domain attribute and discrete variables / {{PAGENAME}} / Parametric continuous distributions</footer> |
Revision as of 02:52, 16 December 2015
These functions let you specify a discrete probability distribution using a custom set of values, text (label) values, or numbers.
Probtable(): Probability Tables
To describe a probability distribution on a discrete variable whose domain is a list of numbers or list of labels, you use special kind of edit table called a probability table (or probtable) (see [[Arrays and Indexes).
Create a probability table: To define a variable using a probability table:
- Determine the variable’s domain — number or labels for its possible values.
- Select the variable and view its definition attribute in the Object window or Attribute panel (page 20) of the Diagram window.
- Press the expr menu above the definition field and select Probability Table.
- If the variable already has a definition, it confirms that you wish to replace it.
- TipIf the definition of a variable is already a probability table, a ProbTable button appears in the definition. Click it to open the Edit Table window (see “Defining a variable as an edit table”).
- The Indexes dialog opens to confirm your choices for the indexes of the table. It already includes the selected variable (
Self
) among the selected indexes. Other options are variables with a domain that is a list of numbers or list of labels. Add or remove any other variables that you want to condition this variable on.
Tip
Self
is required as an index of a probability table. It refers to the domain (possible values) of this variable.
See Also
Comments
Enable comment auto-refresher