ArticleslgStudy

mathematics

Felsenstein's tree-pruning algorithm

Felsenstein's tree-pruning algorithm is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Felsenstein's tree-pruning algorithm rather than just read about it. In short: In statistical genetics, Felsenstein's tree-pruning algorithm (or Felsenstein's tree-peeling algorithm), attributed to Joseph Felsenstein, is an algorithm for efficiently computing the likelihood of an evolutionary tree from nucleic acid sequence data. The algorithm is often used as a subroutine in a search for a maximum likelihood estimate for an evolutionary tree.

Felsenstein's tree-pruning algorithm — main illustration
Felsenstein's tree-pruning algorithm — illustration

Key takeaways

  • Felsenstein's tree-pruning algorithm belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Felsenstein's tree-pruning algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Felsenstein's tree-pruning algorithm from memory before moving on to harder problems.

Reference excerpt

In statistical genetics, Felsenstein's tree-pruning algorithm (or Felsenstein's tree-peeling algorithm), attributed to Joseph Felsenstein, is an algorithm for efficiently computing the likelihood of an evolutionary tree from nucleic acid sequence data. The algorithm is often used as a subroutine in a search for a maximum likelihood estimate for an evolutionary tree. Further, it can be used in a hypothesis test for whether evolutionary rates are constant (by using likelihood ratio tests). It can also be used to provide error estimates for the parameters describing an evolutionary tree.

Details

The likelihood of a tree T is, by definition, the probability of observing certain data D (D being a nucleotide sequence alignment for example i.e. a succession of n DNA site s) given the tree. It is often written : P(D|T). Here is an example of an evolutionary tree on arbitrary sequence data D:

This is a key value and is often quite complicated to compute. To ease the computations, Felsenstein and his colleagues used several assumptions that are still widely used today. The main assumption is that mutations between DNA sites are independent of each other. This permits to compute the likelihood as a simple product of probabilities. Now you can divide the data D between several Ds for each nucleotide site s inside of D. The global likelihood of the tree will be the product of the likelihoods of each site:

P(D|T)=∏s=1nP(Ds|T) If I reuse the example above, D1 tree would be:

The second assumption concerns the models of DNA sequence evolution. The computation of the likelihood needs the nucleotide frequencies as well as the transition probabilities (when a mutation occurs, probability of going from a nucleotide to another). The simplest model is the Jukes-Cantor model, assuming equal nucleotide frequencies (πA=πG=πC=πT=14) and equal transition probabilities from X to Y (pA→T=pA→C=pA→G=14(1−e−μl) and pA→A=e−μl+14(1−e−μl)) and idem for the other bases. Here μ is the global mutation rate of the model. Felsenstein proposed to decompose computations even more by using "partial likelihoods" in the computation of P(Ds|T). Here is how it works. Assume we are on a node k on the tree T. k has two daughter nodes i and j and, for each DNA base X={A,T,C,G} present on k, we can define a partial likelihood wk(X) such as: wk(X)=(∑YpX→Y⋅wi(Y))⋅(∑ZpX→Z⋅wj(Z)) where Y and Z are also DNA bases. pX→Y is the transition probability from nucleotide X to nucleotide Y (idem for pX→Z). wi(Y) is the partial likelihood of the daughter node i, evaluated on nucleotide Y (idem for wj(Z)). Using this formula, one has to start from the tips of the tree T, then move towards the root and compute the partial likelihoods of each necessary node on the way (4 partial likelihoods per node). Having finished at the root of the tree, the likelihood of the tree (for this particular site) is then the sum of the partial likelihoods of the root times the appropriated nucleotide frequency. P(Ds|T)=∑XpX⋅wr(X) After doing so for every site s, one can finally obtain the likelihood of the global evolutionary tree by multiplying each "sublikelihood".

Algorithm

Simple Example

References

Illustrations

Felsenstein's tree-pruning algorithm: Same tree but made from D1, which consists in the first DNA sites from D
Same tree but made from D1, which consists in the first DNA sites from D

Worked examples

Example 1 — a first encounter with Felsenstein's tree-pruning algorithm

Start with the simplest possible case. Write down what Felsenstein's tree-pruning algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Felsenstein's tree-pruning algorithm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Felsenstein's tree-pruning algorithm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Felsenstein's tree-pruning algorithm

In research
Felsenstein's tree-pruning algorithm appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Felsenstein's tree-pruning algorithm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Felsenstein's tree-pruning algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Genetics stubs, Statistical genetics, Statistics stubs, so understanding it makes those chapters shorter.
In everyday life
Look for Felsenstein's tree-pruning algorithm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Felsenstein's tree-pruning algorithm” →

How to study Felsenstein's tree-pruning algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Felsenstein's tree-pruning algorithm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Felsenstein's tree-pruning algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Felsenstein's tree-pruning algorithm in simple terms?

In statistical genetics, Felsenstein's tree-pruning algorithm (or Felsenstein's tree-peeling algorithm), attributed to Joseph Felsenstein, is an algorithm for efficiently computing the likelihood of an evolutionary tree from nucleic acid sequence data. The algorithm is often used as a subroutine in…

Why does Felsenstein's tree-pruning algorithm matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Felsenstein's tree-pruning algorithm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Felsenstein's tree-pruning algorithm.

Tags

  • Genetics stubs
  • Statistical genetics
  • Statistics stubs

Keep exploring