ArticleslgStudy

biology

Bayesian inference in phylogeny

Bayesian inference in phylogeny is a biology 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 Bayesian inference in phylogeny rather than just read about it. In short: Bayesian inference of phylogeny combines the information in the prior and in the data likelihood to create the so-called posterior probability of trees, which is the probability that the tree is correct given the data, the prior and the likelihood model. Bayesian inference was introduced into molecular phylogenetics in the 1990s by three independent groups: Bruce Rannala and Ziheng Yang in Berkeley, Bob Mau in Madis…

Bayesian inference in phylogeny — main illustration
Bayesian inference in phylogeny — illustration

Key takeaways

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

Reference excerpt

Bayesian inference of phylogeny combines the information in the prior and in the data likelihood to create the so-called posterior probability of trees, which is the probability that the tree is correct given the data, the prior and the likelihood model. Bayesian inference was introduced into molecular phylogenetics in the 1990s by three independent groups: Bruce Rannala and Ziheng Yang in Berkeley, Bob Mau in Madison, and Shuying Li in University of Iowa, the last two being PhD students at the time. The approach has become very popular since the release of the MrBayes software in 2001, and is now one of the most popular methods in molecular phylogenetics.

Bayesian inference of phylogeny background and bases Bayesian inference refers to a probabilistic method developed by Reverend Thomas Bayes based on Bayes' theorem. Published posthumously in 1763 it was the first expression of inverse probability and the basis of Bayesian inference. Independently, unaware of Bayes' work, Pierre-Simon Laplace developed Bayes' theorem in 1774. Bayesian inference or the inverse probability method was the standard approach in statistical thinking until the early 1900s before RA Fisher developed what's now known as the classical/frequentist/Fisherian inference. Computational difficulties and philosophical objections had prevented the widespread adoption of the Bayesian approach until the 1990s, when Markov Chain Monte Carlo (MCMC) algorithms revolutionized Bayesian computation. The Bayesian approach to phylogenetic reconstruction combines the prior probability of a tree P(A) with the likelihood of the data (B) to produce a posterior probability distribution on trees P(A|B). The posterior probability of a tree will be the probability that the tree is correct, given the prior, the data, and the correctness of the likelihood model. MCMC methods can be described in three steps: first using a stochastic mechanism a new state for the Markov chain is proposed. Secondly, the probability of this new state to be correct is calculated. Thirdly, a new random variable (0,1) is proposed. If this new value is less than the acceptance probability the new state is accepted and the state of the chain is updated. This process is run thousands or millions of times. The number of times a single tree is visited during the course of the chain is an approximation of its posterior probability. Some of the most common algorithms used in MCMC methods include the Metropolis–Hastings algorithms, the Metropolis-Coupling MCMC (MC³) and the LOCAL algorithm of Larget and Simon.

Metropolis–Hastings algorithm One of the most common MCMC methods used is the Metropolis–Hastings algorithm, a modified version of the original Metropolis algorithm. It is a widely used method to sample randomly from complicated and multi-dimensional distribution probabilities. The Metropolis algorithm is described in the following steps:

An initial tree, Ti, is randomly selected. A neighbour tree, Tj, is selected from the collection of trees. The ratio, R, of the probabilities (or probability density functions) of Tj and Ti is computed as follows: R = f(Tj)/f(Ti) If R ≥ 1, Tj is accepted as the current tree. If R < 1, Tj is accepted as the current tree with probability R, otherwise Ti is kept. At this point the process is repeated from Step 2 N times. The algorithm keeps running until it reaches an equilibrium distribution. It also assumes that the probability of proposing a new tree Tj when we are at the old tree state Ti, is the same probability of proposing Ti when we are at Tj. When this is not the case Hastings corrections are applied. The aim of Metropolis-Hastings algorithm is to produce a collection of states with a determined distribution until the Markov process reaches a stationary distribution. The algorithm has two components:

A potential transition from one state to another (i → j) using a transition probability function qi,j Movement of the chain to state j with probability αi,j and remains in i with probability 1 – αi,j.

