Multinomial distribution Created 2026-09-24 Updated 2026-10-14
A multinomial distribution describes category counts from independent trials, each choosing exactly one of categories with the same probabilities . Require to be an integer, , and . If counts the trials in category , then and
The are integers, and the mass is zero for other count patterns. A category with has count zero almost surely, with in this formula. For a specified ordered trial sequence, independence gives the product of numbers ; the multinomial coefficient counts the different sequences with that same count pattern.
For four trials with category probabilities , the count pattern can occur in orders, each of probability . Thus its total probability is . This is a constructed independent-trial example, distinct from drawing four objects without replacement from a ten-object population of composition , where the multivariate hypergeometric distribution gives .
Figure 1.
Three category counts from four independent trials: every point fixes the third count through the total
. Details.
The diagram shows all fifteen possible count patterns. Coordinates determine ; the triangle is a constraint on integer counts, not a continuous probability density. The mode is , where the probability mass function is largest, but the expected values are not a possible count pattern.
Each single count has a binomial distribution, because recording category versus all other categories reduces every trial to a Bernoulli trial. Consequently,
These statements about the joint count model are summarized in Aditya Guntuboyina's lecture notes.[ref]
Independent trials do not make the resulting counts independent random variables. Within one trial the indicator random variables for two distinct categories cannot both equal one, so their product is zero and their covariance is . Summing over independent trials gives . In the four-trial example, the variances are and the pairwise covariances are . Knowing that all four trials were in the first category fixes the other two counts at zero.
The attraction is that one formula describes any fixed-total list of category counts while preserving the constraint that they add up to . It underlies multinomial likelihood calculations and uniform balls-in-bins allocation. The multinomial aggregation rule lets us merge categories without leaving this family of probability distributions. Allowing independent category counts with an unfixed total instead leads to a different model, related through Poisson-multinomial conditioning.
Negative binomial distribution Created 2026-09-24 Updated 2026-10-20
The negative binomial distribution counts failures before a target number of successes in successive independent Bernoulli trials with constant success probability . In this stopping model, is a positive integer and . On the failures-before-the-th-success convention, the random variable takes values ; for , its probability mass function is
The binomial coefficient counts possible arrangements before the final success, as explained by the negative binomial stopping argument. At , every trial succeeds: with probability one, so its expected value and variance are both zero. This handles the endpoint without needing to interpret . At , the target is never reached and there is no proper finite waiting-count law.
For a worked example, toss a fair coin until the second head, calling heads and tails . Thus and . Exactly two failures means that the second success is on trial four. The complete stopped sequences are , and ; each has probability , giving . The first three masses are
Both and are modes, each with mass : there is no unique mode here. Later masses decrease, since for .
Figure 1.
Exactly two failures before the second success: three stopped sequences, each of probability 1/16
. Details.
The expected value and variance of the failures count are
If instead counts all trials, including the successes, then and
For the fair-coin example, , , and . Shifting the count changes its expected value but preserves its variance. When , has the failures-count geometric distribution, while has the all-trials geometric distribution. The two conventions and the moments are treated in Kyle Siegrist, The Negative Binomial Distribution, Random Services.
Figure 2.
Negative binomial failure counts for success probability 1/2 and targets of one, two and five successes
. Details.
The negative binomial distribution is useful when a procedure runs until it collects a target number of successes: for example, obtaining usable samples from independent attempts with a stable acceptance probability. A binomial distribution instead counts successes in a fixed number of trials. The attractive connection is that these two experimental questions can be answered from the same trial sequence, using the negative binomial stopping argument. For the failures count and , the positive mean satisfies , so the law allows overdispersion relative to a Poisson distribution. At , both quantities vanish and the inequality is not strict. The separate Poisson-gamma mixture explains another way this count law arises; its noninteger shape parameters do not represent a literal target number of successes.
Negative binomial stopping argument Created 2026-09-24 Updated 2026-10-31
For the negative binomial distribution with positive integer target and success probability , the th success occurs after exactly failures only if the final trial is a success, while the preceding trials contain failures and successes. Choosing the failure locations gives the binomial coefficient . Each such stopped sequence has probability by independence, and the sequences describe mutually exclusive events, so their probabilities add. This proves the probability mass function. Counting arrangements among all positions would wrongly include sequences that already reached the target earlier. The same argument is used for three heads in MIT 18.05, spring 2022, problem set 9 solutions, problem 2(b).
A short route to normalization and moments is to split the failures count into successive waiting blocks:
where counts failures after success and before success , with starting at the first trial. Fresh independent Bernoulli trials make the blocks independent, each with the failures-count geometric distribution. Each block has total mass by the geometric series, so their sum also defines a normalized probability distribution. The linearity of expectation and variance additivity for independent random variables give and . This makes the moments transparent without a long calculation of sums. For , every block is zero.
Let and let the original independent count have negative binomial distribution with probability mass function on . With unit-rate exponential distribution severities, its moment-generating function is for . Thus it also has a random sum of independent claims representation with independent binomial distribution count and rate- exponential distribution steps. For the law is . The hurdle decomposition of a positive random sum therefore has zero mass and positive density .
Keep as independent fair bits, introduce an independent Bernoulli random variable with , and set . The extra bit flips the integer parity rule with probability . For each even-integer parity triple the probability is ; for each odd-integer parity triple it is .
Every coordinate remains fair, and every pair remains independent for every . For example, after fixing , the fair independent makes fair regardless of . A pair's joint probability distribution therefore does not change as noise destroys the three-way relation.
Figure 1.
Noise changes the joint parity distribution without changing any pair's independence
. Calculated probability mass functions for the stipulated three-bit model at . Even-integer parity and odd-integer parity triples have different colors. The dashed line is the product of the three fair marginal probability distributions. These are theoretical probabilities, not measurements. Details.
Knowing , uncertainty in is exactly the uncertainty in . The chain rule for information entropy gives
where is binary entropy. Hence
At , the result is approximately bits, although all three pairwise mutual informations are zero. At , all eight triples have probability , giving joint independence and zero total correlation. At , the complementary integer parity rule is deterministic again, so total correlation returns to one bit.
Figure 2.
Total correlation detects a noisy three-way constraint missed by pairwise mutual information
. The exact formula for the stipulated noisy parity total correlation, plotted over . The mutual information of each pair is identically zero; joint independence occurs only at the right endpoint of this interval. Details.
The example distinguishes "there is a dependence" from "a pair reveals it." Once are known together, is predictable at zero noise; knowing either one alone leaves a fair bit. Total correlation detects the joint departure from independence, but does not by itself specify which variables cause which others.
Normalization of a probability distribution Created 2026-10-18 Updated 2026-10-25
A probability distribution assigns total probability one to its sample space. For a nonnegative probability density function this means that its integral over the full domain equals one; for a probability mass function the sum of its masses equals one. A nonnegative integrable function with positive finite integral can be divided by that integral to normalize it. A negative function cannot be a probability density function even if a formal manipulation purports to normalize it.
Offspring distribution of a branching process Created 2026-10-07 Updated 2026-10-20
The offspring probability distribution of a Galton-Watson process is the law of one individual's number of children: for , with and . Its probability generating function and, when finite, its expected value are
Use when evaluating the probability generating function at zero: and .
For and , , , and the offspring variance is : and . The generation probability mass functions pictured under Galton-Watson process come from repeatedly composing this probability generating function. They describe the whole generation, whereas describes one individual's reproduction. [ref]
The whole offspring distribution matters for extinction. Another law, and , has the same offspring mean but branching extinction probability , since has roots of a polynomial and . Consequently the two laws have the same expected generation size in a Galton-Watson process at each generation but different survival chances. A binomial branching process and a Poisson branching process likewise specify different offspring distributions; a common mean does not make their probability generating functions identical.
Optimal geometric envelope for a Poisson distribution Created 2026-10-25 Updated 2026-10-31
For a Poisson distribution target of mean and a geometric distribution proposal with probability mass function on the nonnegative integers, the tight rejection sampling envelope is
Successive target-to-proposal ratios have ratio , proving this maximizing index. The function is the maximum of the convex functions . Within a branch its derivative is .
Writing , the optimum is , and the success parameter is . For , is a branch boundary; the left and right derivatives are nonpositive and nonnegative respectively. For , the active branch has a zero derivative at , including a tie at the upper endpoint. Convexity proves global optimality. The minimum expected proposal count is ; no claim about machine-specific instruction costs is implied.
Panjer recursion 2026-10-14
For positive integer severities with probability mass function and independent count in the Panjer claim-count class, the aggregate probability mass function starts at and satisfies the displayed recurrence. If are the count, severity and aggregate probability generating functions, respectively, then and . Equating the coefficient of gives . The positivity assumption excludes zero severities; otherwise the initial value and recursion denominator change.
Choose a positive integer-valued random variable with probability mass function
These masses are positive. They sum to one because the partial fraction decomposition
makes their sum a telescoping series with value . Its expectation is another telescoping series:
By contrast, since and for , its second moment satisfies
The comparison uses the divergent harmonic series. To check the variance directly, for we have , so the corresponding tail of also diverges. Thus
Here “unbounded” means infinite variance for this single probability distribution.
For with binomial distribution , where is a nonnegative integer and , use its probability mass function and the binomial theorem:
This moment-generating function of a binomial distribution is finite for every real , since the random variable has finite support. The formula also includes the degenerate cases , and .
Reference-distribution ambiguity: is not defined in the paper. If it is an arbitrary probability mass function, the printed inequality is false. For instance, choose and . Every empirical distribution equals , making the printed left side one bit and its right side zero. This is a counterexample for every .
Under the consistent interpretation , the preceding leave-one-out identity for empirical distributions and convexity of relative entropy in its first argument give, for every sample,
Deleting any one observation from independent and identically distributed random variables leaves independent observations with probability mass function . Consequently each has the same distribution as . They need not be independent of one another. Taking expected values and using linearity of expectation therefore proves
Zero coordinates of are never sampled, almost surely, so the calculation can be restricted to its probability support. In particular the expected values are finite on this finite alphabet.
The discrepancy cannot be removed by silently choosing any fixed reference. Whenever is positive on the probability support of , direct subtraction and give the expected relative entropy decomposition
Thus the valid arbitrary-reference version has on both sides; the printed mixed-reference version has an additional term whose sign prevents the proposed conclusion.
For probability mass functions on the finite alphabet, take logarithms to base two and define the relative entropy by
A term with is zero, including ; a term with is . Fix and write . For ,
Thus is a convex function on by continuous extension to zero. For , applying this scalar convexity to each coordinate and summing proves
If has zero coordinates, the finite-valued domain consists of probability mass functions supported on ; it is convex and the same proof applies there. Outside that domain the right side is infinite whenever an offending probability mass function has a positive mixture weight, so the extended-valued convexity assertion still holds. At mixture weights zero or one the inequality is an identity, without needing the expression .
For the maximum entropy distribution on the nonnegative integers, use the geometric distribution counting failures before the first success. Write and define
The geometric series gives . Termwise differentiation of a power series applied to that geometric series for gives , hence .
For any competing probability mass function of mean , its cross-entropy against is
This is finite. The fact that finite cross entropy bounds countable information entropy must be justified without assuming in advance that is finite. Use with when . Including zero terms by their limiting convention yields, for every finite ,
Let . The information entropy partial sums increase, the cross-entropy partial sums converge to the finite value above, and the final mass difference tends to zero. This proves finiteness and the upper bound. We may now write
Relative entropy nonnegativity has equality exactly when . Therefore the displayed geometric probability mass function is the unique maximizer, and
The mean constraint is essential: without it, uniform distributions on longer initial intervals have unbounded information entropy.
With a full-support finite distribution, suppose two distinct tree parents at depth each have exactly two tree children, both tree leaves. Move one tree leaf from the second pair into the vacant third tree child slot of the first tree parent. Its length remains , so this relocation does not change expected codeword length. The second tree parent now has a single tree child, which is a tree leaf. Replace that remaining tree child's codeword by the tree parent's word. This preserves the prefix code property and shortens a positive-probability codeword by one. Expected codeword length strictly decreases, a contradiction. Thus there is at most one deepest pair with exactly two sibling codewords.
If zero-probability symbols are retained without a reduction convention, the claim can fail. The probability mass function with prefix code has the optimal expected codeword length one, yet contains the two deepest pairs and . The contraction would only shorten a zero-probability word.
Choose noise values , giving exactly the outputs . The transition matrix, in that column order, is
An input probability mass function makes outputs equiprobable, so and . Hence bit per use, as required for comparison with the four-output case.
There is a strict improvement, which can also be computed exactly. Reflection of the input labels , accompanied by output reflection , leaves mutual information unchanged. Concavity of information entropy makes mutual information a concave function of the input probability mass function for a fixed transition matrix. Averaging an input law with its reflection therefore cannot decrease it. It suffices to consider
The outputs whose labels are even integers have total mass and conditional probability mass function , with information entropy . The outputs whose labels are odd integers have mass and conditional probability mass function , with information entropy one. Splitting first by output parity using the chain rule for information entropy yields
Its derivative is , and its second derivative is negative. The unique maximum occurs at , giving
This additional optimization explains the collision pattern: outputs identify input , outputs identify the two extreme inputs, and only output is ambiguous.
Figure 1.
Three original additive-noise channel diagrams: increasing noise separation changes output collisions and channel capacity
. Details.
Translate the output alphabet by and put . The reachable outputs become
For the two sets overlap in two points; for in one; for they are disjoint. In particular , and choosing noise values attains four.
With rows indexed by inputs and columns by outputs , independence and uniform two-point noise give
Every conditional output distribution has information entropy one bit, so . The input probability mass function makes all four outputs equiprobable, attaining that bound. Thus
Using a zero-probability input in a channel-capacity maximization is legitimate; it is unrelated to the strictly positive source weights needed for the tree-shape claims in Question 2.
For every input probability mass function, conditional entropy is nonnegative, so
Taking the maximum over input laws proves bit per channel use. This bound comes from the binary input alphabet itself; no specific transition probabilities or decoder are needed.
Set , and . If , the two probability mass functions agree and the bound is zero. Otherwise every . The half-interval entropy summand bound, with and , gives
By the triangle inequality, followed by Jensen's inequality for the concave function ,
This proves the requested finite-alphabet entropy continuity bound:
For a fixed estimated probability mass function , the estimated joint probability mass function is . If whenever , the strong law of large numbers gives the mismatched asymptotic equipartition property:
Here is cross-entropy, and the last equality is cross-entropy equals entropy plus relative entropy. The Kullback-Leibler divergence measures the extra average logarithmic loss from the estimated law.
If for some with , let . The probability that none of the first observations belongs to this set is . Almost surely such a symbol eventually occurs, after which forever. Thus the limit is , consistent with infinite cross-entropy and infinite Kullback-Leibler divergence.