Entropy is a quantity that measures “disorder”. In thermodynamics it is introduced as the “exchange rate” between energy and disorder: ΔE=TΔS\Delta E = T\Delta S (Borghi, Entropioni, 2019). Claude Shannon in the 1940s discovered that the same formula describes the average information transmitted by a probabilistic source (Shannon, 1948).

Definition — Shannon entropy

Let XX be a discrete random variable with values x1,,xnx_1,\ldots,x_n and probabilities p1,,pnp_1,\ldots,p_n (with pi=1\sum p_i=1). The entropy of XX is H(X)=i=1npilog2pi,H(X) = -\sum_{i=1}^{n} p_i \log_2 p_i, measured in bits. Convention: 0log0=00\cdot\log 0 = 0 (limit of plogpp\log p as p0+p\to 0^+). Changing the base of the logarithm changes the unit: base ee gives nats, base 1010 gives hartleys.

Topics: Distribuzioni probabilita
Concepts: Entropia · Variabile aleatoria
Skills: Modellizzare
People: Shannon