Skip to content
Rabin Poudyal
Rabin Poudyal
← All models

Science and physics

Evolution by natural selection

When traits vary, are inherited and change how many offspring survive, a population shifts towards the traits that reproduce best, with nobody steering.

Charles Darwin, On the Origin of Species (1859).

Darwin's argument in the Origin needs three facts. Individuals in a population vary. Some of that variation passes from parent to offspring. And many more individuals are born than can survive, so there is, in his words, a frequently recurring struggle for existence. Put those together and any heritable variation that gives even a slight edge will be found more often in the next generation, and the one after. Darwin called this natural selection. It is not a force and it has no goal; it is bookkeeping. The traits that reproduce best become common, which can mean faster, or better hidden, or smaller, or more cooperative, depending entirely on what the environment punishes at the time.

Peppered moths are the best-measured case. The dark carbonaria form became common near industrial British cities and has declined in post-industrial Britain. Between 2001 and 2007 Michael Majerus released 4,864 moths in a rural Cambridgeshire garden and recorded which survived bird predation; Cook, Grant, Saccheri and Mallet published the analysis in 2012. Dark moths survived each day at 91 percent of the rate of pale ones, a selection coefficient of about 0.1 per day, and over the same years the local carbonaria frequency fell from 0.12 to 0.01. A 9 percent daily disadvantage sounds small; compounded over a season and several generations it removes a trait. The transfer is to anything with variation, copying and differential survival: products in a market, ideas in a culture, variants in an A/B test, prompts in an evolutionary search.

Two misreadings. 'Survival of the fittest' makes it sound like a contest of strength; fitness in the theory means only reproductive success in a given environment, and the fittest thing can be a parasite or a dull-coloured moth. Social Darwinism took a description of what happens to populations and turned it into a claim about what ought to happen to people; nothing in the mechanism licenses that step. There is also a practical caution for the transfer. Markets and A/B tests select for whatever the measurement rewards, which is often not what you want, and they need real variation to work on: a test between two near-identical variants selects for noise.

Example

Between 2001 and 2007 the geneticist Michael Majerus released 4,864 peppered moths, a mix of the dark carbonaria and pale typica forms, in a one-hectare rural garden near Coton, Cambridgeshire, and recorded their survival against bird predation. Cook, Grant, Saccheri and Mallet published the analysis in Biology Letters in 2012 as his last experiment. The dark form's daily survival was 91 percent of the pale form's (a selection coefficient of 0.091 per day, with a confidence interval of 0.028 to 0.157), and the frequency of carbonaria in the nearby Madingley population fell from 0.12 in 2001 to 0.01 in 2007.

Where it applies

Treat an A/B test or an evolutionary search as selection and ask the three questions: is there real variation, does the winner get copied, and what exactly does the metric reward? A recommender tuned on clicks selects for clickable, not for good. For an AI agent, the environment you evaluate in is the one you are breeding for.

Think about it

In the system you run, what is actually being selected for, and is it the thing you would choose on purpose?

Applied it to something real? Log it.

Test yourselfWhat three conditions does natural selection need, and which part do people get wrong when they call a market 'Darwinian'?

Variation, inheritance (copying) and differential reproduction. The mistake is reading fitness as strength or merit; it means only what the environment happens to reward.

Related models

Sources and further reading