Jukes-Cantor model 2026-10-20
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.
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 , givingAn 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 giveSolving the linear ordinary differential equation givesSet to match the exponent used in the question. Symmetry then gives the properly normalized transition probabilitiesSumming the three different-base outcomes yieldsThe 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 probabilityFor an interior estimate, maximum likelihood estimation gives . Equating this to the model probability and rearranging givesThis 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) givesThe 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.