Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2013 Jun 18.
Published in final edited form as: Ann Appl Probab. 2012 Apr 1;22(2):576–607. doi: 10.1214/11-AAP780

PADÉ APPROXIMANTS AND EXACT TWO-LOCUS SAMPLING DISTRIBUTIONS

Paul A Jenkins 1,*, Yun S Song 2,*,
PMCID: PMC3685441  NIHMSID: NIHMS307128  PMID: 23788830

Abstract

For population genetics models with recombination, obtaining an exact, analytic sampling distribution has remained a challenging open problem for several decades. Recently, a new perspective based on asymptotic series has been introduced to make progress on this problem. Specifically, closed-form expressions have been derived for the first few terms in an asymptotic expansion of the two-locus sampling distribution when the recombination rate ρ is moderate to large. In this paper, a new computational technique is developed for finding the asymptotic expansion to an arbitrary order. Computation in this new approach can be automated easily. Furthermore, it is proved here that only a finite number of terms in the asymptotic expansion is needed to recover (via the method of Padé approximants) the exact two-locus sampling distribution as an analytic function of ρ; this function is exact for all values of ρ ∈ [0, ∞). It is also shown that the new computational framework presented here is flexible enough to incorporate natural selection.

Keywords and phrases: population genetics, recombination, sampling distribution, asymptotic expansion, Padé approximants

1. Introduction

Central to many applications in genetic analysis is the notion of sampling distribution, which describes the probability of observing a sample of DNA sequences randomly drawn from a population. In the one-locus case with special models of mutation such as the infinite-alleles model or the finite-alleles parent-independent mutation model, closed-form sampling distributions have been known for many decades (Wright, 1949; Ewens, 1972). In contrast, for multi-locus models with finite recombination rates, finding a closed-form sampling distribution has so far remained a challenging open problem. To make progress on this long-standing issue, we recently proposed a new approach based on asymptotic expansion and showed that it is possible to obtain useful analytic results when the recombination rate is moderate to large (Jenkins and Song, 2009, 2010). More precisely, our previous work can be summarized as follows.

Consider a two-locus Wright-Fisher model, with the two loci denoted by A and B. In the standard coalescent or diffusion limit, let θA and θB denote the population-scaled mutation rates at loci A and B, respectively, and let ρ denote the population-scaled recombination rate between the two loci. Given a sample configuration n (defined later in the text), consider the following asymptotic expansion of the sampling probability q(n | θA, θB, ρ) for large ρ:

q(nθA,θB,ρ)=q0(nθA,θB)+q1(nθA,θB)ρ+q2(nθA,θB)ρ2+, (1.1)

where the coefficients q0(n | θA, θB), q1(n | θA, θB), q2(n | θA, θB), …, are independent of ρ. The zeroth-order term q0 corresponds to the contribution from the completely unlinked (i.e., ρ = ∞) case, given simply by a product of marginal one-locus sampling distributions. Until recently, higher-order terms qM (n | θA, θB), for M ≥ 1, were not known. In Jenkins and Song (2010), assuming the infinite-alleles model of mutation at each locus, we used probabilistic and combinatorial techniques to derive a closed-form formula for the first-order term q1, and showed that the second-order term q2 can be decomposed into two parts, one for which we obtained a closed-form formula and the other which satisfies a simple recursion that can be easily evaluated using dynamic programming. We later extended these results to an arbitrary finite-alleles model and showed that the same functional form of q1 is shared by all mutation models, a property which we referred to as universality [see Jenkins and Song (2009) for details]. Importantly, we also performed an extensive study of the accuracy of our results and showed that they may be accurate even for moderate values of ρ, including a range that is of biological interest.

Given the above findings, one is naturally led to ask several important follow-up questions. In particular, the following are of both theoretical and practical interest:

  1. Is it possible to compute the higher-order coefficients qM (n | θA, θB) for M > 2?

  2. For a given finite ρ > 0, does the series in (1.1) converge as more terms are added?

  3. If not, how should one make use of the asymptotic expansion in practice?

  4. Is it possible to incorporate into the asymptotic expansion framework other important mechanisms of evolution such as natural selection?

In this paper, we develop a new computational technique to answer the above questions. Our previous method requires rewriting complex recursion relations into more structured forms, followed by laborious computation of the expectation of increasingly complicated functions of multivariate hyper-geometric random variables. Generalizing that method to go beyond the second order (i.e., M > 2) seems unwieldy. In contrast, our new method is based on the diffusion process and it utilizes the diffusion generator to organize computation in a simple, transparent fashion. Moreover, the same basic procedure, which is purely algebraic, applies to all orders and the computation can be completely automated; we have, in fact, made such an implementation.

To recapitulate, we propose here a method of computing the asymptotic expansion (1.1) to an arbitrary order. That is, for any given positive integer M, our method can be used to compute the coefficients qk(n | θA, θB) for all kM; Theorem 3.1 summarizes this result. As discussed in Section 6.2, however, one can find examples for which the series (1.1) diverges for finite, non-zero ρ. To get around this problem, we employ the method of Padé approximants. The key idea behind Padé approximants is to approximate the function of interest by a rational function. Although (1.1) may diverge, we show that the sequence of Padé approximants converges for all values of ρ > 0. In fact, for every sample configuration n, we show that there exists a finite positive integer C(n), such that the Padé approximant of the asymptotic expansion up to order ≥ C(n) is equal to the exact two-locus sampling distribution. Hence, our result implies that only a finite number of terms in the asymptotic expansion need to be computed to recover (via the Padé approximant) the exact sampling distribution as an analytic function of ρ; this function is exact for all values of ρ, including 0. Theorem 4.1 and the surrounding discussion lay out the details. Lastly, we also show in this paper that our new framework is flexible enough to incorporate a general model of diploid selection. This extension is detailed in Section 5.

The above-mentioned convergence result is theoretically appealing. For practical applications, however, one needs to bear in mind that the value of C(n) generally grows with sample size, thus implying that obtaining an exact, analytic sampling distribution may be impracticable for large samples. A possible remedy, which works well in practice, is to compute the asymptotic expansion only up to some reasonable order M < C(n), and use the corresponding Padé approximant as an approximate sampling distribution. We show in Section 6 that using M = 10 or so produces quite accurate results.

An important advantage of our method over Monte Carlo-based methods is that, for a given mutation model, the bulk of the computation in our approach needs to be carried out only once. Specifically, the coefficients qk(n | θA, θB) need to be computed only once, and the same coefficients can be used to evaluate the sampling distribution at different values of the recombination rate ρ. We expect this aspect of our work to have important practical implications. For example, in the composite likelihood method for estimating fine-scale recombination rates (Hudson, 2001; McVean et al., 2004), one needs to generate exhaustive lookup tables containing two-locus sampling probabilities for a wide range of discrete ρ values. An alternative approach would be to store the coefficients qk(n | θA, θB) instead of generating an exhaustive lookup table using importance sampling, which is computationally expensive.

The rest of this paper is organized as follows. In Section 2, we lay out the notational convention adopted throughout this paper and review our previous work on asymptotic expansion of the two-locus sampling distribution up to second order. Our new technique for obtaining an arbitrary-order asymptotic expansion is described in Section 3, where we focus on the selectively neutral case. In Section 4, we present the method of Padé approximants and describe the aforementioned result on convergence to the exact sampling distribution. In Section 5, we describe how natural selection can be incorporated into our new framework. Finally, we summarize in Section 6 our empirical study of the accuracy of various approximate sampling distributions and provide in Section 7 proofs of the main theoretical results presented in this paper.

2. Notation and review of previous work

In this section, we introduce some notation and briefly review previous results on asymptotic sampling distributions. Initial results were obtained for the infinite-alleles model of mutation (Jenkins and Song, 2010) and later generalized to an arbitrary finite-alleles model (Jenkins and Song, 2009). In this paper we focus on the latter case.

The set of nonnegative integers is denoted by ℕ. Given a positive integer k, [k] denotes the set {1, …, k}. For a nonnegative real number z and a positive integer n, (z)n:= z(z+1) … (z+n−1) denotes the nth ascending factorial of z. We use 0 to denote either a vector or a matrix of all zeroes; it will be clear from context which is intended. Throughout, we consider the diffusion limit of a haploid exchangeable model of random mating with constant population size 2N. We refer to the haploid individuals in the population as gametes. Initially we shall assume that the population is selectively neutral; we extend to the nonneutral case in Section 5.

2.1. One-locus sampling distribution

