Why Aggregation and Conditioning Matter
A multinomial sample records counts in several mutually exclusive categories. Often, the question concerns only whether an observation falls in a particular group of categories, or how the counts are distributed after a group total is known. These are not approximations: both questions have exact sampling laws. The key is to distinguish the probability of entering a group from the conditional probabilities of landing in its individual categories.
We begin with the multinomial model for \(n\) independent trials. Each trial falls in exactly one of \(k\) categories, with category probabilities \(p_1,\ldots,p_k\), where \(p_i\geq 0\) and \(\sum_{i=1}^k p_i=1\). Write \(X_i\) for the count in category \(i\). For nonnegative integers \(x_i\) summing to \(n\), the joint probability mass function is
As usual, a factor \(0^0\) in this mass function is interpreted as \(1\). The multinomial coefficient counts the trial outcomes with those category totals; the product gives the probability of each such outcome.
Aggregating Categories
Let \(A\) be a nonempty subset of the categories and define its total count and total probability by
On each trial, the event of landing in any category in \(A\) has probability \(p_A\). Thus \(X_A\) counts the number of successes in \(n\) independent trials, where “success” means landing somewhere in \(A\).
To see the general grouping result, consider any nonnegative group totals \(y_1,\ldots,y_g\) summing to \(n\). For a fixed allocation of the counts within each group, the original multinomial mass has the common factor \(\prod_j q_j^{y_j}\) after summing over allocations, while the sum of the within-group multinomial coefficients is \(y_j!^{-1}(\sum_{i\in G_j}p_i)^{y_j}\) for group \(j\), by the multinomial theorem. Consequently the grouped mass is
This is the multinomial mass function with group probabilities \(q_1,\ldots,q_g\). Taking two groups, \(A\) and its complement, gives the binomial law for \(X_A\).
Worked Example: Combining Two Categories
Suppose \(n=12\), and each observation falls into one of four categories with probabilities \(0.10,0.20,0.30,0.40\). Let \(A\) consist of categories 1 and 2. Then \(p_A=0.10+0.20=0.30\), so \(X_A\sim\operatorname{Bin}(12,0.30)\). The probability that exactly four observations fall in those two categories is
The separate probabilities \(0.10\) and \(0.20\) do not enter this aggregate probability except through their sum \(0.30\). They matter, however, if we ask how the four observations are split between categories 1 and 2; that is a conditional question.
Allocation Within a Group Given Its Total
Suppose the total \(X_A\) is known to equal \(m\), where \(0\leq m\leq n\). If \(p_A>0\), the conditional probability that a trial belongs to category \(i\), given that it belongs somewhere in \(A\), is \(p_i/p_A\). The counts within \(A\) therefore have a multinomial law of size \(m\) with these renormalized probabilities.
Here is a direct derivation that also verifies the coefficient. For specified counts \(x_i\) in \(A\), let \(m=\sum_{i\in A}x_i\). Sum the original multinomial mass over all possible allocations to the complement. The complement counts sum to \(n-m\), so the multinomial theorem gives
The denominator contains \((n-m)!\), because the unrecorded complement consists of \(n-m\) observations. Divide by \(P(X_A=m)=\frac{n!}{m!(n-m)!}p_A^m(1-p_A)^{n-m}\). Since \(\sum_{i\in A}x_i=m\), the quotient is exactly the conditional mass in the theorem.
For the independence assertion, specify also complement counts \(z_j\), \(j\notin A\), summing to \(n-m\). Divide their joint multinomial mass together with the specified \(x_i\)'s by \(P(X_A=m)\). The result factors as
Each bracket is a conditional multinomial mass function, and their product establishes conditional independence. The assumptions \(0<p_A<1\) ensure that both conditional probability vectors are defined. If a group has probability zero, its total is necessarily zero; if it has probability one, its complement total is necessarily zero.
Worked Example: Splitting a Known Group Total
Use the four-category model with probabilities \(0.10,0.20,0.30,0.40\), and suppose the combined total in categories 1 and 2 is known to be \(4\). Within this group, the conditional probabilities are
Thus \(X_1\mid X_A=4\sim\operatorname{Bin}(4,1/3)\). For example, the probability that two of the four are in category 1 and two in category 2 is
The complement has probability \(0.70\), split between categories 3 and 4 in proportions \(0.30/0.70=3/7\) and \(0.40/0.70=4/7\). Given \(X_A=4\), its total is \(8\), and its conditional count vector is multinomial with size \(8\) and probabilities \(3/7,4/7\), independently of the allocation within \(A\).
Conditioning on Specified Cell Counts
A related calculation fixes counts in individual categories rather than fixing only their combined total. Let \(S\) be a subset of categories, and suppose \(X_i=x_i\) is specified for every \(i\in S\). Write \(r=\sum_{i\in S}x_i\). If \(p_S=\sum_{i\in S}p_i<1\), then \(n-r\) observations remain to be allocated among categories outside \(S\).
To derive this, the joint probability of the specified counts in \(S\) and the particular remaining counts is \(\frac{n!}{\prod_{i\in S}x_i!\prod_{j\notin S}z_j!}\prod_{i\in S}p_i^{x_i}\prod_{j\notin S}p_j^{z_j}\). Summing over all remaining allocations gives the probability of the conditioning event:
Dividing the joint probability by this event probability cancels the fixed-cell factors and leaves the stated multinomial mass. Thus fixed cell counts use up \(r\) observations, while the remaining \(n-r\) observations are allocated according to the original probabilities renormalized over the categories not fixed.
Worked Example: Fixing Two Cell Counts
Let \(n=10\) and let four categories have probabilities \(0.10,0.20,0.30,0.40\). Condition on \(X_1=2\) and \(X_2=3\). There are \(5\) remaining observations, and the probability mass outside the fixed categories is \(1-(0.10+0.20)=0.70\). The remaining conditional category probabilities are therefore
Consequently \(X_3\), conditional on \(X_1=2,X_2=3\), has distribution \(\operatorname{Bin}(5,3/7)\), and \(X_4=5-X_3\). In particular,
The conditioning event has positive probability: its complement total is \(5\), and the original complement probability is \(0.70>0\). This check matters; a conditional distribution is defined only when the event conditioned on has positive probability.
Common Pitfall: Keeping the Original Probabilities
A frequent error is to condition on a group total and then use the original category probabilities without renormalizing. For instance, in the four-category example, after learning that an observation is in categories 1 or 2, its conditional probability of being in category 1 is not \(0.10\); it is \(0.10/(0.10+0.20)=1/3\). The conditional probabilities must sum to one over the categories still under consideration.
A second useful check is to track the count left to allocate. If \(X_A=m\), the complement contains \(n-m\), not \(m\), observations. In the joint mass for specified counts within \(A\) and the aggregate total \(m\), the factorial for the aggregated complement is therefore \((n-m)!\). The conditional factorization provides an independent check: the within-group multinomial coefficient uses \(m!\), while the complement coefficient uses \((n-m)!\).
Check Your Understanding
Work from the multinomial model, keeping track of both the remaining sample size and the conditional probabilities.
- If \(n=20\) and a group of categories has total probability \(0.15\), what is the distribution of its count?
- For category probabilities \(0.2,0.3,0.5\), find the conditional probability of category 2 given that an observation is in category 1 or 2.
- When conditioning on \(X_1+X_2=m\), how many observations remain in categories outside \(\{1,2\}\)?
- In a four-category multinomial model, what distribution governs the remaining two counts after the first two cell counts are fixed?
- Why must the probability of the conditioning event be positive before its conditional distribution is defined?