Inference: Automatic Evidence-Setting
Context
- Early in this chapter, we used the Augmented Markov Blanket algorithm to machine-learn a predictive model for classifying cell samples.
- Subsequently, we examined model complexity with the Structural Coefficient Analysis workflow.
- For the following demonstrations, we use the model trained on the original 456 learning records. On a separate inference copy, we remove the split to make all 569 records available for browsing, without re-estimating the CPTs. The 23 unconnected measurements are hidden in the presentation copy.
- In this and the next two sections of this chapter, we look at different ways of performing inference:
- Automatic-Evidence Setting
- Adaptive Questionnaire
- Target Interpretation Tree
Validation Mode
For all types of inference with a Bayesian network model, we need to switch to Validation Mode F5.
Before proceeding to Automatic Evidence-Setting, we bring up all the Monitors connected to the Target Node in the Monitor Panel.
Since we have a Target Node, we can right-click inside the Monitor Panel to select Sort > Target Correlation from the Monitor Panel Contextual Menu.
Alternatively, we can do the same via Menus > Monitor > Sort > Target Correlation.
The Monitor of the Target Node is placed first in the Monitor Panel, followed by the other Monitors according to their “correlation” with the Target Node, from highest to lowest.
Note that we use “correlation” not literally in this context. Rather, the sort order of the Monitors is determined by Mutual Information.
Automatic Evidence Setting (Interactive Inference)
Given that we have a predictive model in place, we can use BayesiaLab to review its individual predictions record by record.
This feature is called Automatic Evidence-Setting, which can be accessed here: Menus > Inference > Automatic Evidence-Setting.
In earlier releases of BayesiaLab, this function was called Interactive Inference.
As an extension of the Menus, a Navigation Bar and its record selectors allow us to scroll through all records in the dataset.
Record #0
The first record in the dataset is displayed in the screenshot below as record #0.
Additionally, the Row Identifier, 842302, is displayed in the Status Bar to the right of the Progress Bar at the bottom of the Graph Window.
The Monitors display the values of the variables in that record, i.e., the set of evidence or observations.
Given these observations, the model predicts a 100.00% probability that is (the Monitor of the Target Node features a green background).
With such a high probability, the prediction is the rational prediction.
As it turns out, it is indeed the correct prediction for record #0 (Row Identifier 842302). The actual value recorded in the dataset is represented by a light blue bar, meaning was the ground truth in this case.
This is an individual inference example, not a new out-of-sample evaluation: the browsable data include records used to train the model. The target is withheld from the evidence; the light-blue marker shows the recorded value for comparison.
Record #138
Enter “138” in the record field and press Return. Verify Row Identifier “868826” in the status bar. With the current full-feature model, this record also produces a displayed probability of 100.00%, matching its recorded diagnosis. It is no longer the misclassified example shown in the older edition.
After browsing, stop automatic evidence-setting and clear the observations. The baseline probability is 37.72%, based on the 456 training records; Joint Probability returns to 100%.
Workflow Animation
The following legacy animation uses an earlier model. Its numerical values and interface differ from the updated screenshots above.