Skip to main content
Springer logoLink to Springer
. 2021 Jan 22;82(1):6. doi: 10.1007/s00285-021-01555-9

A dual process for the coupled Wright–Fisher diffusion

Martina Favero 1,, Henrik Hult 1, Timo Koski 1
PMCID: PMC7822808  PMID: 33483865

Abstract

The coupled Wright–Fisher diffusion is a multi-dimensional Wright–Fisher diffusion for multi-locus and multi-allelic genetic frequencies, expressed as the strong solution to a system of stochastic differential equations that are coupled in the drift, where the pairwise interaction among loci is modelled by an inter-locus selection. In this paper, an ancestral process, which is dual to the coupled Wright–Fisher diffusion, is derived. The dual process corresponds to the block counting process of coupled ancestral selection graphs, one for each locus. Jumps of the dual process arise from coalescence, mutation, single-branching, which occur at one locus at the time, and double-branching, which occur simultaneously at two loci. The coalescence and mutation rates have the typical structure of the transition rates of the Kingman coalescent process. The single-branching rate not only contains the one-locus selection parameters in a form that generalises the rates of an ancestral selection graph, but it also contains the two-locus selection parameters to include the effect of the pairwise interaction on the single loci. The double-branching rate reflects the particular structure of pairwise selection interactions of the coupled Wright–Fisher diffusion. Moreover, in the special case of two loci, two alleles, with selection and parent independent mutation, the stationary density for the coupled Wright–Fisher diffusion and the transition rates of the dual process are obtained in an explicit form.

Keywords: Wright–Fisher diffusion, Markov processes, Duality, Population genetics, Ancestral graphs

Introduction

The coupled Wright–Fisher diffusion was introduced by Aurell et al. (2019) with the purpose of analysing networks of loci in recombining populations of bacteria, or more precisely, detecting couples of loci co-evolving under strong selective pressure when the linkage disequilibrium is low across the genome. The model includes parent dependent mutation, interlocus selection and free recombination. Mutation is assumed to occur independently at each locus, while selection consists of first and second order selective interaction among loci.

This particular type of assumptions on the selection and recombination structure are suitable for example for some populations of bacteria, as showed in Skwark et al. (2017), where the same type of assumptions are made. In Skwark et al. (2017), it is explained that the high amount of homologous recombination in populations of Streptococcus Pneumoniae, which results in low linkage disequilibrium across the genome, makes this population ideal for detecting genes that evolve under shared selection pressure. On the contrary, in other populations of bacteria, e.g. Streptococcus Pyogenes, the low amount of homologous recombination makes it difficult to separate couplings attributable to recombination from those attributable to selection and thus the assumptions above are not suitable to study such populations.

The mathematical idea corresponding to these biological characteristics, is that the recombination is high enough to be approximated with infinite recombination, which would make the processes at each locus independent, and it is thus the selection only that causes the coupling between the diffusions at the different loci.

Furthermore, it is assumed that selection acts on the individual loci and on pairs of loci. The pairwise selection can be thought of as a network, where the vertices represent the loci and the edges the possible interactions, as shown in Aurell et al. (2019). Of course, the possible set of interactions could, in principle, be more complex than a network, but considering pairwise interactions turns out to be useful to reveal certain types of co-evolutionary patterns, see Skwark et al. (2017).

The model considers L different loci where, at each locus, a number of variants (alleles) are possible. The allele types at locus l are labelled by 1,,Ml, thus assuming that the type space at each locus is finite. The population is haploid. The coupled Wright–Fisher diffusion is obtained as the weak limit of a sequence of discrete Wright–Fisher models characterised by the assumption that the evolution of the population at one locus is conditionally independent of the other loci given that the previous generation at each locus is known, see Aurell et al. (2019) for details. It is based on quasi-linkage equilibrium where the fitness coefficients, see Sect. 2, are inspired by a Potts model, see Gao et al. (2019), Neher and Shraiman (2011), and generalise the classical additive fitness under weak selection, see e.g. Bürger (2000, Ch. II), to the multi-locus case. With two loci and without the fist order selection terms, the coupled Wright–Fisher diffusion is reduced to a haploid version of the model with weak selection, loose linkage in Ethier and Nagylaki (1989).

Here we state the definition of the diffusion as the solution of a system of stochastic differential equations, without reference to the underlying discrete model. The coupled Wright–Fisher diffusion, X={X(t),t0}, represents the evolution of the vector of all frequencies of allele types at each locus. Let

X(l)(t)=(X1(l)(t),,XMl(l)(t))T

represent the vector of frequencies at locus l, with Xi(l)(t) being the frequency of allele type i at locus l, then

X(t)=(X(1)(t)T,,X(L)(t)T)T.

The process X is the strong solution to the system of stochastic differential equations

dX(t)=μ(X(t))dt+D(X(t))V(X(t))dt+D12(X(t))dW(t), 1

where V is a specific quadratic function encoding the structure of the interactions, V its gradient, while the mutation vector μ and the diffusion matrix D have the following block structure,

μ(x)=μ(1)(x(1))μ(L)(x(L)),D(x)=D(1)(x(1))D(L)(x(L)),

with μ(l):RMlRMl and D(l):RMlRMl×Ml. The functions V, μ and D are described in detail in the next section. The process W=((W(1))T,,(W(L))T)T is a multidimensional Brownian motion with W(l) having the dimension of X(l).

The system of SDEs (1) consists of L systems of equations for X(1),,X(L), coupled by the drift term DV. Note that, if V=0, there is no interaction among the loci and the coupled Wright–Fisher diffusion consists of L independent Wright–Fisher diffusions, that is, each X(l) solves

dX(l)(t)=μ(l)(X(l)(t))dt+D(l)12(X(l)(t))dW(l)(t),

which is the SDE for a single-locus, multi-type Wright–Fisher diffusion with mutations. In fact, the coupling of the loci is entirely due to selective interactions that are described by the drift term DV. Without the interaction drift term, the diffusion in this paper, with L=2, is reduced to the independent-loci model in Ethier and Griffiths (1990). That is, the weak limit of a sequence of multi-locus neutral Wright–Fisher diffusions with recombination rate going to infinity. In the multi-locus case, the same diffusion appears also in Griffiths et al. (2016, Sect. 3.3) as an example under free recombination.

An interesting feature of the coupled Wright–Fisher diffusion, addressed by Aurell et al. (2019) as one of the main motivations for its introduction, is its stationary density which appeared, in a more general form, as a conjecture by Kimura over half a century ago. Kimura (1955) suggests a Wright–Fisher model for multi-locus and multi-allelic genetic frequencies and conjectures that the stationary density is of the form πem, where π is the product of Dirichlet densities and m is a generic mean fitness term. The coupled Wright–Fisher diffusion is constructed so that the quadratic function V could replace the generic m. Indeed, under the assumption of parent independent mutations, the stationary density, p, of the coupled Wright–Fisher diffusion is known up to a normalising constant Z, and corresponds to the one conjectured by Kimura with m=2V,

pπe2V, 2

see Sect. 2 for the definition of π and V. In fact, the form of the stationary density, under parent independent mutations, relies on the fact that the covariance of the diffusion defines a Svirezhev–Shahshahani metric on the simplex, with respect to which the drift is a gradient, see Bürger (2000, Appendix E.3).

In this paper a dual process for the coupled Wright–Fisher diffusion is studied. In population genetics, Markov duality has proven its effectiveness in combining information from two processes related to the same population: a diffusion process modelling the evolution of frequencies of genetic types forward in time and a reverse-time jump process modelling the ancestral history of a sample of individuals taken at the present time. The simplest and most well known duality relationship in this context is the moment duality between the Wright–Fisher diffusion and the block counting process of the Kingman coalescent.

The strength of Markov duality is that it provides a tool to analyse properties of the population by combining knowledge about the forward-in-time process and the backward-in-time process. Even when both processes are complicated, as often happens when mutation, recombination or selection mechanisms are involved, some known properties of one process can be used to analyse unknown properties of the other process and vice versa, leading to further insights about the population.

