Tutorials › Generalized Linear Models › Link Domains And Inverse-Link Ranges

Link Functions and Scale · Tutorial 102 of 981

Link Domains And Inverse-Link Ranges

Learn to identify and verify the domains of three common links and the ranges of their inverse transformations.

Beginner 10 min read

What You'll Learn

  • Distinguish a link’s input domain from its inverse link’s output range
  • State the domains of the identity, logarithmic, and logit links
  • Derive the ranges of their inverse transformations
  • Verify link and inverse-link calculations with specific values
  • Recognize errors caused by confusing a predictor with a link input

Domains and Ranges in Link Transformations

A link connects a mean-scale value to a linear-predictor-scale value. To use that transformation correctly, it is necessary to know which values may be supplied to the link and which values can be produced by its inverse. These are related questions, but they are not the same: the domain of a link concerns its inputs, while the range of an inverse link concerns its outputs.

This distinction is concrete for the identity, logarithmic, and logit transformations. The identity link accepts any real input. The logarithmic link requires a positive input, while the logit link requires an input strictly between zero and one. Their inverse transformations produce outputs in the corresponding domains.

Definition: A link \(g\) takes a mean-scale input \(\mu\) from a specified domain \(D_g\) and returns a value on the linear-predictor scale, \(\eta=g(\mu)\). Its inverse link \(g^{-1}\) takes a value \(\eta\) in the domain of the inverse and returns a mean-scale value. The range of \(g^{-1}\) is the set of values it can produce. For the standard links considered here, the inverse link has domain \(\mathbb R\).

The domain is determined by the mathematical expression defining the link. For example, a logarithm is defined only for positive arguments. The range of the inverse is determined by what its formula can output. For instance, an exponential is always positive. These facts give the following summary.

LinkLink input domainInverse linkInverse-link output range
Identity, \(g(\mu)=\mu\)\(\mathbb R\)\(g^{-1}(\eta)=\eta\)\(\mathbb R\)
Logarithmic, \(g(\mu)=\log\mu\)\((0,\infty)\)\(g^{-1}(\eta)=\exp(\eta)\)\((0,\infty)\)
Logit, \(g(\mu)=\log\{\mu/(1-\mu)\}\)\((0,1)\)\(g^{-1}(\eta)=\exp(\eta)/\{1+\exp(\eta)\}\)\((0,1)\)

Identity Link: No Input Restriction From the Formula

The identity link leaves its input unchanged: \(g(\mu)=\mu\). The formula imposes no restriction on a real-valued input, so its domain is \(\mathbb R\). Solving \(\eta=\mu\) for \(\mu\) gives \(g^{-1}(\eta)=\eta\). Since the inverse returns its input unchanged, every real input produces a real output, and every real number is obtainable.

Worked Example: Applying the Identity Link

Suppose the link input is \(\mu=-2.4\). The identity link gives \[ \eta=g(\mu)=\mu=-2.4. \] This is defined because \(-2.4\in\mathbb R\). Applying the inverse link returns \[ g^{-1}(\eta)=\eta=-2.4. \] Thus the input domain and the inverse output range are both \(\mathbb R\). This conclusion is about the transformation itself; it does not impose any additional restrictions on a particular model.

Logarithmic Link: Positive Inputs and Positive Outputs

The logarithmic link is \(g(\mu)=\log\mu\), where \(\log\) denotes the natural logarithm. Its input must be positive: \(\mu\in(0,\infty)\). If \(\mu=0\) or \(\mu<0\), the real logarithm is not defined. To find the inverse, solve \(\eta=\log\mu\) for \(\mu\), obtaining \(\mu=\exp(\eta)\).

Result: The logarithmic link maps \((0,\infty)\) to \(\mathbb R\), and its inverse link \(g^{-1}(\eta)=\exp(\eta)\), defined for \(\eta\in\mathbb R\), has range \((0,\infty)\).

To verify the result, first note that \(\log\mu\) is a real number for every \(\mu>0\). Conversely, for any real \(\eta\), \(\exp(\eta)>0\), and \[ \log\{\exp(\eta)\}=\eta. \] Also, for every \(\mu>0\), \[ \exp\{\log(\mu)\}=\mu. \] These identities verify that the two formulas undo one another on the stated domains. Finally, every positive value \(x\) is in the inverse link's range: choosing \(\eta=\log x\) gives \(\exp(\eta)=x\). Therefore the range is all of \((0,\infty)\), not merely a subset of positive values.

Worked Example: Calculating With a Log Link

Take the positive link input \(\mu=2.5\). Then \[ \eta=g(2.5)=\log(2.5)\approx 0.9163. \] The inverse link returns \[ g^{-1}(0.9163)=\exp(0.9163)\approx 2.500. \] The slight difference from exactly \(2.5\) is due to rounding \(0.9163\). The input \(2.5\) is allowed because it is positive, and the inverse output is positive, as the range calculation requires.

As a second check, choose a predictor value \(\eta=-1.2\). Then \[ g^{-1}(-1.2)=\exp(-1.2)\approx 0.3010>0. \] A negative predictor is valid here: the restriction applies to the input of the logarithmic link, not to the real-valued input of its inverse.

