EpistemicPhysics
Survey · Biology

Evolution has an order

Explore selection, mutation, lineage histories, and the Beta distributions of wandering populations.

· 18 min read · 3 interactive demos

Imagine two cultures of cells arriving at the same crossroads. One encounters a change in reproductive conditions, then acquires a new heritable variant. The other acquires the variant first, then encounters the change. They have experienced the same two kinds of event. Should they end with the same population?

Now imagine opening their family trees. A thousand cells carry a variant in each culture. In one, all thousand descend from a single mutation. In the other, the variant arose repeatedly. The head count agrees. What else would we need to know?

Evolution invites us to ask about transformations, reachable possibilities, and ancestry. These are lively places to explore Epistemic Physics. The positive cone can describe a reproducing population. A lineage record can preserve the history of a copied trace. A Beta distribution can describe either an observer’s uncertainty or a population’s actual wandering. Let us follow those connections through three experiments.

Reproduction tilts a population through the cone

Choose a population with two heritable types. Let x and y denote their nonnegative amounts. These could be two variants carried by cells with one copy of the relevant gene. Different ancestral lineages may carry the same variant; we will open that distinction later.

For one reproductive episode, choose positive weights w+ and w−:

x′=w+x,y′=w−y.

A weight of two doubles that type’s amount; a weight of one-half halves it. These are deterministic amounts, so fractions are allowed. Our later island experiment will count whole cells.

Introduce the sum and difference

A=x+y,P=x−y,M2=A2−P2=4xy.

The pair (P,A) lies inside the cone A≥|P|. The coordinate M=2xy labels hyperbolas inside it. For this construction, all three coordinates have units of population amount.

Now separate the reproductive weights into

g=w+w−,η=12log⁡w+w−.

The common factor g describes a uniform scaling, while η, called rapidity, describes the relative advantage. Define the matrix

B(η)=(cosh⁡ηsinh⁡ηsinh⁡ηcosh⁡η).

Substituting w+=geη and w−=ge−η gives

(A′P′)=gB(η)(AP).

This matrix is an active Lorentz boost: it moves the population vector in a fixed coordinate system. Our sign convention makes positive η favor x. The hyperbolic functions are cosh⁡η=(eη+e−η)/2 and sinh⁡η=(eη−e−η)/2.

The boost preserves A2−P2; the accompanying scale changes it by g2. Consequently,

M′=gM.

Here is a population process with an exact cone transformation. The coordinates describe the amounts we supplied. To turn those amounts into an observer’s evidence trials would require an observation model.

Odds travel by addition in rapidity

The fraction of the population carrying x is

p=xx+y,v=PA=2p−1.

For an interior population, with both types present, define

ρ=artanh⁡v=12log⁡xy.

The symbol artanh means the inverse hyperbolic tangent. Reproduction adds a fixed amount to this coordinate:

ρ′=ρ+η,v′=tanh⁡(ρ+η).

The apparent bend of selection on the frequency axis becomes a straight step in half-log odds. Set r=w+/w−, the relative reproductive weight. The population and inference equations align beautifully:

Reproducing populationObserver comparing two hypotheses
Current odds p/(1−p)Current odds q/(1−q)
Multiply by relative weight rMultiply by likelihood ratio L
p′/(1−p′)=rp/(1−p)q′/(1−q′)=Lq/(1−q)
Add 12log⁡r to population rapidityAdd 12log⁡L to belief rapidity

Here q is the observer’s probability for the first hypothesis, and L compares how well the hypotheses predict an observation. Harper develops the relation between replicator dynamics, Bayesian updating, and information geometry. Our two-type calculation makes its odds correspondence explicit. Read Harper’s paper.

The dictionary lets us carry mathematical tools between reproduction and inference while remembering which process supplies the multiplier.

A missing lineage is a missing route

Suppose x=0. Multiplying it by four, forty, or four million leaves it at zero. Pure selection can favor a type without creating an instance of it.

On the cone, that population lies on the edge P=−A. An active boost preserves the edge. In frequency coordinates, selection takes the form

Sr(p)=rp1−p+rp,Sr(0)=0,Sr(1)=1.