Several duality relationships have been established between various generalisations of the Wright–Fisher diffusion and the associated time reversed ancestral processes generalising the coalescent process. For example, when the selection mechanism is taken into account, the ancestral process associated to the Wright–Fisher diffusion is the ancestral selection graph (ASG), see Krone and Neuhauser (1997), Neuhauser and Krone (1997), which is closely related to the dual process in this paper when only one locus is considered, see Sect. 4. Unlike the Kingman coalescent, which has a tree structure, the ASG is branching and coalescing: the ancestral tree is replaced by an ancestral graph containing true and virtual lineages and embedding the genealogy of the sample of individuals. For a complete survey on duality for Markov processes, see Jensen and Kurt (2014), and for a brief overview of duality in population genetics see Griffiths et al. (2016) and the references therein.

In this paper, the main result concerns the derivation of a dual process for the coupled Wright–Fisher diffusion. The results show that, in this model, the dual process corresponds to the block counting process of L coupled ASGs, one for each locus, evolving simultaneously. Coalescence, mutation and single-branching, which is due to selection acting on the single loci, occur at different times in the different ASGs, whereas branching that is due to selection acting on pairs of loci, occurs simultaneously in two ASGs. The latter type of branching is referred to as double-branching in this paper. The main result in this paper is Theorem 1, which provides a description of the transition rates of the pure jump Markov process, N={N(t),t0}, that is dual to the coupled Wright–Fisher diffusion, X, through the duality relationship

EF(X(t),n)|X(0)=x=EF(x,N(t))|N(0)=n, 3

where F is a duality function, to be determined. The derivation uses a generator approach as in Griffiths et al. (2016) and Etheridge and Griffiths (2009). It is based on the duality relationship of the infinitesimal generators

LF(·,n)(x)=LDF(x,·)(n), 4

where L is the generator of the coupled Wright–Fisher diffusion and LD the unknown generator of the dual process. By proposing an appropriate duality function F, the generator LD of the dual process can be identified, from which transition rates of the dual process are obtained. Under mild conditions, which are verified in Sect. 6, the method of duality (Ethier and Kurtz 1986, Ch. 4), also used in e.g. Barbour et al. (2000), Etheridge and Griffiths (2009) and Mano (2009), ensures that the duality relationship of the generators (4) implies (3).

Understanding the structure of an ancestral process, N, which is dual to a diffusion of the Wright–Fisher type, X, plays a significant role in population genetics inference. As is often the case, the available data consist of observations of the genetic types of a sample of individuals at the present time, N(0)=n, whereas the evolution of the process is not observed. This results in the likelihood function being intractable when the size of the population is large. In order to compute the likelihood, one could, in theory, condition on the genealogical history of the sample and then integrate over all possible histories that are compatible with the sample. However, the domain of integration is so large that, in practice, numerical integration methods are useless even for intermediate sized populations. Simulation-based methods are generally preferred. As carefully explained by Stephens in Stephens (2007), naive Monte Carlo methods based on simulating the histories forward in time produce next to useless approximations of the likelihood for problems involving samples of a more than few individuals. This is due to the fact that only very few simulations contribute significantly to the approximation, while the contribution of the remaining simulations is negligible. Simulation- and likelihood-based techniques that have proven to work for these problems are Markov chain Monte Carlo, importance sampling and sequential Monte Carlo. All these methods rely on knowing, to some extent, the structure of the ancestral process in order to approximate its backward dynamics, see e.g. Griffiths and Tavaré (1994), Koskela et al. (2015, 2018), Stephens (2007), Stephens and Donnelly (2000, 2003) for details.

From the duality relation (3), it is also possible to derive an expansion of the transition distribution of the diffusion X, see Barbour et al. (2000), Etheridge and Griffiths (2009), Griffiths et al. (2016), in terms of the limit of the transition densities of the dual process N. In the absence of mutation, the duality relation (3) can also be used to determine fixation probabilities. That is, the probability that the frequency of a given allele at a given loci is equal to 1. Such probabilities may be studied by taking the limit, as t, in (3) and considering the recurrence/transience properties of the dual process N, see e.g. Foucart (2013), Griffiths et al. (2016), González Casanova and Spanó (2018), Mano (2009) for studies of the Wright–Fisher process with selection and frequency dependent selection, the multi-locus Wright–Fisher process with recombination, the Λ-Wright–Fisher process with selection and the Ξ-Wright–Fisher process with frequency dependent selection, respectively.

The paper is outlined as follows. In Sect. 2 a background on the coupled Wright–Fisher diffusion is provided. Section 3 outlines the general generator approach to derive a dual process. In Sect. 4 the case of one locus, two allele types and parent independent mutations is considered. In this case the dual process is related to the ancestral selection graph, moreover, explicit formulas for the stationary density of the diffusion and the transition rates of the dual process are obtained. The main result is provided in Sect. 5, and proved in Sect. 6, where a dual process is derived in the general multi-locus setting. The final Sect. 7 provides additional details in the case of two loci, two alleles, selection and parent independent mutations, more precisely, the transition rates of the dual process are expressed in terms of beta and confluent hypergeometric functions.

Preliminaries on the coupled Wright–Fisher diffusion

In this section the coupled Wright–Fisher diffusion is introduced and the explicit expression for its infinitesimal generator is provided. The notation in this section differs slightly from that in Aurell et al. (2019), where the frequency of the last allele type at each locus is omitted, being a function of the other frequencies, whereas in this paper an expanded version of the diffusion is considered, which includes all the frequencies. Since the frequencies sum up to one the descriptions are equivalent. For our purpose we find the expanded version more convenient to work with.

For a given integer L1, the number of loci, let M1,,ML be positive integers representing the number of alleles at each locus. Put M=l=1LMl. A vector x[0,1]M is interpreted as the concatenation of L vectors with lengths M1,,ML, i.e. x=((x(1))T,,(x(L))T)T with x(l)[0,1]Ml, l=1,L, and the coordinate i in vector x(l) is denoted by xi(l). Similarly, a matrix ARM×M consists of L2 blocks with dimensions (Ml×Mr)l,r=1,,L. The block at position (lr) is denoted by A(lr) and its component at position (ij) is denoted by by Aij(lr). Furthermore ei(l) denotes the unit vector in RM with the ith component of its lth building vector being equal to 1.

In the following, each of the terms appearing in (1) will be described, starting from the interaction drift term. The quadratic function V:[0,1]MR is given by

V(x)=xTh+12xTJx,

where hR+M and JR+M×M is a symmetric block matrix with the blocks on the diagonal equal to zero matrices, i.e. J(ll)=0RMl×Ml and J(lr)=(J(rl))T for all l,r=1,,L. The vector h and matrix J contain the selection parameters, expressing, respectively, the one-locus selection and the selective interaction among pairs of loci. In order to clarify the role of the selection parameters in terms of fitness, we may express the fitness coefficient of the haplotype σ=(i1,,iL) as

wσ=1+l=1Lhil(l)+l=1Lr=1l<rLJilir(rl). 5

Note that V(x)=h+Jx, since the matrix J is symmetric. Let g(x)=D(x)V(x). Then, the components of g(x) are

gi(l)(x)=k=1Mldik(l)(x(l))h~k(l)(x),withh~k(l)(x)=hk(l)+r=1rlLm=1MrJkm(lr)xm(r). 6

The drift function μ models the mutations. It is assumed that mutations occur independently at each locus, in particular, at the lth locus the mutation rate is θl2 and the probability matrix of mutations is P(l)=(Pij(l))i,j=1,Ml. The transition rates of mutations from type i to type j at locus l are thus uij(l)=θl2Pij(l). As in the standard Wright–Fisher model with parent dependent mutations, the components of the drift function are defined by

