Why Grouped Counts Have a Different Likelihood Constant
Suppose a study records a binary outcome for every participant, but reports only the number of successes in each group. The group count can be modeled directly with a binomial distribution when participants in a group share the same success probability. Its likelihood includes a combinatorial factor that is absent from the likelihood of one particular ordered sequence of individual outcomes. Understanding this difference helps distinguish a change in likelihood’s parameter-independent constant from a change in the model itself.
The key condition is that every Bernoulli observation within a group has the same probability. Under this condition, all individual outcome sequences with the same number of successes have the same probability. The grouped count’s probability is the sum of those sequence probabilities.
In a GLM, \(\pi_i\) may depend on group-level covariates through a linear predictor and link, for example \(\operatorname{logit}(\pi_i)=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\). The derivation below concerns the likelihood for the observed outcomes, conditional on the covariates and group sizes. The essential assumption is that all members of a given group have the same \(\pi_i\).
From an Individual Sequence to a Group Count
For a particular observed sequence \(y_{i1},\ldots,y_{im_i}\), the Bernoulli likelihood is the product of the individual probabilities. If the sequence contains \(s_i\) successes and \(m_i-s_i\) failures, independence gives
This is the probability of that particular sequence. For example, when \(m_i=4\) and \(s_i=3\), the sequence \(1,0,1,1\) has probability \(\pi_i^3(1-\pi_i)\). The count \(S_i=3\), however, occurs for any of the \(\binom{4}{3}\) possible placements of the one failure. Since all those sequences have the same probability, their probabilities add.
To see the result directly, consider all sequences of length \(m_i\) containing exactly \(s_i\) ones. There are \(\binom{m_i}{s_i}\) such sequences: choosing the sequence is equivalent to choosing which \(s_i\) positions contain successes. Each sequence has probability \(\pi_i^{s_i}(1-\pi_i)^{m_i-s_i}\). The events represented by the distinct sequences are disjoint, and their union is the event \(S_i=s_i\). Adding their probabilities therefore gives
This derivation requires independence and a common probability within the group. It does not follow merely from the fact that the observations are binary.
Worked Example: One Sequence Versus One Count
Four independent individuals each have success probability \(\pi=0.3\). Compare the probability of the specific sequence \(1,0,1,1\) with the probability that exactly three of the four outcomes are successes.
The sequence has three successes and one failure, so its probability is
There are \(\binom{4}{3}=4\) sequences with exactly three successes. Thus the count probability is
The count probability is four times the sequence probability because it includes four disjoint possible placements of the failure. The factor four depends on the observed group size and success count, not on \(\pi\).
Likelihoods for Several Groups
If groups are independent and each satisfies the common-probability assumption, multiply their count probabilities. For observed counts \(s_i\) from \(g\) groups, the grouped likelihood is
Here \(\boldsymbol{\theta}\) denotes the model parameters, which may be regression coefficients determining the group probabilities. The likelihood for one particular individual-level outcome sequence in every group is
Consequently, for the same model and observed group counts,
The factor \(C\) is positive and fixed once the observed group sizes and counts are fixed. It does not depend on \(\boldsymbol{\theta}\). Taking logarithms gives the corresponding relationship between log-likelihoods:
Thus the grouped and individual log-likelihoods have the same parameter-dependent part. The constant term is the sum of the logarithms of the binomial coefficients.
Worked Example: The Constant for Two Groups
Suppose two independent groups have sizes \(m_1=5\) and \(m_2=3\), with observed success counts \(s_1=2\) and \(s_2=1\). Let their success probabilities be \(\pi_1=0.4\) and \(\pi_2=0.6\). For any individual sequence consistent with these counts, the probability is
There are \(\binom{5}{2}=10\) possible placements of the successes in group 1 and \(\binom{3}{1}=3\) in group 2. There are \(10\cdot3=30\) joint sequences consistent with both counts. The grouped likelihood is therefore
Equivalently, multiplying the two binomial probabilities gives
The multiplier 30 is determined by the observed counts and group sizes. If \(\pi_1\) or \(\pi_2\) changes, the individual-sequence likelihood and the grouped likelihood change by the same multiplicative factor.
What the Constant Does—and Does Not—Change
A parameter-independent factor changes the numerical likelihood value, but not its maximizing parameter. The same fact applies to the log-likelihood, scores, and any derivatives that exist. This is why one may often omit the binomial coefficients when maximizing a grouped binomial likelihood. The precise statement is as follows.
Proof. For every \(\boldsymbol{\theta}\in\Theta\), multiplication by the positive constant \(C\) preserves order. Hence for any \(\boldsymbol{\theta}_1,\boldsymbol{\theta}_2\in\Theta\),
The two likelihoods therefore have exactly the same maximizers, including when a maximum occurs at a boundary of \(\Theta\). On any region where the log-likelihoods are defined,
Since \(\log C\) is constant in \(\boldsymbol{\theta}\), its derivatives of every positive order are zero. Differentiating the identity proves equality of the scores and of all higher derivatives wherever those derivatives exist. \(\square\)
Worked Example: Same Maximum From Grouped and Individual Data
Suppose a common probability \(\pi\) applies to two groups: the first has \(m_1=4\) trials and \(s_1=3\) successes, and the second has \(m_2=6\) trials and \(s_2=2\) successes. The individual-sequence likelihood is
The grouped likelihood includes the factor
For \(0<\pi<1\), the individual log-likelihood has derivative
Setting this derivative to zero gives \(5(1-\pi)=5\pi\), so \(\hat{\pi}=0.5\). The second derivative is \(-5/\pi^2-5/(1-\pi)^2\), which is negative throughout \(0<\pi<1\); therefore this stationary point is the maximum. The grouped log-likelihood adds \(\log(60)\), so it has the same derivative and the same maximum. At \(\pi=0.5\), the individual likelihood is \(0.5^{10}=1/1024\), while the grouped likelihood is \(60/1024=0.05859375\). The likelihood values differ, but the estimate does not.
When Aggregation Is Not Valid
The binomial coefficient works because every sequence with the same count has the same probability. If individuals in one reported group have different success probabilities, the probability of a sequence depends on which individuals succeeded. The count probability must then sum different terms; it generally cannot be written as a binomial coefficient times one shared probability term.
For two independent Bernoulli outcomes with probabilities \(0.2\) and \(0.8\), for example, the probability of exactly one success is
This is not the probability from a binomial model with a common probability of either \(0.2\) or \(0.8\). More importantly, replacing the two outcomes by their count discards which individual succeeded, information that may matter when the probabilities are modeled separately. Grouping is appropriate when the group members share the modeled success probability, such as when they have the same covariate values in the specified model.
Common Mistake and Practical Consequences
- Mistake: “The binomial coefficient is irrelevant, so the grouped and individual likelihoods are identical.”
- Correction: They are not numerically identical. For a fixed observed count, the grouped likelihood is the individual-sequence likelihood multiplied by \(\binom{m_i}{s_i}\). The factor is irrelevant to maximizing over the parameters, but it changes the likelihood value and log-likelihood by a constant.
This distinction matters when describing what probability the likelihood represents. An individual-level likelihood assigns probability to the particular observed sequence. A grouped likelihood assigns probability to the event that the count takes its observed value, combining all compatible sequences. For a fixed grouping, the combinatorial factors are the same across candidate parameter values, so they do not change likelihood maximization or likelihood ratios between those parameter values.
However, the grouped and individual likelihood values should not be compared as though they were probabilities assigned to the same recorded outcome: one concerns a particular sequence and the other concerns a set of sequences. When comparing models for the same grouped data, retain a consistent representation; the binomial coefficients are then common to the candidate models. The parameter-independent term is not permission to ignore the data representation or the common-probability assumption.
Check Your Understanding
Use the common-probability and independence assumptions explicitly in your reasoning.
- For \(m=6\) and \(s=2\), how many individual sequences correspond to the observed count? What factor relates the count probability to the probability of one such sequence?
- Explain why the binomial coefficient does not change the maximum-likelihood estimate when group sizes and observed counts are fixed.
- If two people in a group have different success probabilities, why is the group count not generally binomial with one shared probability?
- Distinguish the event whose probability is given by an individual-sequence likelihood from the event whose probability is given by a grouped-count likelihood.
- For several independent groups, write the parameter-independent factor relating the grouped likelihood to the likelihood of one compatible individual-level sequence.