The set of types already present is called the population’s support. In this multiplicative model, support is preserved. An interior population approaches an edge under repeated disadvantage, but finite positive weights keep a positive amount positive.

Mutation changes the possibilities. Choose a symmetric mutation episode in which a fraction u of each type changes into the other:

Mu(p)=u+(1−2u)p.

For 0<u<1/2, a population containing only y moves from p=0 to p=u. The previously empty type becomes available for subsequent selection. Ancestry continues through that change: the new x cells descend from y cells even though their type label changes.

In cone coordinates, this mutation episode has an especially simple action:

A′=A,P′=(1−2u)P.

It moves horizontally toward the center of the cone. The total population amount stays fixed while the set of occupied types can expand.

This suggests an inviting connection to learning. Reweighting an existing list of hypotheses resembles selection. Introducing a new hypothesis resembles opening a previously unavailable direction. A future model of creative learning could give these operations separate rules and ask when a learner should search for another possibility. Feedback offers another way to shape available states, explored in A cell chooses what to remember.

Swap the events

Mutation changes the population on which selection acts. To see the consequence, start at p=0.1, choose u=0.1, and give x relative reproductive weight r=4.

If mutation happens first,

0.1→M0.10.18→S43677≈0.468.

If selection happens first,

0.1→S4413→M0.1926≈0.346.

The final fractions differ by about 12.14 percentage points. The newly supplied x population receives the reproductive advantage only in the first sequence. Mathematicians call this noncommutativity: exchanging the order of two transformations can change their result.

Before trying the demo, make two predictions. Will the difference survive if x starts absent? Will two fixed selection steps also depend on their order?

An experiment in evolutionary order

Swap the events, follow the population

Start with 100 units of population. The x lineage has fraction p; the other lineage has fraction 1 − p. Move a card earlier or later. Predict the final x fraction before looking at the gold endpoint.

  1. 1Mutation: switch 10%

    Move 10% of each lineage into the other.

  2. 2Selection: x × 4

    Multiply x by 4 and keep y unchanged.

Your orderReversed order
x fraction p00.51Your order, step 0: x fraction 0.1000Reversed, step 0: x fraction 0.10000Your order, step 1: x fraction 0.1800Reversed, step 1: x fraction 0.30771Your order, step 2: x fraction 0.4675Reversed, step 2: x fraction 0.34622Completed events
Total A = x + yYour order, step 0: P -80.0, A 100.00Your order, step 1: P -64.0, A 100.01Your order, step 2: P -10.0, A 154.02−P+PDifference P = x − y

Both pictures follow the same states, numbered 0, 1, 2. The cone edges mean one lineage is absent. Lines connect event endpoints; they do not add an assumed process between events. The cone rescales to fit both routes.

Your final x fraction
46.75%
Reversed x fraction
34.62%
Final amounts x / y
72.0 / 82.0
Final cone P / A
-10.0 / 154.0
Swapping the events changes the final x fraction by 12.14 percentage points. Selection acts on whichever population mutation has already supplied, or will supply later.

Chosen model: deterministic lineage amounts, positive fixed reproductive weights, and symmetric mutation. For x × 4 and y × 1, common scale g = 2 and active boost rapidity η = 0.693. Mutation preserves A and multiplies P by 0.8. Fractional amounts represent this deterministic population model.

Open the sequence experiment in the playground.

The selection-only control has a clean answer:

Sa(Sb(p))=Sab(p)=Sb(Sa(p)).

Both steps multiply the odds, and multiplication of positive numbers commutes. Their intermediate populations can differ, even when the endpoints coincide. The corresponding one-dimensional boosts add their rapidities in either order. When reproductive conditions vary across generations, the question of how to distribute a population’s options leads toward How life prepares for an uncertain world.

This is useful experimental thinking: identify the operations whose order might matter, then find a control whose algebra predicts equality. Turning mutation off also removes the mutation-selection difference. One matching endpoint at one starting frequency, however, does not establish that two transformations commute for every population.

The cone holds the current state. A record of the transformations preserves how the population arrived there. Evolutionary history becomes visible when we keep both.

A clock made from changing distinguishability

There is another geometric excursion nearby. For several types, let pi be type i’s fraction and fi its instantaneous growth rate. Define the mean rate f¯=∑ipifi. The continuous replicator equation is

