Fit an Elephant
In spring 1953 the young physicist Freeman Dyson visited Enrico Fermi, one of the great physicists of the age. Dyson's team had worked out how tiny particles called mesons bounce off protons. Their results matched Fermi's measurements quite well. Fermi asked how many numbers they had chosen freely to make it fit. Dyson said four. Why did that matter?
The passage
I remember my friend Johnny von Neumann used to say, with four parameters I can fit an elephant, and with five I can make him wiggle his trunk.
(Fermi, as remembered by Freeman Dyson, "A meeting with Enrico Fermi", Nature, 2004)
Reading it slowly
Fermi quotes his friend, the mathematician John von Neumann. A parameter is a number you are free to choose to make a theory fit. Four are enough, the joke says, to draw an elephant: four numbers can shape a curve that looks like one. A fifth lets you move the trunk.
"With four parameters I can fit an elephant" claims that a few free numbers are enough to draw something as complicated as an animal. "With five I can make him wiggle his trunk" adds that one more number buys one more detail. So each extra number makes the fit easier and the fit itself less impressive.
The point is not about elephants. When you can set enough knobs, you can match almost any data. The match then tells you nothing about the world, because it would have worked anyway.
The argument in steps
In our words:
- A parameter is a number you may choose to make the theory fit.
- With enough parameters, a theory can be made to fit almost any data.
- So, a fit reached with many free numbers would have happened whatever the world is like.
- So, such a fit is weak evidence for the theory.
Step 2 does the work, and Fermi's question checks it: how many numbers did you choose? Dyson took the point and changed his work.
Overfitting
Picture a scatter plot of old data, with a wiggly curve that passes through every dot. The dots always carry some noise, small random errors. The wiggly curve catches the noise as well as the pattern. A new point then lands far from it. A simpler curve misses each old dot a little, yet lands close to the new one.
This is overfitting: a model that fits the old data too well and predicts new data badly.
Why simplicity helps
In Level 3, Newton's rules said not to add causes beyond what is needed. Fermi's point gives that advice a reason beyond taste. A simple theory has few knobs. If it still fits, the fit is hard to get by luck, so it guards our predictions.
So simplicity is not only taste. It is a way to protect ourselves from being fooled by a good match. Four numbers do not sound like many. Fermi's question was really this: how much of the match had Dyson put in by hand, and how much had the world given him?
An objection and a reply
Sometimes the world really is complicated. A model that is too simple misses a real pattern. This is called underfitting. If bus fuel use goes down and then up as speed rises, a straight line will be wrong even on the old data.
The reply: test the model on new data it has never seen. Hide some of the data first, build the model without it, and then see how well it predicts. A model that is too wiggly and one that is too plain both fail that test. Data scientists choose this way today, including for language models.
Think it over
- Can you think of a theory with many free numbers that still deserves trust? What would make you trust it?
- Fermi's question asked about numbers, not results. Why is that a fair test of someone else's work?
Try it at home
- Plot 8 points of anything, such as the temperature each day. Draw a wiggly line through all of them, then a gentle line. Which would you use to guess tomorrow, and why?
- Next time someone says their idea fits every case, ask how many numbers or exceptions they can adjust.
Words to know
- parameter - a number you are free to choose to make a theory fit
- overfitting - fitting old data, noise included, so well that new data is predicted badly
- underfitting - using a model too simple to catch a real pattern
- noise - small random errors in data
Big idea
With enough free numbers, any theory fits, so a fit proves little. A simpler model guards our predictions, and new data decides.