Problem 1a: Canonical Link Functions for Various Distributions
In the framework of Generalized Linear Models (GLMs), the canonical link function is the function that directly relates the expected value of the response variable, ( \mu = \mathbb{E}[Y] ), to the linear predictor ( \eta = \mathbf{X}\boldsymbol{\beta} ) using the natural parameter of the distribution.
For each specified distribution, the canonical link function can be derived from its exponential family form:
-
Gaussian (Normal) Distribution:
- Exponential Family Form:
[
f_Y(y) = \exp\left(-\frac{(y - \mu)^2}{2\sigma^2}\right) \propto \exp\left(\frac{y\mu - \mu^2/2}{\sigma^2}\right)
]
- Natural Parameter: ( \theta = \mu )
- Canonical Link: ( g(\mu) = \mu ) (Identity Link)
-
Bernoulli Distribution:
- Exponential Family Form:
[
f_Y(y) = p^y (1-p)^{1-y} = \exp\left(y \log \left(\frac{p}{1-p}\right) + \log(1-p)\right)
]
- Natural Parameter: ( \theta = \log\left(\frac{p}{1-p}\right) ) (Logit)
- Canonical Link: ( g(\mu) = \log\left(\frac{\mu}{1-\mu}\right) ) (Logit Link)
-
Binomial Distribution:
- Exponential Family Form:
[
f_Y(y) = \binom{n}{y} p^y (1-p)^{n-y} = \exp\left(y \log\left(\frac{p}{1-p}\right) + n \log(1-p)\right)
]
- Natural Parameter: ( \theta = \log\left(\frac{p}{1-p}\right) ) (Logit)
- Canonical Link: ( g(\mu) = \log\left(\frac{\mu}{n-\mu}\right) ) (Logit Link)
-
Gamma Distribution:
- Exponential Family Form:
[
f_Y(y) = \frac{\beta^\alpha}{\Gamma(\alpha)} y^{\alpha-1} e^{-\beta y} = \exp\left((\alpha-1)\log y - \beta y + \text{const}\right)
]
- Natural Parameter: ( \theta = -\frac{1}{\mu} ) (Inverse)
- Canonical Link: ( g(\mu) = \frac{1}{\mu} ) (Inverse Link)
Thus, the canonical link functions are:
| Distribution | Canonical Link Function ( g(\mu) ) |
|---|
| Gaussian (Normal) | Identity (( g(\mu) = \mu )) |
| Bernoulli | Logit (( g(\mu) = \log\left(\frac{\mu}{1-\mu}\right) )) |
| Binomial | Logit (( g(\mu) = \log\left(\frac{\mu}{n-\mu}\right) )) |
| Gamma | Inverse (( g(\mu) = \frac{1}{\mu} )) |
Problem 1b: Interpretation of Model Parameters Under Binomial Sampling with Canonical Link
Given:
- Two predictor variables in ( \mathbf{X} ), leading to parameters ( \boldsymbol{\beta} = (\beta_0, \beta_1, \beta_2) ).
- Binomial distribution with the logit canonical link function.
Model Specification:
[
\text{logit}(\mu) = \log\left(\frac{\mu}{n - \mu}\right) = \beta_0 + \beta_1 X_1 + \beta_2 X_2
]
where:
- ( \mu = \mathbb{E}[Y] ) is the expected number of successes in ( n ) trials.
- ( X_1 ) and ( X_2 ) are the two predictor variables.
Interpretation of Parameters:
-
Intercept (( \beta_0 )):
- Interpretation: The log-odds of success when both predictors ( X_1 ) and ( X_2 ) are equal to zero.
- Mathematically:
[
\beta_0 = \log\left(\frac{\mu}{n - \mu}\right) \bigg|_{X_1=0, X_2=0}
]
- Practical Meaning: Serves as the baseline log-odds of success in the absence of any influence from ( X_1 ) and ( X_2 ).
-
Coefficient for ( X_1 ) (( \beta_1 )):
- Interpretation: The change in log-odds of success associated with a one-unit increase in ( X_1 ), holding ( X_2 ) constant.
- Mathematically:
[
\beta_1 = \frac{\partial}{\partial X_1} \log\left(\frac{\mu}{n - \mu}\right)
]
- Practical Meaning:
- Odds Ratio: ( e^{\beta_1} ) represents the multiplicative change in the odds of success for each one-unit increase in ( X_1 ).
- Example: If ( \beta_1 = 0.5 ), then ( e^{0.5} \approx 1.65 ), meaning the odds of success increase by 65% for each additional unit of ( X_1 ).
-
Coefficient for ( X_2 ) (( \beta_2 )):
- Interpretation: The change in log-odds of success associated with a one-unit increase in ( X_2 ), holding ( X_1 ) constant.
- Mathematically:
[
\beta_2 = \frac{\partial}{\partial X_2} \log\left(\frac{\mu}{n - \mu}\right)
]
- Practical Meaning:
- Odds Ratio: ( e^{\beta_2} ) represents the multiplicative change in the odds of success for each one-unit increase in ( X_2 ).
- Example: If ( \beta_2 = -0.3 ), then ( e^{-0.3} \approx 0.74 ), meaning the odds of success decrease by 26% for each additional unit of ( X_2 ).
Summary:
- ( \beta_0 ): Baseline log-odds of success when ( X_1 = 0 ) and ( X_2 = 0 ).
- ( \beta_1 ): Effect on log-odds of success for a one-unit increase in ( X_1 ), controlling for ( X_2 ).
- ( \beta_2 ): Effect on log-odds of success for a one-unit increase in ( X_2 ), controlling for ( X_1 ).
These interpretations allow for understanding how each predictor contributes to the likelihood of success in the binomial setting, with the logit link ensuring that the modeled probabilities remain within the ([0, 1]) range.