μi(l)(x(l))=j=1Ml[uji(l)xj(l)-uij(l)xi(l)]. 7

Finally, the components of the diagonal block D(l)(x(l)) of the diffusion matrix D(x) are defined by

dij(l)(x(l))=xi(l)(δij-xj(l))withδij=1ifi=j,0ifij, 8

which is characteristic for Wright–Fisher processes.

Having defined μ,D, and V, a compact definition of the coupled Wright–Fisher diffusion can be given, in terms of its infinitesimal generator. The coupled Wright–Fisher diffusion {X(t)}t0 is a M-dimensional diffusion process on the state space

S=x[0,1]Ms.t.i=1Mlxi(l)=1,l=1,,L,,

with generator

Lf(x)=l=1Li=1Mlμi(l)(x(l))+gi(l)(x)fxi(l)(x)+12i,j=1Mldij(l)(x(l))2fxi(l)xj(l)(x), 9

where μ, g and d are given by (7), (6) and (8), respectively. The generator L is defined on the domain C2(S).

Before proceeding with the derivation of the dual process, the stationary density (2) is explicitly presented. Consider representing the coupled Wright–Fisher diffusion on the state space

S¯=x¯[0,1]M-Ls.t.i=1Ml-1x¯i(l)1l=1,,L,

where

x¯=(x¯1(1),,x¯M1-1(1),,x¯1(L),,x¯ML-1(L))TS¯

is identified with

x=x¯1(1),,x¯M1-1(1),1-i=1M1-1x¯i(1),,x¯1(L),,x¯ML-1(L),1-i=1ML-1x¯i(L)TS.

If there are no interactions among loci, the coupled Wright–Fisher diffusion consists of L independent Wright–Fisher diffusions and the stationary density is well known when the mutations are parent independent. Wright himself proved that the stationary distribution of a single-locus, multi-type Wright–Fisher diffusion with parent independent mutations is Dirichlet, see Wright (1949). Therefore, the stationary density of independent Wright–Fisher diffusions is the product of Dirichlet densities. More precisely, let

π(x¯)=l=1Lπl(x¯(l)),withπl(x¯(l))=i=1Ml-1(x¯i(l))2ui(l)-11-i=1Ml-1x¯i(l)2uMl(l)-1,

where π(x¯) is the non-normalised stationary density of a coupled Wright–Fisher diffusion with no interaction among loci. In the presence of interaction and assuming parent independent mutations, i.e. uij(l)=uj(l), i,j=1,,Ml,l=1,,L, Aurell et al. (2019) prove that there is an additional exponential factor in the stationary density, that is

p(x¯)=1Zπ(x¯)e2V(x¯), 10

with V defined on S¯ by naturally defining the missing frequencies as one minus the sum of the other frequencies at the same locus. The form of the stationary density is explicit up to a normalising constant. In general, it is difficult to compute the normalising constant Z explicitly, but under additional assumptions it can be computed numerically, as demonstrated in Sects. 4 and 7.

Outline of the derivation of a dual process

To derive a process that is dual to the coupled Wright–Fisher diffusion, a generator approach will be used as in Griffiths et al. (2016), where the authors find a dual process for a multi-locus Wright–Fisher diffusion with recombination. In this section the method will be explained, in general terms.

Let L be the generator of the diffusion process (9) and LD be the unknown generator of a dual process. Suppose that the following relationship holds

LF(·,n)(x)=LDF(x,·)(n),xS,nNM, 11

for some duality function F that needs to be determined. Using the relationship (11) the transition rates of a dual process can be identified from its generator. To pursue this approach, it is necessary to compute the left hand side of (11) by applying the generator L to the duality function F, considered as a function of x, and rewrite it into the form

LF(·,n)(x)=n^q(n,n^)F(x,n^)-F(x,n), 12

for some non-negative coefficients q(n,n^), n^NM, n^n. In light of the duality relationship, expression (12) can be interpreted as the generator LD applied to the duality function F, considered as a function of n. Consequently, the dual process obtained in this way is a pure jump Markov process on the discrete space NM with transition rate matrix Q=(q(·,·)), the off-diagonal elements being the non-negative coefficients in (12) and the diagonal elements being chosen so that the sum of each row is 0. The alleged duality relationship is validated once the transition rates and the proper duality function are determined.

Consider the following proposal for the duality function, F. The inspiration for the proposal comes from the duality function for the one-locus Wright–Fisher diffusion with mutations, see e.g. Etheridge and Griffiths (2009) and Griffiths et al. (2016). It can be generalised to the multi-locus setting by taking

F(x,n)=1k(n)l=1Li=1Ml(xi(l))ni(l), 13

for some function k:NMR\{0} that is determined in the following. Note that the duality function F(·,n) defined in (13) belongs to C(S), for all nNM, and thus it belongs to the domain of L. Let X~ be distributed according to the stationary distribution of the diffusion process {X(t)}t0, when such a distribution exists. Then ELF(X~,n)=0. Therefore, by taking expectation under the stationary distribution in (12), it follows that

n^q(n,n^)EF(X~,n^)-F(X~,n)=0,

which implies that EF(X~,·) must be constant. The constant can be taken to be equal to 1, and consequently,

k(n)=El=1Li=1Ml(X~i(l))ni(l). 14

Note that the existence of a stationary distribution for the diffusion is needed in order to define the function k. Thus, in the following, it is assumed that such a distribution exists. Furthermore, in order for the duality function F to be well defined, the function k needs to be non-zero, which holds if

P(X~i(l)=0)=0,i=1,,Ml,l=1,L. 15

In many cases it is possible to verify that a stationary distribution exists and fulfils (15). For example, as shown in the previous sections, when the mutations are parent independent, the stationary density is known, see (10), and k(n)0 for all nNM. More generally, condition (15) is satisfied when the stationary distribution has a density with respect to the Lebesgue measure. Even if a stationary density is not known in an explicit form, classical techniques, see e.g. Khasminskii (1980), may be used to show its existence and properties, using the Fokker–Planck equation in Aurell et al. (2019).

A relevant case, in which (15) is not verified, is the case of no mutations, θ=0. Nevertheless, it is still possible to derive a dual process in this case by defining the function k in a simpler way that does not rely on a stationary distribution. The derivation of the dual process actually becomes simpler than the one outlined in this section. The case of no mutations is treated separately in Sect. 5, Corollary 1. Elsewhere in the paper it is assumed that a stationary distribution exists and satisfies (15).

To find the transition rates of the dual process, it remains to obtain an expression of the form (12). In fact, it is sufficient to obtain an expression of the form

LF(·,n)(x)=n^nq(n,n^)F(x,n^)+q(n,n)F(x,n), 16

with the requirement that q(n,n^) is positive for n^n (it will be soon clear that q(n,n) is thus negative). Once (16) is obtained, it is possible to derive expression (12) as follows. Rewriting (16) yields

LF(·,n)(x)=n^nq(n,n^)F(x,n^)-F(x,n)+n^nq(n,n^)+q(n,n)F(x,n). 17

Keeping in mind that ELF(·,n)(X~)=0 and that EF(X~,·) is constant, one can apply the expectation with respect to the stationary distribution to get

n^nq(n,n^)+q(n,n)=0. 18

Therefore (17) implies (12) and it remains to write LF as in (16) by finding the positive coefficients q(n,n^). Furthermore, (18) can be used to find a recursion formula for the function k.

Throughout the rest of the paper, the emphasis will be on obtaining an expression of the type (16). This approach is first illustrated in a simpler case (single locus), in order to lighten the formulas and highlight the ideas, and is subsequently used in the general case of the coupled Wright–Fisher diffusion. The simpler case turns out to be closely related to a well known model: the ancestral selection graph.

The ancestral selection graph

When only one locus is considered, the coupled Wright–Fisher diffusion is simply a one-locus Wright–Fisher diffusion with selection. Let L=1 , M1=2 and assume that mutations are parent independent, i.e. uij=ujfori,j=1,2. The matrix of pairwise selection parameters is the zero matrix and the quadratic function V becomes linear

