Robustness of Selection and Timing Inference under Model Variation in Population Genetics

Javier Escabi, Sahand HormozbioRxiv 2025

TL;DR

This paper investigates how errors in modeling population genetics parameters (like reproductive variance and generation number) affect our ability to infer selection strength and the timing of beneficial mutations. While the inferred selection strength remains robust to these modeling errors, the inferred timing of mutations can be significantly biased, and the authors provide a framework to quantify and correct these biases.

What Problem Does This Paper Address?

In population genetics, understanding how advantageous mutations arise and spread is crucial for deciphering evolutionary history and disease progression. This involves inferring two key parameters: the selection coefficient (how strongly a mutation is favored) and the time of onset (when that mutation first appeared). However, the models used for these inferences often simplify the true biological process. Specifically, they might make assumptions about the reproductive variance (how much offspring numbers vary among individuals) and the number of generations (L) that don't perfectly match reality. This paper addresses the question: how do these mismatches in model assumptions about reproductive variance ($\sigma^2$) and generation number (L) impact the accuracy of our inferred selection coefficient and, more importantly, the inferred time of mutation onset? The authors highlight that while effective population size can be robustly inferred, inferring the actual population size itself is not, due to the dependence on $\sigma^2$.

Methods

The authors employ a combination of theoretical modeling and simulation. They use the Kolmogorov forward and backward equations to model the stochastic dynamics of gene frequencies under selection and genetic drift. A key aspect of their approach is framing the inference of the mutation's time of onset as a first passage time problem. This allows them to derive explicit mathematical expressions for the offsets (biases) in the posterior mean and variance of the inferred time of onset when the assumed $\sigma^2$ or L differs from the true values. They also explore how to generalize these findings for non-uniform prior distributions and develop numerical methods for calculating these offsets. The paper also leverages a scaling argument based on the Kolmogorov forward equation to understand how different parameter combinations can lead to similar outcomes, which is crucial for understanding robustness.

Datasets

Not discussed in the paper. The authors primarily use simulated data generated from their models to validate their theoretical findings.

Key Insights and Ideas

  • Selection Coefficient is Robust, Timing is Not: A major finding is that the inferred selection coefficient is remarkably insensitive to variations in the assumed reproductive variance ($\sigma^2$) and number of generations (L). This is a significant insight for practical inference.
  • Time of Onset is Sensitive to Model Assumptions: Conversely, the inferred time of onset of advantageous mutations is highly susceptible to mismatches in $\sigma^2$ and L. This means that even small errors in these model parameters can lead to substantial biases in when we estimate a mutation to have arisen.
  • First Passage Time as the Key: The paper elegantly frames the bias in the time of onset as a first passage time problem. The offset in the inferred mean time of onset is directly related to the difference in "effective generation duration" between the true process and the inference model.
  • Effective Generation Duration: The concept of "effective generation duration" ($\Delta$) is introduced as a way to quantify the impact of $\sigma^2$ on the timescale of evolutionary processes.
  • Scaling Invariance: The paper demonstrates a form of scaling invariance in the Kolmogorov forward equation, where certain combinations of parameters can lead to the same evolutionary trajectories. This helps explain why the selection coefficient is robust.

Key Results

  • The posterior distribution of the selection coefficient is unaffected by changes in $\sigma^2$ and L.
  • Explicit expressions are derived for the offsets in the posterior mean and variance of the time of onset due to incorrect assumptions about $\sigma^2$ and L.
  • These offsets are shown to be related to the mean and variance of the first passage time required for an allele frequency to reach a certain threshold.
  • Under a uniform prior for the time of onset, the offset in the inferred mean is the difference in effective generation duration ($\Delta = 1/\sigma^2$) between the true and inferred models.
  • Theoretical predictions for these offsets were validated through simulations, showing close agreement with empirical results.

Limitations and Future Work

  • Assumptions: The derived formulas rely on several assumptions, including $|s| \ll 1$, $|\tau| \ll 1$, $N \gg 1$, and the probability of fixation being time-independent. If these assumptions break down significantly, the derived formulas may not apply.
  • Higher Moments: While the paper focuses on the mean and variance of the posterior, extending the analysis to higher moments is suggested as future work.
  • Numerical Approximations: For arbitrary prior distributions, the paper suggests numerical computation using generalized equations, but deriving simple closed-form expressions for all priors is not feasible.
  • De-convolution: For the case where $0 < c < 1$ (a specific scaling parameter), the problem becomes more complex, requiring a de-convolution process that is left as an open problem.
  • Other Data Types: The framework is primarily developed for coalescent trees but is suggested to be applicable to other data types like gene frequency time series and site-frequency spectra, which would require further rigorous calculations.
  • Multiple Mutations: Extending the framework to handle multiple competing or subclonal mutations is also proposed for future research.

Summary updated

Abstract

1 Abstract In population genetics, accurately inferring the selection coefficient and the time of onset of advantageous mutations from genetic data is fundamental for understanding evolutionary processes. Here, we investigate how mismatches between the true evolutionary process and the inference model—specifically in the reproductive variance ( σ 2 ) and the number of generations ( L )—affect the posterior distributions of the selection coefficient and the time of onset. Using the Kolmogorov forward and backward equations, we model the stochastic dynamics of gene frequencies under selection and drift. We show that while the posterior distribution of the selection coefficient remains unaffected by changes in σ 2 and L , this invariance does not apply to the time of onset. By framing the problem as a first passage time issue, we derive explicit expressions for the offsets in the posterior mean and variance of the time of onset that result from incorrect assumptions about σ 2 and L . Our analysis reveals that these offsets are related to the mean and variance of the first passage time required for the allele frequency to reach a certain threshold, starting from an initial frequency determined by the model parameters. Under the assumption of a uniform prior for the time of onset, we find that the offset in the inferred mean is given by the difference in the effective generation duration (Δ = 1 /σ 2 ) between the true process and the inference model. We validate our theoretical findings through simulations, demonstrating that the empirical offsets closely match our predictions. Furthermore, we generalize our results to accommodate non-uniform prior distributions, such as exponential priors, and provide numerical methods for calculating offsets under arbitrary priors. Stochastic fluctuations due to genetic drift, which are influenced by the reproductive variance and generational structure, can introduce significant biases in the posterior distribution of time of onset of advantageous mutations. By quantifying these biases, our framework enables more accurate adjustments to inferences drawn from genetic data, thereby enhancing our understanding of evolutionary dynamics and improving the reliability of population genetic analyses.
BibTeX
@misc{escabi2025robustness,
  author = {Javier Escabi and Sahand Hormoz},
  title = {{Robustness of Selection and Timing Inference under Model Variation in Population Genetics}},
  year = {2025},
  doi = {10.1101/2025.01.08.631974},
  howpublished = {bioRxiv},
}

Loading related content...

Figure