Calculating Complexity: DL(B)
Description length of the Bayesian network — DL(B)
is the number of bits required to represent a Bayesian network. We can break down this value into the sum of two components:
, which stands for the number of bits required to represent the graph of the Bayesian network,
represents the number of bits required to represent the set of probability tables .
Calculating DL(G)
To calculate , we need to determine the number of nodes and the number of their parent nodes.
Here, is the number of nodes . For node , is its parent set in graph , and is the number of parents.
Calculating DL(P|G)
The description length of the probability tables is proportional to the number of free probabilities. The factorization specifies the parent configurations for which each node needs a row. For node with states, each row has free probabilities because all entries must sum to 1.
Within the product for a given node, is the number of states of its th parent. The product counts the possible parent configurations, with one probability-table row per configuration. When the node has no parents, the empty product is 1 and the table has one row.
BayesiaLab estimates the number of bits for each free probability using the following heuristic, where is the number of observations.
For 16 observations, each free probability costs 2 bits. A binary child needs one free probability per parent configuration. Adding a binary parent gives the child two configurations, adding 2 table bits and 1 graph bit.