V(x)=h1x1+h2x2.

Let j(i) be the index opposite to i,

j(i)=2ifi=11ifi=2.

Then, the drift terms can be written as follows

μi(x)=uixj(i)-uj(i)xi,gi(x)=hixi(1-xi)-hj(i)xixj(i),i=1,2.

The diffusion process solving (1) under the assumptions in this section is a two-types Wright–Fisher diffusion with selection and parent independent mutations. It is known that the genealogical process for this type of Wright–Fisher diffusion is embedded in a graph with coalescing and branching structure, the ancestral selection graph (ASG), studied by Krone and Neuhauser (1997) and Neuhauser and Krone (1997). In the ASG, first the coalescing-branching structure is constructed leaving types aside, then types and mutations are superimposed on it. In contrast, here it is assumed that the types of individuals in the sample n are known and mutations are included in the dual process rather than superimposed afterwards. Our approach is similar to the one in Etheridge and Griffiths (2009), where the authors derive a dual process for the finite population size Moran model and use it to find the limiting transition rates of the dual process for the diffusion.

Following the outline in Sect. 3, a dual process is derived as follows. By applying the generator L to the duality function F in (13), rewriting the derivatives of F, and rearranging the terms yields

LF(·,n)(x)=i=1,2(uixj(i)-uj(i)xi)nixiF(x,n)+i=1,2xi(hi-hixi-hj(i)xj(i))nixiF(x,n)+12i=1,2xi(1-xi)ni(ni-1)(xi)2F(x,n)-x1x2n1n2x1x2F(x,n)=i=1,2ni(ni-1)21xiF(x,n)+i=1,2uinixj(i)xiF(x,n)-i=1,2hi(ni+nj(i))xiF(x,n)-n2(n-1)+i=1,2niuj(i)-i=1,2nihiF(x,n),

where n=n1+n2. To obtain an expression of the form (16) the expression in the last display can be rewritten as follows. First replace xi=1-xj(i) to obtain positive coefficients for the selection terms, then use the identities, for i=1,2,

1xiF(x,n)=k(n-ei)k(n)F(x,n-ei), 19
xj(i)xiF(x,n)=k(n+ej(i)-ei)k(n)F(x,n+ej(i)-ei), 20
xiF(x,n)=k(n+ei)k(n)F(x,n+ei), 21

where ei, i=1,2, are the unit vectors in N2. Finally, it yields,

LF(·,n)(x)=i=1,2ni(ni-1)2k(n-ei)k(n)F(x,n-ei)+i=1,2uinik(n+ej(i)-ei)k(n)F(x,n+ej(i)-ei)+i=1,2hj(i)nk(n+ei)k(n)F(x,n+ei)-n2(n-1)+i=1,2niuj(i)+i=1,2nj(i)hiF(x,n), 22

which is the desired expression. As demonstrated in Sect. 3 the transition rates of a dual process can be identified directly from this expression. Therefore the dual process for the Wright–Fisher diffusion considered in this section, with respect to F, is the pure jump Markov process on the state space N2, with transition rates as follows. The dual process, in state n, jumps to state

  • n-ei, i=1,2, s.t. ni2, at rate
    q(n,n-ei)=ni(ni-1)2k(n-ei)k(n);
    [coalescence]
  • n+ej(i)-ei, i=1,2, s.t. ni1, at rate
    q(n,n+ej(i)-ei)=uinik(n+ej(i)-ei)k(n);
    [mutation]
  • n+ei, i=1,2, at rate
    q(n,n+ei)=hj(i)nk(n+ei)k(n).
    [branching]

As anticipated, the dual process just described corresponds to the limiting process in Etheridge and Griffiths (2009), which is the block counting process of the ancestral selection graph with types and mutations included in the backward evolution. From the transition rates q, it is observed that three types of events are possible for the dual process: mutation, coalescence and branching. The first two appear also in the Kingman coalescent, while the latter is a virtual addition to the true genealogical process that is characteristic of the ASG. Seen forward in time, branching represents the event that two potential parents are chosen and only the one carrying the advantageous allele reproduces. Backward in time, when a branching happens, the individual splits into two individuals: its true parent and its virtual (potential) parent.

To complete the identification of the transition rates, q(n,n) is defined as the coefficient of F(x,n) in (22),

q(n,n)=-n2(n-1)-i=1,2niuj(i)-i=1,2nj(i)hi.

The equality (18) ensures that the sum of each row of the transition matrix is equal to zero. Furthermore, by rewriting (18) in terms of the function k, a recursion formula can be obtained as in Krone and Neuhauser (1997, Thm 5.2). The formula, which we omit, is not useful in general to compute k explicitly, and even in the simpler case of no selection, where the formula, in principle, could be used, it is computationally too expensive for practical purposes.

In general it is not possible to find a closed-form expression for k and thus for the transition rates. However, when the mutations are parent independent, as in this example, the stationary density is explicitly known up to a normalising constant Z and thus k can be written as an integral with respect to the stationary density

k(n)=1Z01xn1+2u1-1(1-x)n2+2u2-1e2[h1x+h2(1-x)]dx.

The integral above cannot be computed analytically but it is related to the confluent hypergeometric function of the first kind, the Kummer function, which can be efficiently computed numerically. The idea of using the Kummer function originates from Aurell et al. (2019) and Krone and Neuhauser (1997), where it has been used to find, respectively, a series representation for the normalising constant and a representation for the expected allele frequency. Let 1F1 be the confluent hypergeometric function, then, using its integral representation, it yields

k(n)=1Ze2h2B(n1+2u1,n2+2u2)1F1n1+2u1,n1+2u1+n2+2u2,2(h1-h2),Z=e2h2B(2u1,2u2)1F1(2u1,2u1+2u2,2(h1-h2)),

where B is the Beta function. See Abramowitz and Stegun (1970) for a complete collection of definitions and properties of confluent hypergeometric functions.

A multi-locus dual process

In this section a dual process for the coupled Wright–Fisher diffusion is derived in the general multi-locus setting, L1 and Ml2, l=1,,L.

Theorem 1

Let X be the coupled Wright–Fisher diffusion with generator (9), where μ, g and d are given by (7), (6) and (8), respectively. Assume a stationary distribution for the diffusion exists and satisfies (15). Let k be given by (14) and let the duality function F be given by (13). Then there exists a dual process N for X, in the sense of (3), with respect to the duality function F, where N is the pure jump Markov process on the state space NM with the following transition rates. From the current state, nNM\{0}, N jumps to

  • n-ei(l),i=1,Ml,l=1,,L, s.t. ni(l)2, at rate
    q(n,n-ei(l))=ni(l)(ni(l)-1)2k(n-ei(l))k(n);
    [coalescence]
  • n-ei(l)+ej(l),i,j=1,Ml,l=1,,L, s.t. ij,ni(l)1, at rate
    q(n,n-ei(l)+ej(l))=ni(l)uji(l)k(n-ei(l)+ej(l))k(n);
    [mutation]
  • n+ej(l),j=1,Ml,l=1,,L, at rate
    q(n,n+ej(l))=n(l)k=1kjMlhk(l)+r=1rlLi=1Mrni(r)Jji(lr)k(n+ej(l))k(n);
    [single-branching]
  • n+ej(l)+eh(r),j=1Ml,h=1,Mr,l,r=1,,L,r>l, at rate
    q(n,n+ej(l)+eh(r))=(n(l)+n(r))k=1kjMlm=1mhMrJkm(lr)k(n+ej(l)+eh(r))k(n);
    [double-branching] where n(l)=n(l)1=i=1Mlni(l). Furthermore,
    q(n,n)=-l=1L12n(l)(n(l)-1)+i,j=1ijMlni(l)uij(l)+i=1Mlk=1kiMlni(l)hk(l)+r=1rlLk=1Mlm=1Mrn(l)Jkm(lr).

