Structural Coefficient
Right-click the Graph Panel background and choose Edit Structural Coefficient to adjust the complexity penalty for the entire network.
Context
During structure learning, BayesiaLab uses the Minimum Description Length (MDL) score to weigh network complexity against fit to the data. The Structural Coefficient multiplies the structural complexity term . Its default value is 1. The two description lengths then have equal weight. In Bayesian terms, minimizing this score approximates choosing the most probable network given the data, with the complexity penalty acting as a prior that favors simpler structures.
A value below 1 reduces the penalty for additional arcs, so learning can retain weaker relationships. A value above 1 increases the penalty and tends to favor simpler networks. For a positive coefficient, this has the same effect on the ranking of candidate networks as weighting each observation by . At 0, the score depends only on fit. To change the penalty for individual nodes, use Edit Local Structural Coefficients.
Usage
In the Structural Coefficient window, choose a value from 0 to 150. Drag the slider, use the up or down button to change the value in steps of 0.05, or type the value directly. The ETF network below shows the default setting of 1.

Workflow illustration
The Analyzing Capital Flows of Exchange-Traded Funds webinar illustrates how changing the coefficient affects the learned network structure.
Background and Motivation
BayesiaLab utilizes proprietary score-based learning algorithms. As opposed to the constraint-based algorithms that use independence tests for adding or removing arcs between nodes, BayesiaLab employs the Minimum Description Length Score (MDL Score) to measure the quality of candidate networks with respect to the available data.
The Minimum Description Length Score (MDL Score) is derived from Information Theory and has been used extensively in the Artificial Intelligence community.
It consists of the sum of two components that estimate:
- the minimum number of bits required to represent a model, and
- the minimum number of bits required to represent the data given the model.
However, in the specific context of Bayesian networks, we need to explain the exact meaning and the notation of these two components:
- “the minimum number of bits required to represent a model” is denoted (=“Description Length of the Bayesian network B”) and refers to the structural complexity of the Bayesian network model B, which includes the network graph and all probability tables.
- For brevity, we often use the shorthand “complexity” or “structure” to refer to .
- Small values of suggest a simple model structure, large values a complex model.
- The goal of this structural part is to apply Occam’s Razor, or the law of parsimony, i.e., to choose the simplest hypothesis all other things being equal.
- is the description length of data given network , measured in bits. Each observation contributes the negative base-2 logarithm of the probability the network assigns to that observation. Adding those contributions gives the fit term.
- Small values of suggest a well-fitting model; large values, conversely, imply a poor fit.
BayesiaLab attempts to minimize the MDL Score as it evaluates candidate networks during structural learning.
Learn More About Calculating Complexity and Fit
Note that the extreme case of can lead to a fully-connected network, as the structural complexity is entirely discounted.
Alternative Interpretation
There is another way to interpret the Structural Coefficient , which can help in understanding its role in learning a Bayesian network.
For , dividing the entire score by preserves the ranking of candidate networks and scales the fit term by . This has the same effect on the score as weighting each of the observations by , giving them a total weight of :
At , the MDL Score consists only of the fit term . Removing the penalty for structural complexity can favor a fully connected network, subject to the constraints of the search.
At the other extreme, an value of 150 would massively favor the simplest possible network structures as the new equivalent number of observations would only be 1/150th of .
It is perhaps more intuitive to consider the new number of observations as weighted counts of the actual observations . For instance, is equivalent to counting all observations twice.
Practical Relevance
From a practical perspective, the Structural Coefficient can be considered a kind of “significance” threshold for structural learning.
- The higher you set the value, the higher the threshold for discovering probabilistic relationships. Conversely, the lower you set the value, the lower the discovery threshold, and weaker probabilistic relationships would still be found and represented by an arc.
- Reducing can be helpful if you have a small dataset from which you want to learn a model. Perhaps at the default value, , the learning algorithm would not find any arcs.
- However, choosing too low a value might result in “overfitting,” i.e., learning “insignificant” relationships or discovering patterns in what turns out to be mere noise.
- BayesiaLab can help reduce the risk of overfitting with the Structural Coefficient Analysis feature.