Where Statistics Meets Machine Learning
How classical statistics (inference) relates to machine learning (prediction), through Breiman's two cultures.
Statistics for Everyday Life · Lesson 6
How classical statistics (inference) relates to machine learning (prediction), through Breiman's two cultures.
'Statistics' and 'machine learning' are often treated as rival tribes. In truth they are two branches of the same enterprise, learning from data, that emphasise different goals. Classical statistics grew up asking why: which factors influence an outcome, and how confident can we be about them. Machine learning grew up asking what: given these inputs, what will happen next, as accurately as possible.
Knowing which question you are really asking decides almost everything else, from which method to reach for, to how you judge success, to how much you should trust the answer. Confuse the two and you may build a model that predicts brilliantly but explains nothing, or one that explains cleanly but predicts poorly.
Inference asks about the underlying process: does this drug lower blood pressure, by how much, and with what uncertainty? It prizes interpretable parameters, confidence intervals, and assumptions you can check. Prediction asks only whether new cases are classified or forecast accurately; the model can be a black box as long as the forecasts are good.
Classical statistics often judges a model by fit and by whether its assumptions hold on the data in hand. Machine learning judges a model by out-of-sample performance: split the data, train on one part, and measure error on data the model has never seen. Cross-validation and held-out test sets are the core discipline that guards against overfitting, a model that memorises noise and then fails on new data.
A simple linear regression is easy to read but may miss complex patterns. A random forest or a neural network can capture rich structure and predict well, yet tells you little about mechanism. This is the bias-variance trade-off in another guise: more flexible models can reduce bias but risk higher variance, and they cost you interpretability.
A hospital wants two things from the same patient data. To learn which factors raise readmission risk, so it can change policy, it fits a logistic regression whose coefficients say how each factor moves the odds, with intervals around them. To flag which specific patients to follow up tomorrow, it trains a gradient-boosted model tuned only to maximise accuracy on held-out patients. Same data, two cultures, two tools, because the questions differ.
The cultures are not sealed off from each other. A well-built predictive model can still be probed for which features matter, and modern tools can attach uncertainty to machine-learning predictions. Conversely, statisticians routinely use predictive accuracy to compare candidate models. The line is about emphasis, not a wall: the best practitioners borrow freely, using prediction to stress-test explanations and explanation to sanity-check predictions.
In 2001 the statistician Leo Breiman published 'Statistical Modeling: The Two Cultures' in the journal Statistical Science. He described two communities. The data-modeling culture, which he estimated at roughly 98% of academic statisticians, assumes the data come from a stated stochastic model, such as linear or logistic regression, and focuses on estimating its parameters. The algorithmic-modeling culture, a small minority he identified with, treats the data-generating mechanism as unknown and uses algorithms like decision trees and random forests chosen purely for predictive accuracy.
Breiman argued that the field's attachment to simple, checkable models had led it to ignore more accurate algorithmic methods and, at times, to work on the wrong problems. He was well placed to say so: he helped invent CART, bagging, and random forests. His paper is now read as an early and prescient bridge between traditional statistics and what became mainstream machine learning.
For three scenarios, estimating a policy's effect, forecasting product demand, and diagnosing from an image, decide whether you mainly need inference or prediction, and name a suitable method for each. Then ask what you would lose by using the other culture's tool instead.
Think Like a Maester: Before choosing a model, ask whether you need to understand the world or to forecast it.
Classical statistics and machine learning are complementary branches of learning from data. Statistics leans toward inference, understanding processes with interpretable, uncertainty-aware models, while machine learning leans toward prediction, maximising accuracy on unseen data, often with flexible black-box algorithms. Breiman's 2001 'Two Cultures' named this divide and urged statisticians to take algorithmic prediction seriously. The mature view is not to choose sides but to match the tool to the question: understand when you must, predict when you can, and validate either way.
Mark this lesson complete to track your progress.