Note that the mutation and coalescence jumps involve one locus at the time. The coalescence and mutation rates are similar to the transition rates of the Kingman coalescent process with mutations, the only difference being the function k which, despite having the same structure, is based on a different stationary density and depends on all the loci, not only on the one where the jump takes place. The single-branching rate not only contains the single-locus selection parameters in a form that generalises the rates in Sect. 4, but it also contains the two-locus selection parameters to include the effect of the pairwise interaction on the single locus. The single-branching also involve only one locus at the time. Finally, the double-branching rate reflects the particular structure of pairwise interactions of the coupled Wright–Fisher diffusion and it is, to the best of our knowledge, a novel type of transition rate appearing in genealogical processes related to Wright–Fisher diffusions. The double-branching represents simultaneous branching at two different loci. As anticipated in the introduction, the dual process can thus be interpreted as the block counting process of L coupled ASGs. Furthermore, if J=0, the loci are independent since V=h, and thus double-branching does not occur and the dual process consists of L independent ASGs, as in Etheridge and Griffiths (2009) with -2k=1kjMlhk(l) corresponding to σj.

The explicit parts of the transition rates, not depending on the function k, have a very natural interpretation. As in the simpler case studied in Sect. 4, the basic principle is that weak types branch at a higher rate. The difference is that, while in the simpler case there are only two types, a viable type and a weaker type, here there are many types and many loci all influencing each other’s branching rates. To understand this behaviour in greater detail, some terms will be investigated more thoroughly. The term

n(l)k=1kjMlhk(l),

arises purely from the one-locus selection and contributes to the rate of adding a gene of type j at locus l. It depends on the one-locus viability of the other allele types (all except type j) at locus l, the higher their viability, the higher the rate of adding type j, and of course it is also directly proportional to the number, n(l), of genes at locus l.

The rate of adding a couple of genes of type j at locus l and of type h at locus r is related to the term

(n(l)+n(r))k=1kjMlm=1mhMrJkm(lr).

It depends on the viability of the other couples of allele types (all except couple jh) at loci l and r, the higher their viability, the higher the rate of adding type j and h at locus l and r, respectively. Again the rate is directly proportional to the number, n(l)+n(r), of genes at loci l and r.

Although the interpretation of some parts of the transition rates is straightforward, the function k remains implicit, similar to the simpler Kingman coalescent process and the ancestral selection graph with parent dependent mutations. When the mutations are parent independent, the stationary density is known up to a normalising constant and k can be expressed as an integral that sometimes can be easily computed numerically, see Sects. 4 and 7, where a series representation of k involving Kummer and Beta functions will be given. Nevertheless, even when the stationary distribution is not explicitly known, but still exists, Theorem 1 provides information on the structure of the transition rates of the dual process that may be useful. As explained in the introduction, many established inference methods for populations under various generalisations of the Wright–Fisher diffusion rely on approximating the backward dynamics of the associated genealogical process. Deriving a dual process for the coupled Wright–Fisher diffusion is central to further investigations concerning the genealogy of a sample and possibly provides a basis for the construction of inference methods inspired by the existing methods described in the introduction.

In general, if the transition rates are not known explicitly, it might seem difficult to provide bounds for the dual process. However, its growth is controlled by a much simpler Markov chain. Indeed, the process N(t)1 is a jump process on N\{0}, with possible jumps: +2, representing double-branching, +1, representing single-branching and -1, representing coalescence. As is typical of genealogical processes appearing in population genetics, the rate of negative (coalescent) jumps is at least quadratic and the rate of positive (branching) jumps is at most linear, as shown in details in (38) in the “Appendix”. This allows to construct a monotone coupling to bound the jump chain of N1 by a simpler Markov chain which is reported in the “Appendix” as it could be useful for future work.

This section concludes with the extension of Theorem 1 to the case of no mutations, Corollary 1, and with two applications of the duality relationship. The first one is useful to derive an expansion of the transition density of the diffusion and the second one to study, in the absence of mutations, fixation/extinction probabilities of allele types.

The duality relation (3), which follows from Theorem 1, can be rewritten as

ES(X(t),n)|X(0)=x=ES(X~,n)mNMpn,m(t)F(x,m),

where S(x,n) is the probability mass function of L independent multinomial random variables with parameters x(1),,x(L) and n(1),,n(L), and pn,m(t) are the transition densities of the dual process N. By applying sample inversion as n, as in Etheridge and Griffiths (2009); Griffiths et al. (2016), an expansion for the transition density of X can be obtained in terms of the limit of the transition densities of N, the stationary density of X and the duality function F. This corresponds to identifying the distribution of X(t) from its moments. The derivation of the expansion is essentially similar to the one in Griffiths et al. (2016), a rigorous proof is left to future work.

In the case of no mutation, θl=0, l=1,,L, the boundaries are absorbing for the diffusion X. Any distribution that puts all its mass on one allele type for each locus is an invariant distribution for the diffusion but does not satisfy assumption (15). Nevertheless, as anticipated in Sect. 3, the derivation of a dual process in this case is simpler than in the presence of mutations, as there is no need of relying on invariant distributions to define the duality function. In fact, the duality function can be defined explicitly by defining the function k to be equal to a product of multivariate Beta functions,

k(n)=l=1LB(n(l))withB(n(l))=i=1MlΓ(ni(l))Γ(n(l)). 23

To get an intuition on why k is defined in this way, note that in the neutral one-locus model with parent independent mutations k(n)=B(n+2u)B(2u), where u is the vector of mutation transition rates with uj=θPij, and, as θ0, k(n) converges to B(n). Using definition (23) for k, the transition rates of the dual process can be derived from those in Theorem 1, see Sect. 6 for more details, to obtain the following

Corollary 1

Let X be defined as in Theorem 1 and assume θl=0, l=1,,L. Then there exists a dual process N for X, in the sense of (3), with respect to the duality function F(x,n)=l=1L1B(n(l))i=1Ml(xi(l))ni(l). N is the pure jump Markov process on the state space NM with transition rates

  • q(n,n-ei(l))=ni(l)(n(l)-1)2,i=1,Ml,l=1,,L;

  • q(n,n+ej(l))=nj(l)k=1kjMlhk(l)+nj(l)n(l)r=1rlLi=1Mrni(r)Jji(lr),j=1,Ml,l=1,,L;

  • q(n,n+ej(l)+eh(r))=(n(l)+n(r))nj(l)nh(r)n(l)n(r)k=1kjMlm=1mhMrJkm(lr),j=1Ml,h=1,Mr, l,r=1,,L,r>l.

Note that, due to the absence of mutations, the transition rates in this case are fully explicit. By Corollary 1, the duality relationship (3) can be rewritten as

El=1Li=1MlXi(l)(t)ni(l)|X(0)=x=El=1LB(n(l))B(N(l)(t))i=1Ml(xi(l))Ni(l)(t)|N(0)=n, 24

letting t enables the study of fixation/extinction probabilities of allele types, as in e.g. Etheridge and Griffiths (2009), Foucart (2013), González Casanova and Spanó (2018), Griffiths et al. (2016) and Mano (2009).

Proofs of the main results

Proof of Theorem 1

Following the outline in Sect. 3, a dual process is derived as follows. By applying the generator L to the duality function F in (13) each term in the expression for LF is treated separately. As in Sect. 4, the terms arising from mutation and diffusion can be easily rewritten in the required form. Summing the mutation terms over allele types at locus l yields

i=1Mlμi(l)(x(l))Fxi(l)(x,n)=i,j=1ijMlni(l)uji(l)xj(l)xi(l)F(x,n)-i,j=1ijMlni(l)uij(l)F(x,n).

Using identity (20) at locus l the mutation terms can be rewritten in the desired form

