A type summarizes a string by how often each symbol occurs. Fix a finite alphabet of cardinality and a positive length . For a string , its empirical distribution is the probability mass functionThe empirical distribution forgets order. The strings and both assign probability to each binary symbol; assigns to zero and to one. Thus a long string can have a short summary even though that summary does not reconstruct the original order.
For independent and identically distributed symbols, this loss of order has a useful consequence: all strings with the same empirical distribution have the same probability. The method of types uses this symmetry to turn questions about exponentially many strings into counting questions about relatively few frequency profiles.[ref]
The Method of Types by Imre Csiszár. §I, printed p. 2505: partition by empirical distribution and equiprobability under a memoryless model
The type class contains all length- strings with empirical distribution . Each must be a nonnegative integer and the counts must sum to ; otherwise the class is empty. Distinct type classes partition : every string belongs to exactly one class.
For four binary symbols there are five type classes, indexed by the number of ones. Their cardinalities are , which sum to . The balanced class contains exactly . These are six different strings, not six different empirical distributions.
Sixteen binary strings form five type classes
. An exact enumeration of all four-symbol strings. Each column fixes the number of ones; the central column has six orderings of the same empirical distribution. Details.Write . Arranging copies of each symbol gives the multinomial coefficientThe division by the factorials removes permutations among identical copies. In the balanced four-symbol example, . For binary symbols this becomes the binomial coefficient ; for three symbols with counts , the class contains strings.
If a decoder already knows the length, alphabet and empirical distribution, it only needs to distinguish possible strings. A fixed-length index therefore needs bits. List the six balanced four-symbol strings in increasing lexicographic order and number them through . A three-bit index identifies any one of them, whereas writing the original binary string directly takes four bits.
Knowing the empirical distribution is essential to that calculation. If it must also be sent, a simple fixed-length description of which of the five classes was used costs another bits. That naive balanced-string message totals six bits and is longer than the raw four-bit string. The example demonstrates the benefit of shared constraints, rather than a free lossless source coding scheme for every input. For long strings over a fixed alphabet, the overhead for identifying a class grows only logarithmically with length, while the information entropy of its frequency profile controls the leading cost within the class.
The method of types combines two facts: there are few possible empirical distributions, and strings within each type class are equiprobable under an independent and identically distributed source. Information entropy determines how many strings share a frequency profile; relative entropy determines how unlikely that profile is under a specified source law. The connection is useful both for lossless source coding and for understanding rare observations.
The following formulas use natural logarithms, so information entropy and relative entropy are measured in nats. DefineHere is the source probability mass function and is an attainable empirical distribution. Use ; first assume every . Base-two logarithms give the equivalent formulas with and .
A possible empirical distribution corresponds to nonnegative integer counts with sum . Stars and bars therefore givesThe bound also follows by letting each count independently range from zero to , which overcounts tuples whose sum is wrong. With the alphabet fixed, the count grows polynomially in , whereas there are strings when . For binary symbols there are exactly profiles: the number of ones can be any integer from zero through .
This reduces a rare-event calculation to a sum over profiles when the event depends only on counts. An event that depends on order may instead require counting the relevant subset inside each type class. A source with statistical dependence need not make strings of the same empirical distribution equiprobable; the memoryless assumption cannot simply be dropped.
For an attainable empirical distribution on a fixed finite alphabet of size ,Thus differs from by at most , uniformly over attainable profiles. Information entropy is the leading logarithmic count; the polynomial factor matters at short lengths.[ref]
The Method of Types by Imre Csiszár. §II, Lemma II.2, equation (II.4), printed pp. 2506–2507: type-class cardinality bounds
The upper bound has a short explanation. Under an independent and identically distributed source whose law is itself, each string in has probability . Multiplying by the number of such strings cannot give a probability above one. A corresponding polynomial lower bound follows from the multinomial coefficient; the Stirling's approximation gives sharper prefactors when needed.
For the balanced four-symbol class, , so the upper bound is , while the exact size is six. Information entropy is not an exact count for a short string. On the leading scale it becomes precise: the difference divided by tends to zero as grows with the alphabet fixed.
For a string of empirical distribution , independence givesMultiplying this by the size of a type class gives its exact probability. The entropy bounds for a type class then implyThese bounds apply to one attainable empirical distribution, not automatically to a tail event containing many classes.[ref]
The Method of Types by Imre Csiszár. §II, equation (II.1) and Lemma II.2, equation (II.5), printed pp. 2506–2507
If but , every string in that class is impossible and .As an exact example, take an independent and identically distributed binary source with . Each balanced four-symbol string has probability . There are six such strings, soThe relative entropy is . The exponential upper bound is , visibly larger than the exact probability. It captures the cost of an atypical frequency without supplying the exact finite-length prefactor.
For , the exact probability of twenty ones iswhile the exponential upper bound is approximately . At the source frequency , relative entropy is zero and the upper bound is one; the exact probability of ten ones is only about . A likely neighborhood of frequencies need not give a large probability to a single exact profile.
The striking cancellation is that there are about strings in a class, but each costs about . The information entropy terms cancel, leaving relative entropy as the rarity exponent. Summing over polynomially many classes preserves that leading exponential scale. This is the elementary counting mechanism behind finite-alphabet versions of Sanov theorem and many error exponents in hypothesis testing.
In his 1998 retrospective, Imre Csiszár describes the method of types as a 1970s refinement of the typical set approach, with older counting ingredients. He credits his research group with turning those ingredients into a general tool, while explicitly declining to give a complete discovery history.[ref]
The Method of Types by Imre Csiszár. §I, printed pp. 2505–2506: the refinement in the 1970s and the author's qualified historical account
The useful shift is from an approximately typical collection to exact frequency classes: the latter retain enough structure to study how fast error probabilities decay.Sanov's theorem is the large deviation principle for empirical distributions of independent identically distributed observations. On a finite alphabet with sampling law , its rate function is .
An information projection chooses the probability distribution that satisfies a constraint while departing least from a reference law in relative entropy. The constraint might specify an expected value, several marginal probability distributions, or another convex set of permissible laws. The reference is held fixed: the variable is the first argument of . Reversing the arguments gives a different minimization problem.
For a finite alphabet , take a positive reference probability mass function and a nonempty closed convex set in the probability simplex. ThenThe minimum exists and its minimizing probability distribution is unique. In this article, natural logarithms give nats. Using base-two logarithms rescales the objective without changing the minimizer.[ref]
Information Theory and Statistics: A Tutorial by Imre Csiszár and Paul C. Shields. §3, printed pp. 440–441: finite-alphabet information projection onto a closed convex set
If already meets the constraint, its information projection is itself by relative entropy nonnegativity. If not, a constraint can change the relative weights of outcomes without specifying every weight individually. Relative entropy minimization under a mean constraint gives an especially useful example: it tilts the reference law rather than choosing an arbitrary distribution with the right average.
Let the possible numerical outcomes be , and give the reference law uniform distribution on a finite set: . We want a law with expected value . Write the three probabilities in outcome order as . The mean constraint is , while normalization requires .
These conditions leave a whole line of possible probability distributions:For example, and both have the required mean. The constraint alone does not choose between them. Information projection selects the point on this line with the smallest relative entropy from the reference.
Exponential tilting gives weights proportional to . Set and multiply these weights by to obtain . Enforcing the mean givesThe positive root is , henceThe most favored outcome becomes , but all three remain possible. This is an exact constructed example with a stipulated reference law and constraint, not a fitted distribution from measurements.
The word "projection" does not mean ordinary perpendicular projection in the plotted Euclidean space. For the same reference and mean constraint, minimizing the squared Euclidean distance in the three probability coordinates instead givesThus the Euclidean minimizer is , whereas the information projection has . The squared Euclidean objective at its own minimum is ; its relative entropy is approximately nats, larger than the optimum nats. Both distributions satisfy the same constraint.
The reference and objective encode what "least change" means. Relative entropy is asymmetric and is not a metric; its minimization answers a different question from linear least squares. The useful geometric analogy comes from a Pythagorean inequality for information projection, rather than from an assertion that the colored contours are circles.
For a uniform distribution on a finite set of outcomes, direct expansion of relative entropy giveswhere is information entropy in nats. Therefore minimizing relative entropy from this particular reference is equivalent to maximizing information entropy subject to the same constraint. This statement depends on the uniform reference; an arbitrary reference contributes its own weights.
In the three-outcome example, nats. The mean fixes one aggregate quantity, and information projection chooses how to distribute the remaining uncertainty. This extends maximum entropy on a finite alphabet, whose unconstrained maximizer is the uniform law itself.
Under the finite-alphabet, positive-reference, closed-convex set assumptions above, every feasible law satisfiesThus a feasible law's excess relative entropy above the optimum is at least its relative entropy from the optimizer. The information projection supplies a quantitative comparison with every other feasible law, not merely the location of a minimum.[ref]
For affine expected value constraints, the result becomes a Pythagorean identity for relative entropy. In relative entropy minimization under a mean constraint, the logarithm of is an affine function of the outcome . Any feasible has the same normalization and mean as , making the residual in the three-point identity for relative entropy zero.[ref]
Let be a probability mass function on a finite alphabet with numerical outcomes . Prescribe a mean strictly between the smallest and largest outcomes. Exponential tilting giveswith chosen so that . For any other feasible law , direct substitution yieldsRelative entropy nonnegativity therefore proves optimality and uniqueness. At an extreme prescribed mean, feasible laws may have zero probabilities; a finite tilting parameter need not realize them, although a limit can.
Take independent and identically distributed draws from the uniform three-outcome reference above. An observed sample mean at least is unusual because the source expected value is zero. For two draws, the only successful ordered pairs are , giving probability .
For long samples, the relevant empirical distributions have mean at least . The method of types assigns a profile a leading probability cost . The least costly admissible profile is the information projection on three outcomes: in this example the minimizing mean is on the boundary , and the leading exponent is approximately nats per draw. The exponential scale is not an exact finite-sample probability formula.[ref]
The attraction of this connection is that a constrained optimization problem predicts the most probable way an unusual aggregate observation can occur. It links relative entropy, expected value constraints and rare empirical distributions without identifying a rare event with just one exact attainable type class.
In Information Theory and Statistics: A Tutorial by Imre Csiszár and Paul C. Shields (2004, Historical Notes, §3, printed p. 522), the authors connect systematic studies of information projection with earlier relative entropy minimization principles and geometric work, including Imre Csiszár's I-Divergence Geometry of Probability Distributions and Minimization Problems by Imre Csiszár (1975). This is the tutorial's historical account, rather than a claim of one isolated invention. Its finite-alphabet treatment makes the projection identities available without the additional machinery needed for general probability spaces.
Articles by others on the same topic
There are currently no matching articles.