p˙i=pi(fi−f¯),

where the dot means a derivative with respect to time. A type gains frequency when its rate exceeds the population’s mean. This is the replicator model discussed in Harper’s treatment.

To measure how much the frequency distribution changes, use the categorical Fisher metric:

ds2=∑idpi2pi.

This metric measures local statistical distinguishability between nearby distributions. On the occupied support, substituting the replicator equation yields

(dsdt)2=∑ip˙i2pi=∑ipi(fi−f¯)2=Varp⁡(f).

Thus the population’s Fisher speed equals the standard deviation of its growth rates. A larger spread of rates moves its composition faster in this particular geometry. Integrating the speed counts accumulated distinguishable change along a trajectory.

Keep the two geometric rulers beside each other:

Cone rulerFisher ruler
Coordinates A,P describe amountsCoordinates pi describe proportions
Quadratic form dA2−dP2Positive metric ∑idpi2/pi
A boost preserves the cone quadratic formReplicator speed measures changing distinguishability

The same population admits both descriptions. Each ruler asks its own question.

One mutation can become a crowd

A population count hides a branching story. Luria and Delbrück used fluctuations between bacterial cultures to investigate that story in 1943. Their resistant-colony counts varied far more between separately grown cultures than simple sampling would predict. Their analysis connected those large fluctuations with mutations arising before exposure to the selecting virus: an early event could leave a large family of resistant descendants. Read the original fluctuation paper.

Build a miniature version. One founder divides into two cells, each divides again, and every lineage continues at the same rate. After G divisions, the living population contains 2G cells. If one cell first carries a mutation at division k, and all its descendants inherit it, that origin contributes

Dk=2G−k

mutant descendants at division G.

The exponent is the remaining time for reproduction. Move an origin one division earlier and double its final family. After twenty divisions, an origin at division two leaves 218=262,144 descendants; an origin at division eighteen leaves four. Timing makes a jackpot without requiring a higher mutation rate in the lucky culture.

The next experiment lets you place the events yourself. Compare the two arrangements with four mutant cells, then let all the lineages grow further.

Choose when a lineage changes

One mutation, a growing family

Rebuild a family history. Gold squares mark the final cells you want to mutate. Place mutation origins on the tree, then check whether their descendants match the pattern.

Make the left four leaves inherit one change

Invitation: use at most 1 separate origin. This budget is a puzzle choice.

founder; 16 final descendantsgeneration 1, branch 1; 8 final descendantsgeneration 1, branch 2; 8 final descendantsgeneration 2, branch 1; 4 final descendantsgeneration 2, branch 2; 4 final descendantsgeneration 2, branch 3; 4 final descendantsgeneration 2, branch 4; 4 final descendantsgeneration 3, branch 1; 2 final descendantsgeneration 3, branch 2; 2 final descendantsgeneration 3, branch 3; 2 final descendantsgeneration 3, branch 4; 2 final descendantsgeneration 3, branch 5; 2 final descendantsgeneration 3, branch 6; 2 final descendantsgeneration 3, branch 7; 2 final descendantsgeneration 3, branch 8; 2 final descendantsgeneration 4, branch 1; 1 final descendantsgeneration 4, branch 2; 1 final descendantsgeneration 4, branch 3; 1 final descendantsgeneration 4, branch 4; 1 final descendantsgeneration 4, branch 5; 1 final descendantsgeneration 4, branch 6; 1 final descendantsgeneration 4, branch 7; 1 final descendantsgeneration 4, branch 8; 1 final descendantsgeneration 4, branch 9; 1 final descendantsgeneration 4, branch 10; 1 final descendantsgeneration 4, branch 11; 1 final descendantsgeneration 4, branch 12; 1 final descendantsgeneration 4, branch 13; 1 final descendantsgeneration 4, branch 14; 1 final descendantsgeneration 4, branch 15; 1 final descendantsgeneration 4, branch 16; 1 final descendantsFounder16 cells after 4 divisions
Free exploration and timing presets

Selected: generation 1, branch 1. 8 final descendants come from this cell.

