Skip to Content

Values

State values

The Values tab in the Node Editor manages numerical values associated with a node’s states. These values allow BayesiaLab to compute an expected numerical value even when the state names are symbolic. It is not necessary to assign values to all states. States without an associated value are excluded from the calculation of the expected value.

Double-click a node in Modeling Mode to open the Node Editor, then select Values. You can also open Node Contextual Menu > Edit, then select Values in the Node Editor.

The example below uses the node Age\mathit{Age}. The state Under 18\mathrm{Under\ 18} is assigned the value 17, and the state 18\mathrm{18} is assigned the value 18.

Values tab for Age, assigning 17 to Under 18 and 18 to the state 18
Numerical values associated with the two states of Age.

Choosing numerical values

Assign values using domain knowledge. For example, if a survey is given only to 16- to 18-year-olds, a fairly uniform age distribution among those responding Under 18\mathrm{Under\ 18} could justify assigning that state a representative value of 17.

These state values are separate from the probabilities of the states. With both states at 50 percent probability in this example, the expected value is 0.5×17+0.5×18=17.50.5 \times 17 + 0.5 \times 18 = 17.5. The Monitor displays this as “Value: 17.500”.

Loading SVG...
The Monitor combines state probabilities with the assigned numerical values.

Generating values from data

If the node is continuous and has associated data, the Generate Values button lets you compute the values associated with the states from the dataset. Any weights assigned to the dataset are taken into account in this calculation.