Example 2
Example 2a: Fully observed particle
For this example, we use a simple network consisting of the Parent Node and the Child Node , which have a probabilistic relationship. For Parameter Updating, we will add a fully observed particle, i.e., a particle that contains a value for both and . For a compact presentation, we show both nodes in Monitor Style, which means that, in Validation Mode, the distribution of the states is directly shown on the node.
To start Parameter Updating, select Menus > Inference > Parameter Updating. Choose Manual Evidence. If the dialog offers a node selection, select All Nodes. Set Initialize Prior Weights to to 100 and Initialize Discounts to to 1.
Choosing an overall Prior Weight of 100 specifies a Prior Weight of 100 for , and spreads this weight to , i.e., the Prior Weights are allocated based on the joint probability of each condition. We can review the Prior Weights of each node by opening the Node Editor.
In the Node Editor, Prior Weights can also be edited. Alternatively, you can assign Prior Weights by selecting Node Contextual Menu > Properties > Prior Weights. In that case, the Prior Weight is distributed uniformly across all conditions. In the Node Editor, you can also edit Discounts. You can also assign Discounts for a node by selecting Node Contextual Menu > Properties > Discounts. In this context, the same Discounts are applied to all conditions.
Adding particles
We now take this network and perform Parameter Updating by adding particles one-by-one. The toolbar initially shows zero learned particles.
Particle #1
For the first particle, we set the evidence that is and is .
Click Learn Evidence once. The counter advances to 1 and Validate Updating becomes available.
Click Validate Updating and confirm. Switch to Modeling Mode and open the Node Editor for each node. Tabular shows the updated probabilities, and Updating shows the corresponding prior weights and discounts.
Note that for the node, only the condition was updated. The probabilities and the Prior Weight for remain unchanged. Below is the result of the update after mixing our virtual particles with a particle corresponding to a male that did not take the treatment.
Example 2b: Partially observed particle
In the following variation of the above example, we return to the original set of probabilities and a Prior Weight of 100.
Observe for and leave unobserved. The model assigns posterior probabilities of 75% to and 25% to .
Upon validating this incomplete particle, we can review the probability tables in the Node Editor:
As we can see, even though we do not know the state of the node , knowing that is changed the distribution of . The new particle contributes 0.75 to the row and 0.25 to the row. Note that the distribution of the node has been updated as well:
Example 2c: Partially observed particle with Soft Evidence
Start again with the original probabilities and a prior weight of 100. In this variation, we apply a partial observation with Soft Evidence. For example, we just see a pill box next to the person, which increases our belief that he/she has taken the treatment, say 75%.
The posterior probability of becomes 62.5%, and that of becomes 37.5%. The new particle will thus be split to take into account the uncertainty on both and .
Below is the result of the update after mixing our virtual particles with this particle. The entire table of has been updated.
Setting the Prior Weight to 0 allows indicating that you do not want to update the corresponding node.
Obviously, you need to have at least one node that has a Prior Weight greater than 0 for being able to use the Parameter Updating feature.