Categorical distribution Created 2026-09-24 Updated 2026-10-14
A categorical distribution describes one trial with one of labelled outcomes and probabilities summing to one. The labels need not be numbers or have an order. It is the single-trial building block of the multinomial distribution: independent draws with the same categorical distribution produce multinomial category counts.
For a trial choosing labels with probabilities , the category-indicator random vector is , , or . Its expected value is ; its components are dependent because exactly one is one. A numerical encoding of is a separate modelling choice: the category labels themselves do not define an arithmetic mean.
Assign each of claims with independent category labels to one of finitely many categories with probabilities . Conditional counts have a multinomial distribution with probability generating function . Averaging over gives . This proves independent category counts and supports discrete-severity compound Poisson distribution representations.
For independent multinomial distributions with fixed stratum totals and baseline logits , the sufficient statistics are the displayed response-specific design-weighted counts, . Expanding the log-likelihood gives , plus a data-only term. The Fisher-Neyman factorization theorem therefore proves sufficiency; with an unrestricted identifiable canonical parameter, a likelihood-ratio argument proves minimal sufficiency. Factor indicators give the corresponding response/covariate margins.
For cell means with , the independent Poisson distribution likelihood and the multinomial distribution likelihood with probabilities differ by a parameter-independent factor. Thus a maximum-likelihood estimator for the unrestricted Poisson model whose fitted total is is also an estimator for the constrained multinomial model. Equality of named parameter estimates presumes identifiability and uniqueness; without these, the conclusion concerns the sets of maximizers. A free intercept in a log-linear Poisson model enforces the fitted-total equation.
A discrete-time model describes individual transitions between states at successive steps. State occupancy counts, first-entry counts and transition counts are distinct quantities, especially when a state has a self-loop. With independent individuals and fixed transition probabilities, destination counts conditional on the source count have a multinomial distribution.
For a multinomial distribution with two unobserved cells merged into one observed count, the conditional allocation is a binomial distribution with probabilities proportional to the two cell probabilities. The expectation-maximization algorithm replaces the missing counts by their conditional expectations in the parameter-dependent part of the complete-data log-likelihood. The expectation of a log-factorial normalization generally differs from its value at the expected count, but this difference is independent of the candidate parameter and does not affect the maximization step.
Take the original observations , with sample mean . All ordered bootstrap samples have probability . The bootstrap sample has sample mean ; has sample mean ; has sample mean . These are illustrative possibilities, not three simulated measurements used to estimate the distribution.
For bootstrap count vectors , records the number of copies of observed slot . Their multinomial distribution is
and . Thus the unordered counts have probability , whereas have probability . Stars and bars gives ten count vectors, but assigning each probability would be wrong. Two different count vectors, and , both give sample mean ; combining their probabilities gives .
Figure 1.
Exact conditional sampling distribution of the sample mean from observations
. All 27 ordered bootstrap samples are enumerated. Bar labels give their counts out of 27, not empirical frequencies from a random simulation. The dashed line marks ; the gaps reflect this discrete three-point empirical measure. Details.
The conditional bootstrap variance of a sample mean gives a compact check on the enumeration. Each resampled draw has expected value and variance
Averaging three independent draws divides that variance by three:
The exact conditional bootstrap standard error is . The original sample variance with denominator is , so its usual estimated standard error for the sample mean is . Their squared ratio is here; the difference follows from the empirical measure's denominator , not a numerical simulation error. Neither number is the known true sampling standard error of the unknown source probability distribution.
Gamma-integrated baseline Poisson likelihood Created 2026-10-07 Updated 2026-10-14
For independent Poisson distributions with means and a shape–rate Gamma distribution prior on , integrating adds to the total-count exponent and to the sum of relative rates. This distinguishes gamma mixing from conditioning on the total count, which gives a multinomial distribution.
For independent strata, each containing an contingency table, test independence of the two table variables within every stratum. Under adequate expected counts and the usual multinomial distribution sampling assumptions, each stratum's Pearson chi-squared statistic has asymptotic chi-squared distribution with statistical degrees of freedom. Their sum has asymptotic chi-squared distribution with statistical degrees of freedom, by the additivity of independent chi-squared distributions. This is a test of conditional independence, not of equality of a common effect across strata; the latter needs an interaction contrast or another specified homogeneity test.
Multinomial aggregation 2026-10-14
If has a multinomial distribution with trials, group its categories into disjoint nonempty sets covering all categories. The grouped counts in the displayed equation have the multinomial distribution
Each original trial belongs to exactly one group, its group probability is the sum of its category probabilities, and grouping preserves independence between trials. This gives the rule without summing the original probability mass function over every possible internal count pattern.
For the four-trial example with probabilities , merge the last two categories. Their total has the binomial distribution , so and . The same variance follows from the variance of a sum:
Ignoring the negative covariance would give , although the two counts share a fixed total. Multinomial aggregation lets the resolution of category labels change while retaining a consistent model for the counts.
Multinomial collision proof of three-dimensional walk transience Created 2026-10-14 Updated 2026-10-25
For the nearest-neighbor symmetric walk on , a return at time uses positive and the same numbers of negative steps along each axis, with . Counting arrangements gives the displayed identity. The sum of squares of the three-category multinomial distribution probabilities is at most their maximum. This maximum occurs at balanced counts and is by Stirling's formula; the central binomial factor is . The total return probability is therefore summable. The expected number of visits is finite, so the probability of returning after time zero is strictly below one, proving that the origin is a transient state.
Multinomial deviance 2026-10-07
For counts with a multinomial distribution, this is twice the log likelihood ratio of the saturated cell-probability estimate to fixed probabilities . Zero-count terms have limiting value zero. Simulation under the specified probabilities gives a direct reference distribution when asymptotic approximations are unsuitable.
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.
Suppose a finite population is split into categories with fixed sizes summing to . A uniform size- sample drawn by sampling without replacement has category counts with the displayed joint probability mass function, for integers summing to . It extends the two-category hypergeometric distribution; replacing the sampled objects instead gives a multinomial distribution.
For a box with category sizes and a sample of four distinct objects, the count pattern has probability
Put . When , its covariance matrix is the corresponding multinomial distribution covariance matrix multiplied by the squared finite population correction:
This connects the fixed-total dependence between categories with the further reduction from sampling without replacement. X. G. Duan gives a symmetry-based explanation of this shared covariance structure.[ref]
For the first sampling design, treat the fixed groups of 60 and 90 people as two independent, representative samples from the respective populations. Within each sample, assume independent individuals with common eye-colour probabilities and mutually exclusive, exhaustive categories. This gives two independent multinomial distributions. The null hypothesis is that the two populations have the same eye-colour probabilities; its estimated common probabilities are , and .
The expected counts under the null hypothesis are
The Pearson chi-squared test of homogeneity uses
There are unrestricted category parameters and under the null hypothesis, so the asymptotic chi-squared distribution has two degrees of freedom. All expected counts exceed five, making the usual large-sample approximation reasonable. Reject equality at the 5% level, but not at the 1% level: . The approximate p-value is . Independence and representative sampling, rather than merely the count sizes, are essential to population inference; the result does not establish a causal explanation.
In the second design, the total sample size is fixed but both row and column classifications are observed for each sampled person. Assume an independent, representative sample with a common joint distribution of handedness and eye colour. The six cell counts then have one multinomial distribution. The null hypothesis is independence of the two classifications, so joint probabilities factor into row and column probabilities. Their maximum-likelihood estimates are the observed marginal proportions, again giving exactly above.
The unrestricted joint distribution has five free parameters; independence leaves . The Pearson chi-squared test of independence again has two degrees of freedom, the same statistic, and the same significance conclusion. The numerical analysis is unchanged, but the sampling model changes from two fixed-row samples to one joint sample. If handedness groups had instead been deliberately sampled with fixed row sizes, the first, homogeneity formulation would apply to those groups too.
For , let be the probability law of a seed displacement from its tree. For the literal circular support, it is normalized arclength on . The conditional mean measure of a point process is
We prove the conditional Poisson assertion directly by joint probability generating functions.
Fix disjoint bounded measurable sets . For a tree at , put and . Conditional on its seed count, the allocation among these sets and their complement is multinomial distribution. Averaging over the Poisson seed count gives
Thus this tree contributes independent Poisson counts of means to the disjoint sets. Different trees contribute independently. Only trees within distance of the bounded union of the can contribute, and there are almost surely finitely many of them. Multiplying their probability generating functions gives
This is precisely the joint probability generating function of independent Poisson counts with the displayed means. Also is locally finite, because each bounded set can receive seeds from only finitely many trees. This proves the conditional Poisson point process assertion and the Poisson offspring clusters directed by their parent process construction.
In arclength notation the directing measure is , where is arclength on the circle centered at . If “circle” is used to mean the filled disc instead, take ; then
The generating-function proof and the following unconditional conclusion hold for either reading. The circular version has a singular conditional directing measure, giving the random directing measure of a Cox process formulation.
Unconditionally this is a Cox process, specifically a Poisson-offspring Neyman-Scott process. Its mean measure of a point process is nevertheless spatially uniform. With , the Campbell first-moment formula and translation invariance give
since . Uniform mean alone does not establish a Poisson law.
For a bounded set of positive area, the conditional count has mean and variance . The law of total variance gives
A Poisson integral of a deterministic function has variance : for a simple function on disjoint sets this follows from independent Poisson counts, and square-integrable approximation gives the general formula. Here and it has bounded support, so
The strict inequality holds when , because implies . A Poisson random variable has equal mean and variance. Hence the unconditional process is not a Poisson process in the nontrivial model. If or , there are no seeds and the process is the degenerate empty Poisson process. The overdispersion of nondegenerate mixed Poisson counts quantifies the additional clustering induced by the random parents.
The parameter range is . Omitting data-only constants from the multinomial distribution likelihood, its log is
For an interior maximizer, the likelihood score must vanish:
Multiply by and collect powers to obtain
The likelihood is concave: its second derivative in the interior is
Therefore an admissible interior root is the unique maximum. Endpoints must also be handled if some counts vanish. If and , both endpoints have zero likelihood and the root is interior. If the maximum is at zero then , and zero also satisfies the displayed polynomial; a maximum at one requires , and one likewise satisfies it. Multiplying the score can introduce other endpoint roots, so not every polynomial root is an MLE: evaluate the actual likelihood on the feasible candidates.
Define . Grouping equal claim sizes gives the pathwise identity
Conditional on , the independent claims receive category labels with probabilities . There are assignments producing prescribed category counts, and every assignment has probability . Thus the conditional probability distribution is a multinomial distribution:
when the nonnegative counts sum to , and is zero otherwise.
For , condition first on and use the probability generating function of a Poisson distribution:
This factorization is the joint probability generating function of independent Poisson distribution variables. Hence
A category with has zero count almost surely. The categorical thinning of a Poisson claim count produces independence after averaging over the random total, even though the counts are constrained to sum to conditional on that total.
Under the null hypothesis of equal population probabilities, the three counts have a multinomial distribution with probabilities and expected counts each. The Pearson chi-squared goodness-of-fit test uses
No probabilities have been estimated from the data, and the three counts sum to a fixed total. Hence the null reference chi-squared distribution has statistical degrees of freedom. The supplied upper critical value is , and . At the 5% significance level there is insufficient evidence to reject equal popularity.
The asymptotic P-value is . The expected counts are all large, so the approximation is appropriate if the sampled choices are independent and representative of this branch. The conclusion depends on the chosen significance level; for instance, a test would reject. Nonrejection does not establish the null hypothesis, and a survey at one branch does not by itself justify a population claim about every branch.
Let be the simple symmetric random walk started at the origin. Odd-time returns are impossible by parity. A return in steps requires equal numbers of positive and negative steps along each axis. If these paired counts are with , counting the possible step arrangements gives
Define . These are multinomial distribution probabilities and sum to one. Rearranging the return formula gives
The maximum occurs when the three counts differ by at most one: if , replacing by multiplies by . At balanced counts, Stirling's formula gives ; the exponential factors cancel because each count is , and the square-root factorial factors leave one inverse power of . The same formula gives . Hence
This is the multinomial collision proof of three-dimensional walk transience. The sum is the expected total number of visits to the origin. If the probability of returning after departure were one, the Strong Markov property at successive returns would make every successive return finite almost surely, giving infinitely many visits and contradicting that finite expectation. Thus the origin is a transient state. Translation invariance gives the same conclusion at every lattice point: the three-dimensional walk is transient.