Skip to Content

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 α\alpha multiplies the structural complexity term DL(B)\mathrm{DL}(B). 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 1/α1/\alpha. 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.

Structural Coefficient window showing the default value of 1 beside the slider.

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 DL(B)\mathrm{DL}(B) (=“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 DL(B)\mathrm{DL}(B).
    • Small values of DL(B)\mathrm{DL}(B) 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.
  • DL(D∣B)\mathrm{DL}(D \mid B) is the description length of data DD given network BB, 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 DL(D∣B)\mathrm{DL}(D \mid B) 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 α=0\alpha = 0 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 α\alpha, which can help in understanding its role in learning a Bayesian network.

For α>0\alpha > 0, dividing the entire score by α\alpha preserves the ranking of candidate networks and scales the fit term by 1/α1/\alpha. This has the same effect on the score as weighting each of the NN observations by 1/α1/\alpha, giving them a total weight of N′N':

N′=NαN' = \frac{N}{\alpha}

At α=0\alpha = 0, the MDL Score consists only of the fit term DL(D∣B)\mathrm{DL}(D \mid B). Removing the penalty for structural complexity can favor a fully connected network, subject to the constraints of the search.

At the other extreme, an α\alpha value of 150 would massively favor the simplest possible network structures as the new equivalent number of observations N′N' would only be 1/150th of NN.

It is perhaps more intuitive to consider the new number of observations N′N' as weighted counts of the actual observations NN. For instance, α=0.5\alpha = 0.5 is equivalent to counting all observations twice.

Practical Relevance

From a practical perspective, the Structural Coefficient α\alpha can be considered a kind of “significance” threshold for structural learning.

  • The higher you set the α\alpha value, the higher the threshold for discovering probabilistic relationships. Conversely, the lower you set the α\alpha value, the lower the discovery threshold, and weaker probabilistic relationships would still be found and represented by an arc.
  • Reducing α\alpha can be helpful if you have a small dataset from which you want to learn a model. Perhaps at the default value, α=1\alpha = 1, 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.