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 andThe 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 .
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]
https://stat238.berkeley.edu/spring-2026/lecturetwelve238spring2026/. Guntuboyina, Berkeley STAT 238, lecture 12: multinomial distribution
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 isThe 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 areBoth and are modes, each with mass : there is no unique mode here. Later masses decrease, since for .
The expected value and variance of the failures count areIf instead counts all trials, including the successes, then andFor 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.
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.
Negative-binomial sum of exponential claims 2026-10-14
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 .
Noisy parity total correlation 2026-10-14
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.
Knowing , uncertainty in is exactly the uncertainty in . The chain rule for information entropy giveswhere is binary entropy. HenceAt , 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.
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 areUse 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]
https://www.uni-muenster.de/Stochastik/lehre/WS1011/SpezielleStochastischeProzesse/Ch_1.pdf. University of Münster branching-process notes, Section 1.3, Proposition 1.4
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 isSuccessive 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 functionThese masses are positive. They sum to one because the partial fraction decompositionmakes their sum a telescoping series with value . Its expectation is another telescoping series:By contrast, since and for , its second moment satisfiesThe comparison uses the divergent harmonic series. To check the variance directly, for we have , so the corresponding tail of also diverges. ThusHere “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 .
Past exam of the information theory course of the University of Oxford 2021 1 b iii Solution 2026-10-25
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 provesZero 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 decompositionThus the valid arbitrary-reference version has on both sides; the printed mixed-reference version has an additional term whose sign prevents the proposed conclusion.
Past exam of the information theory course of the University of Oxford 2021 1 b i Solution 2026-10-25
For probability mass functions on the finite alphabet, take logarithms to base two and define the relative entropy byA 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 provesIf 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 defineThe 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 isThis 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 writeRelative entropy nonnegativity has equality exactly when . Therefore the displayed geometric probability mass function is the unique maximizer, andThe mean constraint is essential: without it, uniform distributions on longer initial intervals have unbounded information entropy.
Past exam of the information theory course of the University of Oxford 2021 2 b iv Solution 2026-10-25
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.
Past exam of the information theory course of the University of Oxford 2021 3 c iii Solution 2026-10-25
Choose noise values , giving exactly the outputs . The transition matrix, in that column order, isAn 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 considerThe 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 yieldsIts derivative is , and its second derivative is negative. The unique maximum occurs at , givingThis additional optimization explains the collision pattern: outputs identify input , outputs identify the two extreme inputs, and only output is ambiguous.
Three original additive-noise channel diagrams: increasing noise separation changes output collisions and channel capacity
. Details. Past exam of the information theory course of the University of Oxford 2021 3 c i Solution 2026-10-25
Translate the output alphabet by and put . The reachable outputs becomeFor 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 giveEvery conditional output distribution has information entropy one bit, so . The input probability mass function makes all four outputs equiprobable, attaining that bound. ThusUsing 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, soTaking 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 , givesBy 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.