Population counts and extra generations
Unchanged lineageMutant lineageMutation origin ringSelected node ring
Living cells after 4 divisions
16
Living mutant cells
0
Separate mutation origins
0
Mutant fraction
0.00%
0 mutant cells are 0 real living cells. For the question “How many separate first mutations happened?”, follow the 0 origin rings. Change between the two “4 cells” experiments to keep abundance fixed while changing its ancestry.

Chosen model: synchronous binary division, equal reproduction and survival, inherited mutation with no reversion. An origin at division k leaves 2^(G − k) descendants at division G. A cell already carrying the mutation cannot acquire a new first origin of that same change.

Open the mutation-family experiment in the playground.

The useful count follows the question:

Biological questionQuantity to follow
How many mutant cells are alive now?Living mutant descendants
What fraction of the population carries the variant?Mutant descendants divided by all living cells
How many separate first mutations occurred?Distinct mutation origins in the genealogy
How often does mutation occur per opportunity?Origins together with the relevant division opportunities and detection model

Every descendant is a real cell. Shared ancestry tells us which cells inherited the same event. If we model mutation opportunities on separate branches as independent, the origin events become the units for that model; the labels alone do not establish statistical independence.

Epistemic Physics gives this distinction a natural home. A tracelet can retain its source identity while appearing in several question-specific records. A descendant’s existence can matter directly to an abundance question and also point back to an ancestral event. Copying a physical trace can increase its prevalence while preserving its origin.

This opens a rich possibility: track a population’s physical multiplication and its evidential ancestry together. Selection would change which families dominate observation, while the lineage record would preserve how many origins those families represent.

When the population itself wanders into a Beta

So far, populations followed deterministic rules or a prescribed tree. Small populations add another ingredient: chance in which individuals leave offspring. Genetic drift is the resulting random change in variant frequencies.

Choose the following continuous approximation, a Wright-Fisher diffusion:

dp=[u(1−p)−wp]dt+p(1−p)NdWt.

Here p is the current x frequency, u>0 is the mutation rate toward x, w>0 is the rate away from it, and N sets the population drift scale. Time t is measured in our chosen generation units. The process Wt is standard Brownian motion, whose increments have variance equal to the elapsed time.

The first term gives the average motion from mutation. The second supplies random wandering, stronger in smaller populations. This normalization matters: population-genetic conventions can use different population sizes and time units, changing the factors attached to mutation parameters. Song and Steinrücken give the neutral diffusion and its Beta stationary weight in a scaled convention. See their original derivation.

Let us derive the normalized equilibrium for the equation above. Write a(p)=u(1−p)−wp for its average drift and b(p)=p(1−p)/N for its variance rate. A stationary density π(p) with zero probability current satisfies

J(p)=a(p)π(p)−12ddp[b(p)π(p)]=0.

Probability current describes probability flowing through a frequency value. Solving this equation gives

dlog⁡πdp=2Nu−1p−2Nw−11−p.

Integrate and normalize:

π(p)=pα−1(1−p)β−1B(α,β),α=2Nu,β=2Nw.

The Beta function B(α,β)=∫01zα−1(1−z)β−1dz supplies the total area, making π a probability density.

Under this recurrent-mutation diffusion, the stationary frequency follows Beta⁡(2Nu,2Nw). Its mean is u/(u+w). With equal mutation rates, shapes below one favor frequencies near the edges; shapes above one produce a central peak. Both sides below one can give an edge-heavy population distribution despite a mean of one-half.

What would those shapes look like as an archipelago of living populations?

Population wandering and an observer's notebook

Many islands, two meanings of a Beta

Visit an island, sample its cells, then place your estimate before opening the census. Evolution changes the islands; sampling changes your notebook.

Generation 0

Field station: island 1

The population is frozen while you sample. Collect ten cells to begin.

Estimated island x fraction: drag or use arrow keys01

Your estimate: 0.50

Across-island distribution, mutation settings, and observer notebook

N = 40 cells per island. Mutation probabilities per offspring: y → x, u = 0.005; x → y, w = 0.005. Changing the mutation setting restarts the populations. Repeating the same seed and actions reproduces the same paths.

Actual islands nowDiffusion equilibrium reference
Probability in each bin0%56%112%00.51x fraction p

