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.

Classical machine learning studies algorithms that build a model mapping inputs to outputs by optimizing an objective measured on observed examples . It matters because most real-world predictive problems involve modest, structured (tabular) data where these methods are faster, more interpretable, and more sample-efficient than deep learning. The discipline rests on a unifying principle: empirical risk minimization regularized to prevent overfitting, justified by statistical learning theory. A surprising fact is that increasing model flexibility does not monotonically improve test performance — there is an optimal complexity at which the sum of bias and variance is minimized, a phenomenon invisible if one looks only at training error.

The Core Insight

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

Supervised Learning Problem

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):

1
⟳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:

2
⟳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.

Common Loss Functions

For regression, the squared loss:

3
⟳arises as the negative log-likelihood of a Gaussian noise model , .

For binary classification (), the logistic / cross-entropy loss:

4
where .
⟳negative log-likelihood of a Bernoulli model whose success probability is the logistic transform of a linear score.

Bias–Variance Decomposition

For squared loss with target , , , the expected test error of an estimator at a point decomposes as:

5
⟳expand the square, add and subtract , and use that is independent of with zero mean so all cross terms vanish.

Why It Holds / Derivation

Bias–Variance Decomposition

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].

Vladimir Vapnik | b. 1936

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.

Bias–variance tradeoff: test error is U-shaped in model complexity

Model complexity → Error bias² variance test error optimal

Worked Examples

Ordinary Least Squares Regression

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.

k-Nearest Neighbours Classification

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

  • Credit scoring (FICO, banks): logistic regression and gradient-boosted trees predict default probability from financial features — interpretability is legally mandated, favouring classical models.
  • Spam filtering (early Gmail, SpamAssassin): naive Bayes and SVMs classify emails from bag-of-words features.
  • Medical diagnosis & risk (e.g. Framingham, sepsis early-warning): Cox regression and random forests estimate disease risk from clinical variables.
  • Recommendation baselines (Netflix Prize era): matrix factorization and k-NN collaborative filtering predicted movie ratings.
  • Genomics (GWAS, microarray analysis): LASSO regression selects predictive genes from high-dimensional, low-sample data.
  • Customer churn / marketing (telecom, retail): gradient boosting (XGBoost, LightGBM) on tabular CRM data routinely wins Kaggle competitions.
  • Fraud detection (credit-card networks): isolation forests and ensemble trees flag anomalous transactions in real time.

Historical Development

  • 1805–1809 — Legendre & Gauss: method of least squares introduced for astronomical orbit fitting; Gauss links it to the normal distribution.
  • 1936 — R. A. Fisher: linear discriminant analysis and the foundations of statistical classification.
  • 1957 — Frank Rosenblatt: the perceptron, a learnable linear classifier and ancestor of neural networks.
  • 1963 — Morgan & Sonquist: AID, an early decision-tree algorithm; refined into CART by Breiman et al. (1984).
  • 1967 — Cover & Hart: formal analysis of nearest-neighbour classification and its error bounds.
  • 1971 — Vapnik & Chervonenkis: VC theory, bounding generalization error via hypothesis-class capacity.
  • 1986 — Quinlan: the ID3 / C4.5 decision-tree induction algorithms.
  • 1995 — Cortes & Vapnik: the support vector machine with soft margins and kernels.
  • 2001 — Breiman: random forests; Friedman (1999–2001) develops gradient boosting, dominating tabular ML for two decades.

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

Before this

Where this leads