The sample configuration at a locus is denoted by a vector n = (n1, …, nK), where ni denotes the number of gametes with allele i at the locus, and K denotes the number of distinct possible alleles. We use n=i=1Kni to denote the total sample size. Let u denote the probability of mutation at the locus per gamete per generation. Then, in the diffusion limit, N → ∞ and u → 0 with the population-scaled mutation rate θ = 4Nu held fixed. Mutation events occur according to a Poisson process with rate θ/2, and allelic changes are described by a Markov chain with transition matrix P = (Pij); i.e., when a mutation occurs to an allele i, it mutates to allele j with probability Pij.

We denote by p(n) the probability of obtaining the unordered sample configuration n. When writing sampling probabilities, we suppress the dependence on parameters for ease of notation. By exchangeability, the probability of any ordered configuration corresponding to n is invariant under all permutations of the sampling order. We may therefore use q(n) without ambiguity to denote the probability of any particular ordered configuration consistent with n. The two probabilities are related by

p(n)=n!n1!nK!q(n).

Throughout this paper, we express our results in terms of ordered samples for convenience.

Consider an infinite population specified by the population-wide allele frequencies x = (xi, …, xK), evolving according to a Wright-Fisher diffusion on the simplex

ΔK={x=(xi)[0,1]K:i=1Kxi=1}. (2.1)

We assume that a sample is drawn from the population at stationarity. No closed-form expression for q(n) is known except in the special case of parent-independent mutation (PIM), in which Pij = Pj for all i. In the PIM model, the stationary distribution of x is Dirichlet with parameters (θP1, …, θPK) (Wright, 1949), and so q(n) is obtained by drawing an ordered sample from this population:

q(n)=E[i=1KXini]=Γ(θ)ΔKi=1Kxini+θPi1Γ(θPi)dx=1(θ)ni=1K(θPi)ni. (2.2)

This sampling distribution can also be obtained by coalescent arguments (Griffiths and Tavaré, 1994).

2.2. Two loci

We now extend the above notation to two loci, which we refer to as A and B. Denote the probability of a recombination event between the two loci per gamete per generation by r. In the diffusion limit, as N → ∞ we let r → 0 such that the population-scaled recombination parameter ρ = 4Nr is held fixed. Suppose there are K possible alleles at locus A and L possible alleles at locus B, with respective population-scaled mutation parameters θA and θB, and respective mutation transition matrices PA and PB. The two-locus sample configuration is denoted by n = (a, b, c), where a = (a1, …, aK) with ai being the number of gametes with allele i at locus A and unspecified alleles at locus B; b = (b1, …, bL) with bj being the number of gametes with unspecified alleles at locus A and allele j at locus B; and c = (cij) is a K × L matrix with cij being the multiplicity of gametes with allele i at locus A and allele j at locus B. We also define

a=i=1Kai,ci·=j=1Lcij,c=i=1Kj=1Lcij,b=j=1Lbj,c·j=i=1Kcij,n=a+b+c,

and use cA = (ci·)i∈[K] and cB = (c·j)j∈[L] to denote the marginal sample configurations of c restricted to locus A and locus B, respectively. Notice the distinction between the vectors a and b, which represent gametes with alleles specified at only one of the two loci, and the vectors cA and cB, which represent the one-locus marginal configurations of gametes with both alleles observed.

When we consider the ancestry of a sample backward in time, a gamete may undergo recombination between the two loci, with each of its two parents transmitting genetic material at only one of the two loci. We allow the nontransmitting locus to remain unspecified as we trace the ancestry further back in time.

Denote by q(a, b, c) the sampling probability of an ordered sample with configuration (a, b, c), again suppressing the dependence on parameters for ease of notation. Sampling is now from a two-dimensional Wright-Fisher diffusion with population allele frequencies x = (xij)i∈[K],j∈[L], evolving on the state space

ΔK×L={x=(xij)[0,1]K×L:i=1Kj=1Lxij=1}. (2.3)

As before, q(a, b, c) is specified by drawing an ordered sample from the population at stationarity: q(a, b, c) = Inline graphic[F(X; n)], where

F(x;n)=(i=1Kxi·ai)(j=1Lx·jbj)(i=1Kj=1Lxijcij), (2.4)

with xi·=j=1Lxij, and x·j=i=1Kxij. In the two-locus model with 0 ≤ ρ < ∞, the stationary distribution, and hence the sampling distribution, is not known in closed-form even when the mutation process is parent-independent. However, when ρ = ∞, the two loci become independent and q(a, b, c) is simply the product of the two marginal one-locus sampling distributions. More precisely, denoting the one-locus sampling distributions at A and B by qA and qB, respectively, we have

limρq(a,b,c)=qA(a+cA)qB(b+cB),

for all mutation models (Ethier, 1979). In particular, if mutation is parent-independent, then we do have a closed-form formula for q(a, b, c) when ρ = ∞, since from (2.2) we know that

qA(a)=1(θA)ai=1K(θAPiA)ai,andqB(b)=1(θB)bj=1L(θBPjB)bj. (2.5)

2.3. Asymptotic sampling formula

As mentioned in the introduction, although a closed-form formula for q(a, b, c) is not known for an arbitrary ρ, previously we (Jenkins and Song, 2009, 2010) were able to make progress by posing, for large ρ, an asymptotic expansion of the form

q(a,b,c)=q0(a,b,c)+q1(a,b,c)ρ+q2(a,b,c)ρ2+, (2.6)

where the coefficients qk(a, b, c), for all k ≥ 0, are independent of ρ. We summarize our previous results in the following theorem, specialized to the case of finite-alleles mutation, which is our interest here:

Theorem 2.1 (Jenkins and Song, 2009)

In the asymptotic expansion (2.6) of the neutral two-locus sampling formula, the zeroth order term is given by

q0(a,b,c)=qA(a+cA)qB(b+cB), (2.7)

and the first order term is given by

q1(a,b,c)=(c2)qA(a+cA)qB(b+cB)qB(b+cB)i=1K(ci·2)qA(a+cAei)qA(a+cA)j=1L(c·j2)qB(b+cBej)+i=1Kj=1L(cij2)qA(a+cAei)qB(b+cBej), (2.8)

where ei is a unit vector with a 1 at the ith entry and 0s elsewhere. Further-more, the second order term can be decomposed as

q2(a,b,c)=σ(a,b,c)+q2(a+cA,b+cB,0), (2.9)

where σ(a, b, c) is known analytically and q2(a, b, 0) satisfies the recursion relation

[a(a+θA1)+b(b+θB1)]q2(a,b,0)=i=1Kai(ai1)q2(aei,b,0)+j=1Lbj(bj1)q2(a,bej,0)+θAi=1Kait=1KPtiAq2(aei+et,b,0)+θBj=1Lbjt=1LPtjBq2(a,bej+et,0)+4i=1Kj=1Laibj[(a1)(b1)qA(a)qB(b)(b1)(ai1)qA(aei)qB(b)(a1)(bj1)qA(a)qB(bej)+(ai1)(bj1)qA(aei)qB(bej)], (2.10)

with boundary conditions q2(ei, 0, 0) = 0, q2(0, ej, 0) = 0, and q2(ei, ej, 0) = 0 for all i ∈ [K] and j ∈ [L].

The expression for σ(a, b, c) can be found in Jenkins and Song (2009) and we do not reproduce it here. Notice that q0(a, b, c) and q1(a, b, c) exhibit universality: their dependence on the model of mutation is subsumed entirely into the one-locus sampling distributions.

The proof of Theorem 2.1 used coalescent arguments. By considering the most recent event back in time in the coalescent process for the sample, it is possible to write down a recursion relation for the sampling distribution. In a two-locus, finite-alleles model, the appropriate recursion is a simple modification of the one introduced by Golding (1984) for the infinite-alleles model, also studied in detail by Ethier and Griffiths (1990). By substituting (2.6) into this recursion, after some lengthy algebraic manipulation one can obtain the expressions given in Theorem 2.1 [see Jenkins and Song (2010, 2009) for details].

3. Arbitrary-order asymptotic expansion

The approach described in Section 2.3 does not generalize easily. In what follows, we introduce a new approach based on the diffusion approximation. This new method is more transparent and more easily generalizable than the one used previously, and we illustrate this point by developing a method for computing the asymptotic expansion (2.6) to an arbitrary order.

3.1. Diffusion approximation of the two-locus model

Our approach is based on the diffusion process that is dual to the coalescent process. The generator for the 2-locus finite-alleles diffusion process is

=12i=1Kj=1L[k=1Kl=1Lxij(δikδjlxkl)xkl+θAk=1Kxkj(PkiAδik)+θBl=1Lxil(PljBδjl)+ρ(xi·x·jxij)]xij, (3.1)

