Skip to Content

Log-Loss

Definition

The Log-Loss LLB(E)\mathrm{LL}_B(E) reflects the number of bits required to encode an nn-dimensional piece of evidence (or observation) EE given the current Bayesian network BB. As a shorthand for “the number of bits required to encode,” we use the term “cost” in the sense that “more bits required” means computationally “more expensive.”

LLB(E)=−log⁡2(PB(E))\mathrm{LL}_B(E) = - \log_2\big(P_B(E)\big)

where PB(E)P_B(E) is the joint probability of the evidence EE computed by the network BB:

PB(E)=PB(e1,…,en)P_B(E) = P_B(e_1, \ldots, e_n)

In other words, the lower the probability of EE given the network BB, the higher the Log-Loss LLB(E)\mathrm{LL}_B(E).

Loading SVG...

Note that EE refers to a single nn-dimensional observation.