Skip to main content
QUICK REVIEW

[Paper Review] Horseshoe‐based Bayesian nonparametric estimation of effective population size trajectories

James R. Faulkner, Andrew F. Magee|arXiv (Cornell University)|Aug 13, 2018
Genetic and phenotypic traits in livestockBiochemistry, Genetics and Molecular Biology63 references27 citations
TL;DR

This paper proposes a novel Bayesian nonparametric method, HSMRF, for estimating effective population size trajectories using genetic data. By modeling the log-transformed population size with a horseshoe Markov random field prior, the method achieves local adaptivity to capture abrupt changes and varying smoothness—outperforming Gaussian process and change-point models in simulations and real data, with reduced bias and higher precision.

ABSTRACT

Phylodynamics is an area of population genetics that uses genetic sequence data to estimate past population dynamics. Modern state-of-the-art Bayesian nonparametric methods for recovering population size trajectories of unknown form use either change-point models or Gaussian process priors. Change-point models suffer from computational issues when the number of change-points is unknown and needs to be estimated. Gaussian process-based methods lack local adaptivity and cannot accurately recover trajectories that exhibit features such as abrupt changes in trend or varying levels of smoothness. We propose a novel, locally-adaptive approach to Bayesian nonparametric phylodynamic inference that has the flexibility to accommodate a large class of functional behaviors. Local adaptivity results from modeling the log-transformed effective population size a priori as a horseshoe Markov random field, a recently proposed statistical model that blends together the best properties of the change-point and Gaussian process modeling paradigms. We use simulated data to assess model performance, and find that our proposed method results in reduced bias and increased precision when compared to contemporary methods. We also use our models to reconstruct past changes in genetic diversity of human hepatitis C virus in Egypt and to estimate population size changes of ancient and modern steppe bison. These analyses show that our new method captures features of the population size trajectories that were missed by the state-of-the-art methods.

Motivation & Objective

  • To address limitations in existing Bayesian nonparametric methods for phylodynamic inference, particularly their inability to accurately recover trajectories with abrupt changes or varying smoothness.
  • To develop a method that combines the strengths of change-point models (local adaptivity) and Gaussian process priors (smoothness), while avoiding their computational and modeling drawbacks.
  • To provide a fully Bayesian framework that enables joint estimation of genealogy and population size trajectories with improved accuracy and uncertainty quantification.

Proposed method

  • The method models the log-transformed effective population size as a horseshoe Markov random field (HSMRF), a shrinkage-based prior that enables local adaptivity by allowing some coefficients to be exactly zero while others are freely estimated.
  • The HSMRF prior is applied to a discrete-time grid of coalescent events, enabling nonparametric estimation of population size trajectories without pre-specifying knot locations or change-point counts.
  • The approach uses a hierarchical Bayesian model with conditional autoregressive (CAR) structure for spatial dependence in the HSMRF, allowing for flexible smoothing and shrinkage.
  • Posterior inference is performed via Markov chain Monte Carlo (MCMC) sampling, with full conditional distributions derived for all parameters including the population size trajectory and hyperparameters.
  • The method is implemented in an R package called spmrf, available on GitHub, and supports both fixed and inferred genealogies.
  • Second-order HSMRF and GMRF models are introduced, with the former providing smoother trajectories and improved performance on simulated data with complex dynamics.

Experimental results

Research questions

  • RQ1Can a Bayesian nonparametric method achieve better accuracy and adaptivity than existing methods in estimating effective population size trajectories with abrupt changes or varying smoothness?
  • RQ2How does the HSMRF prior compare to Gaussian process and change-point models in terms of bias, precision, and ability to recover complex demographic features?
  • RQ3What is the performance of second-order HSMRF models relative to first-order models in capturing population dynamics with different levels of smoothness?
  • RQ4Can the HSMRF method recover biologically meaningful demographic events—such as population bottlenecks or expansions—better than state-of-the-art alternatives?
  • RQ5Does the HSMRF method maintain robustness and computational feasibility when applied to real-world viral and ancient DNA datasets?

Key findings

  • In simulations, the HSMRF method demonstrated lower bias and higher precision than both the Gaussian Markov random field (GMRF) and change-point-based skyline models, especially in recovering trajectories with abrupt changes.
  • The HSMRF-1 model produced trajectories that were more complex and better aligned with known demographic events—such as glacial retreat and human arrival in Beringia—than other models.
  • For the hepatitis C virus in Egypt, the HSMRF model captured a more nuanced decline in genetic diversity than the GMRF and skyline models, suggesting improved detection of subtle population dynamics.
  • In the steppe bison data, the HSMRF-1 model estimated a peak population size between 41.6 and 47.3 kya, with higher posterior model probability than the GMRF-1 model, indicating better fit to the data.
  • Second-order HSMRF models outperformed first-order models in simulations and showed higher posterior model probabilities in real data examples, suggesting their utility for smoother trajectories.
  • The HSMRF method successfully captured features missed by state-of-the-art methods, including rapid declines and local fluctuations, demonstrating its superiority in modeling nonstationary and heterogeneous demographic patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.