Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jun 17;72(3):616-638.
doi: 10.1093/sysbio/syad004.

Identifying the Best Approximating Model in Bayesian Phylogenetics: Bayes Factors, Cross-Validation or wAIC?

Affiliations

Identifying the Best Approximating Model in Bayesian Phylogenetics: Bayes Factors, Cross-Validation or wAIC?

Nicolas Lartillot. Syst Biol. .

Abstract

There is still no consensus as to how to select models in Bayesian phylogenetics, and more generally in applied Bayesian statistics. Bayes factors are often presented as the method of choice, yet other approaches have been proposed, such as cross-validation or information criteria. Each of these paradigms raises specific computational challenges, but they also differ in their statistical meaning, being motivated by different objectives: either testing hypotheses or finding the best-approximating model. These alternative goals entail different compromises, and as a result, Bayes factors, cross-validation, and information criteria may be valid for addressing different questions. Here, the question of Bayesian model selection is revisited, with a focus on the problem of finding the best-approximating model. Several model selection approaches were re-implemented, numerically assessed and compared: Bayes factors, cross-validation (CV), in its different forms (k-fold or leave-one-out), and the widely applicable information criterion (wAIC), which is asymptotically equivalent to leave-one-out cross-validation (LOO-CV). Using a combination of analytical results and empirical and simulation analyses, it is shown that Bayes factors are unduly conservative. In contrast, CV represents a more adequate formalism for selecting the model returning the best approximation of the data-generating process and the most accurate estimates of the parameters of interest. Among alternative CV schemes, LOO-CV and its asymptotic equivalent represented by the wAIC, stand out as the best choices, conceptually and computationally, given that both can be simultaneously computed based on standard Markov chain Monte Carlo runs under the posterior distribution. [Bayes factor; cross-validation; marginal likelihood; model comparison; wAIC.].

PubMed Disclaimer

Conflict of interest statement

The author declares no competing interest.

Figures

Figure 1.
Figure 1.
Theoretical fit of M2 relative to M1 (a) and mean squared estimation error (b) as a function of data size, under the normal model, and for two alternative priors (δ2=10 and 1000); vertical lines indicate the values of n for which the two models have same quadratic LOO-CV score or same marginal likelihood.
Figure 2.
Figure 2.
Fit of GTR, relative to LG, as a function of data size (number of aligned positions), on empirical data (10 random jackknife subsamples of the metazoan data set), using BF and LOO-CV. Error bars: standard deviation across jackknife replicates.
Figure 3.
Figure 3.
Fit of GTR, relative to JTT, as a function of data size under BF and LOO-CV (a), and mean quadratic error on relative exchangeability estimates (b) on data simulated under the LG model (using the metazoan data set as a template). Error bars: standard deviation across four simulation replicates.
Figure 4.
Figure 4.
LOO-CV and wAIC estimates (de-biased) for the GTR, CAT-Poisson, and CAT-GTR models (relative to LG), as a function of data size (number of aligned positions), on empirical data (metazoan data set). Error bars: standard deviation across four jackknife replicates.

Similar articles

Cited by

References

    1. Aho K., Derryberry D., Peterson T.. 2014. Model selection for ecologists: the worldviews of AIC and BIC. Ecology 95(3):631–636. - PubMed
    1. Akaike H. 1974. A new look at the statistical model identification. IEEE Trans. Automat. Contr. 19(6):716–723.
    1. Baele G., Lemey P.. 2013. Bayesian evolutionary model testing in the phylogenomics era: matching model complexity with computational efficiency. Bioinformatics 29(16):1970–1979. - PubMed
    1. Baele G., Lemey P., Bedford T., Rambaut A., Suchard M.A., Alekseyenko A.V.. 2012a. Improving the accuracy of demographic and molecular clock model comparison while accommodating phylogenetic uncertainty. Mol. Biol. Evol. 29(9):2157–2167. - PMC - PubMed
    1. Baele G., Lemey P., Vansteelandt S.. 2013. Make the most of your samples: Bayes factor estimators for high-dimensional models of sequence evolution. BMC Bioinf. 14:85. - PMC - PubMed