where δik is the Kronecker delta. For notational convenience, henceforth where not specified otherwise the indices i and k are assumed to take value in [K], while the indices j and l are assumed to take value in [L].

In what follows, we change to a new set of variables that capture the decay of dependence between the two loci, an approach originally due to Ohta and Kimura (1969b,a). Specifically, the key quantity of interest is the following:

Definition 3.1

The linkage disequilibrium (LD) between allele i at locus A and allele j at locus B is given by

dij=xijxi·x·j.

The collection of (K + 1)(L + 1) − 1 new variables is

(x1·,,xK·;x·1,,x·L;d11,,dKL).

The diffusion is then constrained to the (KL−1)-dimensional simplex ΔK×L by imposing the conditions

i=1Kxi·=1;j=1Lx·j=1;i=1Kdij=0,j;j=1Ldij=0,i. (3.2)

3.2. Rescaling LD

Since we are interested in the large ρ limit, we expect each dij to be small. We introduce the rescaling dij=ρdij. The reason for this choice should become clear from equation (3.3) below; in the resulting generator, there should be a nontrivial interaction between recombination and genetic drift, i.e. they should both act on the fastest timescale. The leading order contribution to the generator, denoted below by L(2), has contributions from both of these biological processes if and only if we use this choice for ij. See Song and Song (2007) for another example of this rescaling. By substituting for the new variables in (3.1) and using (3.2) for extensive simplification, the generator can be expressed as

=12[ρL(2)+ρL(1)+L(0)+1ρL(1)], (3.3)

where the operators in (3.3) are given by

L(2)=i,j{xi·x·j[k,l(δikxk·)(δjlx·l)dkl]dij}dij,L(1)=i,j,k,l[2dij(δikxk·)(δjlx·l)δikδjldij+2dilxk·x·j]2dkldij,L(0)=i,j,k,ldijdkl2dkldij+2i,k,l[(δikxi·)dkldilxk·]2dklxi·+2j,k,l[(δjlx·j)dkldkjx·l]2dklx·j+i,kxi·(δikxk·)2xk·xi·+j,lx·j(δjlx·l)2x·lx·j+i,j[θAkdkj(PkiAδik)+θBldil(PljBδjl)2dij]dij+θA2i,kxk·(PkiAδik)xi·+θB2j,lx·l(PljBδjl)x·j,L(1)=2i,jdij2xi·x·j.

This generator extends that of Ohta and Kimura (1969a) from a (2 × 2)- to a (K × L)-allele model. Note that ours differs from that of Ohta and Kimura (1969a) by a factor of two; one unit of time corresponds to 2N (rather than N) generations in our convention.

Recall that our interest is in calculating the expectation at stationarity of the function F(x; n) shown in (2.4), which is now viewed as a function of

x=(x1·,,xK·;x·1,,x·L;d11,,dKL).

In the same way that the multiplicity matrix c represents multinomial samples from a population with frequencies (xij)i∈[K],j∈[L], we introduce an analogous matrix r = (rij)i∈[K],j∈[L] associated with the variables (ij)i∈[K],j∈[L]. We further define the marginal vectors rA = (ri·)i∈[K] and rB = (r·j)j∈[L], where ri· = Σj rij and r·j = Σi rij, analogous to cA and cB. In this notation, the function F(x; n) becomes

F(x;n)=(i=1Kxi·ai)(j=1Lx·jbj)(i=1Kj=1L[dijρ+xi·x·j]cij)=m=0c1ρm2rPm[i,j(cijrij)]G(m)(x;a+cArA,b+cBrB,r), (3.4)

where

G(m)(x;a,b,r)=(i=1Kxi·ai)(j=1Lx·jbj)(i=1Kj=1Ldijrij), (3.5)

and the inner summation in (3.4) is over all K × L matrices r of nonnegative integers whose entries sum to m:

Pm={rNK×L:i=1Kj=1Lrij=m}.

Note that only those matrices which form “subsamples” of c have nonzero coefficient in (3.4); i.e., 0 ≤ rijcij for all i and j.

3.3. The key algorithm

We now pose an asymptotic expansion for the expectation Inline graphic[G(m)(X̃; a, b, r)]:

E[G(m)(X;a,b,r)]=g0(m)(a,b,r)+g1(m)(a,b,r)ρ+g2(m)(a,b,r)ρ+, (3.6)

so that, using (3.4), the quantity of interest is given by q(a, b, c) = Inline graphic[F(X̃; n)]

q(a,b,c)=E[F(X;n)]=m=0crPm[i=1Kj=1L(cijrij)]u=0gu(m)(a+cArA,b+cBrB,r)ρ12(m+u). (3.7)

We also have the boundary conditions

q(ei,0,0)=πiA,q(0,ej,0)=πjB,q(ei,ej,0)=πiAπjB, (3.8)

where πA=(πiA)i[K] and πB=(πjB)j[L] are the stationary distributions of PA and PB, respectively.

Using equations (3.7) and (3.8), we can also assign boundary conditions for each gu(0)(a,b,0):

g0(0)(ei,0,0)=πiA,gu(0)(ei,0,0)=0,u1,g0(0)(0,ej,0)=πjB,gu(0)(0,ej,0)=0,u1,g0(0)(ei,ej,0)=πiAπjB,gu(0)(ei,ej,0)=0,u1. (3.9)

We have reduced the problem of computing an asymptotic expansion for q(a, b, c) to one of computing gu(m)(a,b,r) for each m and u. Consider arranging these quantities in a c×ℕ array, as illustrated in Figure 1. Refer to entries on the ℓth anti-diagonal, such that m + u = ℓ, as residing on the ℓth level. As is clear from (3.7), the contribution in the expansion for q(a, b, c) of order ρ−ℓ/2 is comprised of entries on level ℓ. For convenience, we define gu(m)(a,b,r)=0 if u < 0, or m < 0, or if any entry ai, bj, rij < 0. Then the following theorem, proved in Section 7.1, enables the level-wise computation of each gu(m):

Fig 1.

Fig 1

Computation of gu(m) for each m = 0, …, c, and u = 0, 1, …. When m > 0, the term gu(m) residing on level ℓ = m + u is determined by up to four entries on level ℓ − 2. This is illustrated for the example g3(2).

Theorem 3.1

The term gu(m)(a,b,r) in the right hand side of (3.6) is determined as follows.

  1. For m = 0 and u = 0, g0(0)(a,b,0)=qA(a)qB(b). (Recall that qA(a) and qB(b) are the respective one-locus sampling distributions at locus A and locus B.)

  2. For m > 0 and u ≥ 0, gu(m)(a,b,r) on level ℓ is determined by at most four entries on level ℓ − 2; these are gu(m2),gu1(m1),gu2(m), and gu3(m+1). This relationship is given explicitly [equation (7.2)] in Section 7.

  3. For m = 0 and u ≥ 1, gu(0)(a,b,0) on level ℓ is determined by gu1(1), also on level ℓ, and other similar terms gu(0)(a,b,0), where a′ ≤ a, b′ ≤ b. This relationship is given explicitly [equation (7.3)] in Section 7.

For odd levels (i.e., ℓ = 1, 3, 5, …), the above theorem implies the following vanishing result, which we prove in Section 7.2:

Corollary 3.1

If m + u = ℓ is odd, then gu(m)(a,b,r)=0, for all configurations (a, b, r).

Incidentally, Corollary 3.1 implies that only integral powers of ρ have nonzero coefficients in (3.7).

Given the entries on level ℓ − 2, Theorem 3.1 provides a method for computing each of the entries on level ℓ. They can be computed in any order, apart from the slight complication of (iii), which requires knowledge of gu1(1) as a prerequisite to gu(0). The expression for gu(0)(a,b,0) is only known recursively in a and b, and we do not have a closed-form solution for this recursion for u ≥ 4 and even. Equation (2.10) provides one example, which turns out to be the recursion for g4(0)(a,b,0). If the marginal one-locus sampling distributions are known, the complexity of computing gu(m)(a,b,r) for m > 0 does not depend on the sample configuration (a, b, r). In contrast, the complexity of computing gu(0)(a,b,0) depends on a and b, and the running time generally grows with sample size. However, in Section 6 we show that ignoring gu(0)(a,b,0) generally leads to little loss of accuracy in practice.

To illustrate the method, entries on the first two even levels are summarized in Table 1. These recapitulate part of the results given in Theorem 2.1. The last column of Table 1 gives the “contribution” to (2.6) from gu(m)(a,b,r) (for fixed u and m and summing over the relevant r). According to (3.7), this quantity is

