Simpler explanations win. When the fit is equal.
Simplicity is arithmetic, and taste has little to do with it. A flexible explanation can fit anything, so a good fit from it proves little.
Two rules fit
Take four numbers drawn at random from a hidden rule: 16, 8, 2 and 64.
Two rules fit all four. One is “even numbers”. The other is “powers of 2”. Which is more likely?
Powers of 2 wins by a wide margin, and the reason is what each rule risked.
Count the bet
Under “powers of 2” there are only 7 numbers to draw from, so each example had a 1 in 7 chance of being the one picked. Under “even numbers” there are 50, so each had 1 in 50.
One example favours the narrow rule by . Four independent examples multiply that.
The data are about 2,600 times more probable under the narrow rule.
Think of each example as a bet. The narrow rule backs fewer numbers, so every time it wins it pays more.
Now add 50 on the grid above. Powers of 2 drops to zero, because 50 isn’t one of its numbers, and “even numbers” takes 97%. The narrow rule risked more, and this time it lost.
“All numbers” is the extreme case. It fits every example, always, and after four examples it holds 0.0024%. A rule that can’t be wrong gains nothing by being right.
All of this assumes the examples were drawn at random from the rule. Switch the figure to “Any way at all” and the preference vanishes, because every rule that fits ties.
A curve that fits everything
Curves follow the same arithmetic. Twelve points are scattered around a hidden curve, and we fit a polynomial through them. A polynomial of degree has free numbers to adjust. Raise the degree.
Training error is the miss on the points the curve was fitted to. It never rises as the degree grows. At degree 11 the curve passes through all twelve points, so the training error is 0.00. Held-out error is the miss on 200 fresh points the fit never saw. At degree 11 it is 94, against 0.22 at degree 3.
A curve with enough freedom will fit nonsense just as well. Replace the data with random values and degree 11 still scores 0.00. A perfect fit can’t tell structure from noise.
So training error can’t choose between models. Held-out error can, but you have to set data aside to get it.
Fit, and what flexibility costs
A model is also a forecast. Before it sees anything, it spreads one unit of probability over every dataset it could produce. A flexible model could produce almost anything, so it spreads thin. A narrow model piles its probability onto fewer datasets. The probability a model gave to the data you actually saw is its evidence.
For a model with free numbers, the evidence splits in two.
The Occam factor is the share of the model’s freedom that the data left standing.
The fit term rises with flexibility, and the Occam factor falls. Switch on “Score without held-out data” in the figure above to see both.
On these twelve points, degree 11 at its best setting scores about 2 times higher on fit than degree 3. Its Occam factor is about 4,200 times smaller. Net, degree 3 is about 2,100 times more probable, and no held-out data was needed. That assumes the noise level is known and each coefficient has a prior spread of 1.
What the razor does not say
It doesn’t say the simplest explanation is true. It says that when two explanations fit equally well, the one that allowed fewer outcomes is the better bet. It is a rule about equal fit.
When the fit is not equal, the arithmetic follows the fit. Add 50 and the narrow rule loses. Set the hidden curve to wavy and the typical best degree climbs from 5 with 12 points to 7 with 40. More data can pay for more complexity.
It doesn’t say nature is simple either. Here, simple means allowing fewer outcomes, not sounding short. How to measure that for real theories is still an open question.
The opposite mistake is an explanation built to survive any evidence. “The world began last Thursday, with every memory and record in place” is a modern version of Bertrand Russell’s 1921 world of five minutes ago. If it is built to match the evidence of an ordinary past, every observation is exactly as likely either way. The ratio stays at 1 whatever you measure. Only the prior can tell the two apart, and it counts the extra assumptions against the claim. The Thursday story needs a creator, and it needs a cover story.
Findings
The plain results.
- On 16, 8, 2 and 64 the narrow rule, powers of 2, beat even numbers by about 2,600 to 1, though both fit. Add 50 and it drops to zero.
- Training error fell at every degree, to 0.00 at degree 11. Held-out error was lowest at degree 3, at 0.22, and rose to 94 at degree 11.
Sources
- Tenenbaum, J. B. (2000). Rules and similarity in concept learning. Advances in Neural Information Processing Systems 12.
- Tenenbaum, J. B., and Griffiths, T. L. (2001). Generalization, similarity, and Bayesian inference. Behavioral and Brain Sciences, 24(4), 629 to 640.
- Tenenbaum, J. B. (1999). A Bayesian framework for concept learning. PhD thesis, MIT. Cited through the course page below, not read directly.
- Gureckis Lab, Computational Cognitive Science course. Bayesian Number Game demo.
- MacKay, D. J. C. (2003). Information Theory, Inference, and Learning Algorithms, chapter 28, Model comparison and Occam’s razor.
- Jefferys, W. H., and Berger, J. O. (1992). Ockham’s razor and Bayesian analysis. American Scientist, 80(1), 64 to 72.
- Baker, A. (2004, revised 2022). Simplicity. Stanford Encyclopedia of Philosophy.
- Occam’s razor. Wikipedia. For the provenance of the wording.
- Who sharpened Occam’s razor? Irish Philosophy (2014). Punch’s 1639 wording, as a second check.
- Russell, B. (1921). The Analysis of Mind, Lecture IX, Memory.
- Omphalos hypothesis. Wikipedia. Gosse’s Omphalos (1857) and the name “Last Thursdayism”.
- Alder, M. (2004). Newton’s Flaming Laser Sword. Philosophy Now, issue 46.
- Rissanen, J. (1978). Modeling by shortest data description. Automatica, 14(5), 465 to 471.