The chain rule for conditional entropy gives
Indeed, for every conditioning value of positive probability, each summand is nonnegative. Its sum is zero exactly when the conditional probability mass function is concentrated at one value. Averaging over therefore proves both the inequality and its equality criterion: equality holds exactly when almost surely for some function . Conditioning values of probability zero impose no restriction. This is a statement about discrete random variables; a differential entropy need not be nonnegative.
For discrete random variables, write for the joint probability mass function and for its marginal. The conditional entropy is the average of the entropies of the conditional distributions:
Conditional distributions at zero-probability values of can be chosen arbitrarily; they contribute nothing. Here denotes Shannon entropy, with one common logarithm base and .
For , use and sum with weight . Summing out in the first term gives
For countable alphabets, the entropy contributions are nonnegative, so the equality remains valid with extended values by summing nonnegative terms. Applying this identity successively to the prefix and proves the chain rule for information entropy:
For , the conditioning tuple is empty and the term is .
For the subset inequalities, first suppose the marginal entropies are finite, so all joint entropies below are finite by the chain rule and the assumed conditioning reduces entropy property. Put , and let be the joint entropy with coordinate omitted. Apply the two-variable chain rule in the order to get
The inequality holds because the prefix conditioning set is contained in the set of all other coordinates. Summing over and using the chain rule gives
This proves Han's entropy inequality. In terms of the normalized subset entropy, and , hence for .
Apply the same result to each -element coordinate set . It gives
When this is summed over all -subsets, each fixed -subset occurs once for each possible added coordinate, namely times. Therefore
Substitute and the analogous identity at . The binomial coefficient identity cancels the common positive factor and gives
This is the monotonicity of normalized subset entropies, obtained from the local -coordinate inequality by explicit counting.
If some marginal entropy is infinite, each subset average contains at least one subset including that coordinate. The entropy of such a subset is at least that marginal entropy, by the nonnegative conditional-entropy chain rule, so every is infinite. The inequalities then hold in the extended sense. Otherwise the finite-entropy proof applies. For independent random variables the averages are all ; repeated copies of one variable instead give , illustrating the entropy reduction caused by redundancy.
Use base-two logarithms and the convention . Write and for . The conditional entropy is the average of the information entropies of these conditional laws:
The careful form of Gibbs inequality is that, for two probability mass functions on a common countable set,
where a term with gives . Equality holds exactly when . This is the nonnegativity of relative entropy.
First suppose . For every of positive probability, implies . Averaging the cross-entropies gives
All the summands here are nonnegative, so interchanging the sums is valid, and each conditional cross-entropy is finite. Applying Gibbs inequality to each shows that is at most its cross-entropy. Subtracting and averaging therefore gives
Every term on the right is nonnegative. The equality in the entropy conditioning inequality is thus equivalent to for all , which is exactly factorization of the joint probability mass function. Consequently
For arbitrary countable discrete random variables, the inequality remains valid in : the case is immediate. The finite-entropy condition is necessary for the usual equality characterization. For example, let for , with the normalizing constant, and let be an independent fair bit. The series defining the probability mass function converges, whereas its information entropy diverges like . Then and are dependent, but . In the infinite case, equality means precisely that the conditional entropy is also infinite; it does not imply independent random variables.
Write the countable supports as and the marginal masses as . Independence gives joint mass . Assuming finite expected values, absolute integrability is justified by Tonelli theorem:
Consequently Fubini's theorem permits factorization of the signed sum, proving the expectation of a product of independent random variables:
The second claim holds as a general assertion with the additional hypothesis that the positive variables are integer-valued. For a nonnegative integer-valued , the pointwise identity and Tonelli theorem give the tail-sum formula
If each is integer-valued, their product is too. Apply this identity to each factor and to the product, then use independence:
Under the literal broader meaning of a discrete random variable, the second claim is false. Two independent constants are positive and discrete, but the left side is and the right side is . More generally the integer-indexed tail sum of a positive real-valued variable is , not . This is the integer-valued hypothesis in the tail-sum formula.
A discrete random variable on a probability space is a real-valued measurable function whose probability distribution is concentrated on some finite or countable set :
Measurability means for every real . Its probability mass function is , and . Requiring a countable image everywhere, rather than outside a null set, is an equivalent convention after harmless modification on a null set.
For an integrable discrete random variable, its expectation and variance are and , respectively. The first formula requires for a finite ordinary mean; the variance may be infinite. A probability density function gives .
Conditioning on and using independence gives
The interchange is justified by Tonelli's theorem, since all integrands are nonnegative. Consequently has an absolutely continuous distribution, with
Its integral is . This is the convolution of independent random variables, specifically a Gaussian smoothing of an integer-valued distribution for the given normal density. The specified weights are normalized because .
For a discrete random variable taking nonnegative integer values, its probability generating function is
It is defined at least for . The usual probability generating function is intended for nonnegative integer-valued random variables; a general discrete real-valued random variable need not have this form. The coefficient of recovers .
Using the indicator random variable, sum over the values of the discrete random variable :
Dividing by the positive probability proves . On the product vanishes, so no additional contribution is omitted.