Skip to Content
BayesiaLabBayesiaLab User GuideMenusMonitorMean, Value, and Standard Deviations

Mean, Value, and standard deviations

For Continuous Nodes or Discrete Nodes with numerical states, a Monitor displays the following items:

Loading SVG...
  • The Expected Value vv (Value) is shown in all Monitors, regardless of the node type (categorical or numerical).
  • The Mean Value mm (Mean) and its Standard Deviation (Dev) are displayed only in the Monitors of numerical nodes.

Examples

Categorical node

Consider the discrete node Age\mathit{Age} with three categorical Node States:

  • Child\mathrm{Child}
  • Adult\mathrm{Adult}
  • Senior\mathrm{Senior}

Categorical node with assigned State Values

In the Node Editor, you can assign State Values to the Node States of Age\mathit{Age}.

Node Editor: assigning State Values to Age

For each node, the Expected Value vv is computed using the assigned State Values and the marginal probability distribution of the Node States:

v=∑s∈Sps×Vsv = \sum_{s \in S} p_s \times V_s

Where pp is the marginal probability of state ss and VsV_s is its associated value.

v=0.23×10+0.415×40+0.355×70=43.750v = 0.23 \times 10 + 0.415 \times 40 + 0.355 \times 70 = 43.750

The Monitor shows vv as the Value of Age\mathit{Age}.

The Monitor of a categorical node does not show a Mean value.

Discrete numerical variable

Suppose the node Age\mathit{Age} has three numerical Node States instead of categorical ones.

Discrete node with numerical states

No State Values specified

If State Values are not specified in the Node Editor, BayesiaLab uses the numerical values of the Node States as the State Values.

Monitor value with no State Values specified

The Mean mm is computed using the numerical values of the Node States and their marginal probabilities:

m=∑s∈Sps×csm = \sum_{s \in S} p_s \times c_s

Where csc_s is the numerical value of the Node State.

m=0.23×10+0.415×40+0.355×70=43.750m = 0.23 \times 10 + 0.415 \times 40 + 0.355 \times 70 = 43.750

In this case, Mean and Value are identical.

State Values specified

If State Values are specified in the Node Editor, they are used to calculate Value.

Monitor value with State Values specified

The Expected Value vv is calculated as:

v=∑s∈Sps×Vsv = \sum_{s \in S} p_s \times V_s

Where VsV_s is the assigned State Value.

v=0.23×0+0.415×1+0.355×2=1.125v = 0.23 \times 0 + 0.415 \times 1 + 0.355 \times 2 = 1.125

In this case, Mean and Value are not identical.

Continuous numerical variable

For a continuous variable Age\mathit{Age} defined in the domain [0,99][0, 99], discretized into three states:

  • Child\mathrm{Child}: [0,18][0, 18]
  • Adult\mathrm{Adult}: (18,65](18, 65]
  • Senior\mathrm{Senior}: (65,99](65, 99]
Continuous node Age discretized into three states

The Monitor displays Mean mm, Standard Deviation (Dev), and Expected Value vv.

Value delta

If evidence modifies the node’s distribution, the Monitor displays a delta value next to Value:

Loading SVG...

This delta is the difference between the current Expected Value and either:

  • The Expected Value before evidence was set.
  • The Expected Value computed from the Reference Probability Distribution.

Special case: some Node States without values

If only some Node States have values, the Expected Value vv is computed from the subset S∗S^* of Node States with values:

v=∑s∈S∗psP∗×Vsv = \sum_{s \in S^*} \frac{p_s}{P^*} \times V_s

Here, P∗=∑s∈S∗psP^* = \sum_{s \in S^*} p_s is the total probability of the states with assigned values.

If only one Node State has a value, the Monitor does not report vv.