Where we start
Session 1 ended on a puzzle: the logistic regression was 99.4 percent right on biopsies it had never seen, and its biggest coefficient sat on texture rather than on any of the size measurements a pathologist would name first. Box is the statistician who gave the data modelling culture its best defence against exactly that kind of embarrassment. His defence is not "the model is right". It is "the model is wrong, so be precise about where". The colours are unchanged: ochre for the data modelling culture, violet for the algorithmic culture.
★ What you walk out with tonight. The correct citation for "all models are wrong", with the page number, and the two versions people confuse it with; Box's own test for a model, "Is the model illuminating and useful?"; three operational checks for useful that you can run on any model at work tomorrow; and a script that finds the 7 coefficients in a 99.4 percent model that you must never read as facts about nature.
One idea, three printings
6 min liveAsk a room where "all models are wrong, but some are useful" comes from and you will hear three different years. All three are partly right, which is why the argument never ends. The fix is to separate the idea, the exact sentence and the popular version, and to say which of them has actually been read.
LiveWhat the 1976 paper actually says4 min▶
Box's 1976 paper, "Science and Statistics", appeared in the Journal of the American Statistical Association, volume 71. Read at source, it does not contain the sentence on the mugs. It contains the idea, twice, on the same page, p.792, and each time the words "all models are wrong" are the first half of an argument about what to do next.
Section 2.3, Parsimony: "Since all models are wrong the scientist cannot obtain a 'correct' one by excessive elaboration." He adds that "overelaboration and overparameterization is often the mark of mediocrity". Section 2.4, Worrying Selectively: "Since all models are wrong the scientist must be alert to what is importantly wrong. It is inappropriate to be concerned about mice when there are tigers abroad."
The exact sentence arrives three years later, as a section heading on p.202 of Box's chapter "Robustness in the Strategy of Scientific Model Building", in the 1979 volume Robustness in Statistics edited by R. L. Launer and G. N. Wilkinson. The chapter was also issued as a Wisconsin technical report in May 1979; that copy is reported, not read. Box and Draper's 1987 book Empirical Model-Building and Response Surfaces is widely quoted as saying "Essentially, all models are wrong, but some are useful" (reported: the book was not opened for these pages).
So when a colleague cites the sentence, the precise citation is Box 1979, p.202. When they want the argument behind it, send them to 1976, p.792: that is where the useful part, the tigers and the mice, is written out.
Self-study1976 in context: Fisher, iteration and "mathematistry"3 min▶
The 1976 paper is not about models in the abstract. Box illustrates it with R. A. Fisher's work at Rothamsted, and his claim is that good statistics comes from exactly that kind of close contact with a real scientific problem. He describes science as "a motivated iteration" between theory and practice and draws it as a feedback loop, which is where Part 2's figure starts.
Two lines carry the attitude. The statistician knows that "in nature there never was a normal distribution, there never was a straight line", and yet useful results follow from assuming both. And "we cannot know that any statistical technique we develop is useful unless we use it." For theory that has lost contact with practice he coins a word, "mathematistry".
Read beside Breiman, this is the data modelling culture at its most self-aware. Box never claims the equation in the box is nature's. He claims that a deliberately wrong equation, criticised against data again and again, is how science makes progress.
The ideal gas law. Box's own example sits on the page after the heading, p.203. The law PV = RT "is not exactly true for any real gas, but it frequently provides a useful approximation and furthermore its structure is informative". Every chemistry student is taught a model that is false for every gas in the room, because the three things it relates, and the way they trade off, are the right three things. "For such a model there is no need to ask the question 'Is the model true?'. If 'truth' is to be the 'whole truth' the answer must be 'No'."
Three checks for useful
5 min liveBox's replacement for "is it true?" is one line from the 1979 chapter: "The only question of interest is 'Is the model illuminating and useful?'." He also says how to get there: model building "must be accomplished by iteration", a tentative model, a tentative analysis, then criticism using residual diagnostic checks, and round again. What he does not give is a checklist. Here is one, built from his words and Breiman's.
LiveThe three checks, and where each one comes from5 min▶
A synthesis, not a quotation. Neither Box nor Breiman wrote this list; it is built from their words so that "useful" becomes something you can test rather than assert.
- It beats the base rate on rows it never saw. Breiman's perception (d): "Predictive accuracy on test sets is the criterion for how good the model is." A model that cannot beat the do-nothing rule on unseen rows is not useful for anything, whatever its coefficients say. This is the algorithmic culture's check, and a data modeller loses nothing by running it.
- It is wrong only where the decision does not care. Box's "importantly wrong": every model is wrong somewhere, so the question is whether the wrongness sits under the decision you are about to make. A tiger for one use can be a mouse for another; Part 3 shows the same coefficient being both.
- Its structure tells you something. Box's "illuminating". The ideal gas law earns its place because its structure is informative, not because it is exact. A model whose structure you cannot read, or whose structure you should not read, can still pass checks 1 and 2, but it does not pass this one.
Notice what is missing: a high R squared on the training rows, every coefficient significant, a clean goodness-of-fit test. None of those is on the list, and Part 3's real world story shows a model failing nearly all of them and still winning.
Self-studyCox in 2001: the ideal, and the lower bound2 min▶
D. R. Cox, replying to Breiman in the same issue of Statistical Science, states the data modelling ideal in one sentence: "Descriptively appealing and transparent methods with a firm model base are the ideal." That is check 3 raised to a principle.
He is also honest about its cost. The significance tests and confidence intervals the culture reports "are often lower bounds to real uncertainty", because they are computed as if the model were right. Box's line and Cox's line are the same warning from two directions: the model is wrong, so the uncertainty it reports about itself is too small.
Self-studyTukey, quoting Martin Wilk, 19621 min▶
Fourteen years before Box's paper, John Tukey quoted his colleague Martin Wilk in "The Future of Data Analysis" (p.7): "The hallmark of good science is that it uses models and 'theory' but never believes them." It is the shortest statement of the whole attitude, and session 3 reads the rest of Tukey's paper.
One fault line this session leaves alone: frequentist versus Bayesian runs inside the data modelling culture, not between the cultures. Breiman: "I would include Bayesians in the data modeling culture." That argument lives in Bayesian, leader session 5 ↗.
When the prediction is not where the data was. Cox's reply names the case where check 2 bites hardest. He accepts that some problems suit a directly empirical approach, short term economic forecasting and real-time flood forecasting among them, then warns: "Often the prediction is under quite different conditions from the data." His examples are forecasting the v-CJD epidemic in the UK and predicting the effect on US cancer incidence of reducing medical X-rays by 10 percent. In both, the question is about a world the data never contained, and an error that was a mouse on the historical rows can be the tiger that decides the answer.
Tiger or mouse?
4 min liveBack to session 1's regression. With all 30 features it gets 170 of 171 held-out biopsies right, 99.4 percent. And 7 of its 30 coefficients point against their own feature's correlation with "benign" on the training rows. They are not the size features. They are mean compactness, mean symmetry, smoothness error, compactness error, concavity error, fractal dimension error and worst compactness. The model is wrong about them. Whether that matters is Box's question.
LiveThe same flip is a mouse and a tiger3 min▶
For prediction, a mouse. The model is 170 of 171 on biopsies it never saw, well above the 62.6 percent base rate, so it passes check 1. Nobody deciding "send this biopsy for a second read" is harmed by how the weight is split between radius, perimeter and area, because the prediction uses them all together.
For reading mechanism, a tiger. Read mean compactness off the model and you would report that compact nuclei lean benign, +0.57. On the training rows the feature's correlation with benign is -0.59: more compact nuclei are more often malignant. The coefficient is not describing compactness; it is correcting its neighbours. The model fails check 3 for that sentence, and check 2 for any decision built on it.
This is Box's "importantly wrong" made concrete: the error is the same seven numbers either way. What changes is the decision sitting on top of them. The honest report says both halves: "useful for prediction; do not read these seven coefficients".
Self-studyWhy a coefficient can take the wrong sign3 min▶
Radius, perimeter and area are three ways of measuring one thing. On the training rows mean radius and mean perimeter correlate at 0.998, mean radius and mean area at 0.990, worst radius and worst perimeter at 0.993, worst radius and worst area at 0.987. Across all 30 features, 21 pairs correlate above 0.9 in absolute value.
When features are near-duplicates, the fit can trade weight between them almost freely, and a feature can take whatever sign best corrects the others rather than one that describes itself. Alone, worst area carries a coefficient of -4.41; in the full model it carries -0.85, and the rest of the size signal is spread over five siblings. With Box's parsimony in mind, the fix is not a cleverer reading of 31 numbers. It is fewer features: the build-along refits on the dataset creators' 3 and gets 4 numbers, 0 sign surprises and 167 of 171.
The broader fact that many equally good models can tell different stories about the same data is the Rashomon effect, and it has its own session: ML Epistemology, leader session 2 ↗.
Hoadley's Fat Scorecard. Bruce Hoadley, replying to Breiman from the credit scoring company Fair, Isaac, describes a scorecard problem where every model with 27 to 36 characteristics had the same test performance. The 27-characteristic model had 162 score weights with p-values from 0.0001 to 0.984, only one of them below 0.05. "The confidence intervals for the 162 score weights were useless." And it slightly outperformed a 2,000-weight neural network. Wrong by the textbook, useful by the test: it failed every significance check and passed check 1.
A useful model that is wrong
★ 22 min · everyone buildsSame data, same split, same regression as session 1. Five steps find the seven flipped coefficients, show the near-duplicates that cause them, and refit on the three features the dataset's creators chose, to see what parsimony costs in accuracy and buys in readability. Every output below is what the code prints on scikit-learn 1.9.0.
Rebuild session 1's split and regression. Same seed, same 398 training rows and 171 held-out rows. A small helper fits a standardised logistic regression on any list of columns, because steps 4 and 5 refit on fewer features.
Count the flips. For each feature, compare the sign of its correlation with benign on the training rows against the sign of its coefficient. A disagreement means the coefficient is not describing its own feature.
Find the near-duplicates. Correlate the size features with each other, then count every pair above 0.9 in absolute value. This is the mechanism behind step 2.
Watch the weight being shared. Print the six size coefficients from the full model, then fit worst area on its own. The signal that six features split between them, one feature carries alone.
Refit on the creators' 3. The dataset's own documentation reports its best separating plane used worst area, worst smoothness and mean texture. Fit those three on our split and check every sign against its correlation.
Price the trade, do not hide it. The 30-feature model is 170 of 171 with 7 coefficients you must not read; the 3-feature model is 167 of 171 with 4 numbers that all agree with their correlations. Three biopsies on 171 is a real cost, and whether it is worth paying depends on whether anyone will read the coefficients. Write the answer down before choosing, not after.
Before session 3
30 min- Read Box 1976, section 2 (JASA 71, starting p.791). Underline both "Since all models are wrong" sentences and write down what each one tells the scientist to do next.
- List the tigers and the mice for one of your own models. Two columns: the ways it is wrong that would change a decision, and the ways it is wrong that would not. Name the decision at the top of the page.
- Run the flips check on your model. Step 2's three lines work on any linear model with a numeric target or a 0/1 label. Count the sign disagreements and mark which features they sit on.
- Drop all but one size feature and watch the flips. Keep worst area, remove the other five size features, refit, and rerun step 2. Note which of the seven flips disappear, which remain, and what happens to the held-out score. Your numbers will differ from any you have seen tonight; that is the exercise.
Three questions
Clear all three and session 2 gets stamped in your passport.
1 · Which text contains the exact sentence "All models are wrong but some are useful"?
The idea is 1976 (twice, p.792), the exact sentence is 1979 (a heading, p.202), and the "Essentially, all models are wrong, but some are useful" version is credited to Box and Draper 1987, reported rather than read.
2 · A manager asks what "useful" means for a model, operationally. Which answer can you actually test?
Training fit says nothing about unseen rows, and significance can fail while the model wins: Hoadley's 162-weight scorecard had only one p-value below 0.05 and still slightly outperformed a 2,000-weight neural network. The three checks are a synthesis of Breiman's perception (d) and Box's "importantly wrong" and "illuminating".
3 · The 30-feature regression is 99.4 percent right on held-out biopsies and 7 of its coefficients point against their feature's correlation. What can you honestly say?
The same seven numbers are a mouse for prediction and a tiger for reading mechanism. Mean compactness is +0.57 in the model and -0.59 in its correlation with benign; refitting on the creators' 3 gives 0 flips at 167 of 171.
What this session teaches, and where it came from
Every fact on this page, and its verification tier, is recorded in the course's source map.
Session 2 cheat sheet · pin this
Box says criticise the model against the data. John Tukey, in 1962, asked who looks at the data before any model exists, and how you keep that looking from contaminating the check at the end. Session 3 reads "The Future of Data Analysis" at source and builds the discipline in two moves: explore freely on the training rows, then confirm once, on rows nobody has touched.