Tutorials › Generalized Linear Mixed Models (GLMM) › The Identity Link for Gaussian Means

From GLM to GLMM · Tutorial 16 of 698

The Identity Link for Gaussian Means

See how the identity link makes a Gaussian model’s conditional mean equal its linear predictor, and practise interpreting coefficients and calculating fitted means in context.

Beginner 9 min read

What You'll Learn

  • Define the identity link and its inverse for a Gaussian conditional mean.
  • Derive the identity link from the normal exponential-family representation.
  • Write a Gaussian mean model using a linear predictor and state its assumptions.
  • Calculate fitted means and predictions in the response’s original units.
  • Interpret an intercept, a slope, and a group coefficient in an identity-link model.
  • Recognize residual patterns and extrapolations that can make a fitted model unreliable.

Why Use the Identity Link?

For a Gaussian response, the conditional mean is often modeled directly as a linear function of covariates. The identity link is what makes this direct modeling possible: it leaves the mean unchanged when mapping it to the linear predictor. As a result, a prediction from the linear predictor is already a predicted mean in the original response units.

This is a natural choice when an additive change in a covariate corresponds to an additive change in the expected response, and the response can reasonably be treated as continuous and unbounded. For example, a model might describe how expected sensor voltage changes with an input setting. The model does not assert that every observed response lies exactly on its fitted mean; it describes the conditional average around which observations vary.

Definition: The identity link is \(g(\mu)=\mu\), so its inverse is \(g^{-1}(\eta)=\eta\). In a Gaussian mean model, if \(\mu_i=E(Y_i\mid\mathbf{x}_i)\) and \(\eta_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\), then \(g(\mu_i)=\eta_i\) gives \(\mu_i=\eta_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\). Here, \(\mathbf{x}_i\) is the covariate vector for observation \(i\), including a 1 for the intercept, and \(\boldsymbol{\beta}\) is the coefficient vector.

Gaussian Model and Assumptions

A basic identity-link Gaussian model specifies the distribution of each response conditional on its covariates:

$$ Y_i\mid\mathbf{x}_i\sim N(\mu_i,\sigma^2), \qquad \mu_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}. $$

The notation \(N(\mu_i,\sigma^2)\) uses \(\mu_i\) as the conditional mean and \(\sigma^2\) as the conditional variance. In this basic model, the observations are conditionally independent given their covariates, the variance is the same for each observation, and the conditional response distribution is Gaussian. The mean is assumed to follow the specified linear predictor over the covariate range being modeled.

These are modeling assumptions, not consequences of choosing an identity link. A Gaussian response distribution describes continuous outcomes on the real line; it is not automatically appropriate for every measurement recorded as a number. The mean structure must also be plausible: if the expected response curves with a covariate, a straight-line term alone may be inadequate. The data and scientific context must support both the distribution and the mean specification.

Why the Gaussian Canonical Link Is the Identity

The identity link is also the canonical link for the Gaussian family under its usual exponential-family parameterization. To see the connection, write the normal density for one observation with mean \(\mu\) and variance \(\sigma^2\) as:

$$ f(y\mid\mu,\sigma^2) = \exp\left\{ \frac{y\mu-\mu^2/2}{\sigma^2} -\frac{y^2}{2\sigma^2} -\frac{1}{2}\log(2\pi\sigma^2) \right\}. $$

