1. The Exponential Family¶
A probability distribution belongs to the exponential family if its density can be expressed as:
(Natural Parameter): The parameter that defines the distribution.
(Sufficient Statistic): Often .
(Log-Partition Function): Ensures the distribution integrates to 1.
(Base Measure): A scaling factor independent of .
2. Mathematical Properties¶
Mean and Variance: * .
.
Convexity: Since the covariance matrix is positive semidefinite, is a convex function.
Log-Likelihood: For a GLM where , the log-likelihood is always concave in , making it suitable for global optimization.
3. GLM Design Assumptions¶
To derive a GLM, three assumptions are made:
Response Distribution: follows an exponential family distribution.
Linear Predictor: The natural parameter is a linear combination of features: .
Hypothesis: The prediction is the expected value of the sufficient statistic: .
4. Canonical Link Functions¶
The canonical link function maps the mean to the natural parameter , such that .
Gaussian (Linear Regression): ; identity link .
Bernoulli (Logistic Regression): ; logit link .