Difference between revisions of "Entropy"

From Bitnami MediaWiki
Jump to navigation Jump to search
Line 6: Line 6:
 
::<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
 
::<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.

Revision as of 21:43, 7 March 2021

Background

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

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.