Ecology & Evolution 2026 Jacopo Grilli

Lecture 7. Selection

Slides: pdf · keynote · powerpoint


In L6 we put two species in the same tube and asked who wins. Evolution asks the same question about individuals of the same species that differ in a heritable trait, like the resistant mutants of L3. If one type leaves more offspring than another, its frequency in the population increases. This is selection.

What evolution is, and how we know it happens, is in L8. Here we describe selection in the simplest setting: types that do not change (no mutations), in populations so large that we can neglect demographic noise (L2). Noise comes back in L9, where we ask whether a single new mutant takes over.

Resistant and susceptible in the same tube

When does an antibiotic select for resistance? Gullberg et al. 2011 put a resistant and a susceptible strain together, at antibiotic concentrations below the one that stops the growth of the susceptible strain (the MIC, minimal inhibitory concentration).

Each strain alone. The growth rate of the susceptible strain falls as the concentration increases, and it stops growing at the MIC. A resistant strain grows almost unaffected up to ten times the MIC, and stops only near a hundred times it. In the figure the resistant strain carries Tn10dTet, a gene for an efflux pump that exports tetracycline out of the cell. What happens when the two are together?

Each strain alone

Growth rate of each strain grown alone, relative to its own rate without antibiotic, vs tetracycline (log scale): susceptible Salmonella (open) and the same strain carrying Tn10dTet (filled), mean ± SEM (Gullberg et al. 2011, Table S2, their Fig. 1B). Dashed lines: the MIC of the susceptible strain, 1.5 µg/ml, and the MSC measured in competition (below), 13 ng/ml. Without antibiotic the resistant strain alone grows slightly faster, 1.86 against 1.73 per hour, yet in competition it loses: the growth rate alone does not predict the outcome.

Setup.

What the data show. \(\ln R\) changes linearly with the number of generations. The slope depends on the antibiotic concentration. Without antibiotic it is negative: resistance has a cost, a slope of \(-0.03\) per generation for the streptomycin mutation. It becomes positive above a minimal selective concentration (MSC). For streptomycin the MSC is 1 µg/ml, a quarter of the MIC of the susceptible strain. For the other mutations it is between 1/10 and 1/230 of the MIC. Resistance is selected at concentrations far below those that stop the growth of the susceptible cells.

The sign of selection is not a property of the mutation. The same mutation is costly without the drug and favoured with it: fitness is a property of a type in an environment. Here the environment is fixed from outside. When the types change it themselves, fitness and environment change together: this is eco-evolutionary dynamics, at the end of the course. The plates of Luria and Delbrück (L3) were far above the MIC, where susceptible cells do not grow at all and any resistant colony is selected. Here, below the MIC, both types grow, and selection is a difference of growth rates.

Resistant and susceptible in the same tube

Ratio of resistant (rpsL K42R) to susceptible Salmonella vs generations, at five streptomycin concentrations, one competition each (digitized from Gullberg et al. 2011, Fig. 2A). Lines are straight-line fits of \(\ln R\).

Selection and antibiotic concentration

Slope of \(\ln R\) per generation for each competition (grey) and their mean (black), vs streptomycin concentration (Gullberg et al. 2011, Table S3). The dashed line is the MSC. The MIC of the susceptible strain is 4 µg/ml.

We want to understand why \(\ln R\) is linear in time, what its slope is, and why the slope does not depend on how the total population grows.

Two types growing exponentially

Let’s consider two types, \(A\) and \(a\), growing exponentially as in L1:

\[ \frac{dn_A}{dt} = f_A\,n_A,\qquad \frac{dn_a}{dt} = f_a\,n_a . \]

\(f_i\) is the per-capita growth rate of type \(i\). We call it the fitness of type \(i\). The total population is \(N=n_A+n_a\) and the frequency of \(A\) is \(x=n_A/N\). Then

\[ \frac{dx}{dt} = \frac1N\frac{dn_A}{dt}-\frac{n_A}{N^2}\frac{dN}{dt} = f_A\,x - x\,\bigl(f_A\,x+f_a\,(1-x)\bigr), \]

from which we get

\[ \boxed{\ \frac{dx}{dt} = s\,x(1-x),\qquad s=f_A-f_a\ } \]

\(s\) is the selection coefficient. It is the logistic equation of L4, now for a frequency. The “carrying capacity” \(x=1\) does not come from resources, but from the definition of a frequency. The fixed points are \(x=0\) and \(x=1\). If \(s>0\), \(x=1\) is stable and \(x=0\) is unstable: \(A\) takes over. If \(s<0\), the opposite.

The solution is the logistic of L4:

\[ x(t)=\frac{x_0\,e^{st}}{1-x_0+x_0\,e^{st}} , \]

