Can living things "adapt" when the temperature changes?

Run the experiment on this page ↓

Short answer (general ecology)

An individual does not change its inherited traits to suit a new environment. A population can adapt over generations when individuals that happen to suit the new conditions leave more offspring. That takes heritable variation and time; when the change is too large or too fast, a population can decline or die out instead.

What you can do here

Compare two herbivore populations whose individuals differ in the temperature that suits them, a trait passed from parent to offspring. In one world the temperature rises at a set time. Follow the count and the mean temperature optimum of the population.

Limit

This is an abstract educational model. It does not forecast what would happen in any real ecosystem.

Run the experiment

  1. Predict
  2. Watch one run
  3. Compare 5 runs
  4. Read the result

After the temperature changes by +150 in B, how do you think the mean temperature optimum of its population will move compared with A?

You can start without choosing. Your choice is not sent anywhere.

Watch one run

tick 0 / 0Preparing the world…

A: nothing changed

B: temperature changed by +150

A and B right now
AB
Herbivores
Grass
Temperature
Speed
Zoom

Keyboard, while the focus is in this panel: Space plays and pauses, → advances one step, R restarts, 1 and 2 show A and B.

Selected individual

Click or tap an individual in either world to see its values here. The button under each world selects one without a pointer.

What the shapes and colours mean

Body colour = temperature optimum

Bluer bodies do best in the cold and redder ones in the heat; those in between are off-white. The number is the temperature at which the individual does best. The band around the edge of the world shows the world’s temperature right now, on the same colour scale: the closer a body’s colour is to the band, the better that individual suits the current temperature.

200
350
500
650
800

Ground colour = amount of grass

The amount of grass is shown in three steps: the colour of soil where there is almost none, light green where there is grass, and deeper green where it is thick.

Soil (almost none)
Grass
Thick grass

Dullness and thinness = reserves

As reserves run low, the body turns duller and thinner. An individual whose reserves run out dies.

Plenty
Low
Almost none

Size = growth

Newborn individuals are drawn small and grow to adult size.

Newborn
Young
Adult

Compare repeated runs

One run can differ from the next by chance. The same comparison is repeated with different random seeds to see how consistent the difference is.

Try it: change a condition and compare again

Write down what you expect first. The random seeds stay the same, so a difference from the standard result comes from the setting you changed.

Ideas:

How far the temperature moves in B. A negative number lowers it; 0 means nothing changes. Standard: +150. Range: -300 to +300.

0 changes the temperature at once. A larger number spreads the same change over that many ticks. Standard: 0. Range: 0 to 2,000.

How much individuals differ at the start. 0 means all start with the same optimum. Standard: 35. Range: 0 to 100.

The chance, at each birth, that the offspring’s optimum differs slightly from its parent’s. Standard: 5%. Range: 0% to 20%.

Saved results

Results are stored only inside this browser and are never sent to a server. What is stored is the settings, the random seeds and the summary numbers for each replicate; the tick-by-tick record is not stored, because the same settings always reproduce the same result. Up to 50 results are kept across all experiments and the free lab, and the oldest are removed beyond that. They do not carry over to another browser or device: use a share link to move one. Deleting cannot be undone.

Move saved items to another browser

Everything saved here (all experiments and the free lab) can be written to one file. Load that file in another browser or device and the same items are listed there. Loaded results use the numbers in the file as they are; run the settings again if you want to check them. The file stays on your device and is not sent anywhere.

Reference result (20 replicates)

These values were computed in advance with the same engine that runs in your browser. Running the same settings and seeds yourself gives exactly the same numbers.

A and B compared

MeasureResult
Lowest herbivore count (after the intervention)B was lower in all 20 replicates (median A 307, B 60).
Herbivore count (mean over the observation window)B was lower in all 20 replicates (median A 368, B 354). Note that the difference is small: the median difference is under 10% of A.
Shift in the mean temperature optimum (from the intervention to the end)B was higher in all 20 replicates (median A -0.3, B 109.4).
Marker variants remaining (at the end)B was lower in all 20 replicates (median A 6, B 1).

Observed What was measured in these runs.Reading How the measurements can be read, given the rules of this model.

