Regression Analysis and Generalized Linear Models
Regression analysis models the conditional distribution of a response variable given predictors; Generalized Linear Models (GLMs) extend ordinary linear regression to response distributions in the exponential family via a link function relating the mean to a linear predictor. Key result: maximum likelihood estimation in a GLM reduces to Iteratively Reweighted Least Squares (IRLS), which solves the score equations efficiently. Applies wherever responses are continuous, binary, count, or otherwise non-Gaussian. Foundational work by Nelder & Wedderburn (1972); roots in Legendre, Gauss, and Galton.
Linear regression is "least squares applied to a Gaussian." Replace the Gaussian by any exponential-family distribution and connect its mean to a linear predictor through a smooth invertible link. The exponential family's algebra guarantees that (i) the mean and variance are determined by a single natural parameter, (ii) the log-likelihood is concave in the natural parameter, and (iii) maximum likelihood estimation becomes Newton/Fisher-scoring that is exactly weighted least squares. Thus heterogeneous data types are tamed by a single, elegant, convex machine.
Formal Statement
Given observations with , the ordinary linear regression model is
equivalently in matrix form , where is the design matrix, the coefficient vector, the error variance, and . Derivation hint: stack the scalar equations row-wise; the independence of the makes the covariance diagonal.
A distribution belongs to the (one-parameter) exponential dispersion family if its density/mass can be written
where is the natural (canonical) parameter, the dispersion parameter, the cumulant function (a smooth convex function), typically for known prior weight , and a normalizing term independent of . Derivation hint: write Gaussian/Bernoulli/Poisson densities in exponential form and read off and .
For any member of the exponential dispersion family [2],
where is the variance function, expressing the variance as a function of the mean. Derivation hint: differentiate the identity twice with respect to and use and .
A GLM consists of three components: 1. Random component: independent with density [2] and means . 2. Systematic component: a linear predictor . 3. Link function: a monotone, twice-differentiable with
The canonical link is , which makes directly. For Gaussian, (identity); for Bernoulli, (logit); for Poisson, . Derivation hint: set and invert [3] to obtain .
The log-likelihood of a GLM yields score (gradient) equations
and the expected (Fisher) information matrix is
Derivation hint: apply the chain rule and use .
Why It Holds / Derivation
We derive Fisher scoring for [5] and show it equals weighted least squares. 1. Log-likelihood. From [2], the contribution of observation is
Derivation hint: take the logarithm of the exponential-family density. 2. Score per observation. Differentiating with the chain rule and using , ,
Derivation hint: since . 3. Newton step with expected Hessian. Fisher scoring replaces the observed Hessian by . The update is
Derivation hint: Newton–Raphson on the score, swapping observed for expected information. 4. Working response. Define the adjusted dependent variable
Derivation hint: linearize about : . 5. IRLS form. Substituting [6] and [10] into [9] gives
which is exactly the weighted least squares solution regressing the working response on with weights . Iterating until convergence yields the MLE . Derivation hint: collect with , then absorb terms so .
∎John Nelder, a British statistician at Rothamsted Experimental Station, and Robert Wedderburn, his young collaborator, published "Generalized Linear Models" in the Journal of the Royal Statistical Society in 1972. Their insight was to recognize that linear regression, logistic regression, log-linear models, and probit analysis — previously taught as separate techniques — were all instances of one unifying structure: an exponential-family response and a link function, fitted by a single algorithm. Wedderburn further introduced quasi-likelihood (1974), freeing estimation from full distributional assumptions by requiring only a mean–variance relationship. Tragically, Wedderburn died at age 28 from anaphylaxis; Nelder went on to develop the GLIM software that made GLMs computationally accessible and championed the framework for decades.
Building Intuition
Picture ordinary least squares as fitting a flat plane to a cloud of points, where every point pulls equally hard (constant variance). A GLM says: not all points should pull equally — points where the response is intrinsically more variable should pull less. The weights encode "how much to trust this observation," and they depend on the current fitted mean. The link function is a change of scale: for counts you fit on a log scale (so the prediction can never go negative); for probabilities you fit on a logit scale (so predictions stay in ). IRLS then alternates: "given current beliefs about the means, recompute trust weights and a linearized target; refit by weighted least squares; repeat." It is least squares wearing different costumes for different data types.
Worked Examples
Given. An engineer tests components at temperatures °C with binary outcomes "defect" . We fit , where . Variance function , canonical logit link, dispersion .
Steps. 1. Initialize . Compute . 2. Inverse link . 3. Weights (since for canonical link , so ). 4. Working response : . 5. Solve . By the data's symmetry the estimate centers at ; one iteration moves toward , , and IRLS converges within ~6 iterations.
Answer.
Given. Policyholders' claim counts with exposure (years) . Model where is a risk indicator and is an offset. Data: . Variance function , log link, .
Steps. 1. Rate . Total exposure-by-group: low-risk , claims ; high-risk , claims . 2. For Poisson with log link and a single binary covariate, the MLE matches observed rates: , . 3. Recover coefficients: ; . 4. Rate ratio : high-risk policyholders file claims at 4.2× the rate.
Answer.
Common Misconceptions
"Linear" in linear and generalized linear model refers to linearity in , not in . You may include , , splines, or interactions and remain within the (G)LM framework. Conversely, a model that is nonlinear in the parameters (e.g., ) is not a GLM even though it has an exponential shape — unless you can recast it through a valid link.
Coefficients are interpreted on the link scale. In Poisson log-link regression, is a log rate ratio; in logistic regression, is a log odds ratio — neither is a change in probability or in count. Predictions must be back-transformed via , and because is nonlinear, in general (Jensen's inequality).
If a covariate perfectly separates the two classes — every has and every has — the likelihood is monotone increasing as . The MLE does not exist (it diverges), even though IRLS appears to "converge" to huge coefficients with enormous standard errors. The fitted probabilities approach 0/1 and Wald inference becomes meaningless. Remedies: Firth's penalized likelihood, Bayesian priors, or exact logistic regression. This shows that the existence of a finite MLE is not guaranteed in GLMs, unlike in full-rank Gaussian OLS.
Connections
GLMs sit at a crossroads of statistics. They generalize the Ordinary Least Squares linear model and are themselves special cases of broader frameworks. The Exponential Family supplies their probabilistic backbone, and Maximum Likelihood Estimation supplies their inferential engine; the IRLS algorithm is just Newton–Raphson Method / Fisher scoring in disguise. When the dispersion or correlation structure is richer, GLMs extend to Generalized Estimating Equations (for correlated data) and Generalized Linear Mixed Models (with random effects). Wedderburn's Quasi-Likelihood drops the full distributional assumption, keeping only the mean–variance link. Regularized variants connect to Ridge Regression and Lasso Regression, and the logistic GLM is precisely the single-layer building block of Neural Networks. Inference relies on the Wald Test, Likelihood Ratio Test, and the Deviance goodness-of-fit measure.
Real-World Applications
Historical Development
Subtleties & Limits
Several issues remain active or delicate. Existence and uniqueness of the MLE can fail under separation or sparse data; penalized and Bayesian regularization are still being refined for high-dimensional GLMs (), where classical asymptotics break down and even the bias of the MLE behaves non-classically (Sur & Candès, 2019). Dispersion modeling — when itself depends on covariates — pushes beyond standard GLMs into double GLMs and distributional regression (GAMLSS). Misspecified mean–variance links undermine standard errors; sandwich/robust variance estimators help but lose efficiency. Causal interpretation of GLM coefficients requires assumptions (no confounding, correct functional form) far stronger than the model itself supplies, a recurring source of error in applied work. Finally, inference after model selection (choosing covariates then testing them) invalidates naive p-values; post-selection inference for GLMs is an ongoing research frontier.
See Also
Ordinary Least Squares · Exponential Family · Maximum Likelihood Estimation · Logistic Regression · Poisson Regression · Deviance · Quasi-Likelihood · Generalized Linear Mixed Models · Generalized Additive Models · Ridge Regression · Lasso Regression · Newton–Raphson Method