Table 1.

Entries on levels ℓ = 0, 2 of the array ( gu(m)).

u m
gu(m)(a,b,r)
Contribution to (2.6)
0 0 0
E[iXi·aijX·jbj]
q0(a, b, c)

2 0 2 E[Xi·X·j(δikXk·)(δjlX·l)uXu·auvX·vbv], where r = eij + ekl q1(a, b, c)
1 1 0 0
2 0 0 0
rPm[i=1Kj=1L(cijrij)]gu(m)(a+cArA,b+cBrB,r). (3.10)

We have also checked that the total contribution from entries on level ℓ = 4 is equal to q2(a, b, c), as given in Theorem 2.1. We note in passing that Theorem 3.1 makes it transparent why q2(a, b, c) is not universal in the sense described in Section 2.3: expressions on level ℓ = 4 depend directly on L(0), which in turn depends upon the model of mutation. By contrast, the nonzero contribution to q1(a, b, c), for example, is determined by L(2), which does not depend on the model of mutation.

It is important to emphasize that gu(m)(a,b,r) is a function of the vectors a, b, the matrix r, and (implicitly) the parameters θA and θB. The relationships given in Theorem 3.1 are thus functional, and only need to be computed once. In other words, all of these arguments of gu(m) can remain arbitrary. It is not necessary to redo any of the algebraic computations for each particular choice of sample configuration, for example. Moreover, the solutions to each gu(m)(a,b,r) are expressed concisely in terms of the marginal one-locus sampling distributions qA and qB; this fact follows inductively from the solution for g0(0)(a,b,0). Unlike the method of Jenkins and Song (2010, 2009), the iterative procedure here is essentially the same at every step.

4. Partial sums, optimal truncation, and Padé approximants

In principle, the procedure described in the previous section provides a method of computing an arbitrary number of terms in the asymptotic expansion (2.6), for any sample configuration. Suppose the computation has been carried out up to level ℓ = 2M and consider the partial sum

qPS(M)(a,b,c)=q0(a,b,c)+q1(a,b,c)ρ++qM(a,b,c)ρM. (4.1)

Since we do not know its radius of convergence, we should be prepared for this sum to diverge eventually as M increases. An important question that we address in this section is: How many terms should we use to maximize the accuracy of the approximation?

4.1. Optimal truncation

As mentioned above, simply adding more and more terms to the asymptotic expansion may decrease the accuracy beyond a certain point. Optimal truncation is a rule of thumb for truncating the partial sum at a point that is expected to maximize its accuracy. More precisely, it is defined as follows.

Definition 4.1 (Optimal truncation rule)

Given the first M + 1 terms q0(a, b, c), q1(a, b, c), …, qM (a, b, c), in the asymptotic expansion, let M′ be the index such that |qM′(a, b, c)/ρM′| < |qM″ (a, b, c)/ρM″|, for all M″ ≠ M′, where M′, M″ ≤ M. Then, the optimal truncation rule (OTR) suggests truncating the sum at order M′:

qOTR(M)(a,b,c)=q0(a,b,c)+q1(a,b,c)ρ++qM(a,b,c)ρM.

The motivation for this rule is that the magnitude of the ith term in the expansion is an estimate of the magnitude of the remainder. More sophisticated versions of the OTR are available (e.g. Dingle, 1973, Chapter XXI), but for simplicity we focus on the definition given above.

There are two issues with the OTR. First, it minimizes the error only approximately, and so, despite its name, it is not be guaranteed to be optimal. For example, the magnitude of the first few terms in the series can behave very irregularly before a pattern emerges. Second, it may use only the first few terms in the expansion and discard the rest. As we discuss later, for some sample configurations and parameter values of interest, the OTR might truncate very early, even as early as M′ = 2. This is unrelated to the first issue, since the series may indeed begin to diverge very early. Below, we discuss a better approximation scheme with a provable convergence property.

4.2. Padé approximants

The key idea behind Padé approximants is to approximate the function of interest by a rational function. In contrast to the OTR, Padé approximants make use of all of the computed terms in the expansion, even when the expansion diverges rapidly. More precisely, the [U/V] Padé approximant of a function is defined as follows.

Definition 4.2 ([U/V ] Padé approximant)

Given a function f and two nonnegative integers U and V, the [U/V] Padé approximant of f is a rational function of the form

[U/V]f(x)=A0+A1x++AUxUB0+B1x++BVxV,

such that B0 = 1 and

f(x)[U/V]f(x)O(xU+V+1).

That is, the first U + V + 1 terms in a Maclaurin series of the Padé approximant [U/V]f (x) matches the first U + V + 1 terms in a Maclaurin series of f.

Our goal is to approximate the sampling distribution q(a, b, c) by the Padé approximant

qPadé[U/V](a,b,c)=[U/V]q(a,b,c)(1ρ), (4.2)

such that the first U + V + 1 terms in a Maclaurin series of [U/V]q(a,b,c)(1ρ) agrees with (4.1), where M = U + V. (In this notation, [U/V]q(a,b,c)(1ρ) is an implicit function of the mutation parameters.) As more terms in (4.1) are computed (i.e., as M increases), a sequence of Padé approximants can be constructed. This sequence often has much better convergence properties than (4.1) itself (Baker and Graves-Morris, 1996).

For a given M, there is still some freedom over the choice of U and V. As M increases, we construct the following “staircase” sequence of Padé approximants: [0/0], [0/1], [1/1], [1/2], [2/2], …. This scheme is motivated by the following lemma, proved in Section 7.3:

Lemma 4.1

Under a neutral, finite-alleles model, the sampling distribution q(a, b, c) is a rational function of 1/ρ, and the degree of the numerator is equal to the degree of the denominator.

This simple yet powerful observation immediately leads to a convergence result for the Padé approximants in the following manner:

Theorem 4.1

Consider a neutral, finite-alleles model. For every given two-locus sample configuration (a, b, c), there exists a finite nonnegative integer U0 such that for all U ≥ U0 and V ≥ U0, the Padé approximant qPadé[U/V](a,b,c) is exactly equal to q(a, b, c) for all ρ ≥ 0.

A proof of this theorem is provided in Section 7.4. Note that the staircase sequence is the “quickest” to reach the true sampling distribution q(a, b, c). Although Theorem 4.1 provides very strong information about the convergence of the Padé approximants, in practice U and V will have to be intractably large for such convergence to take place. The real value of Padé summation derives from the empirical observation that the approximants exhibit high accuracy even before they hit the true sampling distribution. The staircase sequence also has the advantage that it exhibits a continued fraction representation, which enables their construction to be made computationally more efficient (Baker and Graves-Morris, 1996, Chapter 4).

5. Incorporating selection

We now incorporate a model of diploid selection into the results of Section 3. Suppose that a diploid individual is composed of two haplotypes (i, j), (k, l) ∈ [K]×[L], and that, without loss of generality, selective differences exist at locus A. We denote the fitness of this individual by 1+sikA, and consider the diffusion limit in which σikA=4NsikA is held fixed for each i, k ∈ [K] as N → ∞.

In what follows, we use a subscript “s” to denote selectively nonneutral versions of the quantities defined above. Results will be given in terms of the nonneutral one-locus sampling distribution qsA at locus A and the neutral one-locus sampling distribution qB at locus B.

5.1. One-locus sampling distribution under selection

For the infinite-alleles model, one-locus sampling distributions under symmetric selection have been studied by Grote and Speed (2002), Handa (2005), and Huillet (2007). In the case of a parent-independent finite-alleles model, the stationary distribution of the one-locus selection model is known to be a weighted Dirichlet distribution (Wright, 1949):

πsA(x)=D(i=1KxiθAPiA1)exp(12i=1Kk=1KσikAxixk),

where x ∈ ΔK [see (2.1)] and D is a normalizing constant. The one-locus sampling distribution at stationarity is then obtained by drawing a multinomial sample from this distribution:

qsA(a)=Es[i=1KXiai]. (5.1)

Thus, under a diploid selection model with parent-independent mutation, we are able to express the one-locus sampling distribution at least in integral form. There are two integrals that need to be evaluated: one for the expectation and the other for the normalizing constant. In practice, these integrals must be evaluated using numerical methods (Buzbas, Joyce and Abdo, 2009).

5.2. Two-locus sampling distribution with one locus under selection

To incorporate selection into our framework, we first introduce some further notation.

Definition 5.1