In the exponential-family form, the term involving the response and the natural parameter is \(y\theta-b(\theta)\), divided by the dispersion. Comparing terms gives \(\theta=\mu\) and \(b(\theta)=\theta^2/2\). Differentiating the log-partition function gives the mean, \(b'(\theta)=\theta\), so the mean equals the natural parameter: \(\mu=\theta\). The canonical link maps the mean to that natural parameter, hence \(g(\mu)=\mu\).

For the model, the link equation is \(g(\mu_i)=\eta_i\). Substituting the identity link gives \(\mu_i=\eta_i\), and specifying \(\eta_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\) yields the stated Gaussian mean model. This derivation explains why the linear predictor is already on the response scale; there is no additional transformation to apply to a fitted value.

Worked Example: Predicting a Gaussian Mean

Suppose a hypothetical calibration exercise produces the fitted model \(\hat{\mu}=12.4+0.75x\), where \(x\) is an input setting measured in volts and the response is sensor output measured in millivolts. Calculate the fitted mean output at an input setting of 8 volts.

Under the identity link, the fitted mean is the linear predictor itself. Substitute \(x=8\):

$$ \hat{\mu}=12.4+0.75(8) =12.4+6.0 =18.4\text{ mV}. $$

The model predicts a conditional mean sensor output of 18.4 mV at an input setting of 8 volts. The slope has units of millivolts per volt, so increasing the input by 1 volt is associated with a 0.75 mV increase in fitted mean output, under this model. The prediction is a mean, not a claim that every individual sensor reading at that setting will equal 18.4 mV.

Fitted Values and Coefficients on the Response Scale

If the estimated coefficient vector is \(\hat{\boldsymbol{\beta}}\), the fitted value for observation \(i\) is:

$$ \hat{\mu}_i = \mathbf{x}_i^\mathsf{T}\hat{\boldsymbol{\beta}}. $$

Because \(g^{-1}(\eta)=\eta\), this calculation requires no inverse-link transformation. In a model with an intercept and one quantitative covariate, \(\mu_i=\beta_0+\beta_1x_i\). The intercept \(\beta_0\) is the modeled conditional mean when \(x_i=0\), and the slope \(\beta_1\) is the modeled change in conditional mean for a one-unit increase in \(x_i\). These interpretations are in response units and response units per covariate unit, respectively. The intercept may not have a useful practical interpretation if zero lies outside the relevant covariate range.

Worked Example: Interpreting a Slope and Predicting

A hypothetical model for the mean change in a device’s measured voltage is \(\hat{\mu}=1.6+0.28x\), where \(x\) is operating time in hours and the response is voltage change in millivolts. Find the fitted mean change at 5 hours and interpret the slope.

Substitute \(x=5\):

$$ \hat{\mu}=1.6+0.28(5) =1.6+1.4 =3.0\text{ mV}. $$

The fitted mean voltage change after 5 hours is 3.0 mV. The slope \(0.28\) has units of millivolts per hour: for each additional hour of operating time, the model’s conditional mean voltage change increases by 0.28 mV. This is a statement about the modeled mean association, not a claim that operating time causes the change.

The intercept is 1.6 mV, the fitted mean at zero hours. Its practical relevance depends on whether zero hours is meaningful in the setting and whether the linear mean model is appropriate there.

A categorical predictor can be represented with indicator variables. With a two-group predictor \(G\), define \(I(G=B)=1\) for group B and 0 otherwise. In a model with an intercept and this indicator, the group coefficient is the fitted difference in conditional means between B and the reference group A.

Worked Example: Comparing Two Fitted Group Means

In a hypothetical equipment test, let \(Y\) be the response in millivolts and let group A be the reference group. Suppose the fitted identity-link model is \(\hat{\mu}=10.5+2.3I(G=B)\). Calculate the fitted mean for each group and their fitted difference.

For group A, the indicator is 0:

$$ \hat{\mu}_A=10.5+2.3(0)=10.5\text{ mV}. $$

For group B, the indicator is 1:

$$ \hat{\mu}_B=10.5+2.3(1)=12.8\text{ mV}. $$

The fitted difference is \(12.8-10.5=2.3\) mV. Thus, the model estimates that group B’s conditional mean response is 2.3 mV higher than group A’s. The coefficient and the difference are both on the response scale.

Justification: Why Least Squares Appears

For independent Gaussian observations with a common variance \(\sigma^2\), the log-likelihood for a fixed coefficient vector, apart from constants that do not depend on that vector, is:

$$ \ell(\boldsymbol{\beta}) = -\frac{1}{2\sigma^2} \sum_{i=1}^{n} \left(y_i-\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\right)^2 +\text{constant}. $$

Since \(\sigma^2>0\), maximizing this expression over \(\boldsymbol{\beta}\) is equivalent to minimizing the sum of squared residuals. The identity-link Gaussian mean model therefore connects directly to least squares under these assumptions. This equivalence does not establish that the model is suitable: the mean form, variance behavior, independence, and Gaussian approximation still require assessment.

Diagnostics, Alternatives, and Limitations

After fitting the model, inspect residuals \(y_i-\hat{\mu}_i\) against fitted values and important covariates. A curved pattern can indicate that the specified mean is not adequately linear. A fan-shaped spread suggests that the common-variance assumption may be questionable. A normal quantile plot can reveal substantial departures from the Gaussian residual assumption, while unusually large residuals may identify influential observations or data problems. Dependence between observations also matters: a pattern over time or within groups can conflict with the conditional independence assumption.

Predictions are most defensible within the covariate range that informed the fit. A straight-line mean that appears reasonable over observed values may behave implausibly when extended far beyond them. The identity link does not constrain the mean to any particular interval. That is suitable for outcomes whose plausible values span the real line, but it can be a poor modeling choice when the response has a strict range or when its variability changes substantially with its mean.

The main alternative is not a single universal model. If residuals indicate curvature, one can consider a more flexible mean structure, such as adding justified polynomial or other nonlinear terms. If the outcome’s distribution or support is poorly described by a Gaussian model, a different response distribution and link may be more appropriate. Transforming the response is another possibility, but it changes the modeled quantity and requires care when interpreting predictions. These alternatives should be selected based on the outcome and diagnostics rather than used simply to obtain a preferred-looking fit.

Common pitfall: A fitted value of 18.4 mV is not a guaranteed individual measurement of 18.4 mV. It is the model’s estimated conditional mean at the specified covariates; individual observations vary around that mean. A second pitfall is interpreting a slope without its units: a coefficient of 0.75 means a change of 0.75 response units per one covariate unit, not a unit-free change.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. For an identity-link model with \(\eta_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\), what is the relationship between \(\mu_i\) and \(\eta_i\)?
  2. A fitted model is \(\hat{\mu}=7.2+1.1x\), with response in milligrams and \(x\) in hours. Find the fitted mean at \(x=4\), including units.
  3. In the model \(\hat{\mu}=25-3I(G=B)\), calculate the fitted means for reference group A and group B. State the fitted difference \(B-A\).
  4. Name two assumptions of the basic Gaussian identity-link model that should be assessed after fitting.
  5. Why is it incorrect to say that a fitted mean is the value every individual response will take?

Solutions. (1) The identity link gives \(\mu_i=\eta_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\). (2) Substitute \(x=4\): \(\hat{\mu}=7.2+1.1(4)=7.2+4.4=11.6\) mg. (3) Group A has indicator 0, so \(\hat{\mu}_A=25\); group B has indicator 1, so \(\hat{\mu}_B=25-3=22\). The fitted difference is \(22-25=-3\) response units, so group B’s fitted mean is 3 units lower. (4) Examples include a linear conditional mean, constant conditional variance, conditional Gaussian responses, and conditional independence; any two are sufficient. (5) The fitted mean is the expected response conditional on the covariates, whereas individual responses vary around that mean under the model.

Clinical Biostats