Cross-validation to select Bayesian hierarchical models in phylogenetics

BMC Evol Biol. 2016 May 26;16(1):115. doi: 10.1186/s12862-016-0688-y.

Abstract

Background: Recent developments in Bayesian phylogenetic models have increased the range of inferences that can be drawn from molecular sequence data. Accordingly, model selection has become an important component of phylogenetic analysis. Methods of model selection generally consider the likelihood of the data under the model in question. In the context of Bayesian phylogenetics, the most common approach involves estimating the marginal likelihood, which is typically done by integrating the likelihood across model parameters, weighted by the prior. Although this method is accurate, it is sensitive to the presence of improper priors. We explored an alternative approach based on cross-validation that is widely used in evolutionary analysis. This involves comparing models according to their predictive performance.

Results: We analysed simulated data and a range of viral and bacterial data sets using a cross-validation approach to compare a variety of molecular clock and demographic models. Our results show that cross-validation can be effective in distinguishing between strict- and relaxed-clock models and in identifying demographic models that allow growth in population size over time. In most of our empirical data analyses, the model selected using cross-validation was able to match that selected using marginal-likelihood estimation. The accuracy of cross-validation appears to improve with longer sequence data, particularly when distinguishing between relaxed-clock models.

Conclusions: Cross-validation is a useful method for Bayesian phylogenetic model selection. This method can be readily implemented even when considering complex models where selecting an appropriate prior for all parameters may be difficult.

Keywords: Bayesian phylogenetics; Cross-validation; Demographic models; Marginal likelihood; Model selection; Molecular clock.

MeSH terms

  • Bacteria / genetics
  • Bayes Theorem*
  • Biological Evolution
  • Computer Simulation
  • Evolution, Molecular
  • Likelihood Functions
  • Models, Genetic*
  • Phylogeny*
  • Reproducibility of Results
  • Viruses / genetics