which can be written as

\[ \ln\frac{x(t)}{1-x(t)} = \ln\frac{x_0}{1-x_0} + s\,t . \]

This is just the ratio of two exponentials, \(n_A/n_a = (n_A(0)/n_a(0))\,e^{(f_A-f_a)t}\). The log of the ratio is linear in time and its slope is the selection coefficient, as in the data. Only the difference of the growth rates matters. Both types could be declining (\(f_A,f_a<0\)): if \(f_A>f_a\), \(A\) still increases in frequency.

The slope does not depend on the frequency. Gullberg et al. also started the tetracycline competitions with one resistant cell every 10, up to one every \(10^4\). The slope barely changes.

The slope does not depend on the starting frequency

Selection coefficient of a tetracycline-resistant strain vs the initial ratio susceptible : resistant, at three tetracycline concentrations (Gullberg et al. 2011, Table S3).

When \(A\) is rare, \(x\simeq x_0e^{st}\): it grows exponentially at rate \(s\). The time to go from a single individual, \(x=1/N\), to \(x=1-1/N\) is

\[ t_{\rm sweep}=\frac{2\ln(N-1)}{s}\simeq\frac{2\ln N}{s}. \]

With \(N=10^9\) and \(s=10^{-2}\) per generation, about 4000 generations. A selective sweep is slow, and its duration depends on \(N\) only through a logarithm.

Limits to growth

Cells cannot grow exponentially forever (L4). Suppose that limitation of resources reduces growth equally to every type, \(\dot n_i=n_i\,(f_i-cN)\). The per-capita rates still differ by \(f_A-f_a\), and the frequency follows exactly the same equation, \(\dot x=s\,x(1-x)\). The total population goes to its carrying capacity, and selection goes on there.

In general, write the per-capita growth rate of type \(i\) as \(g_i\), which can depend on all the densities, \(\dot n_i=n_i\,g_i\). The same steps as above give

\[ \frac{dx_i}{dt}=\frac1N\frac{dn_i}{dt}-\frac{n_i}{N^2}\frac{dN}{dt}=x_i\,(g_i-\bar g),\qquad \bar g=\sum_j x_j\,g_j=\frac1N\frac{dN}{dt}. \]

This is exact. Whatever is added to all the \(g_i\) cancels: what matters for the frequencies is the difference of the per-capita growth rates. Selection is constant when the differences are constant.

If the differences depend on the total density, the frequencies are coupled to \(N\). Take two types that also differ in how much crowding slows them, \(\dot n_i=n_i\,(f_i-c_iN)\). Then

\[ \frac{dx}{dt}=x(1-x)\,\bigl[(f_A-f_a)-(c_A-c_a)\,N\bigr]. \]

The key is a separation of time scales. If the two types are similar, \(x\) changes slowly, while \(N\) relaxes at rate \(\bar f\) to the value where the population stops growing, \(\bar g=0\), i.e. \(N^*=\bar f/\bar c\) with \(\bar c=\sum_ix_ic_i\). Setting \(N=N^*\) closes the equation for the frequency:

\[ \frac{dx}{dt}=\frac{c_Ac_a}{\bar c}\,(K_A-K_a)\,x(1-x),\qquad K_i=\frac{f_i}{c_i}. \]

Once the population has saturated, the type with the larger carrying capacity wins, not the one that grows faster (exercise 5). The same reduction holds for arbitrary forms of self-limitation and competition (Mazzolini & Grilli 2023). In the rest of this note the differences of the \(g_i\) do not depend on \(N\).

Many types, the replicator equation

With \(S\) types, \(\dot n_i=f_i\,n_i\) and \(x_i=n_i/N\), the same steps give

\[ \boxed{\ \frac{dx_i}{dt}=x_i\,\bigl(f_i-\bar f\bigr),\qquad \bar f=\sum_j f_j\,x_j\ } \]

the replicator equation (Taylor & Jonker 1978; Schuster & Sigmund 1983). \(\bar f\) is the mean fitness, \(\bar{f} = \sum_i f_i x_i\)
A type grows in frequency if it is fitter than the average.

Fixed points

Each type is either absent, \(x_i=0\), or has \(f_i=\bar f\). If all the \(f_i\) are different, only one type can be present. There are \(S\) fixed points, one per type: \(x_j=1\) and \(x_i=0\) for \(i\ne j\).

Stability

At the fixed point where \(j\) is alone, \(\bar f=f_j\), and a rare type \(i\) grows as

\[ \frac{dx_i}{dt}\simeq(f_i-f_j)\,x_i . \]

