Entropy
Jump to navigation
Jump to search
Background[edit]
Before the cool kids in information theory, bayesian statistics and machine learning were talking about it, it was a physics thing, a consequence of the 1st and 2nd laws of thermodynamics:
- First Law
- A version of the conservation of energy applied to internal energy of a thermodynamic system
- [math]\displaystyle{ \Delta E = Q + W \qquad }[/math] where Q is the energy absorbed by the system and W is the work done on the system
- [math]\displaystyle{ \text{d}S = \dfrac{\delta Q}{T} \qquad }[/math] where [math]\displaystyle{ \delta Q }[/math] is the incremental reversible heat transfer into the system at uniform temperature T
- Second Law
Information theory[edit]
Entropy of a random variable with pmf [math]\displaystyle{ p(x) }[/math]
- [math]\displaystyle{ H(X) = -\displaystyle\sum_x p(x)\log_2 p(x) }[/math]
It is a measure of the average uncertainty of an rv, specifically the average number of bits to describe the rv. E.g., an rv that takes on 32 outcomes has an entropy of 5 bits.
Mutual information is the reduction in uncertainty due to another rv:
- [math]\displaystyle{ I(X; Y) = H(X) - H(X|Y) = \displaystyle\sum p(x,y)\log \dfrac{p(x,y)}{p(x)p(y)} }[/math]