---
title: "Models of Sequence Evolution and Maximum Likelihood Trees"
description: "Maximum-likelihood tree inference uses explicit assumptions about nucleotide substitution and variation among sites. Comparing Jukes-Cantor, HKY and GTR shows how their parameter constraints differ. M"
canonical: https://lightmysky.com/learn/science/models-of-sequence-evolution-and-maximum-likelihood-trees-mt_Ujtg0xul9N
source: https://lightmysky.com/learn/science/models-of-sequence-evolution-and-maximum-likelihood-trees-mt_Ujtg0xul9N.md
retrieved: 2026-11-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Models of Sequence Evolution and Maximum Likelihood Trees

Maximum-likelihood tree inference uses explicit assumptions about nucleotide substitution and variation among sites. Comparing Jukes-Cantor, HKY and GTR shows how their parameter constraints differ. Model choice can affect fitted branch lengths and the preferred topology.

Subject: Science · Area: Genetics & Evolution · Ages 22 to 23
Page: https://lightmysky.com/learn/science/models-of-sequence-evolution-and-maximum-likelihood-trees-mt_Ujtg0xul9N

## Ready when they can

- Compare Jukes-Cantor, HKY and the general time-reversible model by the parameters each adds
- Explain how a gamma distribution models rate variation among sites and describe possible biases from ignoring that variation
- Interpret the likelihood of a tree given an alignment and a stated model

## Lesson: The model behind the tree

The previous topic used a substitution model to score sequence data. A nucleotide model specifies rates between A, C, G and T in a rate matrix. Jukes-Cantor, or JC, assumes equal equilibrium base frequencies and equal rates between distinct bases. It still allows repeated substitutions; an observed difference need not represent just one change.

JC sets base frequencies equal and treats every nucleotide pair alike. HKY allows unequal equilibrium frequencies and a parameter that changes transition exchangeabilities relative to transversion exchangeabilities. Transitions exchange A with G or C with T; the other pairs are transversions. HKY allows a transition preference but does not require one.

*(drawing: These are the transition pairs. The other unordered nucleotide pairs are transversions.)*

GTR allows unequal equilibrium base frequencies and six pair exchangeabilities: AC, AG, AT, CG, CT and GT. A rate toward a base also depends on that destination base's equilibrium frequency, so opposite directions can have different rates. Fixing the overall rate scale leaves five free relative exchangeability parameters, not six independent directional rates.

Sites can have different relative substitution rates. A gamma distribution models this variation; its shape parameter controls the spread. With the mean fixed, smaller positive shape values mean greater variation. This concerns alignment positions, not separate rates for species. The bars show illustrative site rates, not a fitted gamma distribution.

**Example.** Ignoring site-rate variation can bias branch lengths and sometimes topology. Suppose a grouping disappears when HKY with equal site rates is replaced by HKY with gamma rate variation on the same alignment. The grouping is sensitive to the rate assumption. Its disappearance does not prove the second tree true. High ordinary bootstrap support under the first procedure does not settle the disagreement.

Likelihood is the probability of the observed alignment under a tree, model and parameter settings. Sum over unobserved ancestral bases, weighting assignments by their model probabilities. Maximum likelihood fits branch lengths and other parameters for candidate topologies, or branching patterns, and seeks the largest likelihood. Model changes can alter the fitted lengths and preferred topology, but need not do so.

If one model is a constrained case of another, the models are nested. On the same alignment, the richer model can fit at least as well if optimization reaches the maximum. Extra parameters can improve fit without making the model a better choice. Criteria such as AIC balance fit against parameter count. Check model fit and whether relationships remain stable under plausible models; neither richness nor a high score proves a tree true.

In GTR, a directional rate is the pair's exchangeability times the destination base's equilibrium frequency, with a common factor setting the overall rate scale. To compare opposite directions, cancel their shared positive exchangeability and scale factor. The rate ratio equals the ratio of the destination frequencies. A shared exchangeability therefore need not give equal directional rates.

**Recap.** JC, HKY and GTR impose different rate and frequency constraints. Gamma models variation among sites. Likelihood fits the alignment under a model; compare fit, complexity and sensitivity.

*Lesson, questions and study cards written for this dataset.*

## Practice

8 questions on this page, each with its working shown.

## Needs first

- [Distance and Likelihood Trees, and What Branch Support Means](https://lightmysky.com/learn/science/distance-and-likelihood-trees-and-what-branch-support-means-mt_mEO9PUEdh6)

## Optional connections

- [Likelihood and the Maximum Likelihood Estimate](https://lightmysky.com/learn/computing/likelihood-and-the-maximum-likelihood-estimate-mt_crcBnSqkTE)

## Opens up

- [Bayesian Phylogenetics: Priors, Sampling and Judging Convergence](https://lightmysky.com/learn/science/bayesian-phylogenetics-priors-sampling-and-judging-convergence-mt_7jWhYh1n5X)
