A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Differential Entropy

Research Depth 91 in the knowledge graph ☐ I know this ☆ Set as goal
10topics build on this
413prerequisites beneath it
See this on the map →
Continuous Random VariablesProbability Density Functions+1 more→→Fisher InformationGaussian Channel+2 more
differential entropy continuous entropy negative entropy Gaussian

Core Idea

Differential entropy h(X) = -integral f(x) log f(x) dx extends Shannon entropy to continuous random variables by replacing sums with integrals and probabilities with densities. Unlike discrete entropy, differential entropy can be negative (a narrow Gaussian has h(X) < 0). It is NOT the limit of discrete entropy as the quantization becomes finer — that limit diverges. Despite this, differences of differential entropies are well-defined and match the corresponding discrete quantities: mutual information I(X;Y) = h(X) - h(X|Y) is always non-negative and finite. Differential entropy is essential for analyzing continuous channels, Gaussian sources, and rate-distortion theory.

Explainer

Shannon entropy works perfectly for discrete random variables, but continuous variables require care. You might try directly substituting integrals for sums in the entropy formula, and indeed that gives differential entropy: h(X) = -integral f(x) log f(x) dx, where f(x) is the probability density function. This quantity is useful but has important differences from its discrete counterpart.

The most striking difference is that differential entropy can be negative. A Uniform(0, 1/2) random variable has h(X) = log2(1/2) = -1 bit. A very narrow Gaussian has large, positive density values, making -f(x) log f(x) negative over most of its support. This seems paradoxical until you realize what happened: densities can exceed 1 (unlike probabilities), so log f(x) can be positive, flipping the sign. The negativity reflects extreme concentration, not any pathology.

The deeper issue is that differential entropy is NOT the true continuous analog of discrete entropy. If you quantize X into bins of width delta, the discrete entropy is approximately h(X) + log(1/delta). As delta shrinks, the discrete entropy grows without bound — it takes infinitely many bits to specify a continuous value exactly. Differential entropy is what remains after subtracting this infinite offset. Consequently, h(X) depends on the coordinate system: scaling X by a constant a changes h(X) by log|a|, unlike discrete entropy which is invariant under permutations of the alphabet.

Despite these subtleties, differential entropy is extremely useful because differences of differential entropies are well-behaved. Mutual information I(X;Y) = h(X) - h(X|Y) is always non-negative, coordinate-invariant, and has the same operational interpretation as in the discrete case. The capacity of the Gaussian channel, C = (1/2) log(1 + P/N), is derived using differential entropy. Rate-distortion functions for continuous sources use differential entropy. The maximum-entropy property of the Gaussian (h_Gauss >= h_other for fixed variance) is proved using differential entropy. The rule of thumb: use differential entropy freely in calculations, but only trust differences of differential entropies for operational conclusions.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Shannon Entropy → Differential Entropy

Longest path: 92 steps · 413 total prerequisite topics

Prerequisites (3)

Leads To (4)