Skip to Content

Cost Icon

The Cost icon appears in the Status Bar when any node has a cost other than the default of 1.

The Cost icon is the stack of coins immediately to the right of the selection counter.

Click the icon to open the Cost Editor.

Context

In BayesiaLab, each node is associated with a Cost. This Cost represents the “expenditure” or “effort” required to observe a node, i.e., set evidence on the node.

In some cases, a node’s Cost can be set to the monetary cost of acquiring an observation, e.g., a payment of $50 for performing and processing a Coronavirus test.

In other contexts, Cost may be expressed in relative terms, e.g., for a nurse, it may require three times as much effort to measure a patient’s blood pressure compared to measuring their heart rate. So, the node Blood Pressure\mathit{Blood\ Pressure} would have a Cost of 3, while the node Heart Rate\mathit{Heart\ Rate} would have a Cost of 1.

While the scale of Cost is arbitrary, the scale is the same for all nodes in a Bayesian network. So, once you start assigning a Cost to one node, e.g., $50 to the Coronavirus\mathit{Coronavirus} node, the Cost of Blood Pressure\mathit{Blood\ Pressure} and Heart Rate\mathit{Heart\ Rate} must be expressed in dollar terms as well.

By default, unless modified, all nodes are set to a Cost of 1.

Not observable nodes

A Cost of 0 has special significance in BayesiaLab. It means the node is “not observable,” so its state or value cannot be established through direct observation. As a result, a not-observable node is never included in the prioritized list of “questions to ask” by the Adaptive Questionnaire.

Motivation

The Cost of a node becomes important in the context of collecting evidence for determining the state of a Target Node.

With a given Bayesian network, BayesiaLab can determine how much information gain a node would provide upon observation. However, prioritizing which observations to gather requires taking Cost into account.

For instance, observing a node at a low cost with the expectation of a modest information gain may be preferable to collecting a highly informative observation at a very high cost. A practical example in the medical context would be prioritizing a $100, traditional X-Ray over a $1,000 high-tech MRI scan.

BayesiaLab formalizes this trade-off between cost and information gain in the Adaptive Questionnaire. The Adaptive Questionnaire sorts the Monitors of nodes in an optimal order with respect to the “pertinence” of the potential observations these nodes represent. We use the term “pertinence” as a shorthand for “information gain in consideration of cost given the current state of knowledge.”

Usage

The Cost Editor lists all nodes in the network.

Cost Editor for managing node costs

Click the cost beside a node and enter the new value. The default cost is 1. Enter 0 to mark a node as not observable and exclude it from the questionnaire.

To set a cost for a selection of nodes, use Contextual Menu > Node > Properties > Cost. In the Adaptive Questionnaire, the Edit Observation Costs button opens the editor while you are working through the questionnaire.

Example & workflow animation

The animation shows how to edit node Costs and export them as a Dictionary.