i=1Mlμi(l)(x(l))Fxi(l)(x,n)=i,j=1ijMlni(l)uji(l)k(n-ei(l)+ej(l))k(n)F(x,n-ei(l)+ej(l))-i,j=1ijMlni(l)uij(l)F(x,n). 25

For the diffusion terms, the diagonal and off-diagonal terms are written separately as

dii(l)(x(l))2Fxi(l)2(x,n)=ni(l)(ni(l)-1)1xi(l)F(x,n)-ni(l)(ni(l)-1)F(x,n),dij(l)(x(l))2Fxi(l)xj(l)(x,n)=-ni(l)nj(l)F(x,n),ij.

Summing the diffusion terms at locus l and rearranging yields

12i,j=1Mldij(l)(x(l))2Fxi(l)xj(l)(x,n)=i=1Mlni(l)(ni(l)-1)21xi(l)F(x,n)-12n(l)(n(l)-1)F(x,n).

Now use identity (19) at locus l to obtain

12i,j=1Mldij(l)(x(l))2Fxi(l)xj(l)(x,n)=i=1Mlni(l)(ni(l)-1)2k(n-ei(l))k(n)F(x,n-ei(l))-12n(l)(n(l)-1)F(x,n). 26

Next, consider the interaction terms. Using the definition of g(l) and rewriting the derivatives of F yields,

i=1Mlgi(l)(x)Fxi(l)(x,n)=i=1Mlk=1Mlni(l)hk(l)(δik-xk(l))F(x,n)S1+r=1rlLi=1Mlk=1Mlm=1Mrni(l)Jkm(lr)(δik-xk(l))xm(r)F(x,n)S2. 27

Note that the first group of sums, S1, contains the one-locus selection parameters while the second, S2, contains the pairwise selection parameters. Each of them will be treated separately. The one-locus selection term can be rearranged into

S1=i=1Mlni(l)hi(l)F(x,n)-i=1Mlk=1Mlni(l)hk(l)xk(l)F(x,n).

As in Sect. 4, the fact that the sum of the frequencies at each locus equals one is used. Since xk(l)=1-j=1jkMlxj(l), the terms can be rearranged to obtain

S1=-i=1Mlk=1kiMlni(l)hk(l)F(x,n)+j=1Mln(l)k=1kjMlhk(l)xj(l)F(x,n).

The second part of (27) can be expressed as

S2=r=1rlLi=1Mlm=1Mrni(l)Jim(lr)xm(r)F(x,n)-r=1rlLk=1Mlm=1Mrn(l)Jkm(lr)xk(l)xm(r)F(x,n).

This time the equality

-xk(l)xm(r)=-1+j=1Mlh=1Mr(1-δhmδjk)xj(l)xh(r), 28

will be used. To see that (28) holds, the fact that the frequencies sum up to one at each locus is used multiple times, as follows,

-xk(l)xm(r)=-xk(l)1-h=1hmMrxh(r)=-xk(l)+h=1Mr(1-δhm)xk(l)xh(r)=-1+j=1jkMlxj(l)·h=1Mrxh(r)+h=1Mr(1-δhm)xk(l)xh(r)=-1+j=1Mlh=1Mr(1-δjk)xj(l)xh(r)+j=1Mlh=1Mrδjk(1-δhm)xk(l)xh(r)=-1+j=1Mlh=1Mr(1-δhmδjk)xj(l)xh(r).

Applying (28) in the expression for S2 and rearranging the terms, leads to

S2=-r=1rlLk=1Mlm=1Mrn(l)Jkm(lr)F(x,n)+r=1rlLm=1Mri=1Mlni(l)Jim(lr)xm(r)F(x,n)+r=1rlLj=1Mlh=1Mrn(l)k=1kjMlm=1mhMrJkm(lr)xj(l)xh(r)F(x,n).

Summing over l and putting similar terms together yields

l=1Li=1Mlgi(l)(x)Fxi(l)(x,n)=-l=1Li=1Mlk=1kiMlni(l)hk(l)+l=1Lr=1rlLk=1Mlm=1Mrn(l)Jkm(lr)F(x,n)+l=1Lj=1Mln(l)k=1kjMlhk(l)+r=1rlLi=1Mrni(r)Jji(lr)xj(l)F(x,n)+l=1Lr=1r>lLj=1Mlh=1Mr(n(l)+n(r))k=1kjMlm=1mhMrJkm(lr)xj(l)xh(r)F(x,n).

Use the identities (21) at locus l and

xj(l)xh(r)F(x,n)=k(n+ej(l)+eh(r))k(n)F(x,n+ej(l)+eh(r))

for the mixed terms involving loci l and r, in order to rewrite the selection terms in the desired form

l=1Li=1Mlgi(l)(x)Fxi(l)(x,n)=-l=1Li=1Mlk=1kiMlni(l)hk(l)+l=1Lr=1rlLk=1Mlm=1Mrn(l)Jkm(lr)F(x,n)+l=1Lj=1Mln(l)k=1kjMlhk(l)+r=1rlLi=1Mrni(r)Jji(lr)k(n+ej(l))k(n)F(x,n+ej(l))+l=1Lr=1r>lLj=1Mlh=1Mr(n(l)+n(r))k=1kjMlm=1mhMrJkm(lr)k(n+ej(l)+eh(r))k(n)F(x,n+ej(l)+eh(r)). 29

The terms arising from mutation (25), diffusion (26) and selection (29) are now written in form (16). It is finally possible to identify the transition rates of the dual process.

In order to complete the proof, the method of duality is applied, more precisely, Corollary 4.4.13 in Ethier and Kurtz (1986), which amounts to verifying the following conditions:

F(X(t),n)-0tLF(·,n)(X(s))dsandF(x,N(t))-0tLDF(x,·)(N(s))ds

are martingales and, for each T>0, there exists an integrable random variable ΓT such that

sup0s,tTF(X(s),N(t))ΓT, 30
sup0s,tTLF(·,N(t))(X(s))=sup0s,tTLDF(X(s),·)(N(t))ΓT, 31

almost surely. First note that, as discussed in Sect. 3, F(·,n) belongs to the domain of L, for all nNM, and the integrability conditions (30)–(31) ensure that F(x,·) belongs to the domain of LD, for all xS, and that the processes F(X(t),n)-0tLF(·,n)(X(s))ds and F(x,N(t))-0tLDF(x,·)(N(s))ds are integrable. The martingale property trivially holds for both processes.

In order to complete the proof, following Barbour et al. (2000) to verify (30)–(31), it is sufficient to show that there exists a function H:NM[0,) such that

F(x,n)+LDF(x,·)(n)H(n),(x,n)S×NM, 32

and H(N(tτj)),0tT,j1, where τj=inf{s0:N(s)1j}, is uniformly integrable, for all initial conditions, N(0)=nNM, and all T0. First, bounds for F and LDF are provided.

The definition (14) of k and Jensen’s inequality yield

k(n)=El=1Li=1Ml(X~i(l))ni(l)El=1Li=1MlX~i(l)n1El=1Li=1MlX~i(l)n1.

Denote El=1Li=1MlX~i(l)-1 by a. Because of assumption (15), the latter expectation is non-zero and a is well defined, furthermore, a>1. Consequently, using the definition (13) of F, it follows that

F(x,n)an1. 33

Moreover,

LF(·,n)(x)=LDF(x,·)(n)n^|q(n,n^)||F(x,n^)-F(x,n)|n^|q(n,n^)|an1+2+an1bn12an1, 34

since n^1n1+2, n^|q(n,n^)|=2|q(n,n)|, and |q(n,n)|bn12, for some b>0 and b=4ba2. By (33) and (34), it is implied that inequality (32) holds true with H(n)=bn12an1, for some b>0. Consider now the following representation formula for the expectation of H applied to the stopped dual process,

EH(N(tτj))|N(0)=n=H(n)+E0tτjLDH(N(s))ds. 35

Using the inequalities (38) of the “Appendix”,

