Linear Model
A linear model predicts from a weighted sum of input features. It is simple, interpretable, and often a strong baseline.
The basic form is:
where is a feature vector, is a weight vector, and is a bias term.
Common Forms
- Linear regression predicts a continuous value.
- Logistic regression predicts class probabilities.
- Linear classifiers separate classes with a hyperplane.
For linear regression with squared error, the empirical objective is:
The prediction changes by when feature increases by one unit, assuming other features are fixed. This makes the model easy to inspect, but only when feature scaling and feature correlations are understood.
For binary logistic regression:
The decision boundary at threshold is:
For multiclass logistic regression:
Why It Matters
- It makes the role of features explicit.
- It is fast to train and easy to debug.
- It provides a baseline before using larger architectures.
- It separates feature quality from model capacity.
Checks
- Are features standardized when scale-sensitive optimization or regularization is used?
- Are coefficients interpreted only after checking collinearity and preprocessing?
- Is the decision threshold selected on validation data rather than test data?
- Does a nonlinear model outperform this baseline for the right reason, not leakage?
Watch For
- Linear assumptions may be too restrictive.
- Feature scaling can matter.
- Correlated features can make coefficients hard to interpret.