# Communities: Interactions and Diversity

> What species do to each other shapes a community: each interaction helps (+), harms (−) or leaves alone (0) each partner, deciding who grows, who shrinks and who persists. A community is the set of interacting populations of different species living in the same area, and Simpson's diversity index measures the result as the chance that two individuals picked at random belong to different species. This AP® Biology lesson calculates Simpson's index from species counts, compares simulated meadow quadrats with ±2 SE error bars, scores competition, predation and symbioses by their net signs, tracks Isle Royale wolves and moose over time, and traces trophic cascades and niche partitioning through field studies. Afterwards you can compute Simpson's index, read overlapping and non-overlapping error bars, predict cascade effects, and judge what observational and removal studies can and cannot show.

Course: AP® Biology exam preparation (Unit 8 Ecology). Level: grades 7–12. About 25 minutes.
Lesson page (link this one when citing): https://stemhop.com/lessons/ap-communities/
Note: parts of this lesson are still being checked ("Under review").

## What you'll learn

- Describe community structure by species composition and species diversity, and calculate Simpson's diversity index, 1 − Σ (n/N)², from a count table.
- Use ±2 SE error bars on replicate quadrat means to judge whether two community samples likely differ in diversity or whether the data cannot tell.
- Classify competition, predation, parasitism, mutualism and commensalism by their net effect (+, − or 0) on each partner, and explain why those signs can shift with conditions.
- Explain how predator-prey interactions, trophic cascades, competition and niche partitioning shape population dynamics and community structure, and identify what removal experiments and observational studies can show.

**Two meadows each hold the same four wildflower species and 100 plants. Meadow 1 has 25 of each species; Meadow 2 has 70 of one and 10 each of the other three.**

Same species, same total, yet one species makes up most of Meadow 2. Are the two meadows equally diverse? And what decides which species live together? Answering takes one equation from the AP® Biology formula sheet and a way to score what species do to each other.

> **The one idea.** What species do to each other shapes a **community**, the set of interacting **populations** (groups of one species) of different species living together. Each interaction helps (+), harms (−) or leaves alone (0) each partner, and those signs decide who grows, shrinks and persists. **Simpson’s diversity index** measures the result: the chance that two individuals picked at random belong to different species.
>
> *Scope:* each sign is an average effect on a partner’s survival, growth or reproduction under given conditions. Signs alone do not predict whether species can coexist (live side by side). Simpson’s index uses counts, not names. Lotka-Volterra equations, the Shannon index and Hill numbers are not tested on the AP® Biology exam.

