ArticleslgStudy

mathematics

Differential entropy

Differential entropy is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Differential entropy rather than just read about it. In short: Differential entropy (also referred to as continuous entropy) in information theory is a property of absolutely continuous probability distributions which generalizes the Shannon entropy to continuous probability distributions. In terms of measure theory, the differential entropy of a probability measure is the negative relative entropy from that measure to the Lebesgue measure, where the latter is treated as if it…

Differential entropy — main illustration
Differential entropy — illustration

Key takeaways

  • Differential entropy belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Differential entropy to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Differential entropy from memory before moving on to harder problems.

Reference excerpt

Differential entropy (also referred to as continuous entropy) in information theory is a property of absolutely continuous probability distributions which generalizes the Shannon entropy to continuous probability distributions. In terms of measure theory, the differential entropy of a probability measure is the negative relative entropy from that measure to the Lebesgue measure, where the latter is treated as if it were a probability measure, despite being unnormalized.

Definition Let X be a random variable with a probability density function f whose support is a set 𝒳. The differential entropy h(X) or h(f) is defined as

For probability distributions which do not have an explicit density function expression, but have an explicit quantile function expression, Q(p), then h(Q) can be defined in terms of the derivative of Q(p) i.e. the quantile density function Q′(p) as h(Q)=∫01log⁡Q′(p)dp. As with its discrete analog, the units of differential entropy depend on the base of the logarithm, which is usually 2 (i.e., the units are bits). See logarithmic units for logarithms taken in different bases. Related concepts such as joint, conditional differential entropy, and relative entropy are defined in a similar fashion. Unlike the discrete analog, the differential entropy has an offset that depends on the units used to measure X. For example, the differential entropy of a quantity measured in millimeters will be log(1000) more than the same quantity measured in meters; a dimensionless quantity will have differential entropy of log(1000) more than the same quantity divided by 1000. One must take care in trying to apply properties of discrete entropy to differential entropy, since probability density functions can be greater than 1. For example, the uniform distribution 𝒰(0,1/2) has negative differential entropy; i.e., it is better ordered than 𝒰(0,1) as shown now ∫012−2log⁡(2)dx=−log⁡(2) being less than that of 𝒰(0,1) which has zero differential entropy. Thus, differential entropy does not share all properties of discrete entropy. The continuous mutual information I(X;Y) has the distinction of retaining its fundamental significance as a measure of discrete information since it is actually the limit of the discrete mutual information of partitions of X and Y as these partitions become finer and finer. Thus it is invariant under non-linear homeomorphisms (continuous and uniquely invertible maps), including linear transformations of X and Y, and still represents the amount of discrete information that can be transmitted over a channel that admits a continuous space of values. For the direct analogue of discrete entropy extended to the continuous space, see limiting density of discrete points.

Properties of differential entropy For probability densities f and g, the Kullback–Leibler divergence DKL(f∥g) is greater than or equal to 0 with equality only if f=g almost everywhere. Similarly, for two random variables X and Y, I(X;Y)≥0 and h(X∣Y)≤h(X) with equality if and only if X and Y are independent. The chain rule for differential entropy holds as in the discrete case h(X1,…,Xn)=∑i=1nh(Xi∣X1,…,Xi−1)≤∑i=1nh(Xi). Differential entropy is translation invariant, i.e. for a constant c. h(X+c)=h(X) Differential entropy is in general not invariant under arbitrary invertible maps.In particular, for a constant a, h(aX)=h(X)+log⁡|a|For a vector valued random variable 𝐗 and an invertible (square) matrix 𝐀 h(𝐀𝐗)=h(𝐗)+log⁡(|det⁡𝐀|) In general, for a transformation from a random vector to another random vector with same dimension 𝐘=m(𝐗), the corresponding entropies are related via h(𝐘)≤h(𝐗)+∫f(x)log⁡|∂m∂x|dx where |∂m∂x| is the Jacobian of the transformation m. The above inequality becomes an equality if the transform is a bijection. Furthermore, when m is a rigid rotation, translation, or combination thereof, the Jacobian determinant is always 1, and h(Y)=h(X). If a random vector X∈ℝn has mean zero and covariance matrix K, h(𝐗)≤12log⁡(det⁡2πeK)=12log⁡[(2πe)ndet⁡K] with equality if and only if X is jointly gaussian (see below). However, differential entropy does not have other desirable properties:

It is not invariant under change of variables, and is therefore most useful with dimensionless variables. It can be negative. A modification of differential entropy that addresses these drawbacks is the relative information entropy, also known as the Kullback–Leibler divergence, which includes an invariant measure factor (see limiting density of discrete points).

Maximization in the normal distribution

Theorem With a normal distribution, differential entropy is maximized for a given variance. A Gaussian random variable has the largest entropy amongst all random variables of equal variance, or, alternatively, the maximum entropy distribution under constraints of mean and variance is the Gaussian.

Proof Let g(x) be a Gaussian PDF with mean μ and variance σ2 and f(x) an arbitrary PDF with the same variance. Since differential entropy is translation invariant we can assume that f(x) has the same mean of μ as g(x). Consider the Kullback–Leibler divergence between the two distributions 0≤DKL(f∥g)=∫−∞∞f(x)log⁡(f(x)g(x))dx=−h(f)−∫−∞∞f(x)log⁡(g(x))dx. Now note that ∫−∞∞f(x)log⁡(g(x))dx=∫−∞∞f(x)log⁡(12πσ2e−(x−μ)22σ2)dx=∫−∞∞f(x)log⁡12πσ2dx+log⁡(e)∫−∞∞f(x)(−(x−μ)22σ2)dx=−12log⁡(2πσ2)−log⁡(e)σ22σ2=−12(log⁡(2πσ2)+log⁡(e))=−12log⁡(2πeσ2)=−h(g) because the result does not depend on f(x) other than through the variance. Combining the two results yields h(g)−h(f)≥0 with equality when f(x)=g(x) following from the properties of Kullback–Leibler divergence.

Alternative proof This result may also be demonstrated using the calculus of variations. A Lagrangian function with two Lagrangian multipliers may be defined as: L=∫−∞∞g(x)log⁡(g(x))dx−λ0(1−∫−∞∞g(x)dx)−λ(σ2−∫−∞∞g(x)(x−μ)2dx) where g(x) is some function with mean μ. When the entropy of g(x) is at a maximum and the constraint equations, which consist of the normalization condition (1=∫−∞∞g(x)dx) and the requirement of fixed variance (σ2=∫−∞∞g(x)(x−μ)2dx), are both satisfied, then a small variation δg(x) about g(x) will produce a variation δL about L which is equal to zero: 0=δL=∫−∞∞δg(x)[log⁡(g(x))+1+λ0+λ(x−μ)2]dx Since this must hold for any small δg(x), the term in brackets must be zero, and solving for g(x) yields: g(x)=e−λ0−1−λ(x−μ)2 Using the constraint equations to solve for λ0 and λ yields the normal distribution: g(x)=12πσ2e−(x−μ)22σ2

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Differential entropy

Start with the simplest possible case. Write down what Differential entropy claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Differential entropy before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Differential entropy ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Differential entropy

In research
Differential entropy appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Differential entropy in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Differential entropy is common in secondary-school and first-year university syllabi. It links to neighbouring topics Entropy and information, Information theory, Statistical randomness, so understanding it makes those chapters shorter.
In everyday life
Look for Differential entropy outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Differential entropy” →

How to study Differential entropy in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Differential entropy means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Differential entropy out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Differential entropy in simple terms?

Differential entropy (also referred to as continuous entropy) in information theory is a property of absolutely continuous probability distributions which generalizes the Shannon entropy to continuous probability distributions. In terms of measure theory, the differential entropy of a probability m…

Why does Differential entropy matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Differential entropy?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Differential entropy.

Tags

  • Entropy and information
  • Information theory
  • Statistical randomness

Keep exploring