Given two-locus population-wide allele frequencies x ∈ ΔK×L [see (2.3)], the mean fitness of the population at locus A is

σ¯A(xA)=i,kσikAxi·xk·.

Selection has an additive effect on the generator of the process, which is now given by

s=+12i,jxij[kσikAxk·σ¯A(xA)]xij,

where ℒ is the generator (3.1) of the neutral diffusion process [see, for example, Ethier and Nagylaki (1989)]. Rewriting ℒs in terms of the LD variables and then rescaling dij as before, we obtain

s=+12[ρLs(2)+ρLs(1)+Ls(0)+1ρLs(1)],

where ℒ̃ is as in (3.3), and the new contributions are

Ls(2)=0,Ls(1)=0,Ls(0)=i,j[dij(kσikAxk·σ¯A(xA))k,kdkjσkkAxi·xk·]dij+ixi·(kσikAxk·σ¯A(xA))xi·,Ls(1)=i,j,kdijσikAxk·x·j.

In addition, we replace the asymptotic expansion (3.6) with

Es[G(m)(X;a,b,r)]=h0(m)(a,b,r)+h1(m)(a,b,r)ρ+h2(m)(a,b,r)ρ+,

the corresponding expansion for the expectation of G(m)(X̃; a, b, r) with respect to the stationary distribution under selection at locus A. Finally, the boundary conditions (3.9) become the following (Fearnhead, 2003):

h0(0)(ei,0,0)=φiA,hu(0)(ei,0,0)=0,u1,h0(0)(0,ej,0)=πjB,hu(0)(0,ej,0)=0,u1,h0(0)(ei,ej,0)=φiAπjB,hu(0)(ei,ej,0)=0,u1, (5.2)

where φA=(φiA)i[K] is the stationary distribution for drawing a sample of size one from a single selected locus.

With only minor modifications to the arguments of Section 3, each term in the array for hu(m) can be computed in a manner similar to Theorem 3.1. In particular, entries on odd levels are still zero. Furthermore, as proved in Section 7.5, we can update Theorem 2.1 as follows:

Theorem 5.1

Suppose locus A is under selection, while locus B is selectively neutral. Then, in the asymptotic expansion (2.6) of the two-locus sampling distribution, the zeroth and first order terms are given by (2.7) and (2.8), respectively, with qsA(a) in place of qA(a). Furthermore, the second order term (2.9) may now be decomposed into two parts:

q2,s(a,b,c)=q2,s(a+cA,b+cB,0)+σs(a,b,c), (5.3)

where σs(a, b, c) is given by a known analytic expression and q2,s(a, b, 0) satisfies a slightly modified version of the recursion relation (2.10) for q2(a, b, 0). (These expressions are omitted for brevity.)

We remark that the above arguments can be modified to allow for locus B also to be under selection, provided the selection is independent, with no epistatic interactions, and provided one can substitute φjB for πjB in (5.2). Then, one could also simply substitute qsB(b) for qB(b) in the expressions for q0(a, b, c) and q1(a, b, c). However, for the boundary conditions (5.2) to be modified in this way we would need to extend the result of Fearnhead (2003) to deal with two nonneutral loci, and we are unaware of such a result in the literature.

6. Empirical study of accuracy

In this section, we study empirically the accuracy of the approximate sampling distributions discussed in Section 4.

6.1. Computational details

As discussed earlier, a major advantage of our technique is that, given the first M terms in the asymptotic expansion (2.6), the (M + 1)th term can be found and has to be computed only once. There are two complications to this statement: First, as mentioned in the discussion following Theorem 3.1, the Mth order term qM for M ≥ 2 has a contribution (namely, g2M(0)(a,b,0)) that is not known in closed form, and is only given recursively. (Recall that the M = 1 case is an exception, with g2(0)(a,b,0)=0 for all (a, b, 0).) In Jenkins and Song (2009), it was observed that the contribution of g4(0)(a,b,0) to q2(a, b, c) is generally very small, but that its burden in computational time increases with sample size. Extrapolating this observation to higher order terms, we consider making the following approximation:

Approximation 6.1

For all M ≥ 2, assume

g2M(0)(a,b,0)0,

for all configurations (a, b, 0).

As we show presently, adopting this approximation has little effect on the accuracy of asymptotic sampling distributions. In what follows, we use the symbol “°” to indicate when the above approximation is employed. For example, the partial sum qPS(M)(a,b,c) in (4.1) becomes q˚PS(M)(a,b,c) under Approximation 6.1.

Upon making the above approximation, it is then possible to construct a closed-form expression for each subsequent term M (a, b, c). However, there is a second issue: Given the effort required to reach the complicated expression for 2(a, b, c) (Jenkins and Song, 2009), performing the computation by hand for M > 2 does not seem tractable. Symbolic computation using computer software such as Mathematica is a feasible option, but we defer this for future work. Here, we are interested in comparing the accuracy of asymptotic sampling distributions with the true likelihood. Therefore, we have implemented an automated numerical computation of each subsequent term in the asymptotic expansion, for a given fixed sample configuration and fixed mutation parameters. For the samples investigated below, this did not impose undue computational burden, even when repeating this procedure across all samples of a given size. Exact numerical computation of the true likelihood is possible for only small sample sizes (say, up to thirty), so we restrict our study to those cases.

For simplicity, we assume in our empirical study that all alleles are selectively neutral. Furthermore, we assume a symmetric, PIM model so that PA=PB=(1/21/21/21/2), and take θA = θB = 0.01. This is a reasonable approximation for modeling neutral single nucleotide polymorphism (SNP) data in humans (e.g. McVean, Awadalla and Fearnhead, 2002). For the PIM model, recall that the marginal one-locus sampling distributions are available in closed-form, as shown in (2.5).

6.2. Rate of convergence: an example

To compare the convergence of the sequence of partial sums (4.1) with that of the sequence of Padé approximants (4.2), we re-examine in detail an example studied previously. The sample configuration for this example is a = b = 0, c=(10721). In Jenkins and Song (2009), we were able to compute the first three terms in the asymptotic expansion, obtaining the partial sum qPS(2)(a,b,c). Applying the new method described in this paper, we computed qPS(M)(a,b,c) for M ≤ 11 (including the recursive terms gu(0)(a,b,0) discussed above), and also the corresponding staircase Padé approximants qPadé[U/V](a,b,c). Results are illustrated in Figure 2, in which we compare various approximations of the likelihood curve for ρ with the true likelihood curve. Here, the likelihood of a sample is defined simply as its sampling distribution q(a, b, c) treated as a function of ρ, with θA and θB fixed at 0.01.

Fig 2.

Fig 2

Likelihood curves for ρ, comparing different levels of truncation, for the sample a = b = 0, c=(10721). A symmetric PIM model with θA = θB = 0.01 is assumed. The true likelihood is shown as a thick black line. Approximate likelihood curves for various levels of truncation, M = 0, 1, …, 11 are shown as thinner gray lines. (a) Partial sums qPS(M), labeled by M. The bottom row of indices records M′, the level of truncation in qOTR(11)(a,b,c) recommended by the OTR. The row above records the actual level of truncation that minimizes the unsigned relative error. (b) Staircase Padé approximants qPadé[U/V], some labeled by [U/V]. To the naked eye, qPadé[U/V] for most [U/V] are indistinguishable from the true likelihood curve.

Figure 2(a) exhibits a number of features which we also observed more generally for many other samples. For fixed ρ in the range illustrated, the sequence ( qPS(0),qPS(1),qPS(2),) of partial sums diverges eventually, and, for many realistic choices of ρ, this divergence can be surprisingly early. Arguably the best overall fit in the figure is qPS(2), though for ρ ≥ 70 good accuracy is maintained by qPS(M) for all 1 ≤ M ≤ 10. Divergence is extremely rapid if we add any further terms; witness the curve for qPS(11). Of course, in real applications the true likelihood will be unavailable and we might rely on the aforementioned optimal truncation rule to guide the truncation point. Here, it performs reasonably well, correctly picking the most accurate index across most of the range [compare the bottom two rows of indices in Figure 2(a)].

In contrast, Figure 2(b) shows that there is much less risk in using “too many” terms in constructing the Padé approximants. They approximate the true likelihood very accurately and very quickly; to the naked eye, Padé approximants qPadé[U/V] for most [U/V] are indistinguishable from the true likelihood curve. Indeed, this example suggests that there is very little gain in accuracy beyond qPadé[0/1], but that there is no significant loss beyond it either. (It should be pointed out, however, that achievement of such high accuracy so early in the sequence of approximants does not seem to be a common occurrence across samples. Usually, several more terms are required; see next section for further details.)