**Where this sits.** [Predators and Prey](https://stemhop.com/lessons/predators-and-prey/), [Living Together: Symbiosis](https://stemhop.com/lessons/living-together-symbiosis/) and [Habitat and Niche](https://stemhop.com/lessons/habitat-and-niche/) build these ideas without equations. [Diversity, Disturbance and Succession](https://stemhop.com/lessons/diversity-and-succession/), [Competition](https://stemhop.com/lessons/competition/), [Predation and Community Effects](https://stemhop.com/lessons/predation/) and [Mutualism, Parasitism and Coevolution](https://stemhop.com/lessons/mutualism-parasitism-coevolution/) add Lotka-Volterra models, Shannon entropy and coevolution.

## Who is there, and how evenly: Simpson’s index

Ecologists describe **community structure** with two measures. **Species composition** is which species are present. **Species diversity** combines **species richness** (species count) with **evenness** (how equally individuals are spread among them).

Picture a jar of 100 coloured marbles, one colour per species. Draw one marble, replace it, and draw a second. The chance they differ in colour is Simpson’s diversity index. That analogy is exact with replacement; without replacement, the formula slightly understates the chance in small samples.

In the formula, n counts one species and N counts all organisms. Each fraction n/N (read “n over N”) is one species’ share. Squaring gives (n/N)², the chance two picks hit that species. Summing with Σ (read “sigma”) gives the total match chance, and subtracting from 1 gives the mismatch chance.

> **Equation card: Chance that two random individuals belong to different species.**
>
>     Diversity Index = 1 − Σ (n/N)²
>
> In words: Diversity index equals one minus sigma of n over N, squared.
>
> - Diversity Index: chance two picks differ in species (no units (0 to 1))
> - Σ: sum across all species
> - n: organisms of one species (individuals)
> - N: organisms of all species (individuals)
>
> Sanity check: One species gives n/N = 1 and Diversity Index = 1 − 1² = 0. Values stay between 0 and 1.
> Try one number A pond holds 100 fish in three species: 50, 30 and 20. n/N = 0.50, 0.30, 0.20; squares sum to 0.25 + 0.09 + 0.04 = 0.38. Diversity Index = 1 − 0.38 = 0.62.

**Predict.** Return to the opening meadows: Meadow 1 has 25, 25, 25 and 25 plants; Meadow 2 has 70, 10, 10 and 10. Which has the higher Simpson’s diversity index?

> **Check your prediction.** Meadow 1, at 0.75 against Meadow 2’s 0.48. In Meadow 2, one species holds 70% of the plants, so two picks often match (0.70² = 0.49 alone). Evenness keeps Σ (n/N)² small and the index high.

Five plots of 100 plants show how richness and evenness move the index.

| Plot | Counts (N = 100) | Richness | Σ (n/N)² | Index |
| --- | --- | --- | --- | --- |
| Meadow 1 | 25, 25, 25, 25 | 4 | 0.25 | 0.75 |
| Plot 3 | 40, 30, 20, 10 | 4 | 0.30 | 0.70 |
| Plot 4 | 40, 40, 10, 10 | 4 | 0.34 | 0.66 |
| Meadow 2 | 70, 10, 10, 10 | 4 | 0.52 | 0.48 |
| One species | 100 | 1 | 1.00 | 0.00 |

With S species, the index peaks at 1 − 1/S (read “one minus one over S”) when all are equally common: 0.75 for four. More species raise that ceiling; evenness moves a community toward it.

**Misconception check.** “More species always means a higher index, and evenness does not matter.” False. Meadow 1 and Meadow 2 hold the same four species, yet score 0.75 and 0.48. When one species dominates, its large share, squared, inflates Σ (n/N)².

## Are two communities really different?

Field biologists place **quadrats**, fixed-area frames set at random spots, and calculate Simpson’s index per frame. Judging whether sample means differ is AP science practice 5.B, using confidence intervals and error bars.

Consider simulated data from three meadows (A, B and C), with no biological cause assumed. Each has 8 quadrats of 60 plants across five species. Every meadow gets the same sampling effort, because counting more individuals finds more rare species.

Work one quadrat by hand. Quadrat A7, in Meadow A, has counts 18, 20, 12, 6 and 4 (N = 60). Proportions are 0.300, 0.333, 0.200, 0.100 and 0.067. Their squares sum to 0.090 + 0.111 + 0.040 + 0.010 + 0.004 = 0.256 (920 / 3,600), giving 1 − 0.256 = **0.744**.

Across all 8 quadrats per meadow, each site gets a mean and a **standard error of the mean** (SE, read “S E”), which estimates how precisely the mean is known. **Error bars** extend ±2 SE (read “plus or minus two S E”) around each mean.

| Meadow | Quadrats | Index range | Mean | SE | Mean ± 2 SE |
| --- | --- | --- | --- | --- | --- |
| A | 8 | 0.683 to 0.792 | 0.758 | 0.012 | 0.734 to 0.782 |
| B | 8 | 0.244 to 0.526 | 0.427 | 0.033 | 0.360 to 0.493 |
| C | 8 | 0.750 to 0.780 | 0.761 | 0.004 | 0.753 to 0.769 |

With ±2 SE bars, a clear gap is good evidence that the means differ. Overlap means these data cannot tell whether they differ.

**Predict 2.** Compare Meadow A with B, and Meadow A with C, using the ±2 SE ranges. Which pair likely differs, and what can you say about the other pair?

> **Check your prediction.** Meadow A (0.734 to 0.782) and Meadow B (0.360 to 0.493) likely differ: their ±2 SE bars do not overlap. Meadow A and Meadow C (0.753 to 0.769) overlap, giving no evidence of a difference. Overlap is not proof they are the same.

**Misconception check.** “Overlapping bars mean no difference, and non-overlapping bars prove a cause.” Neither holds. Overlap leaves the question open, and a gap flags a likely difference in means, never *why* Meadow B is lower.

## Interactions decide who gets energy and matter

**Film transcript: Plus, Minus, Zero**

### Film transcript: Plus, Minus, Zero

Wolves hunt moose on Isle Royale, a remote island in Lake Superior. They have shared that island for decades. Why haven't the wolves eaten every moose? To follow any community, score what species do to each other. Every interaction controls how populations get energy and matter. Ecologists score each partner's average net effect as plus, minus or zero. When both lose over a shared resource, that is competition: minus, minus. In predation and parasitism, one gains and one loses: plus, minus.

Mutualism helps both: plus, plus. Commensalism helps one, with no net change for the other: plus, zero. Signs are measured nets, not kindness, and conditions can flip them. Root fungi trade minerals for carbon in poor soil: plus, plus. In rich soil, that carbon cost can turn the plant's net negative. Now watch a plus-minus pair over time on Isle Royale.

National Park Service winter counts show both populations swinging up and down with lags. Moose never neared zero, and wolves never held them steady. This was no simple two-species cycle. Disease, harsh winters, ticks and inbreeding hit hard too. When inbreeding left only two wolves on the island, moose climbed rapidly. After park staff relocated new wolves, moose dropped again. Here is the guiding idea. Interactions, scored by their signs, link populations together. Changing one species can ripple across levels to shape who lives in a community. Take a coastal food chain in the North Pacific.

Sea otters eat sea urchins, and urchins graze kelp forests. If sea otters vanish from an island shore, what happens to the urchins and the kelp? Without otters, urchins surge and graze kelp down. On two Alaskan islands, dense kelp grew with otters, while little remained without them. Because no one removed otters, this contrast supports a cascade without proving one. Predators need not even kill to trigger a cascade. In field enclosures, biologists glued spiders' mouthparts so they could not kill. Grasshopper counts stayed similar, yet fear shifted their diet. Grasses took less damage, herbs took more. Competing species can also coexist by splitting resources.

In northeastern spruces, five warbler species hunt insects mainly in different tree zones. One favours the treetops; another works dense middle branches. Ecologists call this split niche partitioning. Match each claim to its study design. Watching warblers describes partitioning, but removing no birds leaves the cause untested. Clearing one barnacle species from random half-patches tests competition directly, against untouched matched controls. From wolves and kelp to spiders and warblers, every population feels what its neighbours do. Score each link by plus, minus or zero, and match every claim to the study behind it.

From the film

- Each interaction is scored by each partner's average net effect, plus, minus or zero: competition is (−, −), predation and parasitism are (+, −), mutualism is (+, +) and commensalism is (+, 0).
- The signs are measured nets, not kindness, and conditions can flip them: root fungi trade minerals for carbon in poor soil (+, +), but in rich soil the carbon cost can turn the plant's net negative.
- Isle Royale wolf and moose counts swing up and down with lags, and disease, harsh winters, ticks and inbreeding also act, so it was no simple two-species cycle.
- A trophic cascade passes a predator's effect through two links, as with otters, urchins and kelp; the Aleutian contrast supports a cascade without proving one, because no one removed the otters.
- Spiders with glued mouthparts still shifted grasshopper diet and plant damage, so predators can trigger a cascade without killing.
- Warbler species that share spruces hunt in different tree zones, which is niche partitioning; watching them describes it, while removing one barnacle species from random half-patches tests competition directly.

Interactions shape a community because they control how each population gets energy and matter (food, light, nutrients and space). Each interaction is scored by its average **net effect** (benefit minus cost) on survival, growth or reproduction: +, − or 0.

| Interaction | Signs | Energy and matter | Example |
| --- | --- | --- | --- |
| **Competition** | − / − | Both use a limited resource | Two barnacle species sharing rock |
| **Predation** | + / − | **Predator** kills **prey** | Wolves and moose |
| **Parasitism** | + / − | **Parasite** feeds on living **host** | Tick on a deer |
| **Mutualism** | + / + | Both gain, often trading | Soybeans and rhizobia |
| **Commensalism** | + / 0 | One gains; other shows no net change | Lichen on bark |

**Symbiosis** is a close, long-term relationship between different species living together: mutualism, commensalism and parasitism. Predation shares the + / − sign of parasitism but usually kills prey outright. **Cooperation**, where partners gain by acting together, occurs within species (wolf packs) and across species in mutualisms.

Signs are measured nets and can shift with conditions. Arbuscular mycorrhizal fungi (a kind of root fungus) trade soil minerals for plant carbon. In poor soil, both gain (+ / +). In rich soil, the plant still pays carbon for minerals it can absorb alone, so the plant’s net may turn negative (− for the plant, + for the fungus).

**Misconception check.** “Mutualism means partners are friendly or altruistic.” No. Neither plant nor fungus chooses kindness. Partnerships persist when both leave more offspring on average.

## Predator and prey over time: Isle Royale

Interacting populations alter each other’s births and deaths, so communities change over time. On Isle Royale in Lake Superior, wolves hunt moose and moose browse balsam fir. National Park Service winter counts track both; the first rows below run from 1980 to 2016.

| Winter | Wolves | Moose (estimated) |
| --- | --- | --- |
| 1980 | 50 | 664 |
| 1995 | 16 | 2,400 |
| 1997 | 24 | 500 |
| 1998 | 14 | 700 |
| 2010 | 19 | 510 |
| 2016 | 2 | 1,300 |

Notice the lags. With few wolves in 1995, moose peaked at 2,400. After a harsh 1996 winter, ticks and food shortage crashed moose to 500 in 1997, wolves rose to 24 and dropped to 14 in 1998.

**Predict 3.** In 2016 only 2 wolves remained alongside 1,300 moose. What do you predict happened to moose over the next few winters?

> **Check your prediction.** Moose rose sharply under very low predation in 2017 and 2018, reaching 1,600 in 2017 and 2,060 in 2019.

Later counts from the same record:

| Winter | Wolves | Moose (estimated) |
| --- | --- | --- |
| 2017 | 2 | 1,600 |
| 2019 | 15 | 2,060 |
| 2024 | 30 | 840 |
| 2026 | 37 | 524 |

*Source: National Park Service, Isle Royale National Park, “Wolf and Moose Populations from 1980 through 2026”, winter counts.*

This is not a clean two-species cycle. Canine parvovirus crashed wolves from 50 to 14 in the early 1980s, and inbreeding left 2 wolves in 2016 despite 1,300 moose. One wolf arrived across winter ice from Canada in 1997, and the Park Service relocated 19 wolves in 2018 and 2019. Weather, ticks, food, disease and inbreeding all acted alongside predation.

**Misconception check.** “Predators keep prey low and steady, or wipe them out.” False. Moose swung from roughly 500 to 2,400 without nearing zero, and wolves fell when food, disease or inbreeding struck.

## Trophic cascades: effects down the food chain

A **trophic level** is a feeding position in a food chain: producer, herbivore or carnivore. A **trophic cascade** is an indirect predator effect passing across trophic levels, from predator to herbivore to plant.

In the North Pacific, sea otters eat sea urchins, and urchins graze kelp.

**Predict 4.** If sea otters vanish from an island shore, what happens to the urchins and the kelp?

> **Check your prediction.** Urchins increase and graze the kelp down. Losing the predator releases the herbivore, which then cuts back the producer: a two-link trophic cascade.

Estes and Palmisano compared two Aleutian islands in Alaska. Amchitka, where otters recovered after fur hunting, had scarce urchins and dense kelp. Shemya, without otters, had abundant urchins and little kelp.

*Figure (AI-generated illustration).* Amchitka (with otters) had few urchins and dense kelp; Shemya (without) had many urchins and little kelp. No one removed otters, so other differences could contribute. Image: coastal cross-sections showing otters, few urchins and dense kelp on the left, versus no otters, dense urchins and sparse kelp on the right.

Because no one removed otters, the contrast supports a cascade without proving one. Later, when western Alaska otters declined in the 1990s (probably from killer whale predation), urchins increased and kelp beds were lost. A species whose impact is large for its abundance is a **keystone species**, covered in [the next lesson](https://stemhop.com/lessons/ap-biodiversity-disruptions/).

Could a predator change plants without killing anything? Beckerman and colleagues tested this in Connecticut old-field enclosures with grasses, herbs and grasshoppers. Enclosures held no spiders, hunting spiders, or spiders with glued mouthparts that could be sensed but could not kill.

**Predict 5.** Will plants in glued-spider enclosures look like no-spider plots or hunting-spider plots?

> **Check your prediction.** Hunting-spider plots. Grasshopper densities did not differ significantly, yet with either spider, grasshoppers shifted feeding so grasses were damaged less and herbs more. Changed behaviour, not fewer grasshoppers, carried the cascade.

*Figure (AI-generated illustration).* Glued-jaw spiders could not kill, yet shifted plant damage like hunting spiders while grasshopper counts stayed similar: a fear-driven cascade. Image: three enclosures with grasshoppers on grass and herbs; grass is notched without spiders, while herbs are holed with hunting or glued-jaw spiders.

The spiders separate two routes. A **density-mediated** cascade acts by killing herbivores. A **trait-mediated** cascade acts by changing surviving herbivores’ behaviour through fear, as here.

## Competition and niche partitioning

Competition (− / −) occurs within one species (**intraspecific competition**) or between species (**interspecific competition**). In **exploitation competition**, the effect is indirect: each organism uses up a shared resource, leaving less for the other. In **interference competition**, one blocks another by fighting, holding territory or overgrowing it. Think of two flatmates sharing a fridge: exploitation is eating food first; interference is locking the door. Unlike flatmates, wild organisms lack intent and often use both routes.

At Millport, Scotland, small *Chthamalus* barnacles live high on the rock while larger *Balanus* cover the lower zone. Joseph Connell mapped *Chthamalus* patches, split each in two, and tossed a coin to clear *Balanus* from one half. The other half stayed untouched, and mesh cages excluded the predatory whelk *Thais* from some patches.

*Figure (AI-generated illustration).* Clearing Balanus from a random half of each patch beside an untouched half showed that Balanus limited Chthamalus survival. Image: split rock patch showing four small barnacles on cleared rock on the left and crowded by larger barnacles on the right, plus a caged inset.

The coin toss stops the experimenter choosing which half gets cleared. The untouched half is the matched **control**: it shares the cleared half’s shore height and weather, so better survival on the cleared half can be credited to removing *Balanus*.

Without *Balanus*, *Chthamalus* survived well lower down; beside *Balanus*, it was smothered, undercut and crushed. Cages showed *Thais* did not greatly affect *Chthamalus* directly. An organism’s **niche** is its role and resource use. *Chthamalus*’s **fundamental niche**, where it could live without enemies or competitors, extended lower than its **realised niche**, where it lives alongside *Balanus*.

Competing species can also coexist through **niche partitioning**: dividing a limited resource by place, food or time so overlap drops. Robert MacArthur timed five insect-eating warbler species in Maine and Vermont spruces. Cape May warblers fed mainly near treetops; black-throated green warblers used dense middle branches.

*Figure (AI-generated illustration).* Warblers divide one spruce into different feeding zones, yet watching alone cannot test whether competition caused that split. Image: a spruce tree with one warbler feeding near the treetop and another in dense middle branches, each in a shaded zone.

Compare the designs. Connell’s removal tested competition. MacArthur removed no birds, so his survey describes partitioning without proving competition caused it.

## Before the exam

- **Richness and evenness drive Simpson’s index.** Meadow 1 (25, 25, 25, 25) scores 0.75 while Meadow 2 (70, 10, 10, 10) scores 0.48, despite both having four species and 100 plants. Divide by N, square, sum and subtract from 1.
- **Read ±2 SE bars accurately.** Non-overlapping bars are good evidence that means differ. Overlapping bars mean the data cannot tell (never proof of equality), and bars never prove cause.
- **Score interactions as net effects.** Competition (− / −), predation and parasitism (+ / −), mutualism (+ / +) and commensalism (+ / 0) decide how each partner gets energy and matter. Signs can flip when resources shift.
- **Match claims to designs.** Isle Royale shows messy, lagged swings rather than steady prey control. Cascades act via killing or fear. Randomised removals test competition; observational surveys only describe partitioning.

## Going deeper

*Beyond the AP® exam.*

### Other conventions for Simpson’s index

The AP® formula sheet uses 1 − Σ (n/N)², where higher means more diverse. Other books report Σ (n/N)² (Simpson concentration), where higher means *less* diverse, or 1 / Σ (n/N)². Check which form a table uses. [Diversity, Disturbance and Succession](https://stemhop.com/lessons/diversity-and-succession/) adds Shannon entropy, Hill numbers and rarefaction.

### Debated cascades

Landscape cascades, such as wolves and willows in Yellowstone, remain debated because water tables and climate changed alongside predators.

### Keeping mutualisms honest

In soybean roots, *Bradyrhizobium japonicum* bacteria fix nitrogen for plant carbon. Kiers, Rousseau, West and Denison (2003) replaced air with argon around nodules of one strain to block fixation. Bacterial reproduction fell by about 50%, a **host sanction** (the host cutting a non-paying partner’s fitness). See [Mutualism, Parasitism and Coevolution](https://stemhop.com/lessons/mutualism-parasitism-coevolution/).

---

From STEMhop (https://stemhop.com), free lessons by Christopher Deppmann. Lesson text © the authors. Practice questions: https://stemhop.com/lessons/ap-communities/
