The Origin of Prediction: From Galton's Beans to Modern Learning
The year is 1877. A seventy-four-year-old gentleman in a dark wool suit stands before the assembled Fellows of the Royal Society in London, his quavering hand pointing to a diagram projected on the wall. The diagram shows something peculiar—a set of sweet pea seeds arranged in a pattern that would come to alter the course of human understanding about prediction, inheritance, and the nature of uncertainty itself. Francis Galton, knighthood gleaming at his collar, clears his throat and begins to speak about what he calls "reversion"—a phenomenon that would later be renamed regression, becoming one of the foundational concepts upon which the entire edifice of modern machine learning would be built.
This scene, imaginary in its precise details yet faithful in its essence, captures a pivotal moment in intellectual history: the birth of regression as a mathematical concept. But to understand why this moment matters—why a talk about sweet peas delivered in a Victorian lecture hall connects to the neural networks that now power our smartphones, the random forests that detect fraud in our credit card transactions, and the gradient boosting machines that recommend our next movie—we must first understand the problem Galton was trying to solve, the intellectual climate in which he worked, and the profound insight that emerged from his experiments.
The question Galton sought to answer was deceptively simple: can we predict the future characteristics of offspring from the characteristics of their parents? This question sits at the intersection of biology and statistics, of heredity and prediction, and its answer would ultimately give rise to an entirely new way of thinking about uncertainty, variation, and the extraction of meaningful patterns from noisy data.
---
The Man Who Measured Everything
Francis Galton was, by any measure, a remarkable specimen of scientific polymathy. Born in 1822 into a wealthy Birmingham family—he was the half-cousin of Charles Darwin—Galton traversed an extraordinary range of intellectual territories during his long life. He invented the weather map, pioneering the use of isobars to visualize atmospheric patterns. He developed the technique of fingerprint classification that remains the foundation of forensic identification. He studied the geography of dreams and the statistics of prayer. He coined the term "eugenics," advocating for selective breeding to improve the human species, a legacy that would later blacken his reputation but whose scientific implications cannot be entirely dismissed. He measured the correlation between beauty and fertility in human populations, between the length of words in different languages and their emotional impact, between the barking of dogs and their breeds.
This voracious appetite for measurement and quantification was not merely academic curiosity. Galton believed—and this belief would prove foundational to the development of statistical thinking—that the world, for all its apparent chaos and variation, follows patterns that can be captured, measured, and ultimately predicted. Variation, he argued, is not noise to be ignored but signal to be decoded. This insight sits at the very heart of what we now call machine learning: the idea that meaningful patterns exist in data, that these patterns can be discovered through careful analysis, and that predictions about future observations can be derived from patterns observed in past data.
Galton's journey toward regression began with his interest in heredity, an interest almost certainly influenced by his famous relative Darwin. In 1869, Galton published "Hereditary Genius: An Inquiry into its Laws and Consequences," a book that attempted to demonstrate that intellectual ability, like physical traits, is inherited from parents to children. The book was ambitious, controversial, and methodologically flawed by modern standards, but it established Galton's reputation as a serious investigator of biological inheritance.
What Galton sought was a mathematical description of how traits pass from generation to generation. If a tall father tends to have tall children, how tall will those children be relative to their father? Will they be as tall? Taller? Is there a rule governing this relationship? These questions seem simple, but their answers require grappling with a fundamental tension in the natural world: the tension between inheritance and variation, between what we receive from our ancestors and what we become through the lottery of development.
The naive expectation, shared by many of Galton's contemporaries, was that exceptional traits would breed true. A genius should beget geniuses, a giant should beget giants, a mathematical prodigy should produce mathematically gifted children. This expectation, however, conflicted with empirical observation. Galton noticed, through careful examination of biographical dictionaries and family records, that eminent men tended to have children who were merely distinguished rather than eminent, and grandchildren who were often ordinary. The exceptional seemed to regress, generation by generation, toward the mean.
This observation, which Galton called "reversion" and which we now call "regression to the mean," became the seed from which regression analysis would grow. But Galton needed more than observation—he needed a mathematical framework within which to express and quantify this phenomenon. The tool he would develop for this purpose emerged from an unexpected source: the sweet pea.
---
The Sweet Pea Experiments
In 1875, Galton obtained a supply of sweet pea seeds from a friend in America. These seeds, all produced by self-fertilization from a single parent plant, were remarkably uniform in size—a characteristic that made them ideal for studying variation. Galton sorted the seeds by weight and gave packages of them to seven friends, asking each to plant them in their gardens under similar conditions. When the plants flowered and produced their own seeds, Galton collected and weighed the offspring.
What emerged from this simple experiment was a treasure trove of data. For each parent seed weight, Galton had a distribution of offspring seed weights. He could now ask: what is the relationship between parent weight and offspring weight? If large parents produce large offspring and small parents produce small offspring, the relationship should be linear—each unit increase in parent weight should correspond to a fixed unit increase in offspring weight. This is the intuitive relationship most people expect when they think about inheritance.
But Galton found something different. When he plotted parent weight against the average offspring weight for each parent class, he discovered that the slope of the relationship was less than one. Large parents did produce larger-than-average offspring, but the offspring were not as large as the parents. Similarly, small parents produced smaller-than-average offspring, but the offspring were not as small as the parents. The relationship between parent and offspring was linear, but it was attenuated—it did not follow the one-to-one correspondence that common sense might suggest.
In modern terms, Galton had discovered that the regression coefficient—the slope relating offspring to parent—was less than one. The coefficient he calculated from his data was approximately 0.33. This meant that if a parent seed was one unit above the mean, its offspring would be only about one-third of a unit above the mean, on average. The remaining two-thirds of the deviation from the mean had been lost, "regressing" toward the population average.
This was the birth of regression. Galton had discovered a mathematical relationship that quantified how variation is transmitted across generations. More importantly, he had discovered that the relationship could be expressed as a linear equation: the expected offspring value equals a constant plus a fraction of the parent value. In modern notation