There is one further important observation to be made regarding Padé approximants. There is nothing to prevent the polynomial in the denominator from having positive real roots, thus creating singularities. This is indeed observed once in Figure 2(b); qPadé[2/3] exhibits a singularity at ρ = 0.9. To examine this behavior further, in Table 2 we tabulate the nonnegative real roots of the numerator and denominator of each approximant in the staircase sequence up to [10/10]. We see some interesting patterns: (i) The total number of nonnegative real roots does not seem to grow with M. (ii) Roots in the denominator are almost invariably accompanied by a nearby root in the numerator, and their proximity is usually extremely close, with agreement to several decimal places. (iii) Pairs of roots appear transiently; the roots of one approximant in the sequence provide almost no information regarding the next. Such pairs of roots are known as defects, and are an inevitable feature of Padé approximants (Baker and Graves-Morris, 1996, p48). Provided we anticipate them, defects need not act as a serious obstacle. Because of the proximity of the two roots in a pair, they almost behave like removable singularities. In particular, Padé approximants are still well-behaved outside a reasonably narrow interval around the defect, and can still approximate the likelihood accurately. In light of these observations, henceforth we use the following simple heuristic for dealing with defects.

Table 2.

Nonnegative, real roots in the numerator and denominator of the [U/V] Padé approximants for the sample a = b = 0, c=(10721).

[U/V] Roots of numerator Roots of denominator

[0/0]
[0/1] 0.000
[1/1] 4.871
[1/2] 0.000
[2/2]
[2/3] 0.000 0.912
[3/3]
[3/4] 0.000
[4/4]
[4/5] 0.000
[5/5]
[5/6] 0.000 8474538.140 8474538.140
[6/6]
[6/7] 0.000 306.846 306.846
[7/7]
[7/8] 0.000
[8/8] 82.033 82.032
[8/9] 0.000 77.366 0.284 77.364
[9/9] 82.121 4412.751 82.120 4412.751
[9/10] 0.000
[10/10] 5.543 4.252

Definition 6.1 (Defect heuristic)

Suppose we are interested in approximating the likelihood curve at a particular value ρ0 and have the resources to compute up to M in the partial sum (4.1). Then proceed as follows.

  1. Initialize with M″ = M.

  2. Construct the [U/V] Padé approximant in the staircase sequence, where U + V = M″.

  3. If it exhibits a root in the interval (ρ0 − ε, ρ0 + ε) ∩ [0, ∞), either in its numerator or denominator, then decrement M″ by one and go to step 2, otherwise use this approximant.

Choice of threshold ε involves a trade-off between the disruption caused by the nearby defect and the loss incurred by reverting to the previous Padé approximant. Throughout the following section, we employ this heuristic with ε = 25, which seemed to work well.

6.3. Rate of convergence: empirical study

To investigate to what extent the observations of Section 6.2 hold across all samples, we performed the following empirical study. Following Jenkins and Song (2009), we focused on samples of the form (0, 0, c) for which all alleles are observed at both loci, and measured the accuracy of the partial sum (4.1) by the unsigned relative error

ePS(M)(0,0,c)=|qPS(M)(0,0,c)q(0,0,c)q(0,0,c)|×100%.

An analogous definition can be made for ePadé(M), the unsigned relative error of the staircase Padé approximants qPadé[U/V], where U = ⌊M/2⌋ and V = ⌈M/2⌉. When Approximation 6.1 is additionally used, the respective unsigned errors are denoted e˚PS(M) and e˚Padé(M). These quantities are implicit functions of the parameters and of the sample configuration. In our study, we focused on sufficiently small sample sizes so that the true sampling distribution q(a, b, c) could be computed. Specifically, we computed q(0, 0, c) for all samples of a given size c using the method described in Jenkins and Song (2009). By weighting samples according to their sampling probability, we may compute the distributions of ePS(M) and ePadé(M), and similarly the distributions of e˚PS(M) and e˚Padé(M). Table 3 summarizes the cumulative distributions of e˚PS(M) and e˚Padé(M) for ρ = 50, across all samples of size c = 20 that are dimorphic at both loci. The corresponding table for ePS(M) and ePadé(M) was essentially identical (not shown), with agreement usually to two decimal places. This confirms that utilizing Approximation 6.1 is justified.

Table 3.

Cumulative distribution Φ(x) = ℙ(e˚(M) < x%) (where e˚ (M) denotes either e˚PS(M) or e˚Padé(M)) of the unsigned relative error of the partial sum qPS(M) and the corresponding Padé approximants, for all samples of size 20 dimorphic at both loci. Here, ρ = 50, and Approximation 6.1 is used.

M Type of sum Φ (1) Φ(5) Φ(10) Φ(25) Φ(50) Φ(100)
0 PS 0.49 0.56 0.63 0.81 0.98 1.00
Padé 0.49 0.56 0.63 0.81 0.98 1.00

1 PS 0.51 0.74 0.87 0.99 1.00 1.00
Padé 0.59 0.77 0.84 0.91 0.98 0.99

2 PS 0.59 0.87 0.92 1.00 1.00 1.00
Padé 0.77 0.97 0.98 0.99 1.00 1.00

3 PS 0.57 0.86 0.97 1.00 1.00 1.00
Padé 0.91 0.96 0.98 0.99 1.00 1.00

4 PS 0.45 0.62 0.87 0.98 0.98 1.00
Padé 0.95 0.99 1.00 1.00 1.00 1.00

5 PS 0.30 0.50 0.61 0.76 0.79 0.97
Padé 0.98 1.00 1.00 1.00 1.00 1.00

10 PS 0.00 0.02 0.03 0.07 0.08 0.11
Padé 1.00 1.00 1.00 1.00 1.00 1.00

OTR 0.25 0.36 0.65 0.89 0.90 1.00

These two values were misquoted in the text of Jenkins and Song (2009, p. 1093); this table corrects them.

Table 3 illustrates that the observations of Section 6.2 hold much more generally, as described below:

  1. The error e˚PS(M) for partial sums is not a monotonically decreasing function of M; i.e., the accuracy of q˚PS(M) improves as one adds more terms up to a certain point, before quickly becoming very inaccurate.

  2. Empirically, the actual optimal truncation point for the parameter settings we considered is at M′ = 2 or M′ = 3, which perform comparably. Moreover, both provide consistently higher accuracy than employing the OTR, which is a serious issue when we wish to use this rule without external information about which truncation point really is the most accurate.

  3. Overall, using Padé approximants is much more reliable. Note that the accuracy of Padé approximants continues to improve as we incorporate more terms. For a sample drawn at random, the probability that its Padé approximant is within 1% of the true sampling distribution is 1.00, compared to 0.59 or 0.57 for truncating the partial sums respectively at M′ = 2 or M′ = 3, and only 0.25 for using the OTR.

For the remainder of this section, we focus on the accuracy of the staircase Padé approximants. It was shown in Jenkins and Song (2009) that the accuracy of the partial sum qPS(2) increases with ρ, but (perhaps surprisingly) decreases with increasing sample size. In Table 4 and Table 5, we address the same issue for the Padé approximant. Table 4 confirms that accuracy increases with ρ, as one might expect. Furthermore, it is also the case that substantial accuracy is achievable even for moderate values of ρ (say, ρ = 25), provided that sufficiently many terms are utilized in the construction of the Padé approximant. For example, when M = 5 the probability that the Padé approximant of a sample drawn at random is within 5% of the truth is 0.94. Also very encouraging is the pattern shown in Table 5. Provided that sufficiently many terms are used, the accuracy of the Padé approximant is only slightly affected by looking at larger sample sizes. For example, when M = 5 the probability that the Padé approximant of a randomly drawn sample of size 30 is within 5% of the truth is 0.99, compared with 1.00 for a sample of size 20. This loss in accuracy is much less severe than the corresponding loss in accuracy of the partial sums; for qPS(M), the highest accuracy is achieved for M = 2, in which case which the corresponding loss in accuracy is from 0.87 when c = 20, to 0.70 when c = 30.

Table 4.

Effect of ρ on the cumulative distribution Φ(x)=P(e˚Padé(M)<x%) of the unsigned relative error of the Padé approximants, for all samples of size 20 dimorphic at both loci.

M ρ Φ(1) Φ(5) Φ(10) Φ(25) Φ(50) Φ(100)
0 25 0.39 0.52 0.58 0.69 0.84 1.00
50 0.49 0.56 0.63 0.81 0.98 1.00
100 0.50 0.61 0.72 0.97 1.00 1.00
200 0.54 0.72 0.95 0.99 1.00 1.00

