A Generalized Linear Model (GLM) generalizes ordinary linear regression by allowing the response to follow a distribution in the exponential family, and modeling a transformed mean via a link function. The relationship is:
\[ g(\mathbb{E}[Y\mid X]) = X\beta, \]
where \(g\) is the link that connects the expected value of the outcome to the linear predictor \(X\beta\).