Skip to content
Tutorials Center
My learning

Topics

Lesson 21 of 37 ยท Natural Selection

Natural Selection Step by Step

Follow the logic of natural selection from overproduction and variation to survival and reproduction, with a runnable simulation of a changing population.

Charles Darwin and Alfred Russel Wallace independently proposed natural selection in the 1850s. Their papers were first presented together in 1858, and Darwin's book On the Origin of Species followed in 1859. The idea is simple, and it explains how populations change over many generations without any plan or goal.

In this lesson you will learn the argument as a chain of observations and a conclusion. Then you will watch it happen in a simulation where the numbers are easy to follow.

The argument

  1. Overproduction. Most species produce more offspring than can survive. A single cod can lay millions of eggs, but only a few grow up.
  2. Variation. Individuals in a population differ in their traits.
  3. Inheritance. Some of this variation is inherited, so offspring tend to resemble their parents.
  4. Struggle for existence. Resources such as food, water and space are limited, and predators, disease and weather also remove individuals.
  5. Differential survival and reproduction. Individuals with traits that suit the environment are more likely to survive and have offspring.
  6. Change over time. The helpful alleles become more common in the next generation.
flowchart LR
  A["Variation<br/>in a population"] --> B["Limited resources<br/>and other pressures"]
  B --> C["Some individuals<br/>survive and breed more"]
  C --> D["Their alleles are<br/>passed on more often"]
  D --> E["Population changes<br/>over generations"]
  E --> A

The cycle repeats every generation. The environment acts as the "selector".

Common mistakes: individuals do not evolve during their lives, and organisms do not change because they "want" or "need" to. Populations evolve, because the share of alleles in the population shifts from one generation to the next.

A worked example with numbers

Suppose a beetle population has 1,000 beetles. 50% are green (G) and 50% are brown (B) in color, and color is inherited. Birds find green beetles on brown soil more easily. In each generation 40% of green beetles survive to breed, but 60% of brown beetles survive. Survivors have the same number of offspring, and each offspring copies the parent's color.

After one generation, green survivors: 500 x 0.40 = 200. Brown survivors: 500 x 0.60 = 300. So the share of green beetles falls from 50% to 200 / 500 = 40%. No beetle changed color; the proportions changed because the survivors were different from the original population.

Python Selection against green beetles

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The first two lines show 50.0% and then 40.0%, matching the hand calculation. The rate of change is fastest while both types are common, and it slows as green beetles become rare.

Plotting the change

Python Plot the frequency over time

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Stronger selection (a bigger difference in survival) changes the population faster. Weak selection still works, but it takes many more generations.

What natural selection does not do

  • It does not create new alleles. Mutation does that.
  • It has no goal and does not make organisms "perfect". A trait is useful only in a given environment, and the environment can change.
  • It acts on individuals, but only populations change in allele frequency.
  • It works with what already exists, so many adaptations are compromises.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Which statement best describes how natural selection leads to change?

    Selection changes allele frequencies by differential survival and reproduction. Mutations are random, and traits acquired in life are not inherited.
  2. 2. In the beetle example, 500 green beetles each have a 40% survival chance. How many green beetles survive on average?

    500 x 0.40 = 200.
  3. 3. Which of these is NOT needed for natural selection?

    Selection is a process without goals. It needs only heritable variation and differences in reproductive success.

Summary

  • Natural selection follows from overproduction, heritable variation, limited resources and differential reproduction.
  • Allele frequencies in the population change; individuals do not evolve.
  • Selection has no foresight and only favors traits in the current environment.
  • Stronger differences in survival cause faster change.

Next: Adaptation and Fitness