advanced · Physics · Quantum Information & von Neumann Entropy
Joint and Conditional Entropy
Real information sources rarely produce a single symbol; they produce correlated pairs (or longer
strings). To handle two random variables X and Y jointly, Shannon entropy extends naturally to
joint and conditional entropies, tied together by an elegant chain rule.
Joint entropy
Given a joint distribution p(x,y), the joint entropy treats the pair (X,Y) as a single
composite variable:
H(X,Y)=−x,y∑p(x,y)log2p(x,y).
It measures the total uncertainty about both outcomes together. If X and Y are independent,
p(x,y)=p(x)p(y) and the logarithm splits, giving H(X,Y)=H(X)+H(Y).
Conditional entropy
The conditional entropyH(Y∣X) measures the average remaining uncertainty about Y once
X is known. For a fixed value x, the uncertainty in Y is H(Y∣X=x), computed from the
conditional distribution p(y∣x). Averaging over x with weights p(x),
H(Y∣X)=x∑p(x)H(Y∣X=x)=−x,y∑p(x,y)log2p(y∣x).
Conditioning never increases uncertainty: 0≤H(Y∣X)≤H(Y). Learning X can only reduce
(or leave unchanged) what we do not know about Y.
The chain rule
Using p(x,y)=p(x)p(y∣x) and log2p(x,y)=log2p(x)+log2p(y∣x), the joint
entropy decomposes:
H(X,Y)=H(X)+H(Y∣X).
In words: the uncertainty about the pair equals the uncertainty about X plus the leftover
uncertainty about Y given X. Rearranged, H(Y∣X)=H(X,Y)−H(X) — the most convenient route
in practice, since both terms on the right come straight from the joint table.