Introduction
Hello again! In our last lesson, we explored the exponential family of distributions, the theoretical foundation that allows Generalized Linear Models (GLMs) to handle diverse types of data in a unified way. We ended with a key insight: the mathematical form of each distribution in this family suggests a "natural" way to connect its mean to the model's linear predictor. We called this the canonical link function.
Today, we will build directly on that idea. Our goal is to formally define what a canonical link function is and why it's considered the default or "natural" choice. We will then identify the specific canonical links for the three most common distributions you'll encounter in GLMs: the Normal, Binomial, and Poisson distributions. This will solidify your understanding of the relationship between a GLM's random and link components.
What Makes a Link "Canonical"?
In the previous lesson, we saw that any distribution in the exponential family has a natural parameter, denoted by . This parameter is directly related to the distribution's mean, (or for probabilities, for rates).
A link function, , connects the mean of our response variable to the systematic component (the linear predictor, ).
A link function is called canonical when it is the specific function that makes the linear predictor equal to the natural parameter.
Canonical Link: The link function for which . This means the linear predictor directly models the natural parameter of the distribution: .
This is the most direct and mathematically simplest relationship we can specify between the model's predictors and the parameters of the response distribution.
The following video provides a clear explanation of this concept and walks through the canonical links for our distributions of interest.
GLM Link Function, and Canonical Links
This video from Stats4Everyone defines the canonical link and then demonstrates how it is derived for the Normal, Poisson, and Binomial distributions.
Please watch from 03:36 to 07:40. The video first defines the canonical link as setting the linear predictor equal to the natural parameter, Theta (\theta). Then, pay close attention as it identifies the specific canonical link for the Normal, Poisson, and Binomial distributions in sequence.
The Intuition Behind the "Canonical" Choice
Why is this particular link special? The term "canonical" here suggests a fundamental or standard choice. Think of it as the most "organic" or straightforward connection for a given distribution.
To formalize this a bit, let's look at a clear definition.
[PDF] Generalized Linear Models Link Function
This document from Portland State University provides a concise, technical definition of the canonical link function.
Please read the short paragraph on page 1 that starts with 'Technically, there is a distinction...'. This paragraph gives a formal definition connecting the mean, the link, and the natural parameter of the exponential family.
By choosing the canonical link, we set . This choice has some desirable statistical properties that often lead to more stable and efficient model estimation, although we won't dive into the mathematical proofs.
For a more intuitive perspective, the selected answer in the following discussion explains this well.
What's the intuition behind the canonical link function in GLM?
This discussion on Cross Validated provides an excellent non-technical intuition for why the term 'canonical' is used.
Read the answer provided by the user 'paperskilltrees'. Focus on their explanation that the canonical link makes the relationship between the linear predictor (\boldsymbol{\beta}^T\boldsymbol{x}) and the natural parameter (\theta) as simple as possible (\theta = \boldsymbol{\beta}^T\boldsymbol{x}). The suggestion to think of it as an 'organic link function' is particularly helpful.
In essence, while you can use other links (which we'll discuss in the next lesson), the canonical link is the default starting point because it represents the most direct mapping between your predictors and the core parameter of your chosen distribution.
Identifying Canonical Links for Key Distributions
Let's now explicitly identify the canonical links for the three distributions at the heart of most introductory GLM applications. As you saw in the Stats4Everyone video, this involves recalling the natural parameter for each distribution that we found in the last lesson.
1. Normal (Gaussian) Distribution
This is the distribution underlying ordinary linear regression.
- Mean Parameter:
- Natural Parameter:
- Canonical Link: Since the natural parameter is the mean itself, the function that transforms the mean to the natural parameter is simply . This is the identity link.
- Model Form:
2. Poisson Distribution
This distribution is used for modeling count data.
- Mean Parameter: (the rate)
- Natural Parameter:
- Canonical Link: The function that transforms the mean () to the natural parameter is . This is the log link.
- Model Form:
3. Binomial Distribution
This distribution is used for modeling binary outcomes or proportions.
- Mean Parameter: (the probability of success)
- Natural Parameter:
- Canonical Link: The function that transforms the mean () to the natural parameter is . This is the logit link.
- Model Form:
The following table provides a clear summary of these relationships, which are the cornerstone of the most common GLMs.

Conclusion
In this lesson, we put a formal definition to the concept of the canonical link function and explored the intuition behind it. You now have a solid grasp of what a canonical link is and can identify the specific ones used for the Normal, Poisson, and Binomial distributions.
Key Takeaways:
- A canonical link function is the specific link that equates the linear predictor () to the natural parameter () of the response distribution in its exponential family form.
- This choice is considered "canonical" or "organic" because it creates the simplest, most direct mathematical relationship between the model's predictors and the distribution's parameters, often leading to desirable statistical properties.
- The three key canonical links to remember are:
- Identity Link for the Normal distribution ().
- Log Link for the Poisson distribution ().
- Logit Link for the Binomial distribution ().
Preview of the Next Lesson:
The canonical link is the standard, but it's not the only option. What if the relationship in our data doesn't quite fit the one suggested by the canonical link? In our next lesson, we will distinguish between canonical and non-canonical link functions. We'll discuss why you might choose a non-canonical link like the probit or complementary log-log link for binomial data and what the practical trade-offs are.