Gold and blue heights are probabilities integrated over each bin, joined at bin centers. This keeps edge-heavy Beta shapes visible without clipping their infinite endpoint densities. Rose marks the selected island's actual p. The last bin includes p = 1. Gold is a diffusion equilibrium prediction; the finite islands are shown at their current generation.

Bin 0 to 0.1: 0 of 96 islands. Diffusion equilibrium probability: 24.0%.

Generation
0
Islands at p = 0 or 1
0 / 96
Diffusion Beta shapes α / β
0.40 / 0.40
Mean x fraction across islands
0.500
Here α = β = 0.4. The diffusion's long-run law favors the edges: islands often have one common lineage and one scarce lineage. A population at an edge can return when mutation creates the missing type.

Follow one island, then sample it

Island 1: x fraction p00.51010Generation

Pause evolution at the current generation. An observer starts with a uniform Beta(1, 1) belief about this island's p, then samples cells with replacement. Each independent draw is one trial. The observer's blue distribution appears on the frequency chart above.

Actual island fraction p
0.500
Observed x / y draws
0 / 0
Observer Beta shapes
1 / 1
Observer posterior mean
0.500

Sampling leaves the population unchanged. Selecting another island or advancing evolution begins a new notebook. Finite reproduction uses K′ ∼ Binomial(40, q), q = u(1 − p) + (1 − w)p. The reference diffusion uses dp = [u(1 − p) − wp]dt + √[p(1 − p)/40]dW, giving α = 80u and β = 80w. Its continuous stationary law approximates this discrete chain in the diffusion regime; it is not the chain's exact finite-population law.

Open the island experiment in the playground.

The demo simulates a finite chain. If an island currently has fraction p, mutation gives the offspring probability

q=u(1−p)+(1−w)p.

Its next x count is K′∼Binomial⁡(N,q): draw N offspring independently, each carrying x with probability q. The next frequency is K′/N, restricted to a grid of possible counts.

The gold curve uses integrated probabilities from the continuous diffusion equilibrium. Weak mutation and an appropriate population scale connect the two models through a diffusion approximation. The finite chain retains discrete endpoints and uses offspring variance q(1−q)/N per generation; its exact stationary law need not be Beta. Starting every island at one-half also creates a transient before any equilibrium comparison becomes informative.

The observer keeps a different notebook

Freeze one island and sample cells with replacement. For an observer using a continuous Bernoulli model, start with a uniform Beta⁡(1,1) prior for the probability of drawing x. Let D denote the record of m independent draws, of which k are x. The posterior is

p∣D∼Beta⁡(1+k,1+m−k).

Those shapes count the chosen prior plus observed draws. The diffusion shapes combine mutation rates and population scale. The two Betas can share a graph because both use a frequency axis, while their probabilities answer different questions:

  • The gold law describes the population frequencies expected across an ensemble at diffusion equilibrium.
  • The blue law describes the observer’s uncertainty about one frozen island’s sampling probability.

Collecting more draws changes the blue law while leaving the island unchanged. Advancing generations changes the physical population, so the demo starts a new sampling notebook. An observer who explicitly used the known finite count grid could instead place a discrete prior over those counts. Following populations through observations made in different places adds another layer, explored in How to read a living landscape.

This is a particularly useful habit when reading a distribution: ask what is random, and under which experiment. The same mathematical family can organize physical variation and incomplete knowledge about physical variation.

Ask evolution a question about timing

We can now imagine an experiment designed around sequence. Choose two modeled interventions, prepare matching initial populations, and compare both orders. Keep a selection-only control whose endpoint equality is predicted. Record genealogies as well as final type counts. Finally, compare several replicate populations to distinguish their evolutionary variation from sampling uncertainty within each one.

An intriguing research direction would treat these transformations as the basic vocabulary of an evolving evidence system. Reproduction amplifies a lineage. Mutation opens a type. Drift explores available frequencies. Observation creates question-specific tracelets from the resulting population. Each operation has a place in the history, and exchanging places may change what can happen next.

The invitation is to keep that history visible. When two populations look alike, open their family trees. When two interventions look interchangeable, swap them. When a Beta curve appears, ask whether it describes the wandering world or the observer learning about it.