Supervised Learning: Structural Coefficient Analysis
Up to this point, the differences in model structure and the corresponding performance were a result of the learning algorithm, i.e., Markov Blanket vs. Augmented Markov Blanket.
Now we explore how different levels of network complexity could potentially improve the Augmented Markov Blanket model. In other words, could a more complex network provide better performance without risking over-fitting?
Structural Coefficient
To modify a network’s complexity, we now introduce the Structural Coefficient .
Throughout this chapter, we abbreviate “Structural Coefficient ” with “SC.”
This parameter allows changing the internal number of observations and, thus, determines a kind of “significance threshold” for network learning. Consequently, it influences the degree of complexity of the induced networks. The internal number of observations is defined as:
where is the number of samples in the dataset.
By default, SC is set to 1, which provides the default balance between fit and complexity; it does not guarantee that a model will avoid overfitting. However, in studies with relatively few observations, the analyst’s judgment is needed regarding whether a downward adjustment of this parameter can be justified. Reducing SC means increasing , which is like increasing the number of observations in the dataset via resampling.
On the other hand, increasing SC beyond 1 means reducing , which can help manage the complexity of networks learned from large datasets. Conceptually, reducing is equivalent to sampling the dataset.
Structural Coefficient Analysis
We now perform a Structural Coefficient Analysis on the basis of the Augmented Markov Blanket, which generates several metrics that help to trade off between complexity and fit: Menus > Tools > Multi-Run > Structural Coefficient Analysis.
Note that we use the original Learning/Test Set split again, which allows us to directly compare the in-sample and out-of-sample predictive performance as a function of varying SC levels.
BayesiaLab prompts us to specify the range of SC values to be examined and the number of iterations to be performed. It is worth noting that the minimum SC value should not be set to 0, or even close to 0, without careful consideration.
An SC value of 0 would create a fully connected network, which can take a very long time to learn, depending on the number of variables, or even exceed the memory capacity of the computer running BayesiaLab. Technically, implies an infinite dataset, which results in all relationships between nodes becoming significant.
Setting Number of Iterations determines the interval steps to be taken within the specified range of the Structural Coefficient. We choose 10 iterations over an SC range between 0.1 and 1, which gives us increments of 0.1. With more complex models and more data, we might be more conservative and start with a narrower range, e.g., 0.5 to 1.
Clicking OK opens up a report that shows the range of changes due to modifying the Structural Coefficient.
We only show a portion of the report here and omit a discussion of its elements. For a thorough explanation of this report, please see Structural Coefficient Analysis.
Instead, we focus on the Curve function, which can be activated by clicking on the corresponding button at the bottom of the report. This tool can plot the metrics that we specified earlier in the settings as we started the Structural Coefficient Analysis.
Our objective is to determine the correct level of network complexity for reliably high predictive performance while avoiding the over-fitting of the data. By clicking Curve, we can plot several different metrics for this purpose.
Structure/Target Precision Ratio
Selecting Structure/Target Precision Ratio provides a helpful measure for making trade-offs between predictive performance versus network complexity.
This plot can be best interpreted when following the curve from right to left. Moving to the left along the x-axis lowers the Structural Coefficient, which, in turn, results in a more complex Structure.
It becomes problematic when the Structure value increases faster than the Precision value, i.e. we increase complexity without improving Precision.
The ratio curves for learning and test samples are close in this run. They summarize the relationship between the structure measure and target precision across the selected coefficient range. Their shape alone does not establish an optimal coefficient.
Next, select the Target Precision curves for Learning Samples and Test Samples. The vertical axis is Normalized Value, not raw classification accuracy. The test curve fluctuates across the sweep; it does not reproduce the older example’s claimed divergence below . Use an explicit evaluation to compare candidate models.
Augmented Markov Blanket (SC=0.5)
We use as a candidate for further evaluation and to illustrate the inference workflow. This choice is not a claim that the sweep identifies it as the best-performing model.
Save a new working copy of the model with its original 456/113 split, then select Menus > Edit > Edit Structural Coefficient.
The SC value can then be set with a slider or by typing in a numerical value.
The Structural Coefficient icon now indicates that we are employing an SC value other than the default of 1.
The Structural Coefficient icon features an unbalanced scale. This symbolizes that we departed from the balanced weighting of fit and complexity. Instead, we have “put our thumb on the scale” to pursue a better fit of our model while accepting a higher complexity.
After returning to the Modeling Mode F4 we relearn the network using the same Augmented Markov Blanket algorithm as before.
This run produces 12 arcs and eight connected nodes. The figure shows the connected subnetwork; the other 23 measurements remain unconnected. Preserve this trained model before making a separate cross-validation copy.
The key question is, will this increase in complexity deliver a performance advantage over the previously learned models?
Performance Analysis
Repeat ten-fold cross-validation with AMB at , using the same seed and settings as before. During this run, BayesiaLab presents five uniform-or-incompatible posterior prompts. For each prompt, explicitly choose with Random Choice and Remember My Choice off. The reported result includes these choices; the prompts do not identify which underlying cause occurred.
| Value | Benign (357) | Malignant (212) |
|---|---|---|
| Benign (359) | 95.8% | 8.0% |
| Malignant (210) | 4.2% | 92.0% |
The result has 94.4% overall accuracy: 342 correct and 195 correct predictions. Its 17 false negatives give a rate of 8.0%. It therefore does not improve on AMB at in this run.
| Model | Cross‑validation accuracy | False negatives / 212 | False‑negative rate |
|---|---|---|---|
| Markov Blanket, SC=1 | 94.7% | 17 | 8.0% |
| Augmented Markov Blanket, SC=1 | 95.1% | 15 | 7.1% |
| Augmented Markov Blanket, SC=0.5 | 94.4% | 17 | 8.0% |
The five posterior ties were resolved as described above. Comparing these results does not establish clinical usefulness. Also, MDL scores obtained at different structural coefficients reflect different objectives and should not be compared as though the scoring rule were unchanged.
We retain the original-split trained model for the following inference demonstrations. More complexity is useful here for illustrating the workflow, even though it did not produce better cross-validation accuracy.