Three Components, Three Roles
A generalized linear model can contain a known offset, a trial count, and an observation weight at the same time. These quantities may all appear as multipliers or additions in likelihood calculations, but they do different jobs. An offset is a known contribution to the linear predictor; a trial count specifies the binomial sampling distribution; and an observation weight scales an observation’s contribution to a chosen weighted likelihood or likelihood criterion.
Keeping those roles separate is essential for interpretation. In a binomial model, changing the trial count changes the number of Bernoulli outcomes represented by an observation. A generic likelihood weight does not automatically create additional trials. In a Poisson model with a log link, an exposure offset changes the mean in proportion to exposure, while a weight changes how strongly the observation contributes to estimation.
The weight’s sampling interpretation depends on how it was defined. An integer frequency weight can represent replicated observations, so its weighted likelihood agrees with the likelihood for those replications, up to parameter-free constants. Other weights, such as relative-precision weights, define a weighted likelihood convention or criterion; they do not, by themselves, assert that the observation was literally replicated. The calculations below state the weighting convention explicitly.
Binomial Likelihood With an Offset and a Weight
Suppose \(Y_i\) is the number of successes among \(m_i\) trials, with \(Y_i\sim\operatorname{Binomial}(m_i,p_i)\). Use a logit link with a known offset:
For a known nonnegative weight \(a_i\), the binomial log-likelihood contribution is
The trial count \(m_i\) determines the number of successes and failures in the binomial contribution. The offset \(o_i\) enters through \(p_i\) but is not estimated as a coefficient. The weight \(a_i\) scales the entire contribution under the stated convention.
To derive this, differentiate the binomial log-likelihood with respect to its linear predictor \(\eta_i=x_i^\mathsf{T}\beta+o_i\). Since \(dp_i/d\eta_i=p_i(1-p_i)\),
The offset is fixed, so \(\partial\eta_i/\partial\beta=x_i\). Multiplying the resulting score by \(a_i\) and summing gives the stated expression. In particular, the score depends on \(m_i\) through the expected success count \(m_i p_i\); replacing \(m_i\) by \(a_i\) would change the model rather than apply the specified weight. \(\square\)
Worked Example: Binomial Trials, a Fixed Offset, and Unequal Weights
Consider two binomial observations with a common intercept \(\beta\), the same known offset \(o_i=\log 2\), and weights \(a_1=1\), \(a_2=2\). The data are \(y_1=4,m_1=10\) and \(y_2=12,m_2=20\). Find the weighted maximum-likelihood estimate of \(\beta\).
The linear predictor is \(\beta+\log 2\) for both observations, so both have the same success probability \(p=\operatorname{logit}^{-1}(\beta+\log 2)\). The intercept score is
Setting the score to zero gives \(p=28/50=0.56\). Thus the fitted odds are \(0.56/0.44=14/11\). Since those odds equal \(\exp(\beta+\log 2)=2\exp(\beta)\),
The offset shifts the log odds by \(\log 2\); it is not estimated. The binomial trial counts are 10 and 20, and the weights multiply their respective score contributions. For example, the second observation contributes \(2(12-20p)\), not a binomial contribution with 40 trials. The weighted score is zero at the reported estimate, as required.
Poisson Likelihood With an Exposure Offset and a Weight
For a Poisson response \(Y_i\sim\operatorname{Poisson}(\mu_i)\), the log-link model with a known offset is
When \(o_i=\log(E_i)\), where \(E_i>0\) is known exposure, this is equivalent to \(\mu_i=E_i\exp(x_i^\mathsf{T}\beta)\). With weights \(a_i\geq0\), the weighted log-likelihood is
The exposure changes the expected count through the offset. The observation weight scales the log-likelihood contribution. A Poisson count is not a binomial trial count: there is no binomial denominator \(m_i\) here.
For a complete derivation, differentiate one contribution with respect to \(\eta_i=x_i^\mathsf{T}\beta+o_i=\log(\mu_i)\). Since \(d\mu_i/d\eta_i=\mu_i\),
As the offset is fixed, differentiating \(\eta_i\) with respect to \(\beta\) gives \(x_i\). Scaling each score by its weight and summing yields the result. \(\square\)
Worked Example: Weighted Poisson Counts With Different Exposures
Suppose \(Y_1=3\) and \(Y_2=4\) are independent Poisson counts, with exposures \(E_1=2\) and \(E_2=5\). Fit an intercept-only log-rate model \(\log(\mu_i)=\beta+\log(E_i)\), using weights \(a_1=1\) and \(a_2=2\). Find \(\widehat{\beta}\) and both fitted means.
Here \(\mu_1=2\exp(\beta)\) and \(\mu_2=5\exp(\beta)\). The score equation is
Therefore \(\exp(\widehat{\beta})=11/12\), so \(\widehat{\beta}=\log(11/12)\approx-0.0870\). The fitted means are
The exposure ratio is reflected in the fitted means: \(\widehat{\mu}_2/\widehat{\mu}_1=5/2\). The weights enter the intercept score, giving weighted observed total \(3+2(4)=11\) and weighted exposure total \(2+2(5)=12\). The score at the estimate is \(11-12(11/12)=0\).
What Rescaling All Weights Does
A useful check is to distinguish changing relative weights from multiplying every weight by the same positive constant. Assume the model and offsets are fixed, \(c>0\), and the unpenalized weighted likelihood has a maximizer. Replacing every \(a_i\) by \(ca_i\) multiplies the entire criterion by \(c\):
For any two parameter values, multiplication by a positive constant preserves their likelihood ordering: \(\ell_w(\beta_1)\geq\ell_w(\beta_2)\) if and only if \(c\ell_w(\beta_1)\geq c\ell_w(\beta_2)\). Thus the set of maximizers is unchanged. At a regular interior maximum, the observed information, defined as the negative Hessian of the log-likelihood, is multiplied by \(c\) as well. This is a statement about the curvature of this criterion; the inferential interpretation of standard errors depends on what the weights mean and on the model’s dispersion convention.
Worked Example: Rescaling Weights Without Changing the Estimate
In the binomial example, the score equation was \(28-50p=0\), giving \(p=0.56\) and \(\widehat{\beta}=\log(7/11)\). If both weights are doubled, the score becomes
Its zero is still \(p=56/100=0.56\), and the same offset conversion gives \(\widehat{\beta}=\log(7/11)\). The data contributions have been scaled together, so their relative balance and the coefficient estimate remain unchanged. This does not mean that doubling a single weight has no effect: changing only one weight alters the relative balance of observations and can change the estimate.
Common Mistake: Treating Every Multiplier as the Same Thing
A tempting but incorrect shortcut is to combine a binomial trial count and a generic weight into a new trial count, or to treat an exposure offset as though it were an observation weight. The terms have different mathematical locations. In the binomial model, \(m_i\) appears in the sampling distribution and in \(m_i p_i\); \(a_i\) multiplies the log-likelihood contribution; and \(o_i\) enters the predictor that determines \(p_i\). In the Poisson model, exposure enters the mean through \(\exp(o_i)\), while \(a_i\) scales the contribution.
For an integer frequency weight, replication may give a literal sampling interpretation, but that interpretation does not turn every weight into a trial count. A relative-precision or other prior weight is not automatically extra data. Before calculating, write the model mean or probability and the weighted log-likelihood separately; then check that each quantity appears in its intended place.
Check Your Understanding
Use the model equations and weighted likelihoods above to answer these questions.
- In a binomial-logit model, which quantity determines the expected number of successes \(m_i p_i\), and which quantity scales the observation’s likelihood contribution?
- A Poisson model has exposure \(E_i\) and a log link. Write its mean in terms of \(E_i\), \(x_i^\mathsf{T}\beta\), and identify where an observation weight enters.
- Why does replacing \(m_i\) by \(a_i m_i\) generally change the binomial model rather than merely apply the specified observation weight?
- If every positive likelihood weight is multiplied by the same positive constant, what happens to the set of maximizers of an unpenalized weighted log-likelihood? Explain.
- In the weighted Poisson example, verify the intercept score at the fitted coefficient using the two fitted means.