Calculating Fit: DL(D|B)
Each observation contributes the negative base-2 logarithm of the probability assigned to it by the Bayesian network. The description length of the dataset is the sum of these contributions, measured in bits.
Here, is the dataset, is the number of rows, is the -dimensional observation in row , and is its joint probability under network .
The fitted one-arc model assigns each outcome its observed frequency. Outcomes 00 and 11 each occur seven times. Outcomes 01 and 10 each occur once and cost 4 bits apiece. Multiplying each unrounded cost by its count and summing gives 24.70 bits.
The chain rule expresses the joint probability as a product across nodes.
Here, is the value of node in row , and is the configuration of that node’s parents in the same row.