LDH(n)=bl=1Li=1Mlq(n,n-ei(l))(n1-1)2an1-1-n12an1+bl=1Li=1Mlq(n,n+ei(l))(n1+1)2an1+1-n12an1+bl=1Lr=1r>lLj=1Mlh=1Mrq(n,n+ej(l)+eh(r))(n1+2)2an1+2-n12an1bn1an1-1{c(n1-1)(n1-1)2-an12+ada(n1+1)2+a2(n1+2)2-2n12}b,

where the last inequality holds since a>1, for some b>0, and all nNM. The inequality in the last display, together with (35), implies

EH(N(tτj))|N(0)=nbn12an1+bT. 36

Inequalities (32) and (36) finally ensure the method of duality can indeed be applied, which guarantees that the duality relationship between the generators (11), proved in this section, implies the duality among the processes in the sense of (3). This completes the proof of Theorem 1.

Proof of Corollary 1

Assume θl=0, l=1,,L, and let k be defined as in (23). The rewriting of the diffusion and selection terms in (26) and (29) remains valid, even if (15) is not satisfied in this case. Furthermore, it is possible to explicitly calculate, for l,r=1,L,rl,i,j=1,,Ml,h=1,,Mr,

k(n-ei(l))k(n)=n(l)-1ni(l)-1,k(n+ej(l))k(n)=nj(l)n(l),k(n+ej(l)+eh(r))k(n)=nj(l)nh(r)n(l)n(r).

Replacing these ratios in (26) and (29) yields an expression of the form (16) and provides the expression for the transition rates. As outlined in Sect. 3 an expression of the form (16) implies that the duality relationship between the generators of the diffusion and its dual process holds if (18) is satisfied. Since a stationary distribution that satisfies (15) does not exist, the argument in Sect. 3 for proving (18) cannot be applied. However, direct calculation shows that

l=1Li=1Mlq(n,n-ei(l))+l=1Lj=1Mlq(n,n+ej(l))+l=1Lr=1r>lLj=1Mlh=1Mrq(n,n+ej(l)+eh(r))=l=1L12n(l)(n(l)-1)+i=1Mlk=1kiMlni(l)hk(l)+r=1rlLk=1Mlm=1Mrn(l)Jkm(lr),

which implies (18). Finally, the method of duality, using Corollary 4.4.3 in Ethier and Kurtz (1986) as in the proof of Theorem 1, ensures the duality relationship between the processes holds.

Two loci, two alleles, with pairwise selection and parent independent mutation

In this section a particular example will be considered, where there are two loci, L=2, and two allele types at each locus, M1=M2=2. The pairwise interactions are represented by the matrix

J=00J10000J2J10000J200,

and there is no single-locus selection, h=0. Furthermore, parent independent mutations are assumed.

In this special case, the function k, in (14), and consequently the transition rates of the dual process can be computed rather efficiently. The main difficulty in the computation is that the normalising constant of the stationary density (10) is unknown. It may be noted that computing the normalising constant and the function k are closely related problems. In fact, by defining

I(a1,a2,b1,b2)=0101xa1-1(1-x)a2-1yb1-1(1-y)b2-1e2[J1xy+J2(1-x)(1-y)]dxdy,

the normalising constant can be written as

Z=I(2u1(1),2u2(1),2u1(2),2u2(2)),

and the function k as

k(n)=1ZI(n1(1)+2u1(1),n2(1)+2u2(1),n1(2)+2u1(2),n2(2)+2u2(2)).

The integral I cannot be computed analytically, but it is possible to find a series representation of it in terms of Beta and Kummer functions, which can be truncated to numerically evaluate the function k. The following formula is derived by a straightforward, albeit cumbersome, application of definitions and properties of Kummer functions

I(a1,a2,b1,b2)=e2J2B(a1,a2)n=0[a1]n[a1+a2]n(-2J2)nn!×k=0nnk-J1+J2J2kB(k+b1,b2)1F1(k+b1,k+b1+b2,-2J2),

where B is the Beta function, 1F1 is the Kummer function and [a]n=a(a+1)(a+n-1), for n>0, [a]0=1.

As an illustration, the stationary density of independent Wright–Fisher diffusions, with J1=J2=0, is compared to the stationary density of the coupled Wright–Fisher diffusion, with J1=J2=2, in Fig. 1. Both distributions have mutation rates u1(1)=u2(1)=u1(2)=u2(2)=0.8. On the left hand side the mutation strength keeps the mass of the stationary distribution in the centre of the unit square. In contrast, on the right hand side, while the mutation strength still tends to keep the mass in the centre, the selection strength moves the mass towards the points (0, 0) and (1, 1), which represent the most viable couples of allele types, i.e., 1, 1 and 2, 2.

Fig. 1.

Fig. 1

Stationary density of a coupled Wright–Fisher diffusion for two loci, two alleles, with no interaction (left) and non-zero interaction (right). Mutation parameters: u1(1)=u2(1)=u1(2)=u2(2)=0.8. Double-locus selection parameters: J1=J2=0 (left), J1=J2=2 (right)

Acknowledgements

We are very grateful to the associate editor and two anonymous referees whose detailed comments and suggestions lead to significant improvements of the manuscript. The research is supported by the Swedish Research Council through grants 621-2013-4628 (H. Hult) and 40-2012-5952 (T. Koski).

Appendix

In this section the monotone coupling mentioned in Sect. 5 is presented. Let {Ck}kNN\{0} be the jump chain of the process C(t)=N(t)1, which represents the evolution of the number of genes in the genealogical (dual) process. Let {Yk}kNN be the Markov chain with the following transition probabilities

P(Yk+1=Yk-1|Yk)=p(Yk),P(Yk+1=Yk+2|Yk)=1-p(Yk),

where p(m)=c(m-1)c(m-1)+d, if m>1, cd are positive constants defined below in (38), p(1)=p(2) and p(0)=0.

As discussed in Sect. 5, and shown in some particular cases in Sects. 4 and 7, the rates of the dual process are often not explicit, furthermore, the process C is not Markovian because its transition probabilities depend on N. The aim of this appendix is to construct a coupling between {Ck}kN and {Yk}kN such that

CkYk+1,kN.

This monotone coupling provides upper bounds for expectations involving the number of genes in the genealogical process that is dual to the coupled Wright–Fisher diffusion. The Markov chain Y, with explicit and simple transition probabilities, is easier to work with than C.

Let {Nk}kN be the jump chain of the process N, in which only coalescence and branching jumps are considered, in between these jumps the state of the process N changes, because of an arbitrary number of mutations, from n to m, with m1=n1, say with probability p(m|n). More precisely, given Ck and Nk, Ck+1 is equal to Ck+j with probability pj(Nk), j=-1,1,2, where

pj(n)=m:m1=n1pj(m)p(m|n),withpj(m)=rj(m)r-1(m)+r1(m)+r2(m), 37

and

r-1(n)=l=1Li=1ni(l)>1Mlq(n,n-ei(l)),r1(n)=l=1Lj=1Mlq(n,n+ej(l)),r2(n)=l,r=1lrLj=1Mlj=1Mrq(n,n+ej(l)+eh(r)).

The next step is to bound the transition probabilities of the chain C. First note that definition (14) yields

k(n-ei(l))k(n),k(n+ej(l))k(n),k(n+ej(l)+eh(r))k(n).

It is then straightforward to show that

r-1(n)cn1(n1-1),r1(n)+r2(n)dn1, 38

where c=12M,d=3J1+h1, and thus that

p-1(n)p(n1),p1(n)+p2(n)1-p(n1).

This, together with (37), implies

p-1(n)p(n1),p1(n)+p2(n)1-p(n1). 39

The inequalities above explain why it is possible to construct a monotone coupling of C and Y: C has a higher probability of coalescence jump than Y and a lower probability of branching jumps. Furthermore, inequalities (38) are used in the proof of Theorem 1 to provide bounds that justify the use of the method of duality.

