Classical Machine Learning
Classical Machine Learning is the body of statistical and algorithmic methods that learn predictive or descriptive models from data without deep neural networks — including linear/logistic regression, support vector machines, decision trees, k-nearest neighbours, naive Bayes, and clustering. Key result: by minimizing a regularized loss over a training set, one can fit a function that generalizes to unseen data, with generalization controlled by the bias–variance tradeoff. Where it applies: tabular data, small-to-medium datasets, interpretable modelling, scientific inference, and as baselines everywhere. Who/when: roots in Gauss and Legendre (least squares, ~1805), formalized by Fisher, Rosenblatt, Vapnik, Breiman, and others across the 20th century.
Learning is function estimation under uncertainty. We never see the true data-generating distribution ; we see a finite sample. We choose a hypothesis class (the set of candidate models), define a loss measuring error, and pick the member of that minimizes loss on the data — but constrained so we fit signal, not noise. Every classical algorithm is a particular choice of .
Formal Statement
We are given a training set drawn i.i.d. from an unknown distribution over . A hypothesis belongs to a hypothesis class . A loss function measures prediction error. The goal is to minimize the true risk (expected loss):
Derivation hint: this is the population mean of the loss; it is the quantity we wish were small but cannot compute directly because is unknown. Since is unknown, we minimize the empirical risk instead:
Derivation hint: replace the expectation in [1] with the sample average over the training set — a Monte Carlo estimate of . The learned model is , where is a regularizer penalizing complexity and trades off fit versus complexity.
Here the symbols are: the feature vector; the target (continuous for regression, categorical for classification); a candidate model; the model family; the per-example loss; the regularization strength; a norm or count of model parameters.
For regression, the squared loss:
Derivation hint: arises as the negative log-likelihood of a Gaussian noise model , . For binary classification (), the logistic / cross-entropy loss:
where . Derivation hint: negative log-likelihood of a Bernoulli model whose success probability is the logistic transform of a linear score.
For squared loss with target , , , the expected test error of an estimator at a point decomposes as:
Derivation hint: expand the square, add and subtract , and use that is independent of with zero mean so all cross terms vanish.
Why It Holds / Derivation
Step 1. Write the expected squared error, with expectation over training sets and noise:
Step 2. Expand:
Step 3. Since is independent of and , the middle term vanishes, and .
Step 4. Add and subtract inside the first term:
because the cross term .
Step 5. Identify as and as the variance. Summing gives [5].
∎Soviet-American mathematician who, with Alexey Chervonenkis, founded statistical learning theory in the 1960s–70s. They introduced the VC dimension, a measure of hypothesis-class capacity bounding the gap between empirical and true risk, and proved uniform convergence results that explain why empirical risk minimization works. Vapnik later co-invented the support vector machine (1992–95), which combined margin maximization with the kernel trick to produce one of the most powerful pre-deep-learning classifiers. His book The Nature of Statistical Learning Theory (1995) made the field rigorous and is foundational reading.
Building Intuition
Think of fitting a curve to noisy dots. A straight line (low complexity) is rigid: it cannot bend to follow the true curve, so it is consistently wrong in a systematic way — high bias. A wiggly high-degree polynomial threads through every dot, including the noise; rerun with new data and the wiggles jump around wildly — high variance. The sweet spot is a model flexible enough to capture the real shape but stiff enough to ignore noise. Regularization is the stiffness knob: increasing shrinks coefficients toward zero, trading a little extra bias for a large reduction in variance. This is why you almost never use an unregularized, maximally flexible model in practice.
Worked Examples
Given: Three data points . Fit by minimizing squared error.
Step 1. Closed form: . Means: , .
Step 2. Numerator: .
Step 3. Denominator: .
Step 4. . Then .
Predicted at : ; residuals ... checked, sum to zero as required.
Given: Labelled points :●, :●, :○, :○. Classify query with using Euclidean distance.
Step 1. Distances: ; ; ; .
Step 2. Sort ascending: .
Step 3. Take nearest: → labels .
Step 4. Majority vote: 2 vs 1.
Note: the tie in distance is broken by index order; in practice ties are handled by distance-weighting.
Common Misconceptions
Low training error means a good model — FALSE. A model can achieve zero training error by memorizing noise (overfitting) while performing terribly on new data. Always evaluate on a held-out test set or via cross-validation, never on the data used to fit. Likewise, never tune hyperparameters on the test set — that leaks information and inflates your reported accuracy.
More features always help — FALSE. Adding irrelevant or correlated features increases variance and can degrade performance (the curse of dimensionality: in high dimensions, distances concentrate and data becomes sparse). Feature selection, regularization, and dimensionality reduction (e.g. Principal Component Analysis) are often essential.
Accuracy is a reliable metric — not on imbalanced data. Suppose 99% of emails are non-spam. A trivial classifier that labels everything "non-spam" achieves 99% accuracy yet catches zero spam. Its recall on the positive class is 0%. This shows why one must report precision, recall, F1, and AUC rather than raw accuracy when classes are imbalanced.
Connections
Classical ML sits at the crossroads of several fields. Linear Regression and Logistic Regression are special cases of Generalized Linear Models from statistics. Maximum Likelihood Estimation supplies the principled origin of most loss functions (squared loss ↔ Gaussian noise, cross-entropy ↔ Bernoulli). Convex Optimization provides the algorithms — Gradient Descent and its variants — that minimize the objectives. Support Vector Machines connect to functional analysis through the Kernel Trick and reproducing kernel Hilbert spaces. The capacity-control theory linking to is Statistical Learning Theory via the VC Dimension. Unsupervised methods like k-Means Clustering and Principal Component Analysis are the descriptive counterparts to these predictive tools.
Real-World Applications
Historical Development
Subtleties & Limits
Several deep questions remain partly open. Why does ERM generalize even when models can interpolate the data? The classical bias–variance picture predicts disaster at interpolation, yet over-parameterized models (and even large random forests) can generalize well — the double descent phenomenon, now studied but not fully theorized. How should we choose the hypothesis class and regularizer automatically? AutoML and meta-learning attack this heuristically without firm theory. Distribution shift: all guarantees assume i.i.d. train/test data; performance under shifted lacks general bounds. Causality vs. correlation: classical ML estimates conditional means, not causal effects, so models can fail catastrophically under intervention — bridging this with causal inference is active research.
See Also
Linear Regression · Logistic Regression · Support Vector Machines · Decision Trees · Random Forests · Gradient Boosting · k-Nearest Neighbours · Naive Bayes · k-Means Clustering · Principal Component Analysis · Cross-Validation · Regularization · VC Dimension