Entering and retracting evidence

<< Click to Display Table of Contents >>

Navigation:  Using QGeNIe > Bayesian networks >

Entering and retracting evidence

Entering observations (evidence) is one of the basic operations on a probabilistic model. It amounts to adjusting the model to a new situation, one in which more information is available. It allows to query the system subsequently about the new, posterior probability distributions. If you have gone through Building a Qualitative Bayesian network, you might remember that you have already entered evidence for the Hot Weather and Climate Control in the Building nodes. Let us go through this again.

You may load the model Productivity.qdsl created in Building a Qualitative Bayesian network from the Example Networks folder.

To enter evidence into your model, right-click on the node in question (in the picture below, node Climate Control in the Building) and choose Set Evidence.

climate_evidence_false

Alternatively, select the node in question and choose Set Evidence submenu from the Node Menu.

 

node_menu_set_evidence

Yet another way of entering evidence is double-clicking on one of the small square icons (observation_icons) in the lower-right corner of a node. In the image below, we double-clicked on the icon False (observation_icon_false) in both Climate Control in the Building and Hot Weather nodes.

productivity_updated1

Finally, perhaps the simplest way of entering evidence is pressing the letter T or F (for True and False respectively) once the node has been selected.

To retract evidence, double-click on the bold icon in a node with previously entered evidence (observation_icon_false_observed) shown in the image above, press the letter C (for Clear) once the node has been selected, or right-click on the node and choose Clear evidence.

climate_evidence_clear

Alternatively, select the node in question and choose Clear evidence from the Node Menu.

node_menu

You can also retract all evidence by choosing Clear all evidence from the Network menu:

network_menu

To enter different evidence instead of retracting evidence altogether, just double click on a different state icon (observation_icons) or set different evidence from the Set Evidence sub-menu.