Skip to Content

Deviance

Context

  • The Deviance measure is based on the difference between the Entropy of the to-be-evaluated network BB and the Entropy of the complete (i.e., fully connected) network CC.
  • The closer the Deviance value is to 0, the better the network BB represents the dataset.

Definition

Deviance is formally defined as:

DB=2⋅N⋅ln⁡(2)⋅(HB(D)−HC(D))D_B = 2 \cdot N \cdot \ln(2) \cdot \left( H_B(\mathcal{D}) - H_C(\mathcal{D}) \right)

where

  • HB(D)H_B(\mathcal{D}) is the Entropy of the dataset given the to-be-evaluated network BB.
  • HC(D)H_C(\mathcal{D}) is the Entropy of the dataset given the complete (i.e., fully connected) network CC. In the complete network, all nodes are directly connected to all other nodes. Therefore, the complete network CC is an exact representation of the chain rule. As such, it does not utilize any conditional independence assumptions for representing the Joint Probability Distribution.
  • NN is the size of the dataset.
Loading SVG...

For the 32,759 El Paso records, multiplying the displayed entropy difference by twice the record count and ln(2) gives approximately 27,734. BayesiaLab uses full precision and reports 27,735.5787.