The coupling is constructed step by step by coupling Ck and Yk for each k depending on which one of the following cases occurs.

Case I: Ck=Yk. In this case Ck+1 and Yk+1 are coupled as follows, let U be a standard uniform random variable, and set

Ck+1=Ck-1ifU[0,p-1(Nk)],Ck+1ifU(p-1(Nk),p-1(Nk)+p1(Nk)],Ck+2ifU(p-1(Nk)+p1(Nk),1],Yk+1=Yk-1ifU[0,p(Yk)],Yk+2ifU(p(Yk),1]. 40

It is clear that, in this construction, the marginal distributions are preserved and additionally Ck+1Yk+1 because of (39) and Nk1=Ck=Yk.

Case II: Ck<Yk. As long as this case occurs, let C and Y evolve independently.

Case III: Ck>Yk. Assume that k is first time this case occurs again after case II (it cannot occur after case I) and note that Ck=Yk+1 must hold. In this case Ck+1 and Yk+1 are coupled as in (40), the difference being that here Nk1=Ck=Yk+1. Since p is an increasing function, Ck+1Yk+1+1 holds. This means that after one step in case III, either case I occurs, or Ck+1=Yk+1+1 and the latter coupling can be applied again.

Note that coupling Ck and Yk impose implicitly a coupling on Nk and Yk. Applying the appropriate coupling at each step provides a coupling between the chain C and the Markov chain Y such that CkYk+1, kN, assuming that C0=Y0=N(0)1. Furthermore, it is interesting to note that the first time C hits 1, which is the time the genealogical process reaches the most recent common ancestor, is smaller or equal to the first time Y hits 0. In fact, either C hits 1 before Y hits 0, or when Y hits 0 it must be that C hits 1.

Funding

Open Access funding provided by Royal Institute of Technology.

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Martina Favero, Email: mfavero@kth.se.

Henrik Hult, Email: hult@kth.se.

Timo Koski, Email: tjtkoski@kth.se.

References

  1. Abramowitz M, Stegun IA. Handbook of mathematical functions: with formulas, graphs, and mathematical tables. New York: Dover pubblications Inc.; 1970. [Google Scholar]
  2. Aurell E, Ekeberg M, Koski T (2019) On a multilocus Wright–Fisher model with mutation and a Svirezhev–Shahshahani gradient-like selection dynamics. arXiv:1906.00716
  3. Barbour AD, Ethier SN, Griffiths RC. A transition function expansion for a diffusion model with selection. Ann Appl Probab. 2000;10(1):123–162. doi: 10.1214/aoap/1019737667. [DOI] [Google Scholar]
  4. Bürger R. The mathematical theory of selection, recombination, and mutation. New York: Wiley; 2000. [Google Scholar]
  5. Etheridge AM, Griffiths RC. A coalescent dual process in a Moran model with genic selection. Theor Popul Biol. 2009;75:320–330. doi: 10.1016/j.tpb.2009.03.004. [DOI] [PubMed] [Google Scholar]
  6. Ethier SN, Griffiths RC. The neutral two-locus model as a measure-valued diffusion. Adv Appl Probab. 1990;22(4):773–786. doi: 10.2307/1427561. [DOI] [Google Scholar]
  7. Ethier SN, Kurtz TG. Markov processes: characterization and convergence, New York: Wiley; 1986. [Google Scholar]
  8. Ethier SN, Nagylaki T. Diffusion approximations of the two-locus wright-fisher model. J Math Biol. 1989;27(1):17–28. doi: 10.1007/BF00276078. [DOI] [PubMed] [Google Scholar]
  9. Foucart C (2013) The impact of selection in the Λ-Wright–Fisher model. Electron Commun Probab 18
  10. Gao CY, Cecconi F, Vulpiani A, Zhou HJ, Aurell E (2019) DCA for genome-wide epistasis analysis: the statistical genetics perspective. Phys Biol 16(2) [DOI] [PubMed]
  11. González Casanova A, Spanó D. Duality and fixation in Ξ-Wright–Fisher processes with frequency-dependent selection. Ann Appl Probab. 2018;28(1):250–284. doi: 10.1214/17-AAP1305. [DOI] [Google Scholar]
  12. Griffiths RC, Tavaré S. Ancestral inference in population genetics. Stat Sci. 1994;9(3):307–319. doi: 10.1214/ss/1177010378. [DOI] [Google Scholar]
  13. Griffiths RC, Jenkins PA, Lessard S. A coalescent dual process for a Wright–Fisher diffusion with recombination and its application to haplotype partitioning. Theor Popul Biol. 2016;112:126–138. doi: 10.1016/j.tpb.2016.08.007. [DOI] [PubMed] [Google Scholar]
  14. Jensen S, Kurt N. On the notion(s) of duality for Markov processes. Probab Surv. 2014;11:59–120. doi: 10.1214/12-PS206. [DOI] [Google Scholar]
  15. Khasminskii R. Stochastic stability of differential equations. Alphena: Sijthoff & Noordhoff; 1980. [Google Scholar]
  16. Kimura M. Stochastic processes and distribution of gene frequencies under natural selection. Cold Spring Harb Symp Quant Biol. 1955;20:33–53. doi: 10.1101/SQB.1955.020.01.006. [DOI] [PubMed] [Google Scholar]
  17. Koskela J, Jenkins P, Spanó D. Computational inference beyond Kingman’s coalescent. J Appl Probab. 2015;52(2):519–537. doi: 10.1017/S0021900200012614. [DOI] [Google Scholar]
  18. Koskela J, Spanò D, Jenkins PA. Inference and rare event simulation for stopped Markov processes via reverse-time sequential Monte Carlo. Stat Comput. 2018;28(1):131–144. doi: 10.1007/s11222-017-9722-1. [DOI] [Google Scholar]
  19. Krone SM, Neuhauser C. Ancestral processes with selection. Theor Popul Biol. 1997;51:210–237. doi: 10.1006/tpbi.1997.1299. [DOI] [PubMed] [Google Scholar]
  20. Mano S. Duality, ancestral and diffusion processes in models with selection. Theor Popul Biol. 2009;75(2):164–175. doi: 10.1016/j.tpb.2009.01.007. [DOI] [PubMed] [Google Scholar]
  21. Neher RA, Shraiman BI. Statistical genetics and evolution of quantitative traits. Rev Mod Phys. 2011;83:1283–1300. doi: 10.1103/RevModPhys.83.1283. [DOI] [Google Scholar]
  22. Neuhauser C, Krone SM. The genealogy of samples in models with selection. Genetics. 1997;154:519–534. doi: 10.1093/genetics/145.2.519. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Skwark MJ, Croucher N, Puranen S, Chewapreecha C, Pesonen M, Xu YY, Turner P, Harris S, Beres SB, Musser JM, Parkhill J, Bentley SD, Aurell E, Corander J (2017) Interacting networks of resistance, virulence and core machinery genes identifies by genome-wide epistasis analysis. PLoS Genetics 13(2) [DOI] [PMC free article] [PubMed]
  24. Stephens M (2007) Inference under the coalescent. In: Balding D, Bishop M, Cannings C (eds) Handbook of statistical genetics. Whiley, Chichester, chap 26, pp 878–908
  25. Stephens M, Donnelly P. Inference in molecular population genetics. J R Statist Soc B. 2000;62:605–635. doi: 10.1111/1467-9868.00254. [DOI] [Google Scholar]
  26. Stephens M, Donnelly P. Ancestral inference in population genetics models with selection (with discussion) Aust N Z J Stat. 2003;45(4):395–430. doi: 10.1111/1467-842X.00295. [DOI] [Google Scholar]
  27. Wright S. Adaption and selection. In: Jepson GL, Mayr E, Simpson G, editors. Genetics, paleontology, and evolution. Princeton: Princeton University Press; 1949. pp. 365–389. [Google Scholar]

Articles from Journal of Mathematical Biology are provided here courtesy of Springer

RESOURCES