Skip to content
Tutorials Center
My learning

Topics

Lesson 9 of 37 · Ecosystems and Resources

Biodiversity and Keystone Species

Learn the three levels of biodiversity, measure it with species richness and the Shannon and Simpson indices, and see why keystone species matter.

Biodiversity is the variety of life. A meadow with fifty kinds of plants, insects and birds is more biodiverse than a lawn with a single grass. Biodiversity matters for two reasons: living things have value in themselves, and healthy ecosystems provide services that people rely on, such as pollination, water purification and crop genetic resources. This lesson shows how scientists measure biodiversity and why losing certain species can have outsized effects.

Three levels of biodiversity

  1. Genetic diversity: variation in genes within a species. A population with plenty of variety is more likely to contain individuals that survive a new disease or a changing climate.
  2. Species diversity: the variety of species in an area.
  3. Ecosystem diversity: the variety of habitats, communities and ecological processes (forests, wetlands, grasslands, reefs).

Scientists have described roughly 2 million species so far, and estimates of the true total range widely, from several million to many more, because most insects, fungi and deep-sea organisms are unstudied. Treat any single number for the total as uncertain.

Measuring species diversity

Species richness is simply the number of different species in an area. It is easy to count, but it ignores how many individuals each species has. Imagine two ponds that each hold 100 animals from 4 species:

  • Pond A: 25, 25, 25, 25.
  • Pond B: 97, 1, 1, 1.

Both have a richness of 4, but Pond A feels more diverse. Evenness describes how equally individuals are spread among species. Diversity indices combine richness and evenness.

Shannon index: H = −Σ pᵢ ln(pᵢ), where pᵢ is the proportion of all individuals belonging to species i. The more species and the more even they are, the higher H. For S species that are perfectly even, H = ln(S).

Simpson index: D = Σ pᵢ² is the probability that two individuals picked at random are the same species. Often reported as 1 − D, which is higher for more diverse communities. (Ecology classes sometimes use a different form, D = Σ n(n−1) / N(N−1), so check which one a source uses.)

Python Calculate Shannon and Simpson indices

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.

Pond A reaches the maximum for four species, while Pond B scores much lower even though both have four species. This is why richness alone can mislead.

Species and area

Larger areas contain more species. A common pattern is the species-area relationship: S = c × Aᶻ, where S is the number of species, A is the area, and c and z are constants that depend on the place and group (z is often found to lie between about 0.1 and 0.35). Using the formula, if z = 0.25, a tenfold decrease in habitat area leaves about 10^(−0.25) ≈ 56 % of the species in the long run. This helps conservationists estimate the species at risk when habitat shrinks.

Python Species-area relationship

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 constants here are examples; real values come from field data.

Where biodiversity is highest

Species richness is generally highest in the tropics and declines toward the poles. Tropical rainforests and coral reefs are especially rich. Biodiversity hotspots are regions with exceptionally many species found nowhere else (endemic species) that are also heavily threatened. Protecting hotspots can save many species with limited resources.

Keystone species

Some species have an effect on their ecosystem that is much larger than their numbers suggest. A keystone species is one whose removal changes the community dramatically. The name comes from the stone at the top of an arch: take it out and the arch falls.

  • Sea otters eat sea urchins. Urchins graze kelp. Where otters were hunted out, urchins multiplied and destroyed kelp forests, which are habitat for many species. When otters return, kelp often recovers.
  • Starfish of the genus Pisaster were shown in experiments by ecologist Robert Paine in the 1960s to keep mussels from taking over rocky shores, which preserved space for other species. (The word "keystone" was introduced in this work.)
  • Beavers build dams that create ponds and wetlands, making habitat for many other species; this kind of species is an ecosystem engineer.
  • Predators such as wolves can change the behavior of their prey and so the plants. The details of the Yellowstone wolf story are still debated by scientists, so treat simple versions with caution.
flowchart LR
    O["Sea otters"] -->|"eat"| U["Sea urchins"]
    U -->|"graze"| K["Kelp forest"]
    K -->|"shelters"| Fi["Fish and other species"]

A keystone effect: otters control urchins, which protects the kelp.

Other terms to know: a foundation species (such as corals or trees) creates the habitat itself; an indicator species (such as lichens sensitive to air pollution) shows the health of the environment; an umbrella species is one whose protection also protects many others sharing its habitat; an invasive species is a non-native species that spreads and harms the ecosystem.

Threats to biodiversity

A popular memory aid is HIPPCO:

  • Habitat loss and fragmentation (the leading cause for many groups)
  • Invasive species
  • Pollution
  • Population growth of humans (and consumption)
  • Climate change
  • Overexploitation (overhunting, overfishing)

You will return to these in the solutions and policy chapter.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Two ponds each contain 4 species. Pond A has 25 individuals of each species. Pond B has 97, 1, 1 and 1. Which statement is correct?

    Richness counts species (4 each). Pond A is perfectly even, so its Shannon index is the maximum for four species.
  2. 2. What is a keystone species?

    A keystone species affects the structure of its ecosystem far more than its numbers would suggest.
  3. 3. Which is the HIPPCO threat that most often causes the loss of biodiversity?

    Habitat loss and fragmentation is generally the leading threat, followed by the other HIPPCO factors.
  4. 4. In S = c × A^z, what happens to S if the area A decreases?

    Because z is less than 1, losing area removes species more slowly than the area is lost, but the loss is still significant.

Summary

  • Biodiversity has three levels: genetic, species and ecosystem.
  • Richness counts species; evenness describes how equally individuals are spread; the Shannon and Simpson indices combine both.
  • Species-area relationships (S = c × A^z) estimate species lost when habitat shrinks.
  • Keystone species (sea otters, Pisaster starfish) have large effects relative to their numbers.
  • HIPPCO summarizes the main threats: habitat loss, invasives, pollution, population, climate change and overexploitation.

Next: Natural Resources and Sustainable Yield