Jukes-Cantor model Created 2026-10-20 Updated 2026-11-05
The Jukes-Cantor model is a symmetric four-state continuous-time Markov chain for DNA evolution. Each change to a specified different base has rate , so the total rate of actual changes is . Its same-base probability is and its probability for one specified different base is . The probability of any mismatch is three times the latter, tending to at long times. Distinguish the exponent parameter from the actual per-site mutation rate when fitting this model.
A point mutation changes an individual nucleotide position, introducing heritable sequence variation. Replication errors and spontaneous chemical damage are possible origins; mutation does not occur because a future change would be useful. Natural selection changes the frequencies of variants through their effects on reproduction, while genetic drift causes random frequency changes, especially in small populations. A sequence difference fixed between lineages is a substitution; many new mutations disappear and never become substitutions. Under a simple neutral diploid model, new neutral variants per generation times fixation probability gives substitution rate , motivating a molecular clock for suitable neutral sites.
To infer a phylogenetic tree, compare homologous, preferably orthologous sequences and align corresponding sites. A nucleotide substitution model converts observed sequence differences into estimated evolutionary branch lengths, allowing for multiple changes at one site. For example, in the equal-frequency, equal-rate Jukes-Cantor model, a site changes to any alternative with rate , where is its total substitution rate. The probability of matching its initial state after elapsed time is . Thus for an evolutionary separation with expected substitutions per site , the observed mismatch fraction is and
For small , ; near saturation , large evolutionary distances become difficult to distinguish. The correction does not rescue fully saturated data. Real analyses may allow unequal nucleotide frequencies, transition biases and variation of rates between sites.
Tree topology and branch lengths can be estimated using maximum likelihood estimation or Bayesian phylogenetic inference, with support assessed from resampling or posterior uncertainty. A gene tree need not equal the species tree, because incomplete lineage sorting, genetic recombination and horizontal gene transfer can produce different histories. Rooting with an appropriate outgroup establishes ancestral direction; pairwise differences alone do not supply a root.
Branch lengths measured in substitutions per site are not yet calendar times. Under a strict molecular clock with rate per site per year, a branch of duration has length ; two contemporaneously sampled descendants separated at time have total path length , hence . Calibration comes from independently dated constraints such as fossil calibration, geological information or sufficiently informative sampling dates. A dated common ancestor is not automatically identical in age to the earliest observed fossil. A relaxed molecular clock permits branch-specific rates while imposing a statistical model on them.
Without an external temporal calibration or an independently known rate, multiplying all times by a constant and dividing all rates by that constant leaves expected sequence divergence unchanged. Absolute dates are therefore unidentifiable from sequence divergence alone. A useful time-calibrated phylogenetic tree reports uncertainty from sequence sampling, substitution models, rate variation, topology and calibration bounds, rather than displaying an unjustified exact date for each ancestor.
Take to be the total instantaneous mutation rate away from a base, so each specified alternative has rate . Under the Jukes-Cantor model, the uniform component is stationary and the three contrast components decay as , giving
An implementation is:
def jukes(a, b, t, mu):
    decay = np.exp(-4*mu*t/3)
    return .25 + .75*decay if a == b else .25*(1-decay)

print(f"{jukes(2,2,1,.5):.3f} {jukes(2,3,1,.5):.3f}")
The two probabilities are and . The probabilities in any row sum to one, at the transition matrix is the identity, and at long times every entry tends to .
The Jukes-Cantor model is also parameterized by a rate for each specified replacement, in which case the exponential is and . The total-rate convention is used consistently below; it yields an optimum within the stated search interval, whereas the corresponding per-replacement rate is about .
The printed “otherwise” branch requires correction. Its factor is the probability of ending at any of the three bases different from the initial base, not of ending at one specified different base. Assigning that probability to each of three alternatives would make a row of the transition matrix sum to , which exceeds one for . This distinction is present in the source PDF, not introduced by the transcription.
For a consistent Jukes-Cantor model, let each ordered change from one nucleotide to a specified different nucleotide have instantaneous rate . Its continuous-time Markov chain has diagonal generator entries and off-diagonal entries . If is the probability of still having the same base as at time zero, its Kolmogorov equations give
Solving the linear ordinary differential equation gives
Set to match the exponent used in the question. Symmetry then gives the properly normalized transition probabilities
Summing the three different-base outcomes yields
The assumptions are a time-homogeneous Markov process, the same change rate between every distinct ordered base pair, identical rates across independent sites, and no insertions or deletions. The stationary distribution is uniform over the four bases; starting the process in that distribution is not required for this conditional calculation.
There is also a parameter-convention issue. The actual total mutation rate out of a base is . Thus the exponent parameter in (b)–(d) is times the event rate used in the elementary counting interpretation of (a). Keeping this conversion explicit avoids changing the meaning of “mutation rate” halfway through the calculation.
Under the independent-site Jukes-Cantor model, the number of differences from a known ancestor has a binomial distribution with mismatch probability
For an interior estimate, maximum likelihood estimation gives . Equating this to the model probability and rearranging gives
This is finite for . At , the estimate tends to infinity: the endpoint distribution has reached its limiting saturation and no finite rate can reproduce it exactly. For , the displayed logarithm is not defined as a real number; within this model the constrained likelihood is maximized only as . For the boundary estimate is zero. The corresponding estimate of the actual event mutation rate is .
The two descendant branches of an equal-rate Jukes-Cantor model compose to a single branch of duration . More explicitly, the model is symmetric, so summing over the ancestral base gives and a total mismatch probability . Thus use the pairwise difference fraction directly with , rather than halving the differences and correcting the halves separately:
This is the parameter in the printed formula of (c). For a mutation rate measured as actual changes per site per year, the conversion derived in (b) gives
The latter is directly comparable to the naive estimate in (a): allowing repeated changes raises that estimate by about . The exponent parameter and actual event rate are two conventions for the same fitted process, not two different biological estimates.