1 25 0.51 0.62 0.75 0.85 0.94 0.96
50 0.59 0.77 0.84 0.91 0.98 0.99
100 0.74 0.91 0.95 0.98 0.99 1.00
200 0.90 0.98 0.99 1.00 1.00 1.00

2 25 0.59 0.82 0.91 0.94 0.95 0.97
50 0.77 0.97 0.98 0.99 1.00 1.00
100 0.95 1.00 1.00 1.00 1.00 1.00
200 1.00 1.00 1.00 1.00 1.00 1.00

3 25 0.64 0.91 0.95 0.96 0.98 1.00
50 0.91 0.96 0.98 0.99 1.00 1.00
100 0.99 1.00 1.00 1.00 1.00 1.00
200 1.00 1.00 1.00 1.00 1.00 1.00

4 25 0.83 0.96 0.99 0.99 1.00 1.00
50 0.95 0.99 1.00 1.00 1.00 1.00
100 1.00 1.00 1.00 1.00 1.00 1.00
200 1.00 1.00 1.00 1.00 1.00 1.00

5 25 0.82 0.94 0.98 0.99 1.00 1.00
50 0.98 1.00 1.00 1.00 1.00 1.00
100 1.00 1.00 1.00 1.00 1.00 1.00
200 1.00 1.00 1.00 1.00 1.00 1.00

10 25 0.97 0.99 0.99 1.00 1.00 1.00
50 1.00 1.00 1.00 1.00 1.00 1.00
100 1.00 1.00 1.00 1.00 1.00 1.00
200 1.00 1.00 1.00 1.00 1.00 1.00

Table 5.

Effect of sample size c on the cumulative distribution Φ(x)=P(e˚Padé(M)<x%) of the unsigned relative error of the Padé approximants, for all samples of size c dimorphic at both loci. Here ρ = 50.

M c Φ(1) Φ(5) Φ(10) Φ(25) Φ(50) Φ(100)
0 10 0.58 0.67 0.72 0.96 1.00 1.00
20 0.49 0.56 0.63 0.81 0.98 1.00
30 0.44 0.50 0.58 0.72 0.91 1.00

1 10 0.72 0.90 0.94 0.97 1.00 1.00
20 0.59 0.77 0.84 0.91 0.98 0.99
30 0.53 0.69 0.76 0.85 0.95 0.97

2 10 0.94 1.00 1.00 1.00 1.00 1.00
20 0.77 0.97 0.98 0.99 1.00 1.00
30 0.62 0.89 0.95 0.98 0.99 0.99

3 10 0.98 1.00 1.00 1.00 1.00 1.00
20 0.91 0.96 0.98 0.99 1.00 1.00
30 0.81 0.92 0.94 0.98 0.99 1.00

4 10 1.00 1.00 1.00 1.00 1.00 1.00
20 0.95 0.99 1.00 1.00 1.00 1.00
30 0.90 0.99 0.99 1.00 1.00 1.00

5 10 1.00 1.00 1.00 1.00 1.00 1.00
20 0.98 1.00 1.00 1.00 1.00 1.00
30 0.86 0.99 0.99 1.00 1.00 1.00

10 10 1.00 1.00 1.00 1.00 1.00 1.00
20 1.00 1.00 1.00 1.00 1.00 1.00
30 0.99 1.00 1.00 1.00 1.00 1.00

7. Proofs

In this section, we provide proofs of the results presented earlier.

7.1. Proof of Theorem 3.1

For an infinitesimal generator Inline graphicof a diffusion process on the state space Ω and a twice continuously differentiable function h: Ω → ℝ with compact support, it is well known that

E[Ah(X)]=0,

where expectation is with respect to the stationary distribution of X. Apply this result to the generator ℒ̃ shown in (3.3) and monomial G(m)(x̃; a, b, r) shown in (3.5). This provides a linear equation relating the expectations Inline graphic[G(m+1)(X̃; a′, b′, r′)], Inline graphic[G(m)(X̃; a′, b′, r′)], Inline graphic[G(m−1)(X̃; a′, b′, r′)], and Inline graphic[G(m−2)(X̃; a′, b′, r′)], each appearing with various different arguments (a′, b′, r′) depending on (a, b, r); we omit the simple but algebraically lengthy details. Now, for these four choices of m we substitute the proposed expansion (3.6). If m > 0, then compare the coefficients of ρ1u2 in the resulting expression; if m = 0, then compare the coefficients of ρu2. We then obtain the following:

  1. If m = 0 and u = 0, then the resulting expression is
    [a(a1+θA)+b(b1+θB)]g0(0)(a,b,0)=iai(ai1)g0(0)(aei,b,0)+jbj(bj1)g0(0)(a,bej,0)+θAi,kaiPkiAg0(0)(aei+ek,b,0)+θBj,lbjPljBg0(0)(a,bej+el,0), (7.1)
    with boundary conditions given by (3.9). This is the sum of two copies of a familiar recursion (Griffiths and Tavaré, 1994) for the sampling distribution of a single locus, one for locus A and one for locus B. In our notation the solution is therefore
    g0(0)(a,b,0)=qA(a)qB(b).
  2. If m > 0, then the resulting expression is
    mgu(m)(a,b,r)=i,j{rij(rij1)gu(m2)(a+ei,b+ej,r2eij)lrij(rilδjl)gu(m2)(a+ei,b+ej+el,reijeil)krij(rkjδik)gu(m2)(a+ei+ek,b+ej,reijekj)+k,lrij(rklδikδjl)gu(m2)(a+ei+ek,b+ej+el,reijekl)+rij(rij1)gu1(m1)(a,b,reij)2rij(ri·1)gu1(m1)(a,b+ej,reij)2rij(r·j1)gu1(m1)(a+ei,b,reij)+2k,lrkj(rilδikδjl)gu1(m1)(a+ek,b+el,rekjeil+eij)+2(m1)rijgu1(m1)(a+ei,b+ej,reij)}+iai(ai+2ri·1)gu2(m)(aei,b,r)+jbj(bj+2r·j1)gu2(m)(a,bej,r)2i,jkairkjgu2(m)(aei+ek,b,rekj+eij)2i,jlbjrilgu2(m)(a,bej+el,reil+eij)+θAi,kPkiA[aigu2(m)(aei+ek,b,r)+jrijgu2(m)(a,b,reij+ekj)]+θBj,lPljB[bjgu2(m)(a,bej+el,r)+irijgu2(m)(a,b,reij+eil)][(a+m)(a+m+θA1)+(b+m)(b+m+θB1)m(m3)]gu2(m)(a,b,r),+2i,jaibjgu3(m+1)(aei,bej,r+eij). (7.2)

    Equation (7.2) relates gu(m)(a,b,r) to the known expressions gu(m2),gu1(m1),gu2(m), and gu3(m+1), as claimed.

  3. If m = 0 and u ≥ 1, then the resulting expression is
    [a(a+θA1)+b(b+θA1)]gu(0)(a,b,0)=iai(ai1)gu(0)(aei,b,0)+jbj(bj1)gu(0)(a,bej,0)+θAi,kaiPkiAgu(0)(aei+ek,b,0)+θBj,lbjPljBgu(0)(a,bej+el,0)+2i,jaibjgu1(1)(aei,bej,eij), (7.3)

    with boundary conditions (3.9). Hence, this provides a recursion relation for gu(0)(a,b,0) when gu1(1) is known.

7.2. Proof of Corollary 3.1

For the base case ℓ = 1, note that if m = 1 and u = 0 then (7.2) simplifies to

g0(1)(a,b,r)=0,

and hence if m = 0 and u = 1 then (7.3) simplifies to

[a(a+θA1)+b(b+θA1)]g1(0)(a,b,0)=iai(ai1)g1(0)(aei,b,0)+jbj(bj1)g1(0)(a,bej,0)+θAi,kaiPkiAg1(0)(aei+ek,b,0)+θBj,lbjPljBg1(0)(a,bej+el,0), (7.4)

with boundary conditions (3.9). This has solution

g1(0)(a,b,0)=0,

which is unique (since q(a, b, c) is unique). This completes ℓ = 1. Now suppose inductively that gu(m)(a,b,r)=0 for every m, u such that m + u = ℓ − 2 where ℓ is a fixed odd number greater than 1. Then for m, u such that m + u = ℓ, (7.2) becomes

gu(m)(a,b,r)=0,

as required.

7.3. Proof of Lemma 4.1