Logit Link: Inputs Between Zero and One

The logit link is \[ g(\mu)=\log\left(\frac{\mu}{1-\mu}\right). \] For this expression to be a real logit, both \(\mu\) and \(1-\mu\) must be positive. Those two inequalities require \(0<\mu<1\). Thus the link's input domain is the open interval \((0,1)\).

To obtain the inverse, start with \(\eta=\log\{\mu/(1-\mu)\}\) and exponentiate: \[ \exp(\eta)=\frac{\mu}{1-\mu}. \] Multiplying both sides by \(1-\mu\) and collecting the terms involving \(\mu\) gives \[ \exp(\eta)-\exp(\eta)\mu=\mu, \qquad \exp(\eta)=\mu\{1+\exp(\eta)\}. \] Since \(1+\exp(\eta)>0\), division yields the inverse formula \[ g^{-1}(\eta)=\frac{\exp(\eta)}{1+\exp(\eta)}. \]

Result: The logit link has domain \((0,1)\), and the inverse logit \(g^{-1}(\eta)=\exp(\eta)/\{1+\exp(\eta)\}\), defined for every \(\eta\in\mathbb R\), has range \((0,1)\).

For any real \(\eta\), let \(q=\exp(\eta)\). The exponential is positive, so \(q>0\). Consequently, the inverse-logit output satisfies \[ 0<\frac{q}{1+q}<1. \] The first inequality follows from \(q>0\) and \(1+q>0\); the second follows because \(q<1+q\). This proves that every inverse-logit output lies strictly between zero and one.

To show that the inverse produces every value in that interval, take any \(\mu\in(0,1)\) and set \(\eta=\log\{\mu/(1-\mu)\}\). The ratio is positive, so \(\eta\) is real. Substitution gives \(\exp(\eta)=\mu/(1-\mu)\), and therefore \[ g^{-1}(\eta) =\frac{\mu/(1-\mu)}{1+\mu/(1-\mu)} =\frac{\mu/(1-\mu)}{1/(1-\mu)} =\mu. \] Thus every value strictly between zero and one is attained, completing the range argument. \(\square\)

Worked Example: Calculating With a Logit Link

For the link input \(\mu=0.2\), the input is permitted because \(0<0.2<1\). Its odds are \[ \frac{\mu}{1-\mu}=\frac{0.2}{0.8}=0.25, \] so the linear-predictor value is \[ \eta=g(0.2)=\log(0.25)\approx -1.3863. \] Applying the inverse link gives \[ g^{-1}(-1.3863) =\frac{\exp(-1.3863)}{1+\exp(-1.3863)} \approx \frac{0.25}{1.25} =0.2. \]

For a different calculation, let \(\eta=\log 3\). Then \(\exp(\eta)=3\), and \[ g^{-1}(\log 3)=\frac{3}{1+3}=\frac{3}{4}=0.75. \] This output lies strictly inside \((0,1)\), as required by the inverse-logit range.

Keeping the Two Questions Separate

When checking a transformation, ask two questions in order. First, what values may enter the link? Second, what values can emerge from the inverse link? For the logarithmic link these answers are \((0,\infty)\) and \((0,\infty)\); for the logit link they are \((0,1)\) and \((0,1)\). The intervals happen to match within each pair, but the roles are different: the first restricts the link input, and the second describes the inverse's possible outputs.

The linear predictor \(\eta\) is the input to the inverse link, not the input to \(g\). For all three inverse links above, \(\eta\) may be any real number. In particular, a negative \(\eta\) does not violate the input restriction of the logarithmic link: the logarithmic link acts on \(\mu\), whereas the inverse link acts on \(\eta\).

Common Mistakes

  • Applying the link's restriction to the predictor. The log link requires a positive \(\mu\), but its inverse accepts every real \(\eta\). For example, \(\exp(-1.2)>0\) is a valid inverse-link output.
  • Using a closed interval for the logit. The logit link's domain is \((0,1)\), not \([0,1]\): at either endpoint its defining ratio does not give a finite real logarithm.
  • Assuming an exponential can output zero or a negative number. For every real \(\eta\), \(\exp(\eta)>0\), so the inverse-log range is \((0,\infty)\).
  • Stopping after showing that outputs are in an interval. Showing that an inverse logit is between zero and one proves its outputs are contained in \((0,1)\). To establish that this is the full range, also show that every \(\mu\in(0,1)\) can be obtained.
Key takeaway: State a link's input domain and its inverse's output range separately. The identity link uses \(\mathbb R\), the log link uses \((0,\infty)\), and the logit link uses \((0,1)\); each inverse accepts any real linear predictor.

Check Your Understanding

Use the link formulas and the domain-and-range arguments above.

  1. What is the input domain of the logarithmic link, and what is the range of its inverse?
  2. Evaluate the inverse logit at \(\eta=0\). Is the result in the inverse link's range?
  3. Why is \(\eta=-2\) allowed as an input to the inverse logarithmic link?
  4. State the logit link's domain and explain why its endpoints are excluded.
  5. For the identity link, give its domain and the range of its inverse.
Clinical Biostats