Engine version 0.1.0, 20 replicate(s) with seed(s) 101–120. Observation window: ticks 3,000–3,600. These are observations from this model with these settings, not predictions about real ecosystems.

Charts

Herbivore count
Herbivore countB was lower in all 20 replicates (median A 368, B 354). Note that the difference is small: the median difference is under 10% of A.020040060080001,0002,0003,000Time (ticks)InterventionABObservation window
Show as a table
TickA medianA rangeB medianB range
0168168–168168168–168
450375329–465375329–465
594362312–413362312–413
648369333–403131103–172
702375346–4137154–103
792374308–4126234–95
900355325–3976932–127
1,350370344–40228347–458
1,800371340–429299174–371
2,250366325–403328228–401
2,700363320–428335298–421
3,150354324–404353301–388
3,600364304–425360315–394
Mean temperature optimum of the population
Mean temperature optimum of the populationB was higher in all 20 replicates (median A -0.3, B 109.4).020040060080001,0002,0003,000Time (ticks)InterventionABObservation window
Show as a table
TickA medianA rangeB medianB range
0501491–507501491–507
450499493–506499493–506
594501494–506501494–506
648500493–507518511–524
702500492–508530522–536
792501492–510536530–545
900501491–510542533–550
1,350501491–509557539–570
1,800500491–511568541–586
2,250500489–508584545–611
2,700500484–508593563–614
3,150499483–511603578–616
3,600498480–512611587–620
Grass (share of the maximum)
Grass (share of the maximum)Grass (share of the maximum)0%25%50%75%100%01,0002,0003,000Time (ticks)InterventionABObservation window
Show as a table
TickA medianA rangeB medianB range
060%60%–60%60%60%–60%
45024%19%–27%24%19%–27%
59425%21%–30%25%21%–30%
64825%19%–32%34%27%–43%
70224%19%–31%62%52%–72%
79224%20%–30%87%81%–91%
90025%20%–28%87%78%–93%
1,35024%20%–32%37%20%–92%
1,80025%20%–29%36%29%–74%
2,25024%20%–30%35%28%–60%
2,70024%20%–29%32%22%–45%
3,15024%20%–30%29%23%–37%
3,60026%19%–32%27%21%–38%
Starvation deaths caused mainly by the temperature mismatch (per tick)
Starvation deaths caused mainly by the temperature mismatch (per tick)Starvation deaths caused mainly by the temperature mismatch (per tick)0.02.04.06.001,0002,0003,000Time (ticks)InterventionABObservation window
Show as a table
TickA medianA rangeB medianB range
00.00.0–0.00.00.0–0.0
4500.00.0–0.00.00.0–0.0
5940.00.0–0.00.00.0–0.0
6480.00.0–0.02.31.7–3.2
7020.00.0–0.00.30.1–0.5
7920.00.0–0.00.00.0–0.1
9000.00.0–0.00.00.0–0.0
1,3500.00.0–0.00.00.0–0.0
1,8000.00.0–0.00.00.0–0.0
2,2500.00.0–0.00.00.0–0.0
2,7000.00.0–0.00.00.0–0.0
3,1500.00.0–0.00.00.0–0.0
3,6000.00.0–0.00.00.0–0.0

How the spread of temperature optima moves

Each row is one moment. The shape shows how many herbivores have each temperature optimum, and the vertical mark shows the temperature of the world at that moment. Watch whether the shape in B moves towards its mark, and how long it takes. The 20 replicates are added together. Each replicate settles at a slightly different place, so the combined shape can show several peaks.

How the spread of temperature optima movesDistribution of temperature optima from tick 600 to tick 3,600. At the end, the middle of the distribution is about 497 in A and about 614 in B.tick 600tick 1,100tick 1,600tick 2,100tick 2,600tick 3,100tick 3,600400500600Temperature optimum (same scale as the temperature)ABtemperature of the world
Show as a table
TickA: temperatureA: middle of the distribution (approx.)B: temperatureB: middle of the distribution (approx.)
600500504500504
1,100500497650551
1,600500504650559
2,100500497650583
2,600500497650598
3,100500497650598
3,600500497650614