Skip to main content

Linear Models

A model is linear when its prediction is linear in learned coefficients, even if the input is first transformed into nonlinear basis features:

f(x)=wϕ(x)+b.f(x)=\mathbf{w}^{\top}\phi(x)+b.

Choose a member of the family by answering four questions:

QuestionCommon choice
Is the target numerical?least squares, robust loss, quantile regression, or an appropriate generalized linear model
Is the target categorical?logistic/softmax regression, or a discriminant model with explicit class distributions
Are coefficients unstable or overfit?Ridge (2\ell_2), Lasso (1\ell_1), or Elastic Net (both)
Is the relationship nonlinear in raw features?specify basis functions or interactions while retaining linear coefficients

Site Path

Regularization parameters and feature transformations must be selected inside the training/validation process. Coefficients are not automatically causal, stable, or directly comparable across differently scaled features.

Use the scikit-learn linear-model guide for maintained implementation details; this page owns the conceptual selection map.