Metropolis-coupled MCMC Metropolis-coupled MCMC algorithm (MC³) has been proposed to solve a practical concern of the Markov chain moving across peaks when the target distribution has multiple local peaks, separated by low valleys, are known to exist in the tree space. This is the case during heuristic tree search under maximum parsimony (MP), maximum likelihood (ML), and minimum evolution (ME) criteria, and the same can be expected for stochastic tree search using MCMC. This problem will result in samples not approximating correctly to the posterior density. The (MC³) improves the mixing of Markov chains in presence of multiple local peaks in the posterior density. It runs multiple (m) chains in parallel, each for n iterations and with different stationary distributions πj(.) , j=1,2,…,m , where the first one, π1=π is the target density, while πj , j=2,3,…,m are chosen to improve mixing. For example, one can choose incremental heating of the form:

πj(θ)=π(θ)1/[1+λ(j−1)], λ>0, so that the first chain is the cold chain with the correct target density, while chains 2,3,…,m are heated chains. Note that raising the density π(.) to the power 1/T with T>1 has the effect of flattening out the distribution, similar to heating a metal. In such a distribution, it is easier to traverse between peaks (separated by valleys) than in the original distribution. After each iteration, a swap of states between two randomly chosen chains is proposed through a Metropolis-type step. Let θ(j) be the current state in chain j , j=1,2,…,m . A swap between the states of chains i and j is accepted with probability:

α=πi(θ(j))πj(θ(i))πi(θ(i))πj(θ(j)) At the end of the run, output from only the cold chain is used, while those from the hot chains are discarded. Heuristically, the hot chains will visit the local peaks rather easily, and swapping states between chains will let the cold chain occasionally jump valleys, leading to better mixing. However, if πi(θ)/πj(θ) is unstable, proposed swaps will seldom be accepted. This is the reason for using several chains which differ only incrementally. An obvious disadvantage of the algorithm is that m chains are run and only one chain is used for inference. For this reason, MC3 is ideally suited for implementation on parallel machines, since each chain will in general require the same amount of computation per iteration.

… excerpt ends here. Continue reading the full article.

Illustrations

Bayesian inference in phylogeny: Metaphor illustrating MCMC method steps
Metaphor illustrating MCMC method steps
Bayesian inference in phylogeny: Tiger phylogenetic relationships, bootstrap values shown in branches.
Tiger phylogenetic relationships, bootstrap values shown in branches.
Bayesian inference in phylogeny: Example of long branch attraction. Longer branches (A & C) appear to be more closely related.
Example of long branch attraction. Longer branches (A & C) appear to be more closely related.
Bayesian inference in phylogeny: Chronogram obtained from molecular clock analysis using BEAST. Pie chart in each node indicates the possible ancestral distributions inferred from Bayesian Binary MCMC analysis (BBM)
Chronogram obtained from molecular clock analysis using BEAST. Pie chart in each node indicates the possible ancestral distributions inferred from Bayesian Binary MCMC analysis (BBM)

Worked examples

Example 1 — a first encounter with Bayesian inference in phylogeny

Start with the simplest possible case. Write down what Bayesian inference in phylogeny claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, 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 Bayesian inference in phylogeny 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 Bayesian inference in phylogeny 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 Bayesian inference in phylogeny

In research
Bayesian inference in phylogeny appears in biology 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 Bayesian inference in phylogeny 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
Bayesian inference in phylogeny is common in secondary-school and first-year university syllabi. It links to neighbouring topics Applications of Bayesian inference, Computational phylogenetics, so understanding it makes those chapters shorter.
In everyday life
Look for Bayesian inference in phylogeny 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 “Bayesian inference in phylogeny” →

How to study Bayesian inference in phylogeny in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bayesian inference in phylogeny 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 Bayesian inference in phylogeny out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bayesian inference in phylogeny in simple terms?

Bayesian inference of phylogeny combines the information in the prior and in the data likelihood to create the so-called posterior probability of trees, which is the probability that the tree is correct given the data, the prior and the likelihood model. Bayesian inference was introduced into molec…

Why does Bayesian inference in phylogeny matter?

Because it connects several biology 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 Bayesian inference in phylogeny?

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 Bayesian inference in phylogeny.

Tags

  • Applications of Bayesian inference
  • Computational phylogenetics

Keep exploring