Difference between revisions of "Entropy"

From Bitnami MediaWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
* A version of the conservation of energy applied to internal energy of a thermodynamic system
 
* A version of the conservation of energy applied to internal energy of a thermodynamic system
 
::<math>\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>\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>\text{d}S = \dfrac{\delta Q}{T} \qquad </math> where <math>\delta Q</math> is the incremental reversible heat transfer into the system at uniform temperature T
 
;Second Law
 
;Second Law
 +
 +
===Information theory===
 +
Entropy of a random variable with pmf <math>p(x)</math>
 +
:: <math>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>I(X; Y) = H(X) - H(X|Y) = \displaystyle\sum p(x,y)\log \dfrac{p(x,y)}{p(x)p(y)}</math>

Latest revision as of 21:48, 7 March 2021

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]