In what follows, define the length of a sample configuration (a, b, c) to be a + b + 2c. Under a neutral, finite-alleles model, the probability of a sample with length δ satisfies a closed system of equations [e.g., see equation (5) of Jenkins and Song (2009)] which can be expressed in matrix form:

Mq=v,

where q is a vector composed of the probabilities of samples of length less than or equal to δ, v is a constant vector of the same dimension as q, and M is an invertible matrix (since the solution to this equation is unique). The entries of M and v are rational functions of ρ, and hence q = M−1v is a vector each of whose entries is a rational function of ρ.

Let U0 denote the degree of the numerator, and V0 the degree of the denominator. If U0 > V0, then q(a, b, c) becomes unbounded as ρ → ∞, while if V0 > U0 then q(a, b, c) → 0 as ρ → ∞. But we know that q(a, b, c) is a probability, and hence bounded. Moreover, it has support over all samples of a fixed size, since we assume that PA and PB are irreducible. Thus, to ensure limρ→∞ q(a, b, c) ∈ (0, 1) we must have U0 = V0. By a similar argument as ρ → 0, we must have that the coefficients of ρ0 are nonzero both in the numerator and in the denominator. We can therefore divide the numerator and denominator by ρU0 to obtain a rational function of 1/ρ whose degree in the numerator and denominator are both U0 (= V0).

7.4. Proof of Theorem 4.1

This is an application of Theorem 1.4.4 of Baker and Graves-Morris (1996), which we spell out for completeness. By Lemma 4.1, q(a, b, c) is a rational function of 1/ρ and is analytic at ρ = ∞ with Taylor series (2.6). Denote the degree of its numerator and denominator by U0. Then, q(a, b, c) has U0 + U0 + 1 independent coefficients determined by the first U0 + U0 + 1 terms of its Taylor series expansion. Thus, provided UU0 and VU0, by the definition of the [U/V] Padé approximant it must coincide uniquely with q(a, b, c).

7.5. Proof of Theorem 5.1

This is simply an application of Theorem 3.1 applied to the generator for the diffusion under selection, s, rather than ℒ̃, and so we just summarize the procedure.

The change in generator results in slight modifications to the relationships between the gu(m)(a,b,r), in order to obtain the relationships between the hu(m)(a,b,r) for each m and u:

  1. h0(0)(a,b,0) satisfies (7.1) (replacing each g0(0) with h0(0)), but with extra terms
    +i,kai[σikh0(0)(a+ek,b,0)kσkkAh0(0)(a+ek+ek,b,0)],
    on the right-hand side. The solution is
    h0(0)(a,b,0)=qsA(a)qB(b).
  2. For m > 0, h0(0)(a,b,0) satisfies (7.2) but with extra terms
    +i,k(ai+ri·)σikAhu2(m)(a+ek,b,r)(a+m)k,kσkkAhu2(m)(a+ek+ek,b,r)i,j,k,krijσkkAhu2(m)(a+ei+ek,b,reij+ekj) (7.5)

    on the right-hand side.

  3. For m = 0 and u ≥ 1, h0(0)(a,b,0) satisfies (7.2) but with extra terms
    +i,k[aiσikAhu(0)(a+ek,b,0)aσikAhu(0)(a+ei+ek,b,0)]+i,j,kbjσikAhu1(1)(a+ek,bej,eij),

    on the right-hand side.

Using these equations to evaluate hu(m)(a,b,r) on levels ℓ = 0, 1, …, 4 provides expressions for the nonneutral versions of q0(a, b, c), q1(a, b, c), and q2(a, b, c). Those for q0(a, b, c) and q1(a, b, c) in terms of the relevant one-locus sampling distributions are unchanged, while the new generator makes some minor modifications to the expression for q2(a, b, c). The analytic part of this term, σs(a, b, c), is easily calculated from h0(4),h1(3),h2(2), and h3(1),while the recursive part, q2,s(a + cA, b + cB, 0) follows from h4(0).

Acknowledgments

We gratefully acknowledge Anand Bhaskar for implementing the algorithm stated in Theorem 3.1 and for checking some of our formulas. We also thank Matthias Steinrücken and Paul Fearnhead for useful discussion.

Contributor Information

Paul A. Jenkins, Email: pauljenk@eecs.berkeley.edu, Computer Science Division, University of California, Berkeley, Berkeley, CA 94720, Berkeley USA.

Yun S. Song, Email: yss@stat.berkeley.edu, Department of Statistics and Computer Science Division, University of California, Berkeley, CA 94720, USA.

References

  1. Baker GA, Graves-Morris P. Padé Approximants. 2. Cambridge University Press; 1996. [Google Scholar]
  2. Buzbas EO, Joyce P, Abdo Z. Estimation of selection intensity under overdominance by Bayesian methods. Statistical Applications in Genetics and Molecular Biology. 2009;8:Article 32. doi: 10.2202/1544-6115.1466. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Dingle RB. Asymptotic expansions: Their derivation and interpretation. Academic Press; New York: 1973. [Google Scholar]
  4. Ethier SN. A limit theorem for two-locus diffusion models in population genetics. Journal of Applied Probability. 1979;16:402–408. [Google Scholar]
  5. Ethier SN, Griffiths RC. On the two-locus sampling distribution. Journal of Mathematical Biology. 1990;29:131–159. [Google Scholar]
  6. Ethier SN, Nagylaki T. Diffusion approximations of the two-locus Wright-Fisher model. Journal of Mathematical Biology. 1989;27:17–28. doi: 10.1007/BF00276078. [DOI] [PubMed] [Google Scholar]
  7. Ewens WJ. The sampling theory of selectively neutral alleles. Theoretical Population Biology. 1972;3:87–112. doi: 10.1016/0040-5809(72)90035-4. [DOI] [PubMed] [Google Scholar]
  8. Fearnhead P. Haplotypes: the joint distribution of alleles at linked loci. Journal of Applied Probability. 2003;40:505–512. [Google Scholar]
  9. Golding GB. The sampling distribution of linkage disequilibrium. Genetics. 1984;108:257–274. doi: 10.1093/genetics/108.1.257. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Griffiths RC, Tavaré S. Simulating probability distributions in the coalescent. Theoretical Population Biology. 1994;46:131–159. [Google Scholar]
  11. Grote M, Speed T. Approximate Ewens formulae for symmetric overdominance selection. Annals of Applied Probability. 2002;12:637–663. [Google Scholar]
  12. Handa K. Sampling Formulae for Symmetric Selection. Electronic Communications in Probability. 2005;10:223–234. [Google Scholar]
  13. Hudson RR. Two-locus sampling distributions and their application. Genetics. 2001;159:1805–1817. doi: 10.1093/genetics/159.4.1805. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Huillet T. Ewens sampling formulae with and without selection. Journal of Computational and Applied Mathematics. 2007;206:755–773. [Google Scholar]
  15. Jenkins PA, Song YS. Closed-form two-locus sampling distributions: accuracy and universality. Genetics. 2009;183:1087–1103. doi: 10.1534/genetics.109.107995. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Jenkins PA, Song YS. An asymptotic sampling formula for the coalescent with recombination. Annals of Applied Probability. 2010;20:1005–1028. doi: 10.1214/09-AAP646. (Technical Report 775, Department of Statistics, University of California, Berkeley, 2009) [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. McVean G, Awadalla P, Fearnhead P. A coalescent-based method for detecting and estimating recombination from gene sequences. Genetics. 2002;160:1231–1241. doi: 10.1093/genetics/160.3.1231. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. McVean GAT, Myers SR, Hunt S, Deloukas P, Bentley DR, Donnelly P. The fine-scale structure of recombination rate variation in the human genome. Science. 2004;304:581–584. doi: 10.1126/science.1092500. [DOI] [PubMed] [Google Scholar]
  19. Ohta T, Kimura M. Linkage disequilibrium at steady state determined by random genetic drift and recurrent mutations. Genetics. 1969a;63:229–238. doi: 10.1093/genetics/63.1.229. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Ohta T, Kimura M. Linkage disequilibrium due to random genetic drift. Genetical Research. 1969b;13:47–55. [Google Scholar]
  21. Song YS, Song JS. Analytic computation of the expectation of the linkage disequilibrium coefficient r2. Theoretical Population Biology. 2007;71:49–60. doi: 10.1016/j.tpb.2006.09.001. [DOI] [PubMed] [Google Scholar]
  22. Wright S. Adaptation and selection. In: Jepson GL, Mayr E, Simpson GG, editors. Genetics, Paleontology and Evolution. Princeton University Press; 1949. pp. 365–389. [Google Scholar]

RESOURCES