Why Precision Weights Change the Likelihood
A Gaussian model with equal response variances assigns the same amount of variability to every observation. In some applications, however, the observations have different, known levels of precision. A precise observation should have a narrower Gaussian distribution around its mean than a less precise one. The likelihood must express both this change in spread and the corresponding change in the density's normalizing constant.
Here the observation-specific variances are specified using positive numbers \(w_i\). The weights are known inputs to the model, not parameters to be estimated. We derive the individual densities and their log-likelihood contributions before combining them into a likelihood for independent observations.
The mean \(\mu_i\) may be specified by a model for the conditional mean. For example, in an identity-link Gaussian regression model it can be written as \(\mu_i=x_i^\mathsf{T}\beta\). The likelihood construction below only requires the specified values \(\mu_i\); it does not require estimating them or deriving an estimating equation.
One Observation: Density and Log-Likelihood Contribution
For one observation, the normal density with mean \(\mu_i\) and variance \(\sigma^2/w_i\) is
Taking the logarithm gives the contribution of observation \(i\):
There are two effects of \(w_i\). It multiplies the squared residual in the exponential, and it also appears in the normalizing term \(\frac{1}{2}\log w_i\). Both are required for this expression to be the log of a probability density. The weights are held fixed when treating this as a likelihood in the model parameters.
Worked Example: A Single Observation with Weight Four
Suppose \(y=2\), \(\mu=1\), \(\sigma^2=4\), and the known weight is \(w=4\). The model variance is \(\sigma^2/w=4/4=1\). Therefore the density at the observed value is
The log-likelihood contribution, using the expanded expression, is
The two terms involving \(\log 4\) cancel here because \(\sigma^2/w=1\). This agrees with the direct calculation \(\log f=-\frac{1}{2}\log(2\pi)-\frac{1}{2}\).
Independent Observations: The Full Likelihood
Conditional independence means that the joint density is the product of the individual densities. Consequently, the likelihood for the model parameters is
Taking the logarithm converts the product into a sum. The complete log-likelihood is
Equivalently, the first two terms can be combined as \(\frac{1}{2}\sum_i\log\{w_i/(2\pi\sigma^2)\}\). The displayed form separates the parts involving the known weights, the common dispersion, and the weighted squared residuals. If \(\mu_i\) is specified through regression parameters, substitute that model for each \(\mu_i\); the likelihood formula itself remains the same.
Proof. Conditional independence gives the joint density \(f(y_1,\ldots,y_n)=\prod_{i=1}^n f_i(y_i\mid\mu_i,\sigma^2,w_i)\). Substituting the individual density derived above yields the stated product likelihood. Since each factor is positive, its logarithm is defined, and the logarithm of a finite product is the sum of the logarithms. For each \(i\), that logarithm is \(\frac{1}{2}\log w_i-\frac{1}{2}\log(2\pi)-\frac{1}{2}\log\sigma^2-\frac{w_i(y_i-\mu_i)^2}{2\sigma^2}\). Summing over \(i=1,\ldots,n\) gives the displayed expression, including the term \(-\frac{n}{2}\log\sigma^2\). \(\square\)
Worked Example: Computing Three Log-Likelihood Contributions
Consider three independent observations with common dispersion \(\sigma^2=2\), known weights \(w_1=1\), \(w_2=4\), and \(w_3=0.25\), observed values \((1.5,1,4)\), and specified means \((1,2,3)\). The residuals are \(0.5,-1,1\). First calculate the weighted squared residual sum:
The weights have product \(1\cdot4\cdot0.25=1\), so \(\sum_i\log w_i=0\). The full log-likelihood is therefore
The separate contributions provide a check. For observation 1, the variance is \(2/1=2\), so \(\ell_1=-\frac{1}{2}\log(4\pi)-0.25/4\approx-1.32801\). For observation 2, the variance is \(2/4=0.5\), so \(\ell_2=-\frac{1}{2}\log(\pi)-4/4\approx-1.57236\). For observation 3, the variance is \(2/0.25=8\), so \(\ell_3=-\frac{1}{2}\log(16\pi)-0.25/4\approx-2.02116\). Adding them gives \(-1.32801-1.57236-2.02116=-4.92153\), matching the full expression up to rounding.
Why the Normalizing Term Matters
The density must integrate to one for every permitted mean, dispersion, and positive weight. This requirement explains why it is not enough to multiply the residual penalty by \(w_i\): changing the variance also changes the height and spread of the density. The following result makes the role of the normalizing factor explicit.
Proof. Set \(z=(y_i-\mu_i)\sqrt{w_i}/\sigma\). Because \(w_i>0\) and \(\sigma>0\), this is a one-to-one change of variable from \(\mathbb{R}\) to \(\mathbb{R}\), with \(dy_i=(\sigma/\sqrt{w_i})\,dz\). The integral of the proposed density is
where the last equality is the normalization of the standard normal density. Thus the factor \(\sqrt{w_i}/\sigma\) in the density is essential. \(\square\)
Worked Example: Detecting an Omitted Normalizer
Let \(w=4\), \(\sigma^2=1\), and let the mean be any fixed real number \(\mu\). The correct density is
Its integral is one: with \(z=2(y-\mu)\), we have \(dy=dz/2\), and
If the factor \(\sqrt{w}=2\) were omitted while retaining the exponential term, the integral would instead be \(1/2\). That expression would not be a probability density and would give an incorrect likelihood.
Comparing Mean Specifications at Fixed Dispersion
The full expression also gives a simple likelihood comparison when two candidate mean vectors are evaluated using the same observed responses, weights, and dispersion. This comparison is a property of the likelihood; it does not require fitting either candidate.
Proof. Write the full log-likelihood once for \(\boldsymbol{\mu}\) and once for \(\boldsymbol{\nu}\). In each expression the terms \(\frac{1}{2}\sum_i\log w_i\), \(-\frac{n}{2}\log(2\pi)\), and \(-\frac{n}{2}\log\sigma^2\) are identical because the weights and dispersion are held fixed. Subtracting the expressions cancels those terms, leaving exactly the displayed difference of weighted squared-residual sums multiplied by \(-1/(2\sigma^2)\). \(\square\)
Common Mistakes and Interpretation
- Dropping the weight from the normalizer. Keeping \(w_i(y_i-\mu_i)^2\) in the exponent but omitting \(\frac{1}{2}\log w_i\) does not give the stated Gaussian density. The normalizing term follows from the variance \(\sigma^2/w_i\).
- Using \(\sigma^2w_i\) as the variance. Under this model, the variance is \(\sigma^2/w_i\), not \(\sigma^2w_i\). A larger \(w_i\) means a smaller variance.
- Treating weights as estimated parameters. Here the \(w_i\) are known positive inputs. If their values were unknown, their role and the likelihood's parameterization would need to be specified differently.
- Calling every weight a replication count. These weights specify observation-specific variances in a Gaussian model. They are not automatically counts of independent repeated observations; that would be a different sampling description.
- Discarding terms without checking the comparison. Terms constant in the mean parameters can be omitted when comparing means at fixed weights and dispersion. They cannot be discarded indiscriminately when the dispersion or weights vary across the likelihoods being compared.
Check Your Understanding
Use the specified variance model throughout your answers.
- If \(\sigma^2=6\) and \(w_i=3\), what is the variance and what is the precision of \(Y_i\)?
- Write the log-likelihood contribution for one observation \(y_i\), leaving \(\mu_i\), \(w_i\), and \(\sigma^2\) symbolic.
- For two independent observations, explain why their Gaussian densities multiply and their log-likelihood contributions add.
- For one observation with \(\sigma^2=1\) and \(w_i=4\), what multiplicative factor in the density would be missing if the weight-dependent normalizer were omitted?
- When comparing two mean vectors with identical weights and dispersion, which terms in the full log-likelihood cancel?