\(f_i-f_j\) is the invasion rate of \(i\) into \(j\), as in L6. The fixed point is stable if no type can invade, i.e. if \(f_j\) is the largest fitness. Only one fixed point is stable: the fittest type, provided it is present at the start (without mutations, a type that is absent stays absent).

Solution

The solution is explicit:

\[ x_i(t)=\frac{x_i(0)\,e^{f_it}}{Z(t)},\qquad Z(t)=\sum_jx_j(0)\,e^{f_jt}=\frac{N(t)}{N(0)} . \]

It has the form of a Boltzmann distribution, with \(-f_i\) in the role of the energy and \(t\) in the role of the inverse temperature. Selection is a cooling: for \(t\to\infty\) the population condenses on the “ground state”, the fittest type. The mean fitness is \(\bar f=d\ln Z/dt\), as the mean energy is \(-\partial\ln Z/\partial\beta\).

Fisher’s fundamental theorem

How does the mean fitness change? Using the replicator equation,

\[ \frac{d\bar f}{dt}=\sum_if_i\,\frac{dx_i}{dt}=\sum_if_i^2\,x_i-\bar f\sum_if_i\,x_i , \]

which can be written as

\[ \boxed{\ \frac{d\bar f}{dt}=\overline{f^2}-\bar f^{\,2}=\mathrm{Var}(f)\ } \]

The mean fitness increases at a rate equal to the variance of fitness in the population (Fisher 1930). In the language of the solution, \(\mathrm{Var}(f)=d^2\ln Z/dt^2\), the analogue of the heat capacity.

Price equation

Fitness is not something we can see on an organism. What we can measure is a trait: beak depth, cell size, the concentration of antibiotic a cell tolerates. Let \(q_i\) be the value of the trait of type \(i\) and \(\bar q=\sum_iq_ix_i\) its mean. Using the replicator equation,

\[ \frac{d\bar q}{dt}=\sum_iq_i\,x_i\,(f_i-\bar f)=\overline{qf}-\bar q\,\bar f , \]

that is

\[ \boxed{\ \frac{d\bar q}{dt}=\mathrm{Cov}(q,f)\ } \]

the Price equation (Price 1970). A trait changes if it covaries with fitness, whatever the reason for the covariance. Fisher’s theorem is the special case \(q=f\). Price’s general version has a second term, the average change of the trait between parent and offspring. Here it is zero, because each type reproduces itself exactly.

Exercises

  1. Show that the time to go from \(x=\epsilon\) to \(x=1-\epsilon\) is \(2\ln[(1-\epsilon)/\epsilon]/s\). Compare a beneficial mutation with \(s=10^{-1}\) and one with \(s=10^{-3}\) per generation in a population of \(10^9\).
  2. Mutation–selection balance. In the absence of antibiotic, resistance has a cost \(c>0\) (so \(s=-c\)), and susceptible cells become resistant at rate \(\mu\) per unit time: \(\dot n_A=(f_a-c)\,n_A+\mu\,n_a\), \(\dot n_a=(f_a-\mu)\,n_a\). Show that \(\dot x=(1-x)(\mu-c\,x)\), find the fixed points and their stability. How does this change the assumption of neutral mutants in L3?
  3. Show that with \(x_i'=x_iw_i/\bar w\) (discrete generations) \(\Delta\bar q=\mathrm{Cov}(q,w)/\bar w\), and that if \(w_i\in\{0,1\}\) this is the difference between the mean trait of the survivors and the mean before selection.
  4. Data in the course folder: the selection coefficients of every competition of Gullberg et al. 2011 (Table S3), for six resistance mutations at several antibiotic concentrations. For each mutation, estimate the cost of resistance and the MSC, and express the MSC as a fraction of the MIC of the susceptible strain (streptomycin 4 µg/ml, tetracycline 1.5 µg/ml, ciprofloxacin 23 ng/ml).
  5. Type-specific crowding, \(\dot n_i=n_i\,(f_i-c_iN)\) for two types. Derive the equation for \(x\). Show that \(N\) relaxes at rate \(\bar f\) to \(N^*=\bar f/\bar c\), and that with \(N=N^*\), \(\dot x=(c_Ac_a/\bar c)(K_A-K_a)\,x(1-x)\) with \(K_i=f_i/c_i\). A mutant grows faster than the resident, \(f_A>f_a\), but has a smaller carrying capacity, \(K_A<K_a\). Does it increase in frequency while the population is small? And once it has saturated? (This is r- versus K-selection.)
  6. Crowding weighted by fitness, \(\dot n_i=n_i\bigl(f_i-\sum_jf_jn_j/K\bigr)\). Show that the frequencies follow the replicator equation with fitnesses \(f_i\), and that \(N\) grows logistically with rate